This command will only update the layer specified with the '-l' option. In the example above, only the "airports" feature class extent will be updated.
Using .NET against the ArcSDE DLLs isn't really supported. The supported mechanism wouldbe to use C++ against the 'C' API to make .NET objects, though in this case, the SE_ENVELOPEobject is representable with a wrapper. The 'C' API documentation explains all the available functions, and should be your first reference when attempting 'C' API programming. All-in-all,using 'sdelayer' is much easier.You need to be careful about changing the extents of layers, since the optimizer uses theratio of the layer extent to the search envelope to determine if the spatial index should beused -- envelope changes can have an impact on draw performance.- V
You can use the 'sdelayer -o alter' command with the '-E' option to calculate the extent. Ex:sdelayer -o alter -l airports,shape -E calc -D gis -i sde:sqlserver:server -u vector -p vectorFor the '-E' option you can use 'calc' to automatically calculate the extent, or you can enter the extent manually, i.e. (-E -75.07,40.03,-74.98,40.10)
sdelayer -o alter -l airports,shape -E calc -D gis -i sde:sqlserver:server -u vector -p vector
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.