CartoType & OpenStreetMap Graham Asher – Cartography Ltd <ul><li>CartoType: a portable map rendering and route finding lib...
CartoType architecture Single engine; plug-in data accessors, font accessors and graphics contexts. ctm1 shp fonts: TrueTy...
Portability and mobile devices <ul><li>Slower </li></ul><ul><li>Less memory </li></ul><ul><li>Poor floating-point support ...
The CTM1 data format <ul><li>Table-based binary format </li></ul><ul><li>First split into layers </li></ul><ul><li>Then re...
Converting OSM data to CTM1 <ul><li>Existing conversion tool reads SHP files </li></ul><ul><li>Write new data accessor for...
Routing <ul><li>Works with any data including OSM </li></ul><ul><li>Sort points, find nodes, create arcs </li></ul><ul><li...
CartoType API & style sheet docs http://www.cartotype.com API docs created using Doxygen. Reasonably full description of h...
Licensing <ul><li>CartoType commercial license: annual fee pays for source code, support, access to SVN etc. </li></ul><ul...
Upcoming SlideShare
Loading in …5
×

CartoType & OpenStreetMap

2,034 views

Published on

Graham Asher's talk at State of the Map 2008, Limerick, Ireland, 13th July '08

Published in: Technology, Art & Photos
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,034
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

CartoType & OpenStreetMap

  1. 1. CartoType & OpenStreetMap Graham Asher – Cartography Ltd <ul><li>CartoType: a portable map rendering and route finding library written in C++ </li></ul><ul><li>Plug-in data sources </li></ul><ul><li>How does it use OpenStreetMap data? </li></ul>
  2. 2. CartoType architecture Single engine; plug-in data accessors, font accessors and graphics contexts. ctm1 shp fonts: TrueType, PostScript, etc. style sheet (xml)
  3. 3. Portability and mobile devices <ul><li>Slower </li></ul><ul><li>Less memory </li></ul><ul><li>Poor floating-point support (but now better) </li></ul><ul><li>Where is the map data kept? </li></ul>
  4. 4. The CTM1 data format <ul><li>Table-based binary format </li></ul><ul><li>First split into layers </li></ul><ul><li>Then recursive spatial partitioning </li></ul><ul><li>Name index uses packed trie </li></ul><ul><li>Compact: current UK data takes 37Mb </li></ul>
  5. 5. Converting OSM data to CTM1 <ul><li>Existing conversion tool reads SHP files </li></ul><ul><li>Write new data accessor for OSM </li></ul><ul><li>Use the Expat XML parser (already used in CartoType for reading style sheets) </li></ul>+ generate_map_data_type1 data accessors *.osm *.ctm1
  6. 6. Routing <ul><li>Works with any data including OSM </li></ul><ul><li>Sort points, find nodes, create arcs </li></ul><ul><li>Not mature – turn restrictions not implemented </li></ul>
  7. 7. CartoType API & style sheet docs http://www.cartotype.com API docs created using Doxygen. Reasonably full description of how style sheets work. Some ideas may be useful: feature sizes based on map metres, and logarithmic feature scaling, for example.
  8. 8. Licensing <ul><li>CartoType commercial license: annual fee pays for source code, support, access to SVN etc. </li></ul><ul><li>Considering dual license like QT but I know nothing... </li></ul><ul><li>Perhaps give compiled library to free & open source projects </li></ul><ul><li>Ideas welcome </li></ul><ul><li>Plan to add track collection to Windows Mobile demo, which then becomes a free mapping tool </li></ul>

×