logo separator

[mkgmap-dev] Software design question

From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Jan 8 07:42:15 GMT 2014

while working on the ShapeMergeFilter I found this because I wanted to add a 
field for the OSM id:

MapShape extends MapLine which extends MapElement.
I wonder if that makes sense as MapElement contains 8 fields which are not
usable with shapes:
private String zip,country,region,city,street,phone,houseNumber,isIn;

Esp. with small shapes like small buildings these fields are quite a big memory overhead.

Doesn't Java offer a better solution for this case?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140108/20604607/attachment.html>

More information about the mkgmap-dev mailing list