[postgis-users] ogr2ogr creating shapefile

TECHER David davidtecher at yahoo.fr
Mon Sep 11 16:56:26 PDT 2006


Hi Frances,

I'm used to using ogr2ogr but I've never had problems.

Never see this error before! For me to understanding what is getPop() in
your query???

What about using pgsql2shp instead of ogr2ogr ??? (see
http://postgis.refractions.net/docs/ch04.html#id2524054)

example: pgsql2shp -f your_shapefile.shp your_database your_query

for us to see if U have error too with this tool

For the error U give, it seems better to ask on gdal mailing list!


Frances Collier a écrit :

>Hello all,
>
>I have been trying to figure out how to create a shapefile using ogr2ogr. I
>haven't been able to find much on it through google and the user pages so I
>thought one of you might be able to help.
>
>Here's my statement:
>
>ogr2ogr -f "ESRI Shapefile" test "PG:dbname=mydb host=localhost
>user=postgres password=postgres" -sql "Select pop from getPop()"
>
>When I click enter I get an Application Error that states the memory could
>not be "read". I'm sure it's in my syntax, but I can't figure it out. I
>would like to know if there are other ways to accomplish this as well. 
>
>Thank you,
>Frances Collier
>
>
>
>_______________________________________________
>postgis-users mailing list
>postgis-users at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>  
>


-- 
--david;
http://www.postgis.fr
http://www.davidgis.fr


	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.com 




More information about the postgis-users mailing list