[GRASS-user] Label vector map

henk witte henk.witte at groenholland.nl
Tue Aug 25 10:49:20 PDT 2015


Sorry, I am new to GRASS and still have to learn a lot of the basics. Still – great product that allows me to create maps that I need fairly easily!

I have now run v.pack to create the vector file.

I am not entirely familiar with the projections, as I imported most data from esri shapefiles and use X- and Y-coordinates in the Dutch RGD system (basically meters easting and northing) I did not worry to much about the projection (the region is small). If I run g.proj –p I get:

(Tue Aug 25 19:41:59 2015)
g.proj -p
XY location (unprojected)
(Tue Aug 25 19:41:59 2015) Command finished (0 sec)

Basically it tells me I am using an unprojected mapset.

Hope this helps!

Henk

From: Anna Petrášová [mailto:kratochanna at gmail.com]
Sent: 25 August 2015 18:37
To: henk witte <henk.witte at groenholland.nl>
Cc: grass-user at lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map



On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte at groenholland.nl<mailto:henk.witte at groenholland.nl>> wrote:
Dear Anna,

Thanks for your suggestions, I have tried the North Carolina dataset (using the NAME attribute of the counties as label) and this indeed works fine. I have also tried my original file, and there I still have problems.

The vector (polygon) files I wanted to label have been created from two separate source files (imported from esri shape files) that I have merged. During the merge I noted a number of problems with the polygons, although it now displays OK. After this I joined the vector file with a new attribute table. I can use that to color the polygons (create thematic maps) but I cannot label the polygons even if I use the grass-generated “cat”column.

I have tried not specifying a font at all (default) and then did specify a font to see if that would help. Unfortunately not.

I have added the vector file (directory) as a zip file to this email.

Could you please use v.pack to send us the vector, you can't just take the directory with the vector, the attribute data are stored separately and v.pack takes care of that. Also which projection are you working in? Could you send the EPSG? Thank you

Anna

Thanks for any further assistance!

Henk


From: Anna Petrášová [mailto:kratochanna at gmail.com<mailto:kratochanna at gmail.com>]
Sent: 21 August 2015 17:58
To: henk witte <henk.witte at groenholland.nl<mailto:henk.witte at groenholland.nl>>
Cc: grass-user at lists.osgeo.org<mailto:grass-user at lists.osgeo.org>
Subject: Re: [GRASS-user] Label vector map



On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte at groenholland.nl<mailto:henk.witte at groenholland.nl>> wrote:
Dear grass-users,

I am trying to put labels in a polygon layer, but the rendering fails. The details are:

Problem signature:
  Problem Event Name:                        APPCRASH
  Application Name:                             d.vect.EXE
  Application Version:                           7.0.0.0
  Application Timestamp:                     55ae1991
  Fault Module Name:                          libgrass_driver.7.0.1svn.dll
  Fault Module Version:                        0.0.0.0
  Fault Module Timestamp:                  55ae17e1
  Exception Code:                                  c0000005
  Exception Offset:                                00002aa5
  OS Version:                                          6.1.7601.2.1.0.256.48
  Locale ID:                                             2057
  Additional Information 1:                  0a9e
  Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:                  0a9e
  Additional Information 4:  0a9e372d3b4ad19135b953a78882e789

The command I use (through the GUI) is:

d.vect --quiet map=AlleKavels at GoesShape attribute_column=Kavel_nr width=1 font=romans label_color=black

Any suggestions?

Perhaps if you could replicate the problem on North Carolina sample dataset or provide your vector file, it would help identify the problem. Does it happen with other vectors or attribute columns? Have you tried different font or not specify it at all?

Anna


Henk Witte
Groenholland Geo-energysystems
Valschermkade 26
1059CD Amsterdam

T: +31 (0)20 6159050<tel:%2B31%20%280%2920%206159050>
M: +31 (0)628176535<tel:%2B31%20%280%29628176535>
E: henk.witte at groenholland.nl<mailto:henk.witte at groenholland.nl>


_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org<mailto:grass-user at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/grass-user


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150825/8cb6221c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Allkavels.pack
Type: application/octet-stream
Size: 64362 bytes
Desc: Allkavels.pack
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150825/8cb6221c/attachment-0001.obj>


More information about the grass-user mailing list