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
-1
votes
1 answer

error in projecting a shapefile from epsg:4326 to epsg:32056

I have been trying to change the projection of Shapefile from one coordinate reference system to other. The shapefile I have used has EPSG:4326 as its reference system and I need to change it to EPSG:32056. I am using Geotools API-20.0 for the…
-1
votes
1 answer

extract geometry in shepfile .shp

I want to extract some data from a shapefile, I have this function that can read a shapefile file is show on a map i can read some informations but i m lost with extract many info in this file public class Quickstart { …
issam
  • 73
  • 8
-1
votes
2 answers

Using Geotools with ArcSDE 10.5

I know ESRI do not longer distribute the Java-files needed so that Geotools can be used as before. But are there any workaround to use GeoTools or similar library using Direct-connect for versions after 10.3? Its a bit hard to understand the…
Michael
  • 1
  • 1
-1
votes
1 answer

Creating a shapefile from CSV-file

I'm trying to create a program which takes the coordinates from a csv-file and turns it into a shapefile. I downloaded the GeoTools libraries but I can't get the code to work...
-1
votes
1 answer

Tomcat fail to start due to Geotools Maven libraries: "SEVERE: A child container failed during start"

Im running a jersey web application using Eclipse + Maven + Tomcat (8.5). When I try to add the geotools dependencies in the pom.xml Tomcat doesnt start due to: "SEVERE: A child container failed during start". I would like to understand the reason…
-1
votes
1 answer

How to Modify record of table with geoTools

I'm developing a GIS application with java. I am using Spring RESTController and GeoTools. In client side(I use Openlayers 2.13.1), user modifies a feature of wfs layer and want to update it in server side. After modifying, user send the request as…
Morteza Malvandi
  • 1,656
  • 7
  • 30
  • 73
-2
votes
2 answers

GridGeometry2D's world to grid function translating wrong

Using geotools version 11.2 import java.awt.Rectangle import com.vividsolutions.jts.geom.Envelope import org.geotools.coverage.grid.{GeneralGridEnvelope, GridGeometry2D} import org.geotools.geometry.jts.ReferencedEnvelope import…
Andrew Cassidy
  • 2,940
  • 1
  • 22
  • 46
-2
votes
1 answer

Is it possible to split multipolygon into smaller polygons?

i have a multipolygon geometry like this: I need somehow to split this geometry to smaller polygons, to gray ones. So, i would like to ask if it is possible and how i could do that. Thanks.
Vytaus
  • 27
  • 1
  • 8
-3
votes
1 answer

Can't display the style

When I load the feature source and style in the map layer it does not always display. The feature and style were loaded in…
leomessi
  • 69
  • 6
-4
votes
1 answer

I am using Geotools to display a road map of Bangalore

I want to know how to highlight any specific road. For example i want to color a road yellow that has id=1. I am using Java to display the map.
Sandeep
  • 106
  • 1
  • 4
1 2 3
37
38