New answers tagged

0

For now I'm playing in this site https://www.versioneye.com/search?lang=%2C&q=ows&g=org.geotools and do my best to find out


1

TLDR; in general use the org.geotools imports if you are working solely with GeoTools code. As is documented in the OpenGIS FAQ GeoTools once upon a time had idealistic developers who thought the world would be a better place if the "Java GIS Tribe" could share code more easily. So they built a set of interfaces that people implementing various OGC and ISO ...


1

Solved by adding one line to if statement for checking is ctrl pressed so now it looks like this: if(ctrl) { mapPane.getMapContent().expandSelection(layer, IDs); IDs=MapContent.selected; } else { mapPane.getMapContent().selectFeatures(layer, IDs); } and also I changed visibility of selected in MapContent to public static Set<FeatureId> ...


1

I think your problem is that none of your strings overlap so there is nothing for the union to do. I've tried the following code: SimpleFeatureIterator itr = features.features(); ArrayList<Geometry> geometries = new ArrayList<>(); try { while(itr.hasNext()) { SimpleFeature f = itr.next(); Geometry geom = (Geometry)f....


0

You need to use a WMSLayer object rather than requesting the image yourself. So something like: for (Layer layer : WMSUtils.getNamedLayers(capabilities)) { map.add(new WMSLayer(wms, layer)); } though I'd probably add some sort of selection functionality and error checking :-) There is also an addLayer(layer) method that would allow you to build up a ...


0

This should work (it works great in my program) map.layers().clear();



Top 50 recent answers are included