Re: [Pymag-devel] Unable to render Polygons
Status: Alpha
Brought to you by:
lhj
From: Josh <jo...@fe...> - 2009-05-19 11:06:45
|
Oops, I had another think about that, and realised a 3 pointed closed polygon is actually more like a straight line ;) Is it possible to just discard bad polygons, seeing as they don't render anyway, and just break the map? Josh Quoting jo...@fe...: > 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 > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Pymag-devel mailing list > Pym...@li... > https://lists.sourceforge.net/lists/listinfo/pymag-devel > |