|
Milo van der Linden wrote: Did you know that PostGIS has a shape loader? You may find loading shape files easier with the shp2pgsql utility. Also, PostGIS can perform transformations on geometries ... you may not even need ogr. Just a thought. It sounds like the geometries in your temp table either doesn't have, or has a different SRID than your production table. Is the data in your staging table supposed to be the same projection as your production table? (ogr possibly didn't add an SRID to your imported geometries and they may be defaulting to -1). If this is the case, then you simply need to wrap your geometries with a setsrid function call, ie "SetSRID(the_geom, 32767)", assuming of course that 32767 is the SRID of your production table. INSERT INTO public.infra_line2Hope this helps, -- Kevin -------- Kevin Neufeld Refractions Research Inc. [EMAIL PROTECTED] (250) 383-3022 |
_______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
