[gdal-dev] ogr2ogr GML creation encoding issue
Even Rouault
even.rouault at mines-paris.org
Fri Feb 24 11:56:06 EST 2012
Selon Travis Kirstine <traviskirstine at gmail.com>:
> I have a PostGIS / PostgreSQL database (UTF8) containing OSM data that
> was imported using osm2pgsql. I have been extracting GML subsets of
> the data using ogr2ogr. I am having issues with the encoding of the
> resultant GML files, the attribute strings have invalid UTF8
> characters.
This sounds more as an issue with your PostGIS database then. You should make
sure that your PGCLIENTENCODING (or equivalent mechanism) is set to UTF-8. The
GML driver will just copy what it receives from the PostGIS DB.
>
>
> My Command
> ogr2ogr -f GML -t_srs EPSG:4326 -s_srs EPSG:900913 -nln administrative
> planet_osm_polygon_boundary_administrative.gml PG:'dbname=osmdb
> user=osm' -sql "SELECT admin_level, name, way FROM planet_osm_polygon
> WHERE boundary = 'administrative')"
>
> Regards
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list