On Tue, Jun 3, 2014 at 7:50 PM, Bettina Lechner <[email protected]>
wrote:
> I will try that, yes.
>
>
>
> On further reflection, I thought of something else that is possibly
> related:
>
> I use shp2pgsql to import Esri shapefiles into PostGIS. For some reason,
> when the table is created, the SRID is set to 0. Then I change it to the
> appropriate one in PostGIS. When I then add it to GeoServer, it doesn’t
> pick up on that and leaves the “Native SRS” field blank, so I have to use
> the Declared SRS instead.
>
When using shp2pgsql it's a good practice to pass the -s parameter (and -I
too) while importing, e.g., if your shapefile
is in WGS84 you'll use:
shp2pgsql -s 4326 -I myshapefile.shp mytable
Cheers
Andrea
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users