wktReader=newWKTReader2(geometryFactory); } } 代码示例来源:origin: geotools/geotools /** * Reads a Well-Known Text representation of a {@link Geometry} from a {@link String}. * * @param wellKnownText one or more <Geometry Tagged Text>strings (see the OpenGIS Simple * Features Specifi...
public static Point toGeometry(DirectPosition position) { return toGeometry(position, null); } 代码示例来源:origin: geotools/geotools /** * Converts an arbitrary Java2D shape into a JTS geometry. The created JTS geometry may be any * of {@link LineString}, {@link LinearRing} or {@link...
在org.geotools库中,CRS(Coordinate Reference System)类是用于处理坐标参考系统的核心类。 MathTransform类用于执行坐标转换操作。 编写代码实现墨卡托投影坐标到平面坐标的转换逻辑: 以下是一个示例代码,展示如何使用org.geotools库将墨卡托投影坐标转换为平面坐标: java import org.geotools.geometry.jts.JTS; import ...
aggregatedBounds.setToNull(); 代码示例来源:origin: org.geotools/gt-main /** * Returns the non null envelope of this attribute. If the attribute's * geometry is null the returned Envelope * isNull() is true. * * @return */ publicsynchronizedBoundingBoxgetBounds(){ if(bounds==null){ R...
代码示例来源:origin: geotools/geotools Geometrygt2=(Geometry)tmp2.getDefaultGeometry(); if(gt2.overlaps(gt)!=expected){ results.error( tmp, 代码示例来源:origin: locationtech/jts /** * Default implementation. */ publicbooleanoverlaps(Geometryg) ...
* jts 包的引入 52 */ 53 import com.vividsolutions.jts.geom.Geometry; 54 55 /** 56 * The example code for the "FirstProject" in the GeoTools wiki.57 * 58 * This code matches these examples: 59 * 60 * First Project 61 * How to Read a Shapefile 62 ...
com.vividsolutions.jts.geom.Geometry; 54 55 /** 56 * The example code for the "FirstProject" in the GeoTools wiki.57 * 58 * This code matches these examples: 59 * 60 * First Project 61 * How to Read a Shapefile 62 * 63 * 64 * @author Jody Garnett...
.locationtech.jts.geom.MultiLineString;importorg.locationtech.jts.geom.MultiPoint;importorg.locationtech.jts.geom.MultiPolygon;importorg.locationtech.jts.geom.Point;importorg.locationtech.jts.geom.Polygon;importorg.opengis.geometry.BoundingBox;/** * Reads and writes geometry objects...
org.locationtech.jts.geom.Geometry org.opengis.referencing.FactoryException org.geotools.referencing.CRS org.locationtech.jts.io.ParseException org.openrdf.model.Statement org.opengis.feature.simple.SimpleFeature org.opengis.referencing.crs.CoordinateReferenceSystem org.opengis.feature.simple.Simple...
本文整理了Java中org.geotools.geometry.jts.Geometries类的一些代码示例,展示了Geometries类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometries类的具体详情如下:包路径:org.geotools.geometry.jts.Geometries类名称...