如何判断GeoTools 的Geometry类型

代码如下,截取自GeoTools文档npublic enum Geometriesnextends EnumnConstants to identify JTS geometry types, reducing the need for boiler-plate code such as this…n if (Polygon.class.isAssignab