[postgis-users] shp2pgsql -G -r
Francois Hugues
hugues.francois at irstea.fr
Wed Dec 5 01:20:20 PST 2012
Hi,
For all I know, the -r option is the raw mode used with pgsql2shp.
http://www.bostongis.com/pgsql2shp_shp2pgsql_quickguide_20.bqg
I think you should import geographies to postgis and then use st_transform to get to the wanted projection
Hugues.
-----Message d'origine-----
De : postgis-users-bounces at lists.osgeo.org [mailto:postgis-users-bounces at lists.osgeo.org] De la part de Tore Halset
Envoyé : mercredi 5 décembre 2012 09:27
À : PostGIS Users Discussion
Objet : [postgis-users] shp2pgsql -G -r
Hello.
I am trying out PostGIS 2.0.1, shp2pgsql and the geometry type. However, the reproject-thing does not seem to work as expected. What am I doing wrong?
$ shp2pgsql
RELEASE: 2.0.1 (r9979)
USAGE: shp2pgsql [<options>] <shapefile> [[<schema>.]<table>]
OPTIONS:
...
-G Use geography type (requires lon/lat data or -r to reproject).
$ shp2pgsql -G -r mystuff.shp
shp2pgsql: illegal option -- r
Regards,
- Tore.
_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list