[gdal-dev] FileGDB: subtypes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[gdal-dev] FileGDB: subtypes

Martin Landa
Hi,

I am interested how FileGDB subtypes work in GDAL (GDAL should support
them since version 2.0). I have feature class `Silnice` (roads) with
attribute `typ` (type). This attribute is connected with subtype
road_type (1 - highway, 2 - speed road, 3 - ...). ogrinfo detects this
attribute as an integer, eg.

$ ogrinfo Repository/ArcCR500/ArcCR500_v32.gdb Silnice -fid 36843
Had to open data source read-only.
INFO: Open of `Repository/ArcCR500/ArcCR500_v32.gdb'
      using driver `OpenFileGDB' successful.
...
OGRFeature(Silnice):36843
  TRIDA (Integer) = 1
  CISLO_SILNICE (String) = 185
  ...

Is it possible to change this behaviour in the sense of preferring
subtype description, something like:

OGRFeature(Silnice):36843
  TRIDA (String) = 'highway'
  CISLO_SILNICE (String) = 185
  ...

or

OGRFeature(Silnice):36843
  TRIDA (Integer) = 1
  TRIDA_DESC (String) = 'highway'
  CISLO_SILNICE (String) = 185
  ...

?

Is there any difference between OpenFileGDB and FileGDB drivers?

Thanks! Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FileGDB: subtypes

Even Rouault-2

On samedi 10 d├ęcembre 2016 13:17:00 CET Martin Landa wrote:

> Hi,

>

> I am interested how FileGDB subtypes work in GDAL (GDAL should support

> them since version 2.0). I have feature class `Silnice` (roads) with

> attribute `typ` (type). This attribute is connected with subtype

> road_type (1 - highway, 2 - speed road, 3 - ...). ogrinfo detects this

> attribute as an integer, eg.

 

How sub-type works is explained in

https://trac.osgeo.org/gdal/wiki/rfc50_ogr_field_subtype

 

What you want here is probably related to "expanding" "coded value domains". There is a ticket about that:

https://trac.osgeo.org/gdal/ticket/5741

 

This isn't implemented yet.

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FileGDB: subtypes

Martin Landa
Hi,

2016-12-10 14:08 GMT+01:00 Even Rouault <[hidden email]>:
> What you want here is probably related to "expanding" "coded value domains".
> There is a ticket about that:
>
> https://trac.osgeo.org/gdal/ticket/5741

right. Thanks, Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Loading...