Questions tagged [geotools]

GeoTools is an open source Java library that provides tools for geospatial data.

111 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
70 views

Error in Geotools renderer

Here is my Java code that generates an error from Geotools renderer: public class LandmarkLayer { protected static final String LANDMARK_FEATURE_NAME = "landmark"; protected static final StyleFactory ...
0
votes
1answer
217 views

GeoTools and GDAL: CRS WKT

I would like to achieve the same output as for GDAL using the GeoTools library: CoordinateReferenceSystem crs = CRS.decode("EPSG:32632"); String wkt = crs.toWKT(); System.out.println(wkt);...
0
votes
1answer
65 views

Weird behavior using org.geotools Filter

I am using filter to catch all the features who fall into a specific polygon. My collection is in EPSG:32632 coordinate reference system and it is located somewhere in this bounding box: xMin, yMin ...
0
votes
1answer
45 views

JFileDataStoreChooser.showOpenFile does not filter by extension

running GeoTools 15.1 on ubuntu using this code ... import org.geotools.swing.data.JFileDataStoreChooser; public class GeoJson2Shape { public static void main(String[] args) throws Exception { ...
0
votes
0answers
71 views

Cropping GeoTIFF with GeoTools - remove NO_DATA border

I have a raster with borders full of NO_DATA value. Is it possible to crop a raster over a "minimum" bounding rectangle, Legend: * - no data, + - data ******* * ++** -> ++ * ++** ++ *****...
0
votes
1answer
44 views

BingService doesn't accept requests for Hybrid and Other Bing Map formats

We have used BingService with the help of following code: String baseURL = "http://ak.dynamic.t1.tiles.virtualearth.net/comp/ch/${code}?mkt=de-de&it=G,VE,BX,L,LA&shading=hill&og=78&n=...
0
votes
0answers
257 views

Geotools Getcapabilities timeout

I'm using geotools to get all layers from a Geoserver. WMSCapabilities caps = null; try { WebMapServer wms = new WebMapServer( sourceServer, 1000000 ); caps = wms....
0
votes
0answers
543 views

geotools shapefile does not support utf-8 for dbf header

I create a ShapefileDataStore to create a new shapefile and call dataStore.createSchema(...) . But it does not work for utf-8 header fields. I checked the geotools source code and realized that it ...
0
votes
0answers
396 views

Change color of feature by ID (GeoTools)

I am trying to change the color of a specific object, by ID (or another feature). Currently I am able to extract data about an shapefile and display that data. However, I want to be able to change the ...
0
votes
0answers
176 views

Label rendered with empty features using geotools

I am using geotools to generate some images based on the shapefile data, it works well until I tried to add labels for the line features: the labels are rendred even there is no features in the images....
0
votes
0answers
343 views

How to combine two `GridCoverage2D` to make a new `GridCoverage2D`

I was wondering if there is any GeoTools code example which combines two GridCoverage2D to make a third new GridCoverage2D? I can find examples for reading pixels from GridCoverage2D or writing a ...