[fdo-users] How to get feature class extent

Maksim Sestic max at geoinova.com
Thu May 22 09:54:06 EDT 2008


Hi Bruno,

If everything else fails, you can always resort to the brute force approach
:-) 

1) Create a calcEnv variable to keep calculated IEnvelope (initial size is
0,0,0)
2) Fetch an instance of IFeatureReader you want envelope calculated for
3) Iterate reader, stretching up calcEnv using IGeometry.GetEnvelope()
4) At the end, calcEnv keeps actual 3D envelope of the IFeatureReader
feature instances 

P.S.
IEnvelope = 3D spatial extents of a geometry

Regards,
Maksim Sestic
 

-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Bruno Scott
Sent: Thursday, May 22, 2008 15:38
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] How to get feature class extent


Is there a way to get the actual extent of a feature class.
I know we can get the spatial context associated with that class and request
it's extent.
But as many feature class can share the same spatial context, it's not the
actual result i'm interested in.

Thanks Bruno Scott
--
View this message in context:
http://www.nabble.com/How-to-get-feature-class-extent-tp17404416p17404416.ht
ml
Sent from the FDO Users mailing list archive at Nabble.com.

_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users

__________ NOD32 3118 (20080521) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com




More information about the fdo-users mailing list