dissolve - xytolerance

1823
8
07-31-2012 05:29 AM
by Anonymous User
Not applicable
Original User: Sester

hi,
i want to dissolve polylines, however i notice, that some of them are merged into a single polyline, some are merged into multi-polylines.
when checking the difference, i noticed that the common points between them differ, e.g. 0.2 cm when it was merged into a single polyline and 11 cm when it produced multi-polylines.

i tried to use the XYTolerance setting in order to als "snap" the 11 cm,

arcpy.env.XYTolerance = "5 meters"

however, the parameter setting does not seem to have an influence.

any ideas?

-monika
0 Kudos
8 Replies
MathewCoyle
Frequent Contributor
Did you set the multi_part parameter to SINGLE_PART?
0 Kudos
by Anonymous User
Not applicable
Original User: Sester

Did you set the multi_part parameter to SINGLE_PART?


i just tried it: now it creates two separate lines (instead of merging them into one multipart-object)

-moni
0 Kudos
MathewCoyle
Frequent Contributor
Try doing a repair geometry on your source. Do they have Z values that might put them outside the tolerance? I'm not sure how Z values interact with XY tolerance actually.
0 Kudos
by Anonymous User
Not applicable
Original User: Sester

Try doing a repair geometry on your source. Do they have Z values that might put them outside the tolerance? I'm not sure how Z values interact with XY tolerance actually.


hmm - no, it is only a 2d-geometry. also, i just tried to repair the data before.
unfortunately, no change!

i attached my small data set and the python script - perhaps this triggers some ideas?

-monika
0 Kudos
MathewCoyle
Frequent Contributor
You don't have a projection. That has to be set to work with tolerances.
0 Kudos
by Anonymous User
Not applicable
Original User: Sester

You don't have a projection. That has to be set to work with tolerances.


thank you very much, mathew, for your patience!

however ... i tried it and still the same result.

-moni
0 Kudos
MathewCoyle
Frequent Contributor
Try setting your tolerance down to 1 Meter, that worked for me, not sure why.

I was having problems with the 5 Meter tolerance as well, I'd think about filing a bug report with Esri.

Edit: Also you need to export to a geodatabase. Shapefiles weren't working for this either.
0 Kudos
by Anonymous User
Not applicable
Original User: Sester

Try setting your tolerance down to 1 Meter, that worked for me, not sure why.

I was having problems with the 5 Meter tolerance as well, I'd think about filing a bug report with Esri.

Edit: Also you need to export to a geodatabase. Shapefiles weren't working for this either.


thank you!
at least, there seems to be a solution - however a little erratic ....

kind regards
-monika
0 Kudos