logo separator

[mkgmap-dev] splitter r245

From GerdP gpetermann_muenchen at hotmail.com on Sun Nov 25 16:23:13 GMT 2012

Henning Scholland wrote
> Am 25.11.2012 12:25, schrieb GerdP:
>> Henning Scholland wrote
>>> I don't know if you understand me correct. The resulting map should be
>>> blue area in attached picture. I can cut OSM-data with osmconvert to
>>> this polygon. If splitter generates an areas.list for the resulting
>>> osm-file, splitter generates a areas.list for red and blue parts. It
>>> would be nice, if I can tell splitter only generate tiles for blue area.
>> okay, I understand what you mean. Are you sure that we don't need
>> polygons
>> that do not form rectangles? If we can limit it to a list of rectangles,
>> the
>> change
>> would be quite small.
> I don't know. AFAIK splitter and mkgmap only supports rectangular tiles 
> till now. So I think only rectangular tiles would be ok. If given 
> polygon isn't rectangular splitter could generate a warning, that only 
> rectangular polygons are allowed.

I think it would be good to support the osmosis polygon-file format, but
probably 
there is no need to use the precise values. The current splitter just counts
the nodes
that fall into grid elements. As a first approach I would simply set those
grid elements 
to zero that do not intersect with the polygon. I think this will directly
lead to 
the result that you need.

Gerd



--
View this message in context: http://gis.19327.n5.nabble.com/splitter-r245-tp5737399p5737490.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.



More information about the mkgmap-dev mailing list