Hot answers tagged

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

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....


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> ...



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