Quantcast
Channel: Question and Answer » oracle
Viewing all articles
Browse latest Browse all 717

How to set encoding when using ogr2ogr to export from oracle db to mapinfo table?

$
0
0

I am trying to automate the export of spatial data from a oracle database to mapinfo .tab files. Using this thread I made my script. However I can’t see how to set the encoding right.

My data have latin1 encoding. But this is not the case in the output file. I get warnings regarding invalid characters when running the script and Local characters like æøå is not intact in the output.

this is my code:

REM Unsuccessful attempt to change encoding: 
SET PGCLIENTENCODING = LATIN1
SET OGR_FORCE_ASCII = NO

C:OSGeo4Wbinogr2ogr.exe -f "MapInfo File" C:OUTPUTPATHtest.TAB OCI:"<USERNAME>/<LOGIN>@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = <HOST>)(PORT = <PORT>)))(CONNECT_DATA = (SID =<SID-NUMBER>))):<TABLES> 

Viewing all articles
Browse latest Browse all 717

Trending Articles