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

learn more… | top users | synonyms

2
votes
1answer
790 views

What is the most efficient way to create a shapefile from resultset using geotools

I am facing a problem to write to shapefile (geotools) with respect to time, memory etc. My workflow is something like reading spacial data from database Oracle with attributes and coordinates (can ...
2
votes
2answers
712 views

How to add a background map to a java project?

I'm new at GIS. I am trying to make a java application that can display a map with certain points. I have achieved this using the geotools library. However, I want to put the map from OpenStreetMap or ...
1
vote
1answer
163 views

Can we read/write MXD Document using GeoTools

Is it possible we can read/write mxd document only using geotools.
3
votes
1answer
162 views

Repaint seems not working when called multiple times from the same method

I have the following scenario: displaySelectedFeatures(IDs); then some code... and then: displaySelectedFeatures(features); Display selected features looks like this: public void ...
0
votes
1answer
69 views

Error running geotools tutorial for CSV2SHP?

Although I run this tutorial I always get following error message: Nov 22, 2011 5:10:50 PM org.geotools.referencing.factory.epsg.ThreadedPostgreSQLEpsgFactory isAvailable WARNING: ...
0
votes
1answer
199 views

GeoTool CSV to Shape Conversion Error

In the Feature Tutorial Example GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); generates error: method getGeometryFactory in class ...
1
vote
1answer
1k views

Problem running geotools quickstart application?

package org.geotools.tutorial.quickstart; import java.io.File; import org.geotools.data.FileDataStore; import org.geotools.data.FileDataStoreFinder; import ...
20
votes
4answers
4k views

How to bypass 10 character limit of field name in ShapeFiles?

I'm exporting geometry with attached text attributes from oracle database to esri shapefile format (.shp) with Java and Geotools library. Attribute columns in our database have names with more than ...
3
votes
1answer
190 views

Add NZGD2000 Coordinate Reference System

I'm not sure if this is the right place to ask, but... I've been playing with GeoTools 8.0M-1, in particular trying to read some GeoTiffs. Each time, it crashes with the error No code "EPSG:2193" from ...
3
votes
1answer
513 views

Geomajas: how to write an xml file to config a layer (GeoToolsLayer) fetched from Geoserver?

I need to connect to Geoserver, fetch the layer and display it in Geomajas. I have followed the instruction in this link http://www.geomajas.org/node/280 but it doesn't work for me. The map is just ...
5
votes
2answers
1k views

geotools vs. geotoolkit

The geotoolkit.org web site has very little documentation. From this document I get the impression that it is a fork from geotools; is that right? If so, what were the motives/objectives of the fork?
2
votes
0answers
286 views

GeoTiff specs for coordinate transformation definition

I would like to define a GeoTiff coordinate transformation by a set of GCPs only. The intention is to publish the GeoTiff as a coverage in GeoServer. However if I specify tie points only, GeoServer ...
1
vote
1answer
884 views

GeoTools Dynamic Layer

I need to change the features of a MapLayer in real-time but I don't know how I can update/refresh/repaint the layer on the map without having to remove it and add it again (which creates flickering). ...
7
votes
2answers
1k views

For a given feature find the closest point along a given path

Looking for a Java based (foss4g) solution for the following: I am using a path along with a buffer to find features that are along the path. For each of the features returned I want to find the ...
0
votes
2answers
395 views

GeoTools 2.6.5: Cannot get JMapFrame to work because of problem with processStylers

I am trying to get JMapFrame to work to visualize some feature. Unfortunately I keep getting errors although this test app can be started. Toolbars etc. are shown. 18.02.2011 16:44:38 ...
5
votes
1answer
291 views

How to add Opencarto to a Geotools project?

I've installed geotools through maven (and m2ecplise) but i'm not able to add opencarto library to my project. (As you can guess, I'm new to java) I tried by adding opencarto's main folder as library ...
5
votes
2answers
4k views

How to parse KML data using geotools?

Geotools contains some packages dealing with KML: org.geotools.kml and org.geotools.kml.bindings. I assume it was designed to parse KML data. Do you know how to use it?
4
votes
3answers
282 views

Differentiating a building from a road on a map?

This question was originally asked here by Steven and I felt the question was better asked here. Steven would also like to know the sources Google buys it maps from. I remember seeing a post about it ...
4
votes
1answer
2k views

Convert Gauss-Kruger to UTM

How to covert Gauss-Kruger coordinates to UTM coordinates with GeoTools java library? As I have figured out the location (zone, country) is important. I need the calculation for Slovenia.
7
votes
3answers
3k views

How to write GML with Geotools?

I'd like to write GML using Geotools. Unfortunately, I can't find documentation on a GML Writer (except for this one from 2006: http://docs.codehaus.org/display/GEOTOOLS/WFS+++GML+DataStore). Could ...