[Geoserver-users] Question: Graphic symbology in GeoServer/External Graphics

Hi,

Did you try to edit the burg.sld as I suggested with your symbol saved into data_dir/styles? If you can change your png file into it you’d know that it is possible. Next you can try if it can be read from your icon directory.

I do not understand what you mean with:

Although when I use http://server-name:8080/geo GEOSERVER_DATA_DIR/styles /… it validates OK, but the link gives nothing

Could you share your whole SLD?

-Jukka Rahkonen-

···

Deeb Haddad wrote:

Well Thanks Andrea, I have tried your suggestion

But I suspect that its permission issue, although I had given full permission to that but no result.

Still giving same exception

Best regards,

Deeb N. Haddad |System Support Engineer

International Relief & Development (Regional Office)

22 Sumaya Bent Al Hasan St | PO Box 852795 | Amman 11185 Jordan

T: 962 6 5857756 | F: 962 6 5857751 | M: +962790218658

www.ird.org

From: andrea.aime@…84… [mailto:andrea.aime@…84…] On Behalf Of Andrea Aime
Sent: Wednesday, October 01, 2014 11:41 AM
To: Deeb Haddad
Cc: Rahkonen Jukka (Tike); GeoServer Mailing List List
Subject: Re: [Geoserver-users] Question: Graphic symbology in GeoServer/External Graphics

On Wed, Oct 1, 2014 at 11:28 AM, Deeb Haddad <dhaddad@…6701…> wrote:

Thanks Rahkonen

Well I have tried to do that earlier, the thing it keeps giving me same error:

Parsing failed for ExternalGraphic: java.lang.IllegalArgumentException: URI is not absolute

Although when I use http://server-name:8080/geo GEOSERVER_DATA_DIR/styles /… it validates OK, but the link gives nothing

Are you using SLD 1.1? It’s not working as good as the SLD 1.0, which is instead well supported.

Before rewriting your styles to SLD 1.0, or trying to make a bug fix for the SLD 1.1 parser, I’d make a last try using “file://./icon/cluster.png”

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.


Here is a test SLD

test.sld (1.34 KB)

···

Best regards,

Deeb N. Haddad |System Support Engineer

International Relief & Development (Regional Office)

22 Sumaya Bent Al Hasan St | PO Box 852795 | Amman 11185 Jordan

T: 962 6 5857756 | F: 962 6 5857751 | M: +962790218658

www.ird.org

From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen@anonymised.com]
Sent: Wednesday, October 01, 2014 12:08 PM
To: ‘Deeb Haddad’; ‘Geoserver-users@anonymised.com.net
Subject: Re: [Geoserver-users] Question: Graphic symbology in GeoServer/External Graphics

Hi,

Did you try to edit the burg.sld as I suggested with your symbol saved into data_dir/styles? If you can change your png file into it you’d know that it is possible. Next you can try if it can be read from your icon directory.

I do not understand what you mean with:

Although when I use http://server-name:8080/geo GEOSERVER_DATA_DIR/styles /… it validates OK, but the link gives nothing

Could you share your whole SLD?

-Jukka Rahkonen-

Deeb Haddad wrote:

Well Thanks Andrea, I have tried your suggestion

But I suspect that its permission issue, although I had given full permission to that but no result.

Still giving same exception

Best regards,

Deeb N. Haddad |System Support Engineer

International Relief & Development (Regional Office)

22 Sumaya Bent Al Hasan St | PO Box 852795 | Amman 11185 Jordan

T: 962 6 5857756 | F: 962 6 5857751 | M: +962790218658

www.ird.org

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Wednesday, October 01, 2014 11:41 AM
To: Deeb Haddad
Cc: Rahkonen Jukka (Tike); GeoServer Mailing List List
Subject: Re: [Geoserver-users] Question: Graphic symbology in GeoServer/External Graphics

On Wed, Oct 1, 2014 at 11:28 AM, Deeb Haddad <dhaddad@anonymised.com> wrote:

Thanks Rahkonen

Well I have tried to do that earlier, the thing it keeps giving me same error:

Parsing failed for ExternalGraphic: java.lang.IllegalArgumentException: URI is not absolute

Although when I use http://server-name:8080/geo GEOSERVER_DATA_DIR/styles /… it validates OK, but the link gives nothing

Are you using SLD 1.1? It’s not working as good as the SLD 1.0, which is instead well supported.

Before rewriting your styles to SLD 1.0, or trying to make a bug fix for the SLD 1.1 parser, I’d make a last try using “file://./icon/cluster.png”

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.