Opened 12 years ago

Last modified 8 years ago

#1595 new defect

v.clean break apparently does not work

Reported by: pcav Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: Vector Version: 6.4.1
Keywords: v.clean Cc:
CPU: x86-64 Platform: Linux

Description

v.clean input=patched@paolo type=line tool=snap,break,rmdupl,rmsa thresh=1,0,0,0 output=patched_1

The lines are not broken.

Change History (6)

comment:1 by neteler, 12 years ago

Please provide sample data.

in reply to:  2 comment:3 by mmetz, 11 years ago

Replying to pcav:

v.clean input=patched@paolo type=line tool=snap,break,rmdupl,rmsa thresh=1,0,0,0 output=patched_1

The lines are not broken.

The vector 'patched' is the result of patching a 2D vector (region) with a 3D vector (contour). The lines are not broken because there are no intersections in 3D space, only in 2D space. You need to transform the z coordinates of either the contour vector or the patched vector to be all zero with v.transform zscale=0, then the lines are broken.

About the other problem described in the thread in comment 2, how to snap bad polygons to good polygons, this is now possible with v.overlay, using the good polygons as ainput and the bad polygons as binput with operator=or. The snapping threshold may need to be set to some larger value than default=1e-8.

Markus M

comment:4 by neteler, 10 years ago

Keywords: v.clean added

Looks like solved?

comment:5 by pcav, 10 years ago

Thanks for the clarification. I'd suggest to either:

  • check about 3D-2D in input layer, and warn the user about probable empty intersection, or
  • flatten out 3D layers (warning the user) in case of 2d-3D mixup.

Thanks.

comment:6 by neteler, 8 years ago

Milestone: 6.4.36.4.6
Note: See TracTickets for help on using tickets.