Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3619 closed enhancement (fixed)

Polygonize should have a connectedness parameter

Reported by: Ari Jolma Owned by: ilucena
Priority: normal Milestone: 1.8.0
Component: Algorithms Version: svn-trunk
Severity: normal Keywords: polygonize
Cc:

Description

Currently polygonize defaults to 4-connectedness and there is no way to change that. I suggest we use the Options parameter for that. Attached is a tested diff which achieves just this.

Attachments (1)

diff (1.5 KB ) - added by Ari Jolma 14 years ago.
diff of polygonize.cpp

Download all attachments as: .zip

Change History (8)

by Ari Jolma, 14 years ago

Attachment: diff added

diff of polygonize.cpp

comment:1 by warmerdam, 14 years ago

Component: defaultAlgorithms
Keywords: polygonize added
Milestone: 1.8.0
Owner: changed from warmerdam to ilucena
Version: unspecifiedsvn-trunk

Ivan,

please incorporate this patch and:

  • Update the GDALPolygonize() docs to mention the new parameter.
  • Update the autotest/alg/polygonize.py test to include 8-connectedness testing.

This should only be in trunk for now I think.

comment:2 by ilucena, 14 years ago

Resolution: fixed
Status: newclosed

All right. Patch applied on r19829

comment:3 by warmerdam, 14 years ago

Resolution: fixed
Status: closedreopened

Ivan,

I think you neglected my notes about autotesting and documentation.

comment:4 by ilucena, 14 years ago

I soon as re-start on Linux.

comment:5 by ilucena, 14 years ago

Doxygen changes on r19830

comment:6 by ilucena, 14 years ago

Resolution: fixed
Status: reopenedclosed

Autotest changes on 19831

in reply to:  4 comment:7 by ilucena, 14 years ago

Replying to ilucena:

I soon as re-start on Linux.

Correction:

As soon as I re-start on Linux.

I shouldn't have closed.

Note: See TracTickets for help on using tickets.