Tag Info

New answers tagged

0

Not sure if this is still up to date, but in the LocationTech Geoff project I am using OpenLayers 3 embedded in a Java environment for visualizing geodata. Maybe, you can get some impressions from the code/approach or even better use the project as a framework. It provides a simple to use Java API. Currently, it has support for SWT, but support for the ...


3

You need to import the GeoJSON plugn <dependency> <groupId>org.geotools</groupId> <artifactId>gt-geojson</artifactId> <version>${geotools.version}</version> </dependency> and then call it like this (a full example is here): public String geoData() { final GeometryBuilder builder = new ...


0

The CTS wiki https://github.com/orbisgis/cts/wiki/Create-a-new-CoordinateReferenceSystem-from-a-reference-code has been updated to include a full example now. The adding of the appropriate registry was missing from it previously. After creating the CRSFactory instance, the appropriate registry has to be added to its registry manager. In this case I wanted ...


1

From the GeoTools Referencing FAQ - Can I just use Referencing without the rest of GeoTools? Yes, you will need to use the metadata module, and one of the epsg modules. Along with their dependencies such as units. Then all you need to do is: CoordinateReferenceSystem sourceCRS = CRS.decode("EPSG:4326"); MathTransform transform = ...


0

Check your class path, it might miss the jars that are able to read the shape file: Check the availabel DataStores: Iterator availableStores = DataStoreFinder.getAvailableDataStores(); LOGGER.info("List available Stores: {"); while (availableStores.hasNext()) { LOGGER.info(availableStores.next().toString()); } ...


1

The dataset use Pan-European mapping standard projection system - EPSG3035 If you are open to non-java tool and simplicity, you will be able to reproject the file to WGS84 using GDAL/OGR : http://www.gdal.org/, that way : ogr2ogr -f "ESRI Shapefile" path/to/NUTSV9_LEAC.shp NUTSV9_LEAC_wgs84.shp -s_srs EPSG:3035 -t_srs EPSG:4326



Top 50 recent answers are included