Select to view content in your preferred language

FeatureClass extent vs domain question

1430
3
07-21-2010 12:51 PM
DeannaDelapasse
Emerging Contributor
I'm using ArcObjects (Java) to create feature classes for my ARCGis 9.3.  In ArcCatalog I can see that my feature classes have Domain values set, but in ArcMap on the layer properties the extent values are blank.

Can you tell me what the difference is in those two?  And how I can set the extent?

My Layers won't "zoom to layer" and I'm guessing that is why.  My shapefiles work fine.  I can zoom to the specific selected row (so I think my spatialRef was set ok), but not to the layer.    I have tried in datasets and standalone - same result.
0 Kudos
3 Replies
AlexanderGray
Honored Contributor
It is likely that the layer's areaOfInterest is empty.  This happens if the featureclass is empty but it could happen other ways too.  Typically, zoom to layer zooms to the extent of the data.  I know there are some times problems where the AOI no longer reflects the extent of the data if a bunch of features are deleted.  ILayer2 has read/write on it.  Shapefiles get their AOI differently so it is possible they work fine without setting it.

http://forums.esri.com/Thread.asp?c=93&f=992&t=67243
0 Kudos
DeannaDelapasse
Emerging Contributor
This is driving me crazy!  I did finally figure out that it only happens when I use a FeatureCursor/FeatureBuffer.  When I use direct inserts my extent shows up in the Layer source tab.

How can I get a reference to my layer (I only create a FeatureClass inside a FeatureDataset - I guess a default layer is being created for me?)?

Sorry if that's a really dumb question.  I am not very comfortable with ArcObjects yet.
0 Kudos
KirkKuykendall
Deactivated User
This sounds like a bug.  As a workaround, I'd try IFeatureclassManage.UpdateExtent.
0 Kudos