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

GeoServer Rendering transformations in CSS #21

Open
dwins opened this issue Jul 1, 2012 · 3 comments
Open

GeoServer Rendering transformations in CSS #21

dwins opened this issue Jul 1, 2012 · 3 comments
Labels

Comments

@dwins
Copy link
Owner

dwins commented Jul 1, 2012

GeoServer has a cool feature where you can use a WPS Process to modify data arbitrarily on the fly as part of your style. It would be awesome to support it in CSS. The render-transformations branch is basically ready to go but since GeoTools currently ignores the relevant property when serializing styles it doesn't work well.

@aaime
Copy link
Contributor

aaime commented Jul 22, 2013

Mumble... anything I can help with?

@dwins
Copy link
Owner Author

dwins commented Jul 22, 2013

Well, I guess it is possible this has been fixed already in GeoTools; I haven't looked at it in a while. If not I think it would be a purely GeoTools fix to include the transformation process in SLDs encoded by the GeoTools encoder.

Since implementing the render-transformations branch though I've been thinking it would be nice to come up with a specialized notation for processes though. Rather than

  • {
    transform: [gs:Contour(parameter("data"), parameter("levels", 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800))]
    }

It would be nice to do something more like:

  • {
    transform: [gs:Contour(levels=[1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800])]
    }

I started experimenting with this a while ago in https://github.com/dwins/woops but ran into trouble with the GeoTools WPS client so didn't get too far. (The plan was to put together a command-line WPS client and then repurpose the command language, maybe a more direct approach would be more effective.)

@aaime
Copy link
Contributor

aaime commented Jul 22, 2013

As far as I can see SLDTransformerTest has a test to round trip a rendering transformation, so it should be good gt wise.

I agree the second syntax looks nicer.

The WPS client is still quite a bit far away from being useful (I mean, I've used it a couple of times for limited purposes, and it worked once I've patched it ;-) ) but yeah, those two seem two separate topics :-)

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

No branches or pull requests

2 participants