DLG labelling
John Mackenzie
john at moose.ags.udel.edu
Wed Sep 14 14:00:19 EDT 1994
Hi Peter,
I did the same stuff recently. Converting the attribute file
created by v.import to a reclass file is a pain in the butt
because there are 2 or more lines per feature. Not being an AWK
wizard, I sucked the attribute file into WordPerfect and reformatted
it quite easily there: the Replace function replaces the "201 [HR] 22"
code string with "=". I deleted secondary elevations for features with
multiple values. The other cleanups are minor. Then save the file
as ASCII text, ship it back to your unix directory, strip out
the hidden DOS line-return and end-of-file characters, and use it
for r.reclass. (I did a v.to.rast first; didn't get v.reclass to work
--haven't bothered to try figuring out why.) Then r.surf.contour to
create the DEM.
Here's my own problem:
Right now I'm trying to figure out why my new 1:24,000-scale DLG hypso
layers don't line up with TIGER and 1:100,000-scale DLG hydro layers.
The discrepancy is a lot more than just the 1927->1983 datum shift,
which I account for by just adjusting the cellhd files (is this the
approved method?).
I figured v.import shouldn't care what the current region is. Before each
v.to.rast, r.reclass and r.surf.contour sequence I set the region from
the new vector layer (g.region vect= ). Anyone out there with any hunch
as to why things don't line up?
John Mackenzie
U. of Delaware
>
> I have imported a DLG-hypsography file using v.import. I am wondering
> how I assign the elevation values to the geometry, for when I display and
> alter the colors, the color values affect only the category number (line
> number) and not the elevation values.
>
> I have moved the multiple attribute file into the dig_cats directory
> under my mapset within my location. The problem is that the major and
> minor codes data is included within the category and thus, adds needless
> data to the category. I am interested only in the elevations.
>
> I have read the very brief treatment on labelling contours in the digit
> tutorial but this seems to be a tremendous task in light of doing this
> for a number of quads.
>
> Perhaps I am missing something in my understanding of the task. Any
> suggestions would be appreciated.
>
> Thanks in advance...
>
>
> Peter Petri
> ppetri at sparta.sjsu.edu
>
>
More information about the grass-user
mailing list