Opened 12 years ago

Closed 6 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 Changed 11 years ago by hamish

CPU: UnspecifiedAll
Milestone: 6.4.06.5.0
Platform: UnspecifiedAll

comment:2 in reply to:  description Changed 10 years ago by hamish

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 Changed 6 years ago by neteler

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.

comment:4 in reply to:  3 ; Changed 6 years ago by lucadelu

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?

comment:5 in reply to:  4 Changed 6 years ago by neteler

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.