New answers tagged

0

Despite its nice sounding name a "shapefile" is not a single file but a whole bunch (at least 3 probably not more than 10) of related files which share a common base name. This is why GeoTools requires a URL pointing to the base file (x.shp) and then picks up the other files it needs based on that location. If you are building your shapefile in memory why ...


0

Your configuration gdal/java binding doesn't work. If you are using Linux use the steps in https://github.com/VertNet/reproject/wiki/GDAL-Java-Bindings


0

This (and other similar errors) always means that you forgot to add a jar to your runtime classpath (and probably your build). To be sure which one is missing I'd need to see your mvn pom.xml but I suspect it is either gt-cql or possibly gt-main or gt-api. You might also like to read my blog post discussing how to find which jar to look in for a class ...


0

There are three distinct steps here, 1st make the point (which you seem to be able to do), 2nd add it to a layer with a style, 3rd add that to the map. This does the first 2 steps: static Layer addPoint(double latitude, double longitude) { SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder(); b.setName("MyFeatureType"); ...


0

When you say GPS i am assuming you mean in a state plane or utm? I would suggest creating a php webpage using the proj4 library. You can create a php/js page that will allow the input of N,E points as a single point entered by the user or in a batch of points in csv format and it will output it the lat/long coordinates. I have a webpage that can be found at ...



Top 50 recent answers are included