plepe / pgmapcss

PGMapCSS is a library for PostgreSQL/PostGIS which works between an osm2pgsql based database and Mapnik (and maybe other renderers). It processes database (usually OpenStreetMap) objects according to MapCSS rules and calculates resulting colors, widths and other properties for Symbolizers, even geometric modifications.
GNU Affero General Public License v3.0
35 stars 8 forks source link

Integration with TileMill? #3

Open jlpoolen opened 11 years ago

jlpoolen commented 11 years ago

I am intrigued with your paradigm; very clever.

I have a postgis 2.0 database with shape files imported from a local agency, so I'm coming into this project from a different perspective (not importing OSM data). I've also installed TileMill on Windows and am exploring what it can do. As I understand TileMill, it depends upon an installation of Mapnik http://www.mapbox.com/tilemill/docs/source/ (2.2). And your project looks to basically to enhance postgresql by adding functions and/or packages. So the big question is whether one may call your functions within a Carto CSS in TileMill to a modified postgresql database?

Any thoughts on whether such an approach might work or fail? Perhaps Carto would need to be modified to allow specific function calls? I'm still learning these various technologies.

plepe commented 11 years ago

Good question. I've never played with TileMill yet. As CartoCSS and MapCSS take a very different approach to styling, I guess it won't be so easy, but I can't say. I have to admit that a TileMill / pgmapcss compatibility sounds like a tempting idea.

Unfortunately I currently don't have the time to look into this issue. If you make any progress please let me know!

greetings, Plepe