Select to view content in your preferred language

Problems displaying feature classes created via API in ArcMap

4819
10
12-04-2011 09:07 PM
SimonWood
Emerging Contributor
Hi,

I have noticed some problems when displaying feature classes in ArcMap that have been created and populated using the FileGDB API. Specifically, when I add such a feature class to ArcMap, nothing is being drawn (note: I am starting with nothing else displayed in ArcMap).

If I zoom out to the maximum then I can see the data and if I then zoom in, it is displayed where I expect it to be. If I zoom in beyond a certain amount (different for each layer - in the order of 1:600000), the data disappears again. "Zoom to layer" doesnt do anything. Ive checked min/max zoom levels for the layer and they are not set.

The data in the feature classes seems ok (it reads and displays fine via non ArcMap means).

I have attached a modified version of TableSchema.cpp that reproduces the problem. When the modified file is built and run, it adds 3 lines in the "streets" feature class that the test creates. When I display this feature class in ArcMap I dont see anything. If I change it to only create 1 shape (any of the three - it doesnt seem to matter which one), then the feature class does display ok in ArcMap.

Possibly I am creating the rows/shapes incorrectly in the feature class?

Thanks,
Simon
0 Kudos
10 Replies
SimonWood
Emerging Contributor
Thanks,

The GridSizes were ok in my real code, but turns out I was setting XYScale too large for projected CRSs and this caused the same behaviour.
Once I fixed this up, its now all working ok in ArcMap (when creating using windows).


Thanks again,
Simon.
0 Kudos