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
2
votes
2 answers

Java Image Generation Of Heat Map for Google Earth

I'm working on a Java program that processes some data and generates a Heat Map to display the results. This program takes a target area and divides that area into a grid, which for the sake of testing each cell is 1NM by 1NM. I generate a KML file…
intelman
  • 49
  • 1
  • 9
2
votes
2 answers

Indexes and performance

I'm new to Geotools and facing this issue : I'm injecting in PostGis about 2MB of shapefile info (about 5800 entries) and surprisingly it takes more or less 6 minutes to complete! Quite annoying because my "real" data set might be up to 25MB by…
pef
  • 231
  • 1
  • 2
  • 7
2
votes
1 answer

How do I discover the correct Java 11 module names for my GeoTools project?

I am trying to convert my application to use Java 11 and the java module system, but am having difficulty discovering which "requires" statements to add to my module-info.java. I am currently getting the error "The project was not built since its…
Luke Turner
  • 324
  • 1
  • 4
  • 22
2
votes
2 answers

How to add SQL HINTs to Geoserver layers?

We have Geoserver 2.21.1, Geotools 27.1 and SAP Hana plugin of Geotools. Data is in SAP Hana and we use quite a complex queries and views in the database. We have found out that it takes a long time for Hana to optimize some of the queries when…
2
votes
1 answer

Shortest distance on Repast Simphony?

I wanted to get shortest distance from point a to b on a road network. Is there a way to do that using GeoTools or otherwise? Can we create network projection from road shapefile?
GEO_ABM
  • 21
  • 1
2
votes
2 answers

How to correctly create a Polygon into a shapefile with Java?

I am trying to create shape files from a list of coordinates and it looks like it works but when I'm trying to view the shapefile in a shapefile viewer, it looks like there's no coordinates in my shape. Also if I then download my shapefile as…
Sonja Laurila
  • 534
  • 1
  • 5
  • 15
2
votes
1 answer

geotools reversing lat/lon for WGS when transforming between projections

I'm having issues with Geotools reversing the latitude and longitude, using JTS.transform(). It's been driving me mad now for days. I have different data sets defined in different projections. The goal is that I can map any coordinate in a given…
hinsbergen
  • 147
  • 2
  • 11
2
votes
1 answer

Geotools unable to find WrongPathException

I am using geotools in Java to get the Shortest Path from node to node1. Below is my Java code to retrieve the Path: AStarShortestPathFinder finder = new AStarShortestPathFinder(g, node, node1, null); Path path = finder.getPath(); I tried to…
xxestter
  • 441
  • 7
  • 19
2
votes
0 answers

No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS"

I am trying to GeoTool's CoordinateReferenceSystem with the following code: try { targetCRS = CRS.decode("EPSG:4326"); logger.info("\nTarget: " + targetCRS.toWKT()); } catch (NoSuchAuthorityCodeException e) { …
Mike Stoddart
  • 488
  • 7
  • 21
2
votes
1 answer

What is wrong with this GeoTools FeatureId?

Using the GeoTools WFS-T plugin, I have created a new row, and after a commit, I have a FeatureId whos .getId() returns an ugly string that looks something like this: newmy_database:my_table.9223372036854775807 Aside from the fact that the word…
AlbeyAmakiir
  • 2,217
  • 6
  • 25
  • 48
2
votes
1 answer

OpenStreetMap layer in GeoTools

I am trying to display an OSM layer as background layer in a map for a Java application which uses GeoTools. My starting point is the Maven quickstart tutorial and the Tile Client user guide. Therefore my class to reproduce my problem is quite…
gillesB
  • 1,061
  • 1
  • 14
  • 30
2
votes
1 answer

How to get Mouse Coordination in GeoTools?

Firstly, i'm sorry that i m newbiew at Geotools. And i need to tackle mouse events in Geotools. How can i get mouse coordination as a Lat and a Lon in geotools?
ibrahimyilmaz
  • 18,331
  • 13
  • 61
  • 80
2
votes
1 answer

GeoTools with GWT (Development Mode Jetty)

Using GeoTools with GWT, I get the following stack trace when running my app in Development Mode: WARNING: Can't load a service for category "CRSAuthorityFactory". Cause is "ServiceConfigurationError: org.opengis.referencing.crs.CRSAuthorityFactory:…
Daniel
  • 10,115
  • 3
  • 44
  • 62
2
votes
1 answer

In geotools ,how to use Geometry as feature source add into layer?

In geotools ,how to use geometry as feature source add into layers? I know that .shp file can add into layers, and add into content,then we can show it. I read it in geotools…
leomessi
  • 69
  • 6
2
votes
0 answers

How to set the Origin for an Engineering Coordinate Reference System using Geotools?

I am trying to code a transformation from a local 3D Cartesian (which is attached to a moving platform) to geocentric coordinate reference system (CRS) using the referencing module of Geotools. The geotools user guide mentions a "A contextually…
Roman Podolski
  • 329
  • 3
  • 17