Changeset 32539 in osm for applications/editors/josm/plugins/jts/src
- Timestamp:
- 2016-07-02T22:08:46+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/jts/src/org/openstreetmap/josm/plugins/jts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/jts/src/org/openstreetmap/josm/plugins/jts/JTSConverter.java
r28415 r32539 1 // License: GPL. For details, see LICENSE file. 1 2 package org.openstreetmap.josm.plugins.jts; 2 3 3 import com.vividsolutions.jts.geom.*;4 import com.vividsolutions.jts.geom.impl.CoordinateArraySequence;5 4 import java.util.List; 5 6 6 import org.openstreetmap.josm.data.osm.Node; 7 7 import org.openstreetmap.josm.data.osm.OsmPrimitive; 8 8 import org.openstreetmap.josm.data.osm.Relation; 9 9 import org.openstreetmap.josm.data.osm.Way; 10 11 import com.vividsolutions.jts.geom.Coordinate; 12 import com.vividsolutions.jts.geom.CoordinateSequence; 13 import com.vividsolutions.jts.geom.Geometry; 14 import com.vividsolutions.jts.geom.GeometryFactory; 15 import com.vividsolutions.jts.geom.LineString; 16 import com.vividsolutions.jts.geom.LinearRing; 17 import com.vividsolutions.jts.geom.Point; 18 import com.vividsolutions.jts.geom.Polygon; 19 import com.vividsolutions.jts.geom.PrecisionModel; 20 import com.vividsolutions.jts.geom.impl.CoordinateArraySequence; 10 21 11 22 /** … … 26 37 * Conversions will use LatLon if useEastNorth is false, otherwise EastNorth 27 38 * (the currently selected projection) will be used for coordinates. 28 * @param useEastNorth29 39 */ 30 40 public JTSConverter(boolean useEastNorth) { … … 64 74 65 75 public CoordinateSequence convertNodesToCoordinateSequence(List<Node> nodes) { 66 Coordinate coords []= new Coordinate[nodes.size()];76 Coordinate[] coords = new Coordinate[nodes.size()]; 67 77 for (int i = 0; i < nodes.size(); i++) { 68 78 coords[i] = convertNodeToCoordinate(nodes.get(i)); … … 72 82 73 83 public Point convertNode(Node node) { 74 Coordinate coords []= {convertNodeToCoordinate(node)};84 Coordinate[] coords = {convertNodeToCoordinate(node)}; 75 85 return new com.vividsolutions.jts.geom.Point(new CoordinateArraySequence(coords), getGeometryFactory()); 76 86 } -
applications/editors/josm/plugins/jts/src/org/openstreetmap/josm/plugins/jts/JTSPlugin.java
r28162 r32539 1 // License: GPL. Copyright 2012 by Josh Doe and others1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.plugins.jts; 3 3
Note:
See TracChangeset
for help on using the changeset viewer.