[GRASS-user] 3D Streets Data

Matthew Pulis mpulis at gmail.com
Sun Jan 13 16:20:46 EST 2008


Thanks for your prompt answer Markus.

The v.out.ogr is what I tried before, but redid it on the new shape-file.
These are the first row of the new data :

wkt_geom,cat,STSEG,STID,STNAME,DIR_PRE,DIR_SUF,STYPE,CLASS,F_ELEV,T_ELEV,MAP
,PRIV,FRLEFT,TOLEFT,FRRIGHT,TORIGHT,FRLEFT_A,TOLEFT_A,FRRIGHT_A,TORIGHT_A,ST
ATEROAD,CARTONAME,CORP,SPEED,ONE_WAY,CLASSNAME,L_ZIPNAME,R_ZIPNAME,FT_COST,T
F_COST,LABELNAME,F_NODE,T_NODE,CARTOLEVEL,SHAPE_LEN
LINESTRING(625304.649659 214113.544271, 625301.199687 214078.520974,
625299.489761 214056.176602, 625299.289850
214050.649031),1,36074,20863,FIREFLY,,,RD,12,8,8,W0750-03,,101,199,100,198,1
01,119,100,118,0,FIREFLY RD,HS,25,BI,CITY,HOLLY SPRINGS,HOLLY
SPRINGS,0.094452,0.094452,FIREFLY RD,0,0,,207.131131

This is how I generated the shape file :

GRASS 6.3.0RC1 (nc_spm_06):~ > v.out.ogr input=streets3d_new type=line
dsn=streets3d_new_shps olayer=testogr lco="SPHT=ARCZ"

Ogrinfo on the streets3d new shape file gave me : 

GRASS 6.3.0RC1 (nc_spm_06):~ > ogrinfo streets3d_new_shps/
INFO: Open of `streets3d_new_shps/'
using driver `ESRI Shapefile' successful.
1: testogr (Line String)

What I am seeing wrong is that there is no extra column being added to the
dataset which contains the elevation. I am attaching a screenshot which
shows this : http://solutions-lab.net/thesis/elevation.jpg

Am I testing the wrong way? If yes can you please mention some keywords I
can use to search for such operation please? I tried to google for a way out
of this problem but am really stuck.

Thanks a lot :)

Matthew

-----Original Message-----
From: neteler.osgeo at gmail.com [mailto:neteler.osgeo at gmail.com] On Behalf Of
Markus Neteler
Sent: Sunday, January 13, 2008 6:57 PM
To: Matthew Pulis
Cc: grass-user at lists.osgeo.org
Subject: Re: [GRASS-user] 3D Streets Data

On Jan 13, 2008 6:06 PM, Matthew Pulis <mpulis at gmail.com> wrote:
...
> However, the problem is that
> when I exported this layer to a shape file to load it from QGis, and when
I
> exported this to a PostGIS database there is no showings of the Altitude
> layer.

Did you check the manual?

   Export 3D lines from GRASS vector map to Shapefile format:
       v.out.ogr     input=lines_3d    type=line    dsn=/tmp
olayer=testogr lco="SHPT=ARCZ"

Without lco= it won't work...

Markus

-- 
I am using the free version of SPAMfighter for private users.
It has removed 19279 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len



More information about the grass-user mailing list