GeoTools is an open source Java library that provides tools for geospatial data.
2
votes
1answer
63 views
Geotools 8.4 CRS.decode invalid(?) reference to HTTP_URI_OGC
I'm trying to do a simple CRS.decode to lookup a CoordinateReference system:
E.g. CoordinateReferenceSystem target_crs = CRS.decode("EPSG:4326");
However this fails with a reference to the ...
8
votes
3answers
265 views
How to build a portfolio for a GIS/Java career path?
I have been a GIS Analyst for over 10 years and am currently studying java (50% through the course). My plan is to develop GIS applications mainly focused towards open source solutions. I would like ...
3
votes
1answer
273 views
Geotools - overlay shapefile on WMS layer
I am trying to overlay a shp file on wms layer using the example http://docs.geotools.org/latest/userguide/tutorial/raster/image.html.
Each time I want to read the format of the file to get a reader ...
0
votes
1answer
30 views
How to specify field name in raster to feature conversion tool or intersect tool?
What I want to do :
input: raster file, polygon feature layer
process:
Convert raster to polygon using IConversionOp.RasterDataToPolygonFeatureData Method
Intersect resultant polygon feature class ...
2
votes
1answer
119 views
What is the best API to use GeoTools or uDig (for the context of my application)?
I am trying to develop a java application that displays : Google maps, Openstreetmap and Bing Map Data.
So which is the best SDK to use in this contet Geotools or uDig ?
1
vote
1answer
62 views
Simple WebMapping application with postgis Database
am very new to web-mapping, so this question may be a little misguided.
I want to develop a simple web mapping application using OpenLayers which can display Cadastral information that are currently ...
0
votes
0answers
32 views
How to modify the coordinates of a SHP geometry using Geotools?
I have a shapefile with some polygons. I would like to change the height for this elements using Java. The rest of the attributes should be the same. I've thought using GeoTools but I haven't found ...
0
votes
1answer
24 views
ImageMosaic-JDBC Error
I'm trying to get postgis raster layers in geoserver-2.3.1, with postgresql-8.4, postgis-2.0 and gt-imagemosaic-jdbc-9.1.jar support. I'm going through the tutorial with a PNG raster that i have. In ...
1
vote
0answers
37 views
GetCapabilities Request for WMS
I'm trying to connect to a WebMapServer with the Geotools WMS classes.
My problem is, that the resonse-object "capabilities" doesn't contain all layers.
When I'm doing the request in a browser, I can ...
0
votes
0answers
60 views
Getting: org.opengis.referencing.NoSuchIdentifierException: No transform for classification “Transverse Mercator Zoned Grid System” with geotools
Using geotools I've been trying to create a referenced envelope after converting/reprojecting from WGS 84 to UTM with specific zones and it seems that either I need to do something with authority ...
0
votes
2answers
96 views
GeoJSON to Shape file conversion with geotools
Can someone please provide me an example of how to convert GeoJSON to Shape file using geotools?
1
vote
1answer
65 views
Diff operation in PostGIS/Geotools
What is the best way to perform a diff operation on Postgis features/tables or Geotools objects? Are there any automatic methods I can use? If not, what would be the optimal way to implement your own ...
0
votes
0answers
70 views
Getting MongoDB working with GeoServer 2
I'm trying to use MongoDB with GeoServer but it is actually not working at all.
Someone once posted this: Getting MongoDB Working with GeoServer, but since he could solve his problem without any help ...
2
votes
0answers
120 views
What is the best way to convert WKT String to GML String
What is the best way to programatically convert WKT String to GML String? Every reasonable library (at best available in some Maven repository) can be used.
Till now I came up with this solution ...
4
votes
1answer
50 views
Global projection with zero scale distortion at non-zero latitude
I am looking for a global projection with zero scale distortion at non-zero latitude.
I have tried using an Oblique Mercator projection centred at a specific latitude and longitude of centre (with ...
2
votes
0answers
90 views
Implement a WFS Server using Geo tools
I need to implement a WFS Server using Geo tools, I have an application developed in Java using a spatial database. I wish to develop a WFS service using GeoTools. As a first step, I am implementing ...
7
votes
3answers
2k 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 ...
3
votes
0answers
76 views
Illegal argument exception while reading tiff image using GeoTools
I am working on a Java swings based GIS application to project my tiff image as maps . But each time I run my application I get Illegal argument: "semiMajorAxis=�" . The tiff images I have are working ...
4
votes
2answers
232 views
Fastest way to convert shapefile to postgis in java
I have been using geotools to read shapefiles and import them into postgis. Unfortunately, when large files are being imported, this leads to a massive lag time --8000% of shp2pgsql piped into pgsql-- ...
3
votes
1answer
185 views
What do I need to create 3D model of real terrain?
I'd like to create 3D model of some real terrain (to be exact it's about some real roads and only as much as 80m to 100m of roadside - 40m to 50m of each side). As I don't have access to highly ...
2
votes
0answers
84 views
How to write GML parser with Geotools?
I wrote a Parser for a GML file from the OS Mastermap with geotools 8.4. With one part I still have a problem. This sniplet of the xsd:
<complexType name="RoadLinkType">
...
1
vote
0answers
132 views
Geotools, output to kml and convert meters
I have a complex problem. I'm using geotools 10.*
I have input data:
latitude, longitude (WGS_84), radius in meters, start angle (12 o'clock), end angle (clockwise, i.e. turn to the right).
I need ...
5
votes
2answers
3k 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?
1
vote
0answers
58 views
Using the CropCoverage Render Transformation in a Geoserver SLD (WPS)
I've yet to find an example on the web (or in code) of anyone using the "Crop Coverage" Render Transformation from a Geoserver SLD. Does anyone have an example or at least be able to point me to the ...
1
vote
0answers
65 views
Renaming Columns in Geotools FeatureType
I am attempting to build a simple java program that loads shapefiles into a Postgis 2.0 database. Everything is working out great except that I would like to be able to modify the FeatureType in the ...
3
votes
1answer
664 views
How to draw polygons on an existing map?
If you want a map with some circles, squares, etc. representing cities or something else you can use the following code.
Note that you can change the map and the coordinates with yours, and you'll ...
2
votes
0answers
67 views
MultiPolygon from database
I would like to know how to create an instance of a Multipoint from a PostGIS database..
I do the query , then got the ResultSet named "area" , the column with MultiPolygon attributes is named "geom"
...
3
votes
1answer
116 views
How to couple GeoTools GML bindings for encoding to GML 3.1.1
I've successfully created GeoTools (8.3) bindings for parsing and encoding XML bindings as described in their tutorial: http://docs.geotools.org/latest/userguide/library/xml/internal/bindings.html
I ...
2
votes
0answers
179 views
How to programatically add KML Icons to Placemark generated from SimpleFeatures using GeoTools?
I have successfully generated a set of (unstyled) placemarks in a KML file using the GeoTools framework, and the Encoder class. The file renders fine in Google Earth with standard balloon placemarks.
...
5
votes
1answer
327 views
Find Perpendicular Distance and Minimum Perpendicular Vector between a Point and a Line using GeoTools and JTS
I have a line formed by 2 lat/lon pairs, and the lat/lon of a point. I would like to find out the perpendicular distance between the line and the point on the Earth surface (can assume Earth as great ...
2
votes
2answers
280 views
Merging Shapefiles With Geotools
I am trying to merge some shapefiles with different schemas in geotools. Im aware of ogr2ogr, but for now I would like to figure out this problem with Geotools.
The steps I'm taking are:
1) Create a ...
3
votes
1answer
104 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 ...
2
votes
0answers
155 views
How to open image file saved with JAI in Geotools?
I need to find NDVI and other vegetation indices and then find changes in time with tif images.
I've been using Geotools for this. I took 2 tiff images, then using QGIS I changed them to PNG because ...
1
vote
1answer
237 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 ...
2
votes
3answers
503 views
Displaying Google Maps and OpenStreetMap map in Java?
Is there any Java API that is like OpenLayers ?
I would like to display google Maps and Openlayers Maps in a java application
2
votes
1answer
440 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 ...
4
votes
1answer
474 views
Write out a WKT file from a loaded shapefile
We are looking to load and display a shapefile, simple polygons, then write out a WKT string of that shapefile and have the user save it somewhere.
Does anyone have some code snippets of that very ...
2
votes
0answers
29 views
How to convert a shapefile to WKT with GeoTools snapshot 9? [duplicate]
Possible Duplicate:
Write out a WKT file from a loaded shapefile
I need to convert a shapefile to WKT to be read in OpenLayers. The shapefile is one that has been created by Geotools. ...
3
votes
1answer
116 views
Problem in displaying a GeoTiff image in JMapFrame
I'm trying to display a GeoTiff image with no projection but where the geographical extent (bounding box) is known:
reader= format.getReader(new File(sImageName));
GridCoverage2D gridCoverage= ...
3
votes
0answers
147 views
How to sort a SimpleFeatureCollection using GeoTools?
I have a featurecollection:
SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(dbFeatureType);
SimpleFeatureCollection collection = FeatureCollections.newCollection();
while ...
0
votes
1answer
224 views
Display google maps with Geotools?
I would like to display Google maps (Raster and Vector) in Java using GeoTools. I am stuck because I am new to this library. Are there any tutorials out there that can help me ?
0
votes
0answers
8 views
How can I display OpenStreetMap using GeoTools? [duplicate]
Possible Duplicate:
What is the best API to use GeoTools or uDig (for the context of my application)?
I would like to display OpenStreetMap in a java desktop application using GeoTools. I ...
16
votes
3answers
2k 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
0answers
77 views
Is there a way to create raster by interpolating point values using GeoTools 8.2?
im new in using GeoTools (8.2). I was able to create shp from asc file which contains my data. Now my question is is there a simple way to create (interpolate) a simple shapefile (only points) to ...
3
votes
0answers
178 views
How to get distinct values from multiple columns in GeoTools?
Is there a way to get distinct values from multiple columns in geotools?
I know I can get unique values from a column like this:
SimpleFeatureSource featureSource = ...
2
votes
0answers
166 views
create geotiff from shapefiles
I need to colorized geometries from shapefiles and convert them to raster image (geotiff).
I tried to use geotools's VectorToRasterProcess and ImageWorker
("d:\gis\tmp\32 27 25 w4.shp" is path to my ...
3
votes
0answers
114 views
Symbolizer with external GIF image is not rendered pixel-perfect
We want to pinpoint some locations on a map with some external GIF symbolizers. The issue we have is visible in the attached image*: looks like somethings happens on a sub-pixel level, so that the ...
1
vote
0answers
109 views
Getting DataStore Problem with Geotools
I recently found an issue with Geotools and getting the datastore for a shapefile.
If I try:
FileDataStore dataStore = FileDataStoreFinder.getDataStore(file);
-or-
Map connect = new HashMap();
...
2
votes
1answer
185 views
Geotools // buffer using different CRS
I'm currently having a problem with Geotools.
I try to generate a buffer (in meter using Lambert 72) on a map that has WGS84 as it's coordinatesystem.
(problem is a bit like this one: ...
1
vote
0answers
164 views
how to create a shapefile for 2 million points with geotools
I have to create a shapefile with the geotools java library for approx. 2 000 000 points and whatever strategy I apply I seem to run into out of memory exceptions as well as everything running super ...




