[Geoserver-users] SLD style XML vers. 1.1.0 made in QGIS not working in GeoServer 2.6.3 and OpenLayers2

Hello community,

I created a SLD styling for Multipolygons in QGIS’s Style Editor by classification/categorization based on attributes stored in a PostgreSQL/PostGIS column.
In QGIS 2.8.1 I exported the style as SLD. The SLD XML vers. is 1.1.0. There is no choice to export it as SLD 1.0.0.

The imported SLD 1.1.0 document is not working in GeoServer 2.6.3 or OpenLayers2 whereas another SLD 1.0.0 style made in uDIG works in GeoServer.

Is there a trick or a Plugin for GeoServer to get the SLD 1.1.0 version working?
Or does anyone know a tool to convert SLD 1.1.0 documents in version 1.0.0?

Ciao,

Izabella

On Wed, Apr 29, 2015 at 9:41 AM, Izabella Mancini <
izabellamancini0789@anonymised.com> wrote:

Hello community,

I created a SLD styling for Multipolygons in QGIS's Style Editor by
classification/categorization based on attributes stored in a
PostgreSQL/PostGIS column.
In QGIS 2.8.1 I exported the style as SLD. The SLD XML vers. is 1.1.0.
There is no choice to export it as SLD 1.0.0.

The imported SLD 1.1.0 document is not working in GeoServer 2.6.3 or
OpenLayers2 whereas another SLD 1.0.0 style made in uDIG works in
GeoServer.

Hi Izabella,
could you share the SLD 1.1 you're trying to use with GeoServer? The basics
of SLD 1.1 should be working, so I'm curious to see
what's in there that breaks rendering

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.

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

Hi Izabella,
indeed the SLD looks normal to me… do you also have a sample dataset I could use to render
the map locally?
Also, which version of GeoServer are you using?

Cheers
Andrea

···

On Wed, Apr 29, 2015 at 10:10 AM, Izabella Mancini <izabellamancini0789@anonymised.com> wrote:

Hello Andrea,

yes, of course. In the attachment I placed the SLD1.1.0 file for styling Multipolygons by categorization.

Curiously, the validation of this SLD1.1.0 in GeoServer shows no error.

Thank you very much.

Izabella

On 29 April 2015 at 09:50, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, Apr 29, 2015 at 9:41 AM, Izabella Mancini <izabellamancini0789@anonymised.com> wrote:

Hello community,

I created a SLD styling for Multipolygons in QGIS’s Style Editor by classification/categorization based on attributes stored in a PostgreSQL/PostGIS column.
In QGIS 2.8.1 I exported the style as SLD. The SLD XML vers. is 1.1.0. There is no choice to export it as SLD 1.0.0.

The imported SLD 1.1.0 document is not working in GeoServer 2.6.3 or OpenLayers2 whereas another SLD 1.0.0 style made in uDIG works in GeoServer.

Hi Izabella,
could you share the SLD 1.1 you’re trying to use with GeoServer? The basics of SLD 1.1 should be working, so I’m curious to see
what’s in there that breaks rendering

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.


==

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.


Ciao Andrea,

thank you very much for testing the SLD 1.1.0 file and shapefile.
I was using GeoServer 2.6.3. You gave me the idea to upgrade to 2.7.0 and GeoServer is using SLD vers. 1.0.0 and 1.1.0, now. See my screenshot for you.

Maybe GeoServer was not able to send the attributes of column ‘feature designation’ correctly because of wrong GeoServer configuration in 2.6.3. I migrated between GeoServer 2.5.x and 2.6.x and can’t set the “STRICT_PATH java system property variable” to “true” because I’m not sure how to perform this. http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-5-x-and-2-6-x

Perhaps, setting STRICT_PATH java system property variable is obsolete in GeoServer 2.7.0. Is it?

Now, I have to fix my OpenLayers2 application because it doesn’t use customized SLD styles. Neither vers. 1.0.0 nor 1.1.0…

Ciao,

Izabella

PS: I noticed that my email program didn’t send our conversation to the user list. Now, it does.

nurc-protected-areas.png

geoserver-2.7.0-layerpreview-SLD1.1.0-forAndrea-2015-05-01.png

···

On 29 April 2015 at 12:43, Andrea Aime <andrea.aime@anonymised.com1107…> wrote:

Ciao
mumble mumble… ho configurato i dati con il tuo stile, ed ecco la mappa:

Mi pare che funzioni come dovrebbe… o no?
Che versione di GeoServer stai usando?

Ciao

Andrea

PS: per un tirocino/master/whatever manda una mail di introduzione con curriculum vitae a jobs@anonymised.com

On Wed, Apr 29, 2015 at 11:20 AM, Izabella Mancini <izabellamancini0789@…84…> wrote:

Ciao Andrea,

Yes, the attribute column in the PostgreSQL database is called ‘feature designation’ and because of saving the layer in QGIS as shapefile the column is now ‘feature_de’.

PS:
Studio geoinformatica a Berlino, all’Uni Beuth, e vorrei fare tirocinio o un master da voi

:slight_smile:

==

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 29 April 2015 at 10:46, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, Apr 29, 2015 at 10:43 AM, Izabella Mancini <izabellamancini0789@anonymised.com> wrote:

Ciao Andrea,

I send you a Shapefile with the attribute column ‘feature_de’ included for styling. The CRS is GCS WGS84 EPSG: 4326

I see that the sld uses feature_designation instead… just to make sure, feature_de is there just because you made
a shapefile export from a database, and the database actually has feature_designation as the column, right?

Grazie tanto!

Prego :wink:

Ciao

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 1, 2015 at 11:13 PM, Izabella Mancini <
izabellamancini0789@anonymised.com> wrote:

Ciao Andrea,

thank you very much for testing the SLD 1.1.0 file and shapefile.
I was using GeoServer 2.6.3. You gave me the idea to upgrade to 2.7.0 and
GeoServer is using SLD vers. 1.0.0 *and 1.1.0, now*. See my screenshot
for you.

Indeed I did try with a recent versions... hum... in theory SLD 1.1 should
have worked in 2.6.x too...

Maybe GeoServer was not able to send the attributes of column 'feature
designation' correctly because of wrong GeoServer configuration in 2.6.3. I
migrated between GeoServer 2.5.x and 2.6.x and can't set the "STRICT_PATH
java system property variable" to "true" because I'm not sure how to
perform this.
http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-5-x-and-2-6-x

Perhaps, setting STRICT_PATH java system property variable is obsolete in
GeoServer 2.7.0. Is it?

As far as I know It is, and in 2.6.3 too.
I've cc'ed the authors of that part of the docs: Jody and Travis, shall we
remove that part of the docs?
Izabella is not the first user to get confused by it

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.

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

I would rather fix the docs so they make sense, I expect adding an example would help.

The subject of naming layers and styles is a confusing one in GeoServer and we have yet to figure out a way to provide helpful feedback. Failing to load was not considered helpful feedback :slight_smile:

···

On 1 May 2015 at 23:10, Andrea Aime <andrea.aime@anonymised.com> wrote:


Jody Garnett

On Fri, May 1, 2015 at 11:13 PM, Izabella Mancini <izabellamancini0789@anonymised.com> wrote:

Ciao Andrea,

thank you very much for testing the SLD 1.1.0 file and shapefile.
I was using GeoServer 2.6.3. You gave me the idea to upgrade to 2.7.0 and GeoServer is using SLD vers. 1.0.0 and 1.1.0, now. See my screenshot for you.

Indeed I did try with a recent versions… hum… in theory SLD 1.1 should have worked in 2.6.x too…

Maybe GeoServer was not able to send the attributes of column ‘feature designation’ correctly because of wrong GeoServer configuration in 2.6.3. I migrated between GeoServer 2.5.x and 2.6.x and can’t set the “STRICT_PATH java system property variable” to “true” because I’m not sure how to perform this. http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-5-x-and-2-6-x

Perhaps, setting STRICT_PATH java system property variable is obsolete in GeoServer 2.7.0. Is it?

As far as I know It is, and in 2.6.3 too.
I’ve cc’ed the authors of that part of the docs: Jody and Travis, shall we remove that part of the docs?
Izabella is not the first user to get confused by it

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.