[postgis-devel] Issue 34 in postgis: .prj creation by pgsql2shp

codesite-noreply at google.com codesite-noreply at google.com
Tue Dec 9 04:47:10 PST 2008


Comment #12 on issue 34 by mark.cav... at siriusit.co.uk: .prj creation by  
pgsql2shp
http://code.google.com/p/postgis/issues/detail?id=34

Yeah. shp2pgsql is different because it doesn't actually connect to a  
PostgreSQL
server - it just produces a text file, and so it has to handle the encoding  
itself by
allowing the user to specify it on the command line.

For pgsql2shp, the client_encoding is a property of the connection used to  
extract
the geometries, and so PQescapeStringConn() automatically "just knows" the  
correct
encoding to use when passing strings into the SQL engine.


HTH,

Mark.


-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the postgis-devel mailing list