本文整理匯總了Java中com.vividsolutions.jts.geom.util.GeometryExtracter類的典型用法代碼示例。如果您正苦於以下問題:Java GeometryExtracter類的具體用法?Java GeometryExtracter怎麽用?Java GeometryExtracter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GeometryExtracter類屬於com.vividsolutions.jts.geom.util包,在下文中一共展示了GeometryExtracter類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: extract
import com.vividsolutions.jts.geom.util.GeometryExtracter; //導入依賴的package包/類
private void extract(Geometry geom) {
if (this.geomFact == null) {
this.geomFact = geom.getFactory();
}
/*
PolygonExtracter.getPolygons(geom, polygons);
LineStringExtracter.getLines(geom, lines);
PointExtracter.getPoints(geom, points);
*/
GeometryExtracter.extract(geom, Polygon.class, this.polygons);
GeometryExtracter.extract(geom, LineString.class, this.lines);
GeometryExtracter.extract(geom, Point.class, this.points);
}
示例2: extract
import com.vividsolutions.jts.geom.util.GeometryExtracter; //導入依賴的package包/類
private void extract(Geometry geom) {
if (geomFact == null)
geomFact = geom.getFactory();
/*
PolygonExtracter.getPolygons(geom, polygons);
LineStringExtracter.getLines(geom, lines);
PointExtracter.getPoints(geom, points);
*/
GeometryExtracter.extract(geom, Polygon.class, polygons);
GeometryExtracter.extract(geom, LineString.class, lines);
GeometryExtracter.extract(geom, Point.class, points);
}