Opened 15 years ago

Closed 10 years ago

#394 closed enhancement (fixed)

v.mkgrid: lines not areas

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Vector Version: svn-releasebranch70
Keywords: v.mkgrid Cc:
CPU: All Platform: All

Description

Hi,

Nice to see the new -p points mode for v.mkgrid to save the v.extract centroids + v.type step.

It would also be nice to have a -l flag to create the grid as lines to save the v.extract boundary + v.type step. These are nice to create in a wgs84 lat/lon location and then v.proj into a projected location. 'd.grid -w' does this, but it's nice e.g. for a shapefile you can use as an overlay in QGIS.

or get rid of the flags and have a type=area,points,lines option.

thanks, Hamish

Change History (5)

comment:1 by hamish, 15 years ago

CPU: UnspecifiedAll
Milestone: 6.4.06.5.0
Platform: UnspecifiedAll

in reply to:  description comment:2 by hamish, 14 years ago

Replying to hamish:

It would also be nice to have a -l flag to create the grid as lines to save the v.extract boundary + v.type step.

(v.category step also needed)

also all segments of those grid lines should share a common cat, and that cat be linked to attribute columns ??_str and ??_dbl with nicely formatted & raw ordinate value.

[ G_format_easting(), G_format_northing() ]

Hamish

comment:3 by neteler, 10 years ago

Milestone: 6.5.07.0.0
Priority: minornormal
Version: unspecifiedsvn-releasebranch70

The option to generate lines instead of areas (new -l flag) would be highly welcome.

in reply to:  3 ; comment:4 by lucadelu, 10 years ago

Replying to neteler:

The option to generate lines instead of areas (new -l flag) would be highly welcome.

Please check and try r61519.

If it works should be backported?

in reply to:  4 comment:5 by neteler, 10 years ago

Resolution: fixed
Status: newclosed

Replying to lucadelu:

Replying to neteler:

The option to generate lines instead of areas (new -l flag) would be highly welcome.

Please check and try r61519.

Thanks, works fine. Backported in r61643, closing.

Note: See TracTickets for help on using tickets.