Class geometryType=featureSource.getSchema().getDefaultGeometry();
if( Point.class == geometryType )
// its a point! hoorah.
And just do a check like that for the other geometry type.s
One point. There could be multiple geometries in the feature source
but this is pretty safe.
Jesse
On 16-Jan-07, at 10:43 AM, Yingqi Tang wrote:
> Hi All,
>
> I run into a problem here:
>
> I got the dataStore from a WFS service and get the featureSource for
> each feature type, which are working fine. But how can I determine
> whether the features in certain featureSource is point, line, or
> polygong?
>
> Any one has idea?
>
> Thanks in advance.
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users