Gausz

Geographisches Auskunftsystem

Abfrage der verfügbaren Vektorebenen in einer CGM-Datei

ogrinfo test.CGM

INFO: Open of `test.CGM'
using driver `GCGM' successful.
1: points (Point)
2: lines (Line String)
3: polygons (Polygon)

 

 

Abfrage der Elemente einer Vektorebene in einer CGM-Datei

ogrinfo test.CGM  

Layer name: points
Geometry: Point
Feature Count: 51
Extent: (2538500.000000, 5634750.000000) - (2539000.000000, 5635000.000000)
Layer SRS WKT:
PROJCS["DHDN / 3-degree Gauss-Kruger zone 2",
    GEOGCS["DHDN",
        DATUM["Deutsches_Hauptdreiecksnetz",
            SPHEROID["Bessel 1841",6377397.155,299.1528128,
                AUTHORITY["EPSG","7004"]],
            TOWGS84[598.1,73.7,418.2,0.202,0.045,-2.455,6.7],
            AUTHORITY["EPSG","6314"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4314"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",6],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",2500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","31466"]]
FOLIE: String (2.0)
EBE: Integer (3.0)
KEY: String (6.0)
Height: Real (9.0)
TEXT: String (255.0)
KEY1: String (255.0)
KEY2: String (255.0)
KEY3: String (255.0)
KEY4: String (255.0)
KEY5: String (255.0)
OGRFeature(points):210
  FOLIE (String) = 02
  EBE (Integer) = 105
  KEY (String) = 02:105
  Height (Real) = 4

OGRFeature(points):210
  FOLIE (String) = 02
  EBE (Integer) = 105
  KEY (String) = 02:105
  Height (Real) = 4
  TEXT (String) = MKXXXXXXX-S-J-LT-YYYY#HOLMA_E_#25XXXX.6256YYYY.15
  KEY1 (String) = MKXXXXXXX-S-J-LT-YYYY
  KEY2 (String) = HOLMA_E_
  KEY3 (String) = 25XXXX.6256YYYY.15
  POINT (25XXXXX.31856537 56YYYYY.10401154)
...

 

Abfrage von Vektordaten anhand einer SQL-Anweisung

ogrinfo -sql "select * from points where FOLIE='02' AND EBE=105 and KEY2='HOLMA_E_'" test.CGM

 

Layer name: points
Geometry: Point
Feature Count: 2
Extent: (2538500.000000, 5634750.000000) - (2539000.000000, 5635000.000000)
Layer SRS WKT:
PROJCS["DHDN / 3-degree Gauss-Kruger zone 2",
    GEOGCS["DHDN",
        DATUM["Deutsches_Hauptdreiecksnetz",
            SPHEROID["Bessel 1841",6377397.155,299.1528128,
                AUTHORITY["EPSG","7004"]],
            TOWGS84[598.1,73.7,418.2,0.202,0.045,-2.455,6.7],
            AUTHORITY["EPSG","6314"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4314"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",6],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",2500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","31466"]]
Geometry Column = _ogr_geometry_
FOLIE: String (2.0)
EBE: Integer (3.0)
KEY: String (6.0)
Height: Real (9.0)
TEXT: String (255.0)
KEY1: String (255.0)
KEY2: String (255.0)
KEY3: String (255.0)
KEY4: String (255.0)
KEY5: String (255.0)
OGRFeature(points):210
  FOLIE (String) = 02
  EBE (Integer) = 105
  KEY (String) = 02:105
  Height (Real) = 4
  TEXT (String) = MKXXXXXXX-S-J-LT-XXXX#HOLMA_E_#25XXXXX.6256YYYYY.15
  KEY1 (String) = MKXXXXXXX-S-J-LT-XXXX
  KEY2 (String) = HOLMA_E_
  KEY3 (String) = 25XXXXX.6256YYYYY.15
  POINT (25XXXXX.31856537 56YYYYY.10401154)

OGRFeature(points):211
  FOLIE (String) = 02
  EBE (Integer) = 105
  KEY (String) = 02:105
  Height (Real) = 4
  TEXT (String) = MKXXXXXXX-S-J-LT-XXXX#HOLMA_E_#25XXXXX.2256YYYYY.72
  KEY1 (String) = MKXXXXXXX-S-J-LT-XXXX
  KEY2 (String) = HOLMA_E_
  KEY3 (String) = 25XXXXX.4956YYYYY.72
  POINT (25XXXXX.1963501 56YYYYY.66999817)