Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.LineString.toText()


                    for( int i = 0; i < intersection.getNumGeometries(); i++ ) {
                        Point vertex = (Point) intersection.getGeometryN(i);
                        adaptedSegment = SplitUtil.insertVertexInLine(adaptedSegment, vertex.getCoordinate());
                    }
                }
                segmentMap.put(adaptedSegment.toText(), adaptedSegment );
            } else { // add the original segment
                segmentMap.put(segment.toText(), segment );
            }
        }
        return segmentMap;
View Full Code Here


                //Set geometry and distance
                LineString lineString = geometryFactory.createLineString(coords);

                double length = getDistanceInMeters(coords);
                String textGeometry = lineString.toText();

                newRelationship.setProperty(OsmEntityAttributeKey.WAY_DISTANCE.name(), length);
                newRelationship.setProperty(OsmEntityAttributeKey.WAY_GEOMETRY.name(), textGeometry);

                //Add to index
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.