[postgis-users] importing 3d shapefiles
Paul Ramsey
pramsey at refractions.net
Mon Dec 26 20:45:30 PST 2005
You could also use the ogrinfo tool from the OGR library to query the
shape file and confirm the 3dness of it.
P
On 26-Dec-05, at 8:36 PM, Mark Wright wrote:
> I imported the shapefile back into grass and it turns out that it was
> not a 3d shapefile. So I guess the 3rd dimention was lost on export.
> However, I also tried exporting from grass directly into postgres with
> v.out.ogr and got the same results. I know the geometry column in
> postgres was a 2d geometry because the geometry_columns table had it
> listed as 2d and the geometry column had a 2d constraint. Also
> selecting z(startpoint(wkb_geometry)) always returns 0.
>
> It exports fine to pov-ray. Too bad there isn't a pov2pgsql app.
>
>
> Mark
>
>
> On 12/26/05, Ivan Kautter <ivankautter at hotmail.com> wrote:
>> Mark,
>>
>> Just out of curiosity, what was the specific shp2pgsql statement
>> that you
>> used and how were you able to confirm that the imported line is
>> only 2d and
>> not 3d.
>>
>> Also I am curious if you can confirm that a 3d shapefile was
>> indeed output
>> from GRASS. I am assuming you used v.out.ogr and specified it
>> with layer
>> creation option ARCZ.
>>
>> Having no experience with these issues, I can't suggest a course
>> of action,
>> but it might be good to confirm for those who can assist you the
>> steps that
>> you took to create and import the 3d shapefile.
>>
>> Ivan Kautter
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list