Tag Info

Hot answers tagged

1

In general it's better to use the return type you've declared rather than rely on exceptions, so something like this may work better: public boolean openShapeFile() { try { File dataFile = new File(fileName); dataStore = new ShapefileDataStore(dataFile.toURL()); SimpleFeatureSource source = dataStore.getFeatureSource(); ...


1

The first thing to realise is that GML is a transport/Exchange format you are not really supposed to work directly with it, so the usual thing to do is import it into a spatial database (usually PostGIS) there are plenty of tools to do this both open source and proprietary - see this question for one answer. Secondly, no one should be writing WMS and WFS ...



Only top voted, non community-wiki answers of a minimum length are eligible