本文整理了Java中org.deegree.geometry.GeometryFactory.createMultiLineString()
方法的一些代码示例,展示了GeometryFactory.createMultiLineString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeometryFactory.createMultiLineString()
方法的具体详情如下:
包路径:org.deegree.geometry.GeometryFactory
类名称:GeometryFactory
方法名:createMultiLineString
暂无
代码示例来源:origin: deegree/deegree3
private Geometry readPolyline( ByteBuffer buffer, boolean z, boolean m, int length ) {
Points[] ps = readLines( buffer, m, z, length );
List<LineString> cs = new ArrayList<LineString>( ps.length );
for ( int i = 0; i < ps.length; ++i ) {
cs.add( fac.createLineString( null, crs, ps[i] ) );
}
return fac.createMultiLineString( null, crs, cs );
}
代码示例来源:origin: deegree/deegree3
private MultiLineString transform( MultiLineString geo, Transformation trans )
throws TransformationException {
List<LineString> lines = new ArrayList<LineString>( geo.size() );
for ( LineString line : geo ) {
lines.add( transform( line, trans ) );
}
return geomFactory.createMultiLineString( geo.getId(), getTargetCRS(), lines );
}
代码示例来源:origin: deegree/deegree3
/**
* @param xmlStream
* @param defaultCRS
* @return
* @throws XMLStreamException
*/
public MultiLineString parseMultiLineString( XMLStreamReaderWrapper xmlStream, ICRS defaultCRS )
throws XMLStreamException {
String gid = parseGeometryId( xmlStream );
ICRS crs = determineActiveCRS( xmlStream, defaultCRS );
xmlStream.nextTag();
List<LineString> members = new LinkedList<LineString>();
if ( xmlStream.isStartElement() ) {
do {
String localName = xmlStream.getLocalName();
if ( localName.equals( "lineStringMember" ) ) {
members.add( parseLineStringProperty( xmlStream, crs ) );
xmlStream.require( END_ELEMENT, GML21NS, "lineStringMember" );
} else {
String msg = "Invalid 'gml:MultiLineString' element: unexpected element '" + localName
+ "'. Expected 'lineStringMember'.";
throw new XMLParsingException( xmlStream, msg );
}
} while ( xmlStream.nextTag() == START_ELEMENT );
}
xmlStream.require( END_ELEMENT, GML21NS, "MultiLineString" );
MultiLineString multiLineString = geomFac.createMultiLineString( gid, crs, members );
idContext.addObject( multiLineString );
return multiLineString;
}
代码示例来源:origin: deegree/deegree3
simplifiedMembers.add( simplify( member ) );
simplified = geomFac.createMultiLineString( mc.getId(), mc.getCoordinateSystem(), simplifiedMembers );
break;
代码示例来源:origin: deegree/deegree3
MultiLineString multiLineString = geomFac.createMultiLineString( gid, crs, members );
multiLineString.setType( type );
代码示例来源:origin: deegree/deegree3
homogenized = new GeometryFactory().createMultiLineString( geometry.getId(),
geometry.getCoordinateSystem(),
(List<LineString>) deepMembers );
内容来源于网络,如有侵权,请联系作者删除!