[gdal-dev] GDAL/OGR .NET - FileGDB driver

Even Rouault even.rouault at spatialys.com
Sun Feb 12 11:53:11 PST 2017


On jeudi 9 février 2017 19:37:25 CET Иван Чукански wrote:
> Hi All,
> 
> Is there a way to get the settings for XYTOLERANCE and  XYSCALE for existing
> feature in a File GDB using either the FileGDB or the OpenFileGDB driver?

Ivan,

For example with

$ ogrinfo -ro ../autotest/ogr/data/curves.gdb -sql "GetLayerDefinition polygon"
INFO: Open of `../autotest/ogr/data/curves.gdb'
      using driver `OpenFileGDB' successful.

Layer name: LayerDefinition
Geometry: Unknown (any)
Feature Count: 1
Layer SRS WKT:
(unknown)
FIELD_1: String (0.0)
OGRFeature(LayerDefinition):0
  FIELD_1 (String) = <DEFeatureClassInfo xsi:type='typens:DEFeatureClassInfo' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/
2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/
10.1'><CatalogPath>\polygon</CatalogPath><Name>polygon</
Name><ChildrenExpanded>false</ChildrenExpanded><DatasetType>esriDTFeatureClass</
DatasetType><DSID>3</DSID><Versioned>false</Versioned><CanVersion>false</
CanVersion><ConfigurationKeyword></
ConfigurationKeyword><RequiredGeodatabaseClientVersion>10.0</
RequiredGeodatabaseClientVersion><HasOID>true</HasOID><OIDFieldName>OBJECTID</
OIDFieldName><GPFieldInfoExs xsi:type='typens:ArrayOfGPFieldInfoEx'><GPFieldInfoEx 
xsi:type='typens:GPFieldInfoEx'><Name>OBJECTID</Name><AliasName>OBJECTID</
AliasName><FieldType>esriFieldTypeOID</FieldType><IsNullable>false</
IsNullable><DomainFixed>true</DomainFixed><Required>true</
Required><Editable>false</Editable></GPFieldInfoEx><GPFieldInfoEx 
xsi:type='typens:GPFieldInfoEx'><Name>SHAPE</
Name><FieldType>esriFieldTypeGeometry</FieldType><IsNullable>true</
IsNullable><DomainFixed>true</DomainFixed><Required>true</Required></
GPFieldInfoEx><GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'><Name>SHAPE_Length</
Name><FieldType>esriFieldTypeDouble</FieldType><IsNullable>true</
IsNullable><Required>true</Required><Editable>false</Editable></
GPFieldInfoEx><GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'><Name>SHAPE_Area</
Name><FieldType>esriFieldTypeDouble</FieldType><IsNullable>true</
IsNullable><Required>true</Required><Editable>false</Editable></GPFieldInfoEx></
GPFieldInfoExs><CLSID>{52353152-891A-11D0-BEC6-00805F7C4268}</
CLSID><EXTCLSID></EXTCLSID><RelationshipClassNames xsi:type='typens:Names'></
RelationshipClassNames><AliasName></AliasName><ModelName></
ModelName><HasGlobalID>false</HasGlobalID><GlobalIDFieldName></
GlobalIDFieldName><RasterFieldName></RasterFieldName><ExtensionProperties 
xsi:type='typens:PropertySet'><PropertyArray 
xsi:type='typens:ArrayOfPropertySetProperty'></PropertyArray></
ExtensionProperties><ControllerMemberships 
xsi:type='typens:ArrayOfControllerMembership'></
ControllerMemberships><EditorTrackingEnabled>false</
EditorTrackingEnabled><CreatorFieldName></CreatorFieldName><CreatedAtFieldName></
CreatedAtFieldName><EditorFieldName></EditorFieldName><EditedAtFieldName></
EditedAtFieldName><IsTimeInUTC>true</IsTimeInUTC><FeatureType>esriFTSimple</
FeatureType><ShapeType>esriGeometryPolygon</ShapeType><ShapeFieldName>SHAPE</
ShapeFieldName><HasM>false</HasM><HasZ>false</HasZ><HasSpatialIndex>true</
HasSpatialIndex><AreaFieldName>SHAPE_Area</
AreaFieldName><LengthFieldName>SHAPE_Length</LengthFieldName><Extent 
xsi:nil='true'/><SpatialReference 
xsi:type='typens:GeographicCoordinateSystem'><WKT>GEOGCS["GCS_WGS_1984&quo
t;,DATUM["D_WGS_1984",SPHEROID["WGS_1984",
6378137.0,298.257223563]],PRIMEM["Greenwich",
0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",
4326]]</WKT><XOrigin>-400</XOrigin><YOrigin>-400</
YOrigin><XYScale>999999999.99999988</XYScale><ZOrigin>-100000</
ZOrigin><ZScale>10000</ZScale><MOrigin>-100000</MOrigin><MScale>10000</
MScale><XYTolerance>8.983152841195215e-009</XYTolerance><ZTolerance>0.001</
ZTolerance><MTolerance>0.001</MTolerance><HighPrecision>true</
HighPrecision><LeftLongitude>-180</LeftLongitude><WKID>4326</
WKID><LatestWKID>4326</LatestWKID></SpatialReference><ChangeTracked>false</
ChangeTracked><FieldFilteringEnabled>false</FieldFilteringEnabled><FilteredFieldNames 
xsi:type='typens:Names'></FilteredFieldNames></DEFeatureClassInfo>

This is the "Special SQL requests" documented in 
http://gdal.org/drv_filegdb.html and
http://gdal.org/drv_openfilegdb.html

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170212/a26fcc7b/attachment-0001.html>


More information about the gdal-dev mailing list