Hi,
Thanks for reporting the problem and sorry about the slow reply. The
problem is because of a restriction I added sometime ago for a certain
polygon type.
Unfortunately I don't remember why I added the restriction.
In the latest trunk I have removed it and instead of exiting it prints
a warning. Hopefully it will work but it could be that it won't work
on all devices.
Best regards,
Henrik
2009/6/20 ouɐɯnH <fre...@gm...>:
> hello i test to a map generete from geofabrick .osm
> http://download.geofabrik.de/osm/south-america/colombia.osm.bz2 but i
> have this error:
>
> debian:# osmmag.py -v -n "Colombia 20090620" -o colombia_20090620.imi
> -r osmmagellan/data/osmmagrules.xml colombia.osm
> INFO Loading rules: osmmagellan/data/osmmagrules.xml
> INFO Reading osm data and creating map
> INFO Optimizing cell structure
> Traceback (most recent call last):
> File "/usr/bin/osmmag.py", line 180, in <module>
> main()
> File "/usr/bin/osmmag.py", line 176, in main
> bigendian=options.bigendian
> File "/usr/bin/osmmag.py", line 61, in osmmag
> m.close()
> File "/usr/lib/python2.5/site-packages/magellan/Map.py", line 358, in close
> self._laycfg.close()
> File "/usr/lib/python2.5/site-packages/magellan/Layer.py", line 278, in close
> layer.close()
> File "/usr/lib/python2.5/site-packages/magellan/Layer.py", line 466, in close
> celldata = cell.serialize()
> File "/usr/lib/python2.5/site-packages/magellan/Cell.py", line 168, in
> serialize
> data += self._serialize_cellelement(s)
> File "/usr/lib/python2.5/site-packages/magellan/Cell.py", line 85, in
> _serialize_cellelement
> cellelementdata = cellelement.serialize(self, self.layer.bigendian)
> File "/usr/lib/python2.5/site-packages/magellan/CellElement.py", line
> 465, in serialize
> cdata, subpolytype, nvertices = self.encode_polygon(bbox, p, bigendian)
> File "/usr/lib/python2.5/site-packages/magellan/CellElement.py", line
> 624, in encode_polygon
> raise Exception("Cannot encode polygon")
> Exception: Cannot encode polygon
>
> but with the export from
> http://www.openstreetmap.org/export?lat=4.6924&lon=-74.1438&zoom=14&layers=B000FTFT
> the script works well
>
> the problem is ; i need all the country.
>
> thanks for the help
> humano
> --
> Lee un artículo sobre nosotros en el tiempo:
> http://www.eltiempo.com/colombia/bogota/empresas-de-tecnologia-basadas-en-software-libre-se-expanden-en-bogota_4708463-1
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Pymag-devel mailing list
> Pym...@li...
> https://lists.sourceforge.net/lists/listinfo/pymag-devel
>
|