pramsey / pgsql-ogr-fdw

PostgreSQL foreign data wrapper for OGR
MIT License
238 stars 33 forks source link

Get OGR_STYLE field from foreign table #118

Closed nextstopsun closed 2 months ago

nextstopsun commented 7 years ago

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?

pramsey commented 7 years ago

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.