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
0 answers

Geotools Error: LWGEOM_estimsted_extent : couldn't locate table, appears when adding a layer

I am using version 8.0-M2 of geotools. Each time I try adding a layer to mapContent using mapContent.addLayer, I have a warning that reads: "WARNING: Failed to use ST_Estimated_Extent, falling back on envelope aggregation ", and an error that…
2
votes
1 answer

How to show maps using GeoTools in Android?

I am using Eclipse on Windows XP. I downloaded the GeoTools 2.7.4-bin.zip file and started to add some .jar files to my project. The particularity of my project is that this is an Android one. I am developing an Android application that would allow…
pravallika
  • 67
  • 2
  • 12
2
votes
1 answer

How to Generate KML file with Style using Geotools?

I performed a lot of search around this question, and do not find any answer. In a Java Program, I have a "SimpleFeatureCollection"(geotools) and a "StyleLayerDescriptor"(geotools) which contain my "SimpleFeatureCollection" style, and I need to…
Axel Borja
  • 3,718
  • 7
  • 36
  • 50
2
votes
1 answer

Display POSTGIS data in a JMapFrame with GeoTools

EDIT: For information : create style with StyleLab example and it will display what you want. I'm trying to display POSTGIS data with GeoTools I did the examples in : http://docs.geotools.org/stable/userguide/examples/ : With QueryLab i can display…
1
vote
1 answer

GeoTools and JOGL

I am developing a desktop application for Windows that will constantly show the map moving as a vehicle moves, getting the location from a GPS unit. I have written a quick little demo that accomplishes this, however it constantly flickers. I need…
GISNovis
  • 117
  • 11
1
vote
1 answer

GeoTools/GDAL: Warning: Failed to load the kakadu native libs

I'm trying to use GeoTools to read a dted file, but I'm having a lot of configuration issues. I'm using eclipse and java. Here is the abridged version of my code: import org.geotools.coverageio.gdal.dted.DTEDReader; public class ViewDTED { public…
msknapp
  • 1,595
  • 7
  • 22
  • 39
1
vote
0 answers

Building an executable jar with maven+geotools jai-imageio / kakadu runtime error

Following the directions here I tried to build an executable jar for my geotools based project to distribute it to users. Now during runtime I get the following error java.util.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider…
Vespasian
  • 605
  • 1
  • 5
  • 14
1
vote
1 answer

How to correctly render features with GeoTools to an image using AffineTransformation?

I'm trying to correctly render some features I read from a featuretable of a PostGIS enabled database with GeoTools to an image. My configuration: PostgreSQL 8.4 PostGIS 1.5 Osmosis 0.40.1 OSMembrane build 845 GeoTools 2.7.4 Rendering some…
pmoule
  • 4,322
  • 2
  • 34
  • 39
1
vote
1 answer

How to integrate GeoTools library in android Project

I am trying to integrate geotools libray, but I am getting error please help to integrate i have done following step for integration. I am getting error: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find…
1
vote
1 answer

Geoserver cant render one band Geotiff normally by Geotools

I published a layer using one band Geotiff file in Geoserver which I set its SLD style. The SLD which can render the layer style normally is like this:
George
  • 27
  • 3
1
vote
1 answer

Geotools: Getting IllegalArgumentException: Argument "ellipsoid" should not be null after "org.opengis.referncing.NoSuchAuthorityCodeException" error

I encountered the common "org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS" while trying to run my packaged jar on an Apache Flink cluster. I already had…
1
vote
1 answer

Geotools add styleUrl

Hi I am trying to build a DefaultFeatureCollection and add a styleUrl. At the end i want to encode all this to a kml. At the end of the method createStyle, i just print out the kml, to see how it looks. My code looks like this: public void…
mastersink
  • 11
  • 1
1
vote
1 answer

Shapefile With One Border and Multiple Features?

I am writing a map application that imports Census and USGS information and shows it as an overlay on a Google Map. I want to export mash-ups of these items and export as a Shapefile. I use the geotools library to import Census Department TIGER/Line…
Jason
  • 3,943
  • 12
  • 64
  • 104
1
vote
0 answers

Infinite run after adding osm service in a map content and using the paint method of the StreamingRenderer class

When I add osm service in a mapContent mapContent.addLayer(new AsyncTileLayer(new OSMService("Mapnik", "http://tile.openstreetmap.org/"))); Then when I use the paint method of StreamingRenderer class, there is an infinite run. More precisely the…
adrbessy
  • 41
  • 6
1
vote
0 answers

Native image construction of a Quarkus application breaks when referencing Geotools library

The generation of the native image with GraalVM of my application in Quarkus breaks when I'm using the geotools library I need to find a workarround because I use geotools to read shapefile (SHP format) and convert it to WKT format. Does anyone know…
Aloisio
  • 51
  • 1
  • 3