pgsql-ogr-fdw icon indicating copy to clipboard operation
pgsql-ogr-fdw copied to clipboard

Get OGR_STYLE field from foreign table

Open nextstopsun opened this issue 8 years ago • 1 comments

Is it possible to get OGR_STYLE as a foreign table column? I need it to get DXF MTEXT objects styling. In ogrinfo or ogr2ogr I can return it with -sql "select *, OGR_STYLE from entities". Is it possible to pass -sql to server options or retrieve OGR_STYLE column somehow?

nextstopsun avatar Dec 14 '16 12:12 nextstopsun

No, looks like it is not possible. OGR FDW will to open options, but it seems like the only way to get at OGR_STYLE is vis the OGRFeature::GetStyleString method. That would require a new option and some new code in the FDW itself. I'll leave this as an enhancement ticket for now.

pramsey avatar Dec 14 '16 13:12 pramsey