Hi all,
i’m having an issue trying to use textsymbolizers and graphics…
My installation:
Linux / Geoserver 1.6.3 / GEOSERVER_DATA variable set to my own path (this data came from 1.6beta and further versions)
First i try to write my own SLD but i have no success.
Even if I try using one on sigma-styles.zip file I have the same error.
2420: <Graphic>
------------------^
**cvc-complex-type.2.4.a: Invalid content starting with element 'Graphic'. One of '{"[http://www.opengis.net/sld](http://www.opengis.net/sld)":Priority, "[http://www.opengis.net/sld](http://www.opengis.net/sld)":VendorOption}' is expected.**
2421: <ExternalGraphic>
2422: <OnlineResource xlink:href="sthwy_skinny_small.png"/>
2423: <Format>image/png</Format>
2424: </ExternalGraphic>
2425: <Size>23</Size>
2426: </Graphic>
Any ideas?.
thanks,
cheers,
facundo.-
Facundo,
Yes, the ability of GeoServer to deal with TextSymbolizer elements which
have "Graphic" children is non-standard. That is, the XML schema that
is published by the OGC as a part of the SLD specification does *not*
allow this structure.
That said, we all like it so much that we decided to allow it in the
actual implementation inside GeoServer.
So in order to get past the "ogc-standard" gate and get this xml to our
internal implementation, you have to un-check the "validate against
schema" checkbox when you're creating the style.
All: should we modify the local-to-geoserver copy of the SLD schema to
reflect this change in functionality? Or is that textual divergence
from the SLD schema going to just be a headache?
--saul
On Mon, 2008-04-21 at 10:14 -0300, Facundo Garat wrote:
Hi all,
i'm having an issue trying to use textsymbolizers and graphics...
My installation:
Linux / Geoserver 1.6.3 / GEOSERVER_DATA variable set to my own
path (this data came from 1.6beta and further versions)
First i try to write my own SLD but i have no success.
Even if I try using one on sigma-styles.zip file I have the same
error.
2420: <Graphic>
------------------^
cvc-complex-type.2.4.a: Invalid content starting with element 'Graphic'. One of '{"http://www.opengis.net/sld":Priority, "http://www.opengis.net/sld":VendorOption\}' is expected.
2421: <ExternalGraphic>
2422: <OnlineResource xlink:href="sthwy_skinny_small.png"/>
2423: <Format>image/png</Format>
2424: </ExternalGraphic>
2425: <Size>23</Size>
2426: </Graphic>
Any ideas?.
thanks,
cheers,
facundo.-
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Saul,
thanks a lot for the answer… I will try that.
cheers,
facundo.-
On Mon, Apr 21, 2008 at 10:29 AM, Saul Farber <sjf8@anonymised.com> wrote:
Facundo,
Yes, the ability of GeoServer to deal with TextSymbolizer elements which
have “Graphic” children is non-standard. That is, the XML schema that
is published by the OGC as a part of the SLD specification does not
allow this structure.
That said, we all like it so much that we decided to allow it in the
actual implementation inside GeoServer.
So in order to get past the “ogc-standard” gate and get this xml to our
internal implementation, you have to un-check the “validate against
schema” checkbox when you’re creating the style.
All: should we modify the local-to-geoserver copy of the SLD schema to
reflect this change in functionality? Or is that textual divergence
from the SLD schema going to just be a headache?
–saul
On Mon, 2008-04-21 at 10:14 -0300, Facundo Garat wrote:
Hi all,
i’m having an issue trying to use textsymbolizers and graphics…
My installation:
Linux / Geoserver 1.6.3 / GEOSERVER_DATA variable set to my own
path (this data came from 1.6beta and further versions)
First i try to write my own SLD but i have no success.
Even if I try using one on sigma-styles.zip file I have the same
error.
2420:
------------------^
cvc-complex-type.2.4.a: Invalid content starting with element ‘Graphic’. One of ‘{“http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.
2421:
2422:
2423: image/png
2424:
2425: 23
2426:
Any ideas?.
thanks,
cheers,
facundo.-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don’t miss this year’s exciting event. There’s still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Facundo Garat Mayer
facundo@anonymised.com
works great…
thanks.
On Mon, Apr 21, 2008 at 10:52 AM, Facundo Garat <facundo.garat@anonymised.com> wrote:
Saul,
thanks a lot for the answer… I will try that.
cheers,
facundo.-
On Mon, Apr 21, 2008 at 10:29 AM, Saul Farber <sjf8@anonymised.com> wrote:
Facundo,
Yes, the ability of GeoServer to deal with TextSymbolizer elements which
have “Graphic” children is non-standard. That is, the XML schema that
is published by the OGC as a part of the SLD specification does not
allow this structure.
That said, we all like it so much that we decided to allow it in the
actual implementation inside GeoServer.
So in order to get past the “ogc-standard” gate and get this xml to our
internal implementation, you have to un-check the “validate against
schema” checkbox when you’re creating the style.
All: should we modify the local-to-geoserver copy of the SLD schema to
reflect this change in functionality? Or is that textual divergence
from the SLD schema going to just be a headache?
–saul
On Mon, 2008-04-21 at 10:14 -0300, Facundo Garat wrote:
Hi all,
i’m having an issue trying to use textsymbolizers and graphics…
My installation:
Linux / Geoserver 1.6.3 / GEOSERVER_DATA variable set to my own
path (this data came from 1.6beta and further versions)
First i try to write my own SLD but i have no success.
Even if I try using one on sigma-styles.zip file I have the same
error.
2420:
------------------^
cvc-complex-type.2.4.a: Invalid content starting with element ‘Graphic’. One of ‘{“http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.
2421:
2422:
2423: image/png
2424:
2425: 23
2426:
Any ideas?.
thanks,
cheers,
facundo.-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don’t miss this year’s exciting event. There’s still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Facundo Garat Mayer
facundo@anonymised.com
–
Facundo Garat Mayer
facundo@anonymised.com
Saul Farber ha scritto:
Facundo,
Yes, the ability of GeoServer to deal with TextSymbolizer elements which
have "Graphic" children is non-standard. That is, the XML schema that
is published by the OGC as a part of the SLD specification does *not*
allow this structure.
That said, we all like it so much that we decided to allow it in the
actual implementation inside GeoServer.
So in order to get past the "ogc-standard" gate and get this xml to our
internal implementation, you have to un-check the "validate against
schema" checkbox when you're creating the style.
All: should we modify the local-to-geoserver copy of the SLD schema to
reflect this change in functionality? Or is that textual divergence
from the SLD schema going to just be a headache?
I guess it's more of an headache to have users know they have to turn
off validation. I'd open a jira issue... but maybe see if other devs
express an opinion on this one.
Cheers
Andrea