[Geoserver-users] Vector output from rendering transformation and different projections

Hello All,

I'm using GeoServer for providing meteorological data through WMS. All
worked great so far but I'm now stuck implementing wind arrows layer.

The long story short: getting the data through WMS and EPSG:4326
projection works but does not work when requested through EPSG:3857
(Mercator) - it is returning only blank PNGs.
The same technique works for another (raster) layer I have.

The details:
GeoServer 2.7 with NetCDF store plugin and WPS extension.

Store:
NetCDF (NetCDF store plugin)

Layer:
Single banded (wind direction attribute only), Native SRS/Declared SRS -
EPSG:4326, default Tile Caching settings, Time dimension enabled.

Style:
RasterAsPointCollection transformation and single rule with
"extshape://narrow" graphics (rotation hardcoded for now). Could post the
entire SLD if interested.

So with the configuration above the arrows show in the Layer Preview but
not when I request them with EPSG:3857 projection (leaflet.js). I'm
getting blank PNGs only, there are no errors in the server log.
As I just mentioned above, the same configuration works like a charm for
another (raster only) layer where I visualize the wind speed.

I'm inclined to think that raster-to-vector rendering transformation can
only be requested in its native projection though I hope I'm really wrong
here or I'm just missing something.

Do you guys have any suggestion?
Any help will be so much appreciated.

Thanks,
Ivan

On Fri, May 15, 2015 at 6:25 PM, Ivan Kotev <ivan@anonymised.com> wrote:

Hello All,

I'm using GeoServer for providing meteorological data through WMS. All
worked great so far but I'm now stuck implementing wind arrows layer.

The long story short: getting the data through WMS and EPSG:4326
projection works but does not work when requested through EPSG:3857
(Mercator) - it is returning only blank PNGs.
The same technique works for another (raster) layer I have.

The details:
GeoServer 2.7 with NetCDF store plugin and WPS extension.

Store:
NetCDF (NetCDF store plugin)

Layer:
Single banded (wind direction attribute only), Native SRS/Declared SRS -
EPSG:4326, default Tile Caching settings, Time dimension enabled.

Style:
RasterAsPointCollection transformation and single rule with
"extshape://narrow" graphics (rotation hardcoded for now). Could post the
entire SLD if interested.

So with the configuration above the arrows show in the Layer Preview but
not when I request them with EPSG:3857 projection (leaflet.js). I'm
getting blank PNGs only, there are no errors in the server log.
As I just mentioned above, the same configuration works like a charm for
another (raster only) layer where I visualize the wind speed.

I'm inclined to think that raster-to-vector rendering transformation can
only be requested in its native projection though I hope I'm really wrong
here or I'm just missing something.

Do you guys have any suggestion?

Hum, to rule out if it's the transformation, have you tried using a set of
/very) small
points instead of the arrows?

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

On Fri, May 15, 2015 8:36 pm, Andrea Aime wrote:
On Fri, May 15, 2015 at 6:25 PM, Ivan Kotev <ivan@anonymised.com> wrote:

Hi Andrea,

Thanks for looking into this.

Just tried replacing the arrow with circle graphic (as far as I understand
the suggestion) but still getting the same behaviour - ok with EPSG:4326
and blank results with EPSG:3857.

Please let me know If I got your suggestion correctly or should I try
something else.

I'm also attaching the SLD for reference.

Thanks much in advance,
Ivan

Hello All,

I'm using GeoServer for providing meteorological data through WMS. All
worked great so far but I'm now stuck implementing wind arrows layer.

The long story short: getting the data through WMS and EPSG:4326
projection works but does not work when requested through EPSG:3857
(Mercator) - it is returning only blank PNGs.
The same technique works for another (raster) layer I have.

The details:
GeoServer 2.7 with NetCDF store plugin and WPS extension.

Store:
NetCDF (NetCDF store plugin)

Layer:
Single banded (wind direction attribute only), Native SRS/Declared SRS -
EPSG:4326, default Tile Caching settings, Time dimension enabled.

Style:
RasterAsPointCollection transformation and single rule with
"extshape://narrow" graphics (rotation hardcoded for now). Could post the
entire SLD if interested.

So with the configuration above the arrows show in the Layer Preview but
not when I request them with EPSG:3857 projection (leaflet.js). I'm getting
blank PNGs only, there are no errors in the server log. As I just
mentioned above, the same configuration works like a charm for another
(raster only) layer where I visualize the wind speed.

I'm inclined to think that raster-to-vector rendering transformation can
only be requested in its native projection though I hope I'm really wrong
here or I'm just missing something.

Do you guys have any suggestion?

Hum, to rule out if it's the transformation, have you tried using a set of
/very) small
points instead of the arrows?

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

wind-arrows.sld (2.08 KB)