tilemill-project / millstone

middleware for map styles and datasources
BSD 3-Clause "New" or "Revised" License
32 stars 37 forks source link

localizing datasources/resources representing more than one layer #6

Open springmeyer opened 13 years ago

springmeyer commented 13 years ago

Flagging this issue as requiring more thought.

Consider these various issues:

With the exception of zipped resources, the generic answer to these is using gdal/ogr to introspect the data (and therefore wrapping gdal/ogr as a node c++ addon). But, currently the approach of millstone is to handle each case in a custom way - with the benefit of avoiding the extra dependency and offering advanced functionality.

yhahn commented 13 years ago

Addressing this will require adjusting our architecture document a bit. Currently the only "verb" in millstone is resolve -- you pass it an MML and it hands it back to you with all of the resources localized and prepped for compilation/rendering.

To handle the cases above, however, millstone (or some other API component) would need to offer datasource inspection/introspection on a per-datasource basis with some accompanying UI in TileMill, e.g.

^ this is just one possible workflow for this user story but I think the the basic sketch shows what kind of complexity we're talking about here.