Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RasterColorizer support #4

Open
eightysteele opened this issue Feb 27, 2012 · 7 comments
Open

RasterColorizer support #4

eightysteele opened this issue Feb 27, 2012 · 7 comments

Comments

@eightysteele
Copy link

Hey Guys, just wondering what it would take to fold in RasterColorizer support into mapnik-jni? cc: @springmeyer

@springmeyer
Copy link

Explain more what you'd like to do. Proper bindings for RasterColorizer are not trivial to expose. A shortcut would be to load an XML that contained an empty map and a style with a RasterColorizer, then complete the map programmatically in java.

@eightysteele
Copy link
Author

We'd like to build a map tiler for big raster data that rides on Mapnik-jni, and we want it to support dynamic styling by passing in a carto raster symbolizer. Something like:

/tiles/x/y/z.png?carto={raster-symbolizer}

For this to work, do you think proper bindings are the right tool for the job, or is the shortcut the best way to get started here?

@springmeyer
Copy link

shortcut should get you started. For now you could just pass the XML on the url. Carto would of course be nice, but since the main carto impl is in javascript I assume you can't easily hook into that from java.

@eightysteele
Copy link
Author

I'll see how far I can get with XML and Java. On the other hand, there is Rhino of course.

@springmeyer
Copy link

@eightysteele - how did this go working around it for the time being?

@eightysteele
Copy link
Author

@springmeyer we tested and the workaround is gold. we didn't try the rhino route though which would be interesting for hooking into the main carto implementation in js.

@springmeyer
Copy link

btw, carto now supports raster-colorizer: mapbox/carto#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants