Re: [Pymag-devel] Unable to render Polygons
Status: Alpha
Brought to you by:
lhj
|
From: <jo...@fe...> - 2009-05-19 10:50:01
|
I've just tried the latest code from svn, with mixed results. Some of
my maps have polygons rendering again, but others that warn about
Improper polygons now crash Mapsend/Vantagepoint.
Some of the warnings I can understand - polygons with only 2 points,
or polygons that are 'open', but one example I saw has me confused...
I got this warning one one tonight -
WARNING Improper polygon found: [(144.844255, -38.373168800000002),
(144.8432851, -38.373168800000002), (144.844255, -38.373168800000002)]
That shows a polygon with 3 points, and two of them have the same
coordinates? That should be a valid polygon unless I'm missing
something.
The nodes/way relating to that error are:
<node id="172752298" timestamp="2009-02-25T17:02:53Z"
lat="-38.3731688" lon="144.844255"/>
<node id="172751478" timestamp="2009-02-25T17:02:53Z"
lat="-38.3731688" lon="144.8432851"/>
<way id="16711763" timestamp="2009-02-25T17:02:53Z">
<nd ref="172752298"/>
<nd ref="172751478"/>
<nd ref="172752298"/>
<tag k="created_by" v="Potlatch 0.5d"/>
<tag k="leisure" v="park"/>
</way>
Regards,
Josh
|