Tag Info

New answers tagged

1

Oracle Spatial comes with a collection of Java APIs, and one of them lets you read shapefiles. That API is documented here: http://docs.oracle.com/database/121/SPAJV/toc.htm. Look for the oracle.spatial.util package, specifically class ShapefileFeatureJGeom. It uses lower level classes that perform the actual reading of the shapefile (DBFReaderJGeom and ...


1

This is a simple operation in GeoTools, once you have read in the Shapefile you will have a FeatureCollection which you just need to write to an Oracle Datastore. I have an example of how to write a Database (mysql and postgis are the examples included) here.


0

For what you are trying to do you could use the WMS datastore in GeoTools to import the layers you need: see https://gitlab.com/snippets/6355 for a full example.


1

To be honest EPSG:4326 is not really defined well at all, depending on which version of WMS oe when your CRS was defined you use it can be either way. The definitive statement for GeoTools is at http://docs.geotools.org/latest/userguide/library/referencing/order.html So you may be able to get away with: Hints hints = new ...


0

The easy way is to go with option 2 and the URL it wants is the location of the XSD file which will be in the top of the GML that is within your ServletRequest. So you need to open the root element and extract the namespaces and schema URLs. Then you can create the name and URL from that: GML gml = new GML(Version.WFS1_0); gml.setCoordinateReferenceSystem( ...



Top 50 recent answers are included