[GRASS-user] Label vector map

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@GoesShape attribute_column=Kavel_nr width=1 font=romans label_color=black

Any suggestions?

Henk Witte

Groenholland Geo-energysystems

Valschermkade 26

1059CD Amsterdam

T: +31 (0)20 6159050

M: +31 (0)628176535

E: henk.witte@groenholland.nl

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

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.

Thanks for any further assistance!

Henk

(attachments)

AlleKavels.zip (154 KB)

···

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
*Sent:* 21 August 2015 17:58
*To:* henk witte <henk.witte@groenholland.nl>
*Cc:* grass-user@lists.osgeo.org
*Subject:* Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

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

(attachments)

Allkavels.pack (62.9 KB)

···

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
Sent: 21 August 2015 17:58
To: henk witte <henk.witte@groenholland.nl>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

···

I tried your vector pack file, and I have no problems displaying both KOPER_NAAM and STRAATNAAM columns as labels on the map display. (On linux, not Windows)
HTH,
Micha

On 25/08/2015 20:49, henk witte wrote:

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@gmail.com]
Sent: 25 August 2015 18:37
To: henk witte henk.witte@groenholland.nl
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
Sent: 21 August 2015 17:58
To: henk witte <henk.witte@groenholland.nl>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.

Well, this is embarrassing – I cannot open my own pack!

I created a new workspace with a default Cartesian projection but if I try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\Users\he

nkwitte.GROENHOLLAND\Documents\grassdata/test/henkwitte/.t

mp/unknown/8544.0\PROJ_INFO’

I have tries also with using the current-location-projection option, but same error.

With regard to the labelling, you are telling me you can label KOPER_NAAM and STRAATNAAM but these should not be attributes in the vector file AllleKavels. The field I try to use in the label is kavel_nr. I have repacked the vector file, if there are other attributes in this file than that is strange as well (however, I did join this vector file to a new database with different attributes – can something go wrong there?)

Thanks

Henkn

···

From: Micha Silver [mailto:micha@arava.co.il]
Sent: 26 August 2015 12:30
To: henk witte henk.witte@groenholland.nl
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

I tried your vector pack file, and I have no problems displaying both KOPER_NAAM and STRAATNAAM columns as labels on the map display. (On linux, not Windows)
HTH,
Micha

On 25/08/2015 20:49, henk witte wrote:

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@gmail.com]
Sent: 25 August 2015 18:37
To: henk witte henk.witte@groenholland.nl
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
Sent: 21 August 2015 17:58
To: henk witte <henk.witte@groenholland.nl>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.


···

On 08/26/2015 02:25 PM, henk witte wrote:

Well, this is embarrassing – I cannot open my own pack!

Yes I also had trouble with v.unpack. Same error. Maybe it’s a bug.

I manually did unzip, and put the directory in place, as well as the sqlite.db file. (which defeats the purpose of v.pack!)

I created a new workspace with a default Cartesian projection but if I try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\Users\he

nkwitte.GROENHOLLAND\Documents\grassdata/test/henkwitte/.t

mp/unknown/8544.0\PROJ_INFO’

I have tries also with using the current-location-projection option, but same error.

With regard to the labelling, you are telling me you can label KOPER_NAAM and STRAATNAAM but these should not be attributes in the vector file AllleKavels. The field I try to use in the label is kavel_nr. I have repacked the vector file, if there are other attributes in this file than that is strange as well (however, I did join this vector file to a new database with different attributes – can something go wrong there?)

The vector layer is called KavelsGemeente. How did you do the join?

Here are the columns available:

GRASS 7.0.1 (XY):~ > v.info -c KavelsGemeente
Displaying column types/names for database connection of layer <1>:
INTEGER|cat
INTEGER|OBJECTID
TEXT|KAVEL_NR
TEXT|KOPER
TEXT|PRIJS
TEXT|VERKOOPTEK
TEXT|DATUM
TEXT|HUISNUMMER
TEXT|KOPER_NAAM
TEXT|STRAATNAAM
TEXT|HYPERLINK
TEXT|BOUWJAAR
REAL|ERFPACHTCA
REAL|PERCEELPRI
REAL|ERFPACHT_1
REAL|PERCEELP_1
REAL|OPPERVLAKT
REAL|SHAPE_AREA
REAL|SHAPE_LEN
GRASS 7.0.1 (XY):~ >

and I can use KAVEL_NR as a label also…

Thanks

Henkn

From: Micha Silver [mailto:micha@arava.co.il]
Sent: 26 August 2015 12:30
To: henk witte henk.witte@groenholland.nl
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

I tried your vector pack file, and I have no problems displaying both KOPER_NAAM and STRAATNAAM columns as labels on the map display. (On linux, not Windows)
HTH,
Micha

On 25/08/2015 20:49, henk witte wrote:

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@gmail.com]
Sent: 25 August 2015 18:37
To: henk witte henk.witte@groenholland.nl
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
Sent: 21 August 2015 17:58
To: henk witte <henk.witte@groenholland.nl>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.


This mail was received via Mail-SeCure System.

On 26/08/15 13:25, henk witte wrote:

Well, this is embarrassing – I cannot open my own pack!

I created a new workspace with a default Cartesian projection but if I
try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\\Users\\he

nkwitte.GROENHOLLAND\\Documents\\grassdata/test/henkwitte/.t

mp/unknown/8544.0\\PROJ_INFO'

I have tries also with using the current-location-projection option, but
same error.

v.unpack uses a simple check to verify that the data you want to import is in the same projection system as the location. It does so by checking the PROJ_INFO file that sits in the PERMANENT mapset. But cartesian (i.e. un projected) locations do not have such a file, thus the error.

This means that in its current state v.unpack cannot import data into a xy-location which I would consider a bug that should be reported in the bug tracker.

Moritz

···

Done
http://trac.osgeo.org/grass/ticket/2726#ticket

On 26/08/2015 15:17, Moritz Lennert wrote:

On 26/08/15 13:25, henk witte wrote:

Well, this is embarrassing – I cannot open my own pack!

I created a new workspace with a default Cartesian projection but if I
try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\Users\he

nkwitte.GROENHOLLAND\Documents\grassdata/test/henkwitte/.t

mp/unknown/8544.0\PROJ_INFO’

I have tries also with using the current-location-projection option, but
same error.

v.unpack uses a simple check to verify that the data you want to import is in the same projection system as the location. It does so by checking the PROJ_INFO file that sits in the PERMANENT mapset. But cartesian (i.e. un projected) locations do not have such a file, thus the error.

This means that in its current state v.unpack cannot import data into a xy-location which I would consider a bug that should be reported in the bug tracker.

Moritz

This mail was received via Mail-SeCure System.

On Wed, Aug 26, 2015 at 8:35 AM, Micha Silver <micha@arava.co.il> wrote:

Done
http://trac.osgeo.org/grass/ticket/2726#ticket

Sorry, I forgot to tell you, I fixed it yesterday. Testing welcome.

On 26/08/2015 15:17, Moritz Lennert wrote:

On 26/08/15 13:25, henk witte wrote:

Well, this is embarrassing – I cannot open my own pack!

I created a new workspace with a default Cartesian projection but if I
try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\\Users\\he

nkwitte.GROENHOLLAND\\Documents\\grassdata/test/henkwitte/.t

mp/unknown/8544.0\\PROJ_INFO'

I have tries also with using the current-location-projection option, but
same error.

v.unpack uses a simple check to verify that the data you want to import is
in the same projection system as the location. It does so by checking the
PROJ_INFO file that sits in the PERMANENT mapset. But cartesian (i.e. un
projected) locations do not have such a file, thus the error.

This means that in its current state v.unpack cannot import data into a
xy-location which I would consider a bug that should be reported in the bug
tracker.

Moritz

This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On Wed, Aug 26, 2015 at 7:25 AM, henk witte <henk.witte@groenholland.nl>
wrote:

Well, this is embarrassing – I cannot open my own pack!

Not your fault, it is fixed now.

I created a new workspace with a default Cartesian projection but if I try
to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\\Users\\he

nkwitte.GROENHOLLAND\\Documents\\grassdata/test/henkwitte/.t

mp/unknown/8544.0\\PROJ_INFO'

I have tries also with using the current-location-projection option, but
same error.

With regard to the labelling, you are telling me you can label KOPER_NAAM
and STRAATNAAM but these should not be attributes in the vector file
AllleKavels. The field I try to use in the label is kavel_nr. I have
repacked the vector file, if there are other attributes in this file than
that is strange as well (however, I did join this vector file to a new
database with different attributes – can something go wrong there?)

So I tried the exact command you used on Windows 8, GRASS GIS 7.0.0 and
7.0.1 and it works for me. The column names are:
db.describe -c table=KavelsGemeente

ncols: 19
nrows: 136
Column 1: cat:INTEGER:20
Column 2: OBJECTID:INTEGER:20
Column 3: KAVEL_NR:CHARACTER:50
Column 4: KOPER:CHARACTER:50
Column 5: PRIJS:CHARACTER:50
Column 6: VERKOOPTEK:CHARACTER:50
Column 7: DATUM:CHARACTER:50
Column 8: HUISNUMMER:CHARACTER:254
Column 9: KOPER_NAAM:CHARACTER:50
Column 10: STRAATNAAM:CHARACTER:50
Column 11: HYPERLINK:CHARACTER:100
Column 12: BOUWJAAR:CHARACTER:4
Column 13: ERFPACHTCA:DOUBLE PRECISION:20
Column 14: PERCEELPRI:DOUBLE PRECISION:20
Column 15: ERFPACHT_1:DOUBLE PRECISION:20
Column 16: PERCEELP_1:DOUBLE PRECISION:20
Column 17: OPPERVLAKT:DOUBLE PRECISION:20
Column 18: SHAPE_AREA:DOUBLE PRECISION:20
Column 19: SHAPE_LEN:DOUBLE PRECISION:20

So I am not sure what to do about it.

Anna

Thanks

Henkn

*From:* Micha Silver [mailto:micha@arava.co.il]
*Sent:* 26 August 2015 12:30

*To:* henk witte <henk.witte@groenholland.nl>
*Cc:* grass-user@lists.osgeo.org
*Subject:* Re: [GRASS-user] Label vector map

I tried your vector pack file, and I have no problems displaying both
KOPER_NAAM and STRAATNAAM columns as labels on the map display. (On linux,
not Windows)
HTH,
Micha

On 25/08/2015 20:49, henk witte wrote:

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@gmail.com
<kratochanna@gmail.com>]
*Sent:* 25 August 2015 18:37
*To:* henk witte <henk.witte@groenholland.nl> <henk.witte@groenholland.nl>
*Cc:* grass-user@lists.osgeo.org
*Subject:* Re: [GRASS-user] Label vector map

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
*Sent:* 21 August 2015 17:58
*To:* henk witte <henk.witte@groenholland.nl>
*Cc:* grass-user@lists.osgeo.org
*Subject:* Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.

_______________________________________________

grass-user mailing list

grass-user@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi Anna/Micha,

Guess the wrong vector was exported, should be the map Allekavels and attribute Kavel_nr.

I repacked the vector file. I tried to reopen it using Micha;s method, I can unzip the pack file (gz) without problems - but cannot add the maplayer to a new system. Is there a new build available with the fix? I checked http://wingrass.fsv.cvut.cz/grass71/ but the last build is 25/8/2015.

I’ll check again tomorrow.

Henk

(attachments)

Allkavels.pack (171 KB)

···

On Wed, Aug 26, 2015 at 7:25 AM, henk witte <henk.witte@groenholland.nl> wrote:

Well, this is embarrassing – I cannot open my own pack!

Not your fault, it is fixed now.

I created a new workspace with a default Cartesian projection but if I try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\Users\he

nkwitte.GROENHOLLAND\Documents\grassdata/test/henkwitte/.t

mp/unknown/8544.0\PROJ_INFO’

I have tries also with using the current-location-projection option, but same error.

With regard to the labelling, you are telling me you can label KOPER_NAAM and STRAATNAAM but these should not be attributes in the vector file AllleKavels. The field I try to use in the label is kavel_nr. I have repacked the vector file, if there are other attributes in this file than that is strange as well (however, I did join this vector file to a new database with different attributes – can something go wrong there?)

So I tried the exact command you used on Windows 8, GRASS GIS 7.0.0 and 7.0.1 and it works for me. The column names are:

db.describe -c table=KavelsGemeente

ncols: 19

nrows: 136

Column 1: cat:INTEGER:20

Column 2: OBJECTID:INTEGER:20

Column 3: KAVEL_NR:CHARACTER:50

Column 4: KOPER:CHARACTER:50

Column 5: PRIJS:CHARACTER:50

Column 6: VERKOOPTEK:CHARACTER:50

Column 7: DATUM:CHARACTER:50

Column 8: HUISNUMMER:CHARACTER:254

Column 9: KOPER_NAAM:CHARACTER:50

Column 10: STRAATNAAM:CHARACTER:50

Column 11: HYPERLINK:CHARACTER:100

Column 12: BOUWJAAR:CHARACTER:4

Column 13: ERFPACHTCA:DOUBLE PRECISION:20

Column 14: PERCEELPRI:DOUBLE PRECISION:20

Column 15: ERFPACHT_1:DOUBLE PRECISION:20

Column 16: PERCEELP_1:DOUBLE PRECISION:20

Column 17: OPPERVLAKT:DOUBLE PRECISION:20

Column 18: SHAPE_AREA:DOUBLE PRECISION:20

Column 19: SHAPE_LEN:DOUBLE PRECISION:20

So I am not sure what to do about it.

Anna

Thanks

Henkn

From: Micha Silver [mailto:micha@arava.co.il]
Sent: 26 August 2015 12:30

To: henk witte <henk.witte@groenholland.nl>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

I tried your vector pack file, and I have no problems displaying both KOPER_NAAM and STRAATNAAM columns as labels on the map display. (On linux, not Windows)
HTH,
Micha

On 25/08/2015 20:49, henk witte wrote:

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@gmail.com]
Sent: 25 August 2015 18:37
To: henk witte henk.witte@groenholland.nl
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Tue, Aug 25, 2015 at 2:51 AM, henk witte <henk.witte@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@gmail.com]
Sent: 21 August 2015 17:58
To: henk witte <henk.witte@groenholland.nl>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Label vector map

On Fri, Aug 21, 2015 at 5:24 AM, henk witte <henk.witte@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@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

M: +31 (0)628176535

E: henk.witte@groenholland.nl


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
 
 

grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On Wed, Aug 26, 2015 at 2:17 PM, Moritz Lennert <
mlennert@club.worldonline.be> wrote:

On 26/08/15 13:25, henk witte wrote:

Well, this is embarrassing – I cannot open my own pack!

I created a new workspace with a default Cartesian projection but if I
try to unpack I get

IOError: [Errno 2] No such file or directory: 'C:\\Users\\he

nkwitte.GROENHOLLAND\\Documents\\grassdata/test/henkwitte/.t

mp/unknown/8544.0\\PROJ_INFO'

I have tries also with using the current-location-projection option, but
same error.

v.unpack uses a simple check to verify that the data you want to import is
in the same projection system as the location. It does so by checking the
PROJ_INFO file that sits in the PERMANENT mapset. But cartesian (i.e. un
projected) locations do not have such a file, thus the error.

This means that in its current state v.unpack cannot import data into a
xy-location which I would consider a bug that should be reported in the bug
tracker.

You can use the "override project check" option (-o) I guess, if you know
that both your data and the target location are both in xy-location. I use
that to importat latlon pack.

Moritz

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On 26/08/15 16:26, Paulo van Breugel wrote:

On Wed, Aug 26, 2015 at 2:17 PM, Moritz Lennert
<mlennert@club.worldonline.be <mailto:mlennert@club.worldonline.be>> wrote:

    On 26/08/15 13:25, henk witte wrote:

        Well, this is embarrassing – I cannot open my own pack!

        I created a new workspace with a default Cartesian projection
        but if I
        try to unpack I get

        IOError: [Errno 2] No such file or directory: 'C:\\Users\\he

        nkwitte.GROENHOLLAND\\Documents\\grassdata/test/henkwitte/.t

        mp/unknown/8544.0\\PROJ_INFO'

        I have tries also with using the current-location-projection
        option, but
        same error.

    v.unpack uses a simple check to verify that the data you want to
    import is in the same projection system as the location. It does so
    by checking the PROJ_INFO file that sits in the PERMANENT mapset.
    But cartesian (i.e. un projected) locations do not have such a file,
    thus the error.

    This means that in its current state v.unpack cannot import data
    into a xy-location which I would consider a bug that should be
    reported in the bug tracker.

You can use the "override project check" option (-o) I guess, if you
know that both your data and the target location are both in
xy-location. I use that to importat latlon pack.

Henk tried that, but it didn't work since the part reading PROJ_INFO comes before this flag comes into play in the script...

AFAICT, in the script, the flag only comes into play if projections are found, but they are not identical.

Moritz

Hi Anna:

So now you are now fixing bugs before they are reported! Thanks.

···

On 08/26/2015 04:10 PM, Anna Petrášová wrote:

On Wed, Aug 26, 2015 at 8:35 AM, Micha Silver <micha@arava.co.il> wrote:

Done
http://trac.osgeo.org/grass/ticket/2726#ticket

Sorry, I forgot to tell you, I fixed it yesterday. Testing welcome.