The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [geotools]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
275 views

Can I define a transformation between 2D and 3D in Geotools?

I'm using Geotools, and I need to convert coordinates between 2D and 3D coordinate reference systems. I recognize that there's no universally-correct way to do this: 2D -> 3D means "making up" a Z ...
1
vote
2answers
1k views

Check Geometry Type of a Shapefile Using GeoTools?

I want to get the type (point, line, or polygon) of shapefile using GeoTools but so far I haven't found any code. Any other Java library also works for me.
1
vote
1answer
1k views

The units of getArea() on a multipolygon within a shapefile [closed]

I am using GeoTools to find area and intersections of shapefiles. GeoTools uses the JTS geometry library (Vivid Solutions) and that has functions to getArea() but unfortunately I am not able to ...
0
votes
1answer
781 views

Read WKT geometry using JTS 1.13 in Java

I want to create a shapefile from coordinates, in the client side I take the coordinates of a polygon by OpenLayers, it sends it to a Java class, in this class I read the geometry of the polygon, but ...
0
votes
2answers
972 views

Using Geotools or GeoserverManager to add a layer using just an URL

Lets say I have just an URL to a Layer in OpenLayers format: http://www.geoservicos.ibge.gov.br/geoserver/CREN/wms?service=WMS&version=1.1.0&request=GetMap&layers=HidrogeologiaRegiaoNE ...
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 ...