Re: [JPP-Devel] Error with Map coloring plugin

2014-10-05 Thread Larry Reeder
Hey Jukka, It might be possible to detect that less than 5 polygons are touching at a point and treat that particular area as through the features were adjacent to get the behavior in the 0.4 version of the plugin. However, it would complicate the code quite a bit and slow it down. Regarding

Re: [JPP-Devel] Error with Map coloring plugin

2014-10-05 Thread edgar . soldin
On 05.10.2014 16:09, Larry Reeder wrote: Regarding packaging the plugin into a libfolder in lib\ext\ojmapcoloring-0.5, I used to do that with the DB Query plugin, and prefer it also, but recent versions of OJ don't load plugins unless they are in the lib\ext directory. I'm using Linux

Re: [JPP-Devel] Error with Map coloring plugin

2014-10-05 Thread Rahkonen Jukka (Tike)
Hi , I was rather thinking that users could select the v. 0.4 path at their own risk for example by checking a box “Disjoint colors” with a tooltip hint “Tries to prevent same colors from touching at any point”. But that is not especially important feature and I do like simple and fast

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-28 Thread Rahkonen Jukka (Tike)
Hi Larry, Version 0.5 colors now all the Finnish municipalities and all the multi-slice pizzas which I digitized fine. However, I think that when there are at maximum 5 areas touching on one point the version 0.4 does better coloring. The new version may give the same color for areas which

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-27 Thread Larry Reeder
Well, no matter how many times you slice it, a pizza is always (mostly) planar :-). The problem with map coloring occurs when you can't draw a line on a plane from a fixed point on all features to a fixed point on their adjacent features without the lines crossing. You have to lift the lines off

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-22 Thread Rahkonen Jukka (Tike)
Hi Larry, I should have actually guessed what happened. There used to be 8 municipalies sharing a common landmark but because of some fusions there are only 6 left now. I tried to find a document that says that pizza is no more planar when it is sliced into 6 pieces. However, I found some

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-21 Thread Larry Reeder
Hey Michaël, I was using intersect, and I tried crosses, but that didn't work. I'm taking a look at relate now, although I'm having a hard time deciphering DE-9IM. -lreeder On Sat, Sep 20, 2014 at 1:38 PM, Michael Michaud m.michael.mich...@orange.fr wrote: Hi Larry, Do you compute

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-21 Thread Michael Michaud
Hi Larry, I was using intersect, and I tried crosses, but that didn't work. I'm taking a look at relate now, although I'm having a hard time deciphering DE-9IM. I agree it is not very intuitive. To solve the problem for homogeneous geometries (same dimension), I would try the folowing - for

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-20 Thread Larry Reeder
Hey Jukka, Just got a chance to look at this. The region that is not coloring is interesting. ​ It's like a pizza sliced into six pieces, each touching at the point. You can't color this portion of the map with only five colors without two adjacent (maybe just adjacent at one point in the

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-20 Thread Michael Michaud
Hi Larry, Do you compute relations between geomeries with intersect predicate ? I wonder if you could remove edges between polygons adjacent at one point from the graph by using relate operator (which makes it possible to check intersection dimension). Michaël Hey Jukka, Just got a chance to

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-18 Thread Landon Blake
Did you get a fix to this problem Jukka? Landon On Mon, Sep 15, 2014 at 6:15 AM, Rahkonen Jukka (Tike) jukka.rahko...@mmmtike.fi wrote: Hi, I found a shapefile from which some polygons are not colored with the Map coloring plugin v. 0.4. Shapefile does not have topology errors but some

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-18 Thread Rahkonen Jukka (Tike)
Hi Landon, This is an open community and majority of all discussion is held on this mailing list. If Larry or anybody else had reacted yet you would have seen it. -Jukka- Landon Blake wrote: Did you get a fix to this problem Jukka? Landon On Mon, Sep 15, 2014 at 6:15 AM, Rahkonen Jukka

Re: [JPP-Devel] Error with Map coloring plugin

2014-09-18 Thread Landon Blake
Wasn't sure if you figured out the problem yourself. :] I will try to look at the data today. If I can repeat your problem we should file a bug report at least. Landon On Thu, Sep 18, 2014 at 6:38 AM, Rahkonen Jukka (Tike) jukka.rahko...@mmmtike.fi wrote: Hi Landon, This is an open