Different Geometrytype create by arcgis and aspose

test gdb.zip (31.5 KB)

hi I use ogrinfo see the different gdb create by arcgis and aspose ,one is create by arcmap , another is by aspose

ogrinfo D:\arcgis.gdb -al
INFO: Open of `D:\arcgis.gdb'
      using driver `OpenFileGDB' successful.

Layer name: linenozm
Geometry: Multi Line String
Feature Count: 1
Extent: (-0.000150, -0.000133) - (0.000231, 0.000414)
Layer SRS WKT:
GEOGCRS["WGS 84",
    ENSEMBLE["World Geodetic System 1984 ensemble",
        MEMBER["World Geodetic System 1984 (Transit)"],
        MEMBER["World Geodetic System 1984 (G730)"],
        MEMBER["World Geodetic System 1984 (G873)"],
        MEMBER["World Geodetic System 1984 (G1150)"],
        MEMBER["World Geodetic System 1984 (G1674)"],
        MEMBER["World Geodetic System 1984 (G1762)"],
        MEMBER["World Geodetic System 1984 (G2139)"],
        MEMBER["World Geodetic System 1984 (G2296)"],
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]],
        ENSEMBLEACCURACY[2.0]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["geodetic latitude (Lat)",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["geodetic longitude (Lon)",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    USAGE[
        SCOPE["Horizontal component of 3D system."],
        AREA["World."],
        BBOX[-90,-180,90,180]],
    ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
FID Column = OBJECTID
Geometry Column = SHAPE
SHAPE_Length: Real (0.0) DEFAULT FILEGEODATABASE_SHAPE_LENGTH
OGRFeature(linenozm):1
  SHAPE_Length (Real) = 0.00125127761710007
  MULTILINESTRING ((-0.000114214 0.00017846,0.000085661 0.000414026,0.000230808 -0.000128491,-0.000149906 -0.00013325))


D:\Program Files\QGIS 3.42.1\bin>ogrinfo D:\aspose.gdb -al
INFO: Open of `D:\aspose.gdb'
      using driver `OpenFileGDB' successful.

Layer name: line
Geometry: 3D Measured Multi Line String
Feature Count: 1
Extent: (-0.000150, -0.000133) - (0.000231, 0.000414)
Layer SRS WKT:
GEOGCRS["WGS 84",
    ENSEMBLE["World Geodetic System 1984 ensemble",
        MEMBER["World Geodetic System 1984 (Transit)"],
        MEMBER["World Geodetic System 1984 (G730)"],
        MEMBER["World Geodetic System 1984 (G873)"],
        MEMBER["World Geodetic System 1984 (G1150)"],
        MEMBER["World Geodetic System 1984 (G1674)"],
        MEMBER["World Geodetic System 1984 (G1762)"],
        MEMBER["World Geodetic System 1984 (G2139)"],
        MEMBER["World Geodetic System 1984 (G2296)"],
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]],
        ENSEMBLEACCURACY[2.0]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["geodetic latitude (Lat)",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["geodetic longitude (Lon)",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    USAGE[
        SCOPE["Horizontal component of 3D system."],
        AREA["World."],
        BBOX[-90,-180,90,180]],
    ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
FID Column = OBJECTID
Geometry Column = SHAPE
OGRFeature(line):1
  MULTILINESTRING ((-0.000114214 0.00017846,0.000085661 0.000414026,0.000230808 -0.000128491,-0.000149906 -0.00013325))
ogrinfo D:\arcgis.gdb -al
INFO: Open of `D:\arcgis.gdb'
      using driver `OpenFileGDB' successful.

Layer name: linenozm
Geometry: Multi Line String
Feature Count: 1
Extent: (-0.000150, -0.000133) - (0.000231, 0.000414)
Layer SRS WKT:
GEOGCRS["WGS 84",
    ENSEMBLE["World Geodetic System 1984 ensemble",
        MEMBER["World Geodetic System 1984 (Transit)"],
        MEMBER["World Geodetic System 1984 (G730)"],
        MEMBER["World Geodetic System 1984 (G873)"],
        MEMBER["World Geodetic System 1984 (G1150)"],
        MEMBER["World Geodetic System 1984 (G1674)"],
        MEMBER["World Geodetic System 1984 (G1762)"],
        MEMBER["World Geodetic System 1984 (G2139)"],
        MEMBER["World Geodetic System 1984 (G2296)"],
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]],
        ENSEMBLEACCURACY[2.0]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["geodetic latitude (Lat)",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["geodetic longitude (Lon)",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    USAGE[
        SCOPE["Horizontal component of 3D system."],
        AREA["World."],
        BBOX[-90,-180,90,180]],
    ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
FID Column = OBJECTID
Geometry Column = SHAPE
SHAPE_Length: Real (0.0) DEFAULT FILEGEODATABASE_SHAPE_LENGTH
OGRFeature(linenozm):1
  SHAPE_Length (Real) = 0.00125127761710007
  MULTILINESTRING ((-0.000114214 0.00017846,0.000085661 0.000414026,0.000230808 -0.000128491,-0.000149906 -0.00013325))

you can see the different between them, especial
aspose: Geometry: 3D Measured Multi Line String
arcmap: Geometry: Multi Line String
how can I create a layer by aspose like arcmapgeometry Multi Line String

Hi, @lsl

I need to explore your request. I’ll be back with an answer in a couple of days.

Thanks

Hi, @lsl

We reproduced your example above and made fix.
But you will need to use FileGdbOptions() { HasZ = false, HasM = false }, cos by default Drivers.FileGdb have ‘true’ value for Z and M.
It will be in next release.