Questions tagged [geotools]

GeoTools is an open source Java library that provides tools for geospatial data (http://geotools.org). Questions about programming using GeoTools are on topic here, while questions on geographic issues (while using GeoTools) should be asked on https://gis.stackexchange.com.

For questions about how to complete geographic tasks using the GeoTools library you may want to ask on https://gis.stackexchange.com/ to get answers, if your question focuses on programming issues with GeoTools then ask on this site.

565 questions
0
votes
0 answers

How can manipulate the featues of layers

I want to manipulate the featues of layers loaded in Jframe (I have multiple layers).You find below the code I use to charge the layers.Please, someone can help me. File file = JFileDataStoreChooser.showOpenFile("shp", null); if (file ==…
LB82
  • 13
  • 3
0
votes
1 answer

How is distance between two LineStrings calculated?

I am working on my university project, and I use GeoTools library. My task is to implement AGNES (agglomerative nesting) algorithm that considers spatial data. To do this I need to calculate distances between spatial objects e.g. points, curves,…
Piotrek Hryciuk
  • 785
  • 10
  • 23
0
votes
1 answer

JTS + reading geodata: Number of points must be 0 or >3

I'm trying to read some geodate from file. I'm using the geotools package in java. I have the geodata available as kml, gml and.shp, those are pretty big files. Those come from an external bron and are formatted correctly. When I want to read tools,…
jeanke
  • 13
  • 2
0
votes
1 answer

How to set up geotools/geoscript for logstash on an offline linux box?

I'm currently a 2nd year comp sci student working out an independent project as a trial for my final year work, and have been having some issues with configuring an ELK stack to work with geoserver logs using the contrib wms.rb filter. The main…
Sam Bevan
  • 1
  • 1
0
votes
1 answer

geotools program working perfectly in netbeans but when i execute the jar it seems it has no dependencies

I am building a GIS with geotools, it runs perfectly in netbeans but when I build the jar and executed it it seems like if it has no dependencies. I followed the instructions given in geotools doc for building (…
Eduardo Palacio
  • 301
  • 1
  • 10
0
votes
1 answer

wfs server with geotools and eg jetty

I would like impelement WFS SERVER using geotools and eg. jetty. Jetty will provide web container and geotools should parse whf requests (getcapabilities etc) and generate resposses (gml, json?) but I am unable to find any solutions. Geotools can…
eagis
  • 3
  • 2
0
votes
0 answers

Loading custom temporary rasters in Openlayers

Currently I'm working on a web mapping project, where users can calculate a heatmap raster geotiff based on their inputs and view it in Openlayers afterwards. Raster calculations are done on serverside with geotools. The way I go is like this: user…
Chris
  • 4,238
  • 4
  • 28
  • 49
0
votes
0 answers

Alignment in JMapPane in java Swing ANd Geotools10.X

I am having a problem displaying a plot in jmap pane... i have a application written using geotools 10 and java swing. we are using JMapPane to display shape file map. when a user clicks a plot a new tab is opened and the details of the plots are…
adhikari
  • 112
  • 2
  • 13
0
votes
1 answer

GeoTools JTS orthodromicDistance throws exception for latitude being out of range

I am trying to get geotools to tell me the distance between two points. I am providing the points in degrees, and I want to get back the distance in meters. I followed this web page for…
msknapp
  • 1,595
  • 7
  • 22
  • 39
0
votes
1 answer

MathTransform doesn't work in Android project: "The type java.awt.geom.Point2D$Double cannot be resolved."

I need to transform coordinates using GeoTools. My code works fine in a Java project but when I put it in the Android I get the error at the mathTransform.transform(...) line: "The type java.awt.geom.Point2D$Double cannot be resolved. It is…
user1418018
  • 189
  • 1
  • 4
  • 17
0
votes
2 answers

Unable to open most shape files from naturalearthdata with geotools: Invalid empty measure

Found that I am unable to open most shape files from NaturalEarthData with GeoTools 11.0. I am running tutorial "Maven Quickstart" which loads given shape file and shows it. Error occurs inside swing frame, opened with…
Dims
  • 47,675
  • 117
  • 331
  • 600
0
votes
1 answer

using geotools in web page

Currently in my project to find shortest and multiple routes from point A to point B I am using Geotools in the following way: Get paths to be travelled from point A to point B. Store calculated paths in separate file. Then execute geotools project…
Sandeep
  • 106
  • 1
  • 4
0
votes
1 answer

GeoTools, error loading a map

I'm trying to get to work the GeoTools quickstart tutorial. I've downloaded a map from http://www.naturalearthdata.com. The file…
AgostinoX
  • 7,477
  • 20
  • 77
  • 137
0
votes
1 answer

"Cannot find class symbol" error in Maven for running Geo Tools

I am new to using Geo Tools and Maven. I'm following the tutorial and came across a specific error. The code I'm trying to run is available here. My pom.xml is:
Amin
  • 1
  • 2
0
votes
0 answers

GeoTools in java Application without using Maven

Is it possible to use geotools in a Java application without using Maven? I downloaded a stable version but I don't see how to import it as a library in Netbeans. I have it as many jar files.
denBelg
  • 343
  • 1
  • 8
  • 20