String[] dtnames = {dataSourece +":"+ dataSet};
GetFeaturesByGeometryParameters params = new GetFeaturesByGeometryParameters();
params.datasetNames = dtnames;
geometry = new Geometry();
/* points = new Point3D[point3DList.size()];
for (int i = 0; i < point3DList.size(); i++) {
points[i] = point3DList.get(i);
}*/
point2Ds = new Point2D[point2DList.size()];
for (int i = 0; i < point2DList.size(); i++) {
point2Ds[i] = point2DList.get(i);
}
// geometry(points,GeometryType.REGION3D);
geometry.fromPoint2Ds(point2Ds,GeometryType.REGION);
params.geometry = geometry;
params.geometry.type = GeometryType.REGION;
params.spatialQueryMode = SpatialQueryMode.INTERSECT;
// 与服务器交互
GetFeaturesByGeometryService service = new GetFeaturesByGeometryService(queryB12);
MyGetFeaturesEventListener listener = new MyGetFeaturesEventListener();
service.process(params, listener);
GetFeaturesByGeometryService这类的查询,Geometry参数只能传入Point2D的参数吗,二维的点怎么去跟模型数据做INTERSECT;而且params.geometry.type可以有那么多种几何类型,为什么Geometry只能传二维的点呢,有没有geometry的points是三维点的例子,谢谢