Hi Jukka, > After this introduction I wonder if it could be possible to convert the whole > layer with OpenJUMP so that the result would keep all the attributes but have > all the coordinates in reversed x and y coordinate order? So this > LINESTRING (6610069.234 170739.665, 6606506.505 184937.743) would become > LINESTRING (170739.665 6610069.234, 184937.743 6606506.505). Perhaps it > could be handled by some BeanShell or Python tool? Try to copy paste the following script in beantools folder Should switch longitude and latitude for all the selected layers
//Inverse longitude and latitude - Michael Michaud 2011-11-15 import com.vividsolutions.jump.workbench.model.Layer; // Create the filter public CoordinateFilter switchLatLon = new CoordinateFilter() { void filter(Coordinate coord) { t = coord.x; coord.x = coord.y; coord.y = t; } }; // apply for (Layer lyr : wc.layerNamePanel.selectedLayers) { for (Feature f : lyr.featureCollectionWrapper.features) { f.geometry.apply(switchLatLon); f.geometry.geometryChanged(); } } // refresh wc.layerViewPanel.repaint(); > > -Jukka Rahkonen- > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel