Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- import com.vividsolutions.jump.workbench.ui.*;
- import java.util.*;
- import com.vividsolutions.jts.io.*;
- import com.vividsolutions.jts.geom.*;
- Polygon eotr100 = (Polygon) new WKTReader().read("POLYGON((384000 32000, 384000 384000, 960000 384000, 960000 32000, 384000 32000))");
- //Layer[] layers = wc.LayerNamePanel.selectedLayers;
- //Layer layer = layers[0];
- if(wc.layerNamePanel.selectedLayers.length<1){
- print("Nincs réteg kiválasztva!");
- return;
- }
- for (layer : wc.layerNamePanel.selectedLayers) {
- print("\n[ "+layer.getName()+" ]");
- //print(layer.getStyles());
- for (feature : layer.featureCollectionWrapper.features) {
- //f.setGeometry(filter(f.geometry));
- //for (c:f.geometry.getCoordinates()) c.z = Double.NaN;
- //print(f.geometry.getEnvelope());
- f = layer.featureCollectionWrapper.features[0];
- print(feature.getGeometry());
- print(
- //layer.featureCollectionWrapper.feature[0].getGeometry().contains(layer.featureCollectionWrapper.feature[0].getGeometry())
- );
- }
- }
- }
Add Comment
Please, Sign In to add comment