[postgis-users] Calling pgsql2shp.exe via python

David Quinn daithiquinn at gmail.com
Mon Feb 20 17:13:18 PST 2012


>
> Watch out for the escaping for Windows paths. You should have one of these:
>
> 'D:\\testShapefile.shp'
> r'D:\testShapefile.shp' (I prefer this method)
> 'D:/testShapefile.shp' (I think this works)
>
> As you have it, it will be "D:[tab]estShapefile.shp" with the tab
> character. I don't think you are allowed to have a tab character in
> Windows path names, but I'm not sure.
>
> apologies, that was a typo as I transcribed from python to email. I meant
to write 'D:/testShapefile.shp' .....

(For completeness' sake, it does not work as 'D:\test'  - the windows error
message is: 'Could not create dbf file D:    estShapfile.shp')

-David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120220/f036bcfc/attachment.html>


More information about the postgis-users mailing list