本文整理了Java中com.vividsolutions.jts.geom.Geometry.getBoundary()
方法的一些代码示例,展示了Geometry.getBoundary()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.getBoundary()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Geometry
类名称:Geometry
方法名:getBoundary
[英]Returns the boundary, or an empty geometry of appropriate dimension if this Geometry
is empty. (In the case of zero-dimensional geometries, ' an empty GeometryCollection is returned.) For a discussion of this function, see the OpenGIS Simple Features Specification. As stated in SFS Section 2.1.13.1, "the boundary of a Geometry is a set of Geometries of the next lower dimension."
[中]返回边界,如果Geometry
为空,则返回相应维度的空几何体。(对于零维几何图形,将返回一个空的GeometryCollection。)有关此功能的讨论,请参阅OpenGIS简单功能规范。如SFS第2.1.13.1节所述,“几何体的边界是一组下一个较低尺寸的几何体。”
代码示例来源:origin: com.vividsolutions/jts
private void checkPositiveValid()
{
Geometry bufCurve = result.getBoundary();
checkMinimumDistance(input, bufCurve, minValidDistance);
if (! isValid) return;
checkMaximumDistance(input, bufCurve, maxValidDistance);
}
代码示例来源:origin: com.vividsolutions/jts
public Geometry getBoundary()
{
if (geom instanceof LineString) return boundaryLineString((LineString) geom);
if (geom instanceof MultiLineString) return boundaryMultiLineString((MultiLineString) geom);
return geom.getBoundary();
}
代码示例来源:origin: org.geotools/gt-main
static public Geometry boundary(Geometry arg0)
{
if (arg0 == null) return null;
Geometry _this = arg0;
return _this.getBoundary();
}
代码示例来源:origin: org.geotools/gt2-main
static public Geometry boundary(Geometry arg0)
{
Geometry _this = arg0;
return _this.getBoundary();
}
代码示例来源:origin: nl.cloudfarming.client/farm-model
@Override
public Geometry getBoundingBox() {
return (this.geometry!=null)?geometry.getBoundary():null;
}
代码示例来源:origin: org.orbisgis/h2spatial
/**
* @param geometry Geometry instance
* @return Geometry envelope
*/
public static Geometry getBoundary(Geometry geometry) {
if(geometry==null) {
return null;
}
return geometry.getBoundary();
}
}
代码示例来源:origin: org.orbisgis/h2gis-functions
/**
* @param geometry Geometry instance
* @return Geometry envelope
*/
public static Geometry getBoundary(Geometry geometry) {
if(geometry==null) {
return null;
}
return geometry.getBoundary();
}
}
代码示例来源:origin: org.orbisgis/h2gis
/**
* @param geometry Geometry instance
* @return Geometry envelope
*/
public static Geometry getBoundary(Geometry geometry) {
if(geometry==null) {
return null;
}
return geometry.getBoundary();
}
}
代码示例来源:origin: nl.cloudfarming.client/mask-model
@Override
public Geometry getBoundingBox() {
return (this.geometry!=null)?geometry.getBoundary():null;
}
代码示例来源:origin: org.orbisgis/h2gis-functions
/**
* @param geometry Geometry instance
* @return Geometry envelope
*/
public static Geometry getBoundary(Geometry geometry, int srid) {
if(geometry==null) {
return null;
}
Geometry geometryEnvelope = geometry.getBoundary();
geometryEnvelope.setSRID(srid);
return geometryEnvelope;
}
代码示例来源:origin: org.orbisgis/h2gis
/**
* @param geometry Geometry instance
* @return Geometry envelope
*/
public static Geometry getBoundary(Geometry geometry, int srid) {
if(geometry==null) {
return null;
}
Geometry geometryEnvelope = geometry.getBoundary();
geometryEnvelope.setSRID(srid);
return geometryEnvelope;
}
代码示例来源:origin: org.orbisgis/h2spatial
/**
* @param geometry Geometry instance
* @return Geometry envelope
*/
public static Geometry getBoundary(Geometry geometry, int srid) {
if(geometry==null) {
return null;
}
Geometry geometryEnvelope = geometry.getBoundary();
geometryEnvelope.setSRID(srid);
return geometryEnvelope;
}
代码示例来源:origin: BaseXdb/basex
@Override
public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
return toElement(checkGeo(0, qc).getBoundary(), qc);
}
}
代码示例来源:origin: com.vividsolutions/jts-core
private void checkPositiveValid()
{
Geometry bufCurve = result.getBoundary();
checkMinimumDistance(input, bufCurve, minValidDistance);
if (! isValid) return;
checkMaximumDistance(input, bufCurve, maxValidDistance);
}
代码示例来源:origin: org.geotools/gt-jts-wrapper
public final boolean isCycle() {
com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
com.vividsolutions.jts.geom.Geometry jtsBoundary = jtsGeom.getBoundary();
return jtsBoundary.isEmpty();
}
代码示例来源:origin: com.vividsolutions/jts-core
public Geometry getBoundary()
{
if (geom instanceof LineString) return boundaryLineString((LineString) geom);
if (geom instanceof MultiLineString) return boundaryMultiLineString((MultiLineString) geom);
return geom.getBoundary();
}
代码示例来源:origin: org.geotools/gt-jts-wrapper
/**
* @return
* @see com.polexis.lite.spatialschema.geometry.geometry.GenericSurfaceImpl#getPerimeter()
*/
public final double getPerimeter() {
com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
return jtsGeom.getBoundary().getLength();
}
代码示例来源:origin: stackoverflow.com
Envelope env = new Envelope();
for(Geometry g : mySet){
env.expandToInclude(g.getBoundary().getEnvelopeInternal()):
}
代码示例来源:origin: org.geotools/gt2-jts-wrapper
public final boolean isCycle() {
com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
com.vividsolutions.jts.geom.Geometry jtsBoundary = jtsGeom.getBoundary();
return jtsBoundary.isEmpty();
}
代码示例来源:origin: org.geotools/gt2-jts-wrapper
/**
* @return
* @see com.polexis.lite.spatialschema.geometry.geometry.GenericSurfaceImpl#getPerimeter()
*/
public final double getPerimeter() {
com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
return jtsGeom.getBoundary().getLength();
}
内容来源于网络,如有侵权,请联系作者删除!