GeoTools is an open source Java library that provides tools for geospatial data.
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 ...
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 ...
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 ?
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 ...
4
votes
0answers
198 views
Can GeoTools parse GML CRS definitions?
A kind of branching of this question.
Soon I will need to handle GML Coordinate Reference Sysyem definitions in a Java servlet. Links:
GML OGC reference.
Concrete example.
I know that GeoTools ...
3
votes
0answers
75 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 ...
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
147 views
How to sort a SimpleFeatureCollection using GeoTools?
I have a featurecollection:
SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(dbFeatureType);
SimpleFeatureCollection collection = FeatureCollections.newCollection();
while ...
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 ...
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
118 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 ...
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 ...
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">
...
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 ...
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 ...
2
votes
0answers
67 views
GeoTools, add column in query with CQL
I'm trying to query the database (DataStore) and want to let the datastore calculate a value for me.
In SQL I would do it like this:
SELECT name, ST_Area(ST_Intersection(the_geom, ....) AS myValue ...
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"
...
2
votes
0answers
96 views
Geotools throws “Cannot encode multilinestring (yet)” while Shape import on Linux
I've encountered a strange platform-dependent SHP import problem.
Everything works fine on Windows, shape files are converted fine to database.
There is although small little warning:
[[ACTIVE] ...
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.
...
2
votes
0answers
241 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
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 ...
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 ...
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 ...
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();
...
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 ...
1
vote
0answers
51 views
Visual edit geographic data with geotools
With JMapFrame I have options for to visualize my geographic datas, but I don´t know how to add tools for to edit this data, equals conventional GIS. It´s possible to do this?
att,
Augusto
1
vote
0answers
274 views
Create a color scale/legend for choropleth map using geotools (or other open source Java library)?
I'm experimenting with choropleth maps using geotools.
Is there an easy way to add a color scale to the map (using geotools itself or some other os library)? By a color scale I mean a bar that shows ...
1
vote
0answers
140 views
How to handle multipoint symbology catalogue (as in mil2525c, tactical graphics appendix b)
Is there a general format (standards based) to store a vector based drawing description for multipoint symbology (means having several anchor points reflecting symbol point <-> geographic point ...
1
vote
0answers
78 views
Get centroid of SimpleFeatures in GeoTools8
I've got some SimpleFeatureCollections and now I want to get the Centroid of every SimpleFeature in the collection.
Unfortunally I've only found a centroid method for Geometry.
Is there any way to ...
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
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
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 ...
0
votes
0answers
41 views
How to load an image to mark the city (instead of point) using GeoTools?
I went through the Image Tutorial in http://docs.geotools.org/stable/tutorials/raster/image.html and was able to load image and get the output.
But I need to load the image without use of world file ...
0
votes
0answers
168 views
STRUCT object instantiated by GeoTools geometry converter breaks SQL prepared statement on Oracle 11G
Oracle 10.2.0.5.0 and 11.2.0.3.0 (the former works, the latter does not)
Java runtime 1.6.0_32
GlassFish 3.1.2 (running on Windows 7 desktop)
GeoTools 2.7.5 and 8.0 RC2 (makes no difference to the ...
0
votes
0answers
83 views
How to pass in a database created on the fly in code to Quick_Export in arcpy?
So I am trying to programmatically use quick_export through the arcpy package in an arcmap tool, and so I referenced the quick_export tool's dialog box that comes up when it is executing for the ...