Standard Styled Layer Descriptors

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Standard Styled Layer Descriptors

David R Robison
Does anyone know of a collection of standard SLD files? I'm sure there are many around an I'm not interested in reinventing the wheel if some standard files exist.

Thanks, David Robison

Reply | Threaded
Open this post in threaded view
|

Re: Standard Styled Layer Descriptors

alexander-petkov
They do exist, in your $GEOSERVER_HOME/data/styles directory.

More examples are found in the WIKI:
 http://docs.codehaus.org/display/GEOSDOC/SLD+Snippets

Also, there are some pretty good advanced ones posted on the users
list, but you will have to search.

The "Filter" and "Styled Layer Descriptor" documents provided by OGC
are also very detailed and useful.

Alex

On 1/5/06, David Robison <[hidden email]> wrote:
>  Does anyone know of a collection of standard SLD files? I'm sure there are
> many around an I'm not interested in reinventing the wheel if some standard
> files exist.
>
> Thanks, David Robison
>
>
N�HY޵隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� 塧m����@^ǚ��^��z�Z�f�z�j�!�x2�������ɫ,��� a{� �,�H��4�m���i�(��ܢo�v'��jYhr'ׯ:�rX��g����z��z�&j)b� b�ў�ǫ�����+-��.�ǟ����a��l��b��,���y�+��޷�b��?�+-�w������z��z�
Reply | Threaded
Open this post in threaded view
|

SDL to draw Interstate Shields with Interstate numbers inside

David R Robison
Is there a way to construct a SDL to draw annotate an Interstate line with an Interstate shield and then draw the interstate number inside it? In UNM MapServer I did it like:

    CLASS
      STYLE
        COLOR 0 0 0
        SYMBOL '../htdocs/images/ctyhwy.png'
      END
      LABEL
        MINFEATURESIZE 50
        MINDISTANCE 150
        POSITION CC
        SIZE TINY
        COLOR 0 0 0
      END
    END

And then displayed it on an Annotation layer. Is there something simular in GeoServer?

Thanks, David Robison

Reply | Threaded
Open this post in threaded view
|

Re: SDL to draw Interstate Shields with Interstate numbers inside

Chris Holmes-2
There's a patch to do it at: http://jira.codehaus.org/browse/GEOS-434 
The resolution isn't entirely accurate - it was voted down as geotools
can't yet deal well with non-spec SLD, but the plan is to make it so it
can.  So the patch should eventually make it in.  You can see it in
action at: http://maps.massgis.state.ma.us/~sfarber/ka-map/ and Saul
can probably help you apply the patch if you need help.

best regards,

Chris

Quoting David Robison <[hidden email]>:

>
>
>  Is there a way to  construct a SDL to draw annotate an Interstate
> line with an Interstate  shield and then draw the interstate number
> inside it? In UNM MapServer  I did it like:
>
>     CLASS
>       STYLE
>         COLOR 0 0 0
>         SYMBOL '../htdocs/images/ctyhwy.png'
>       END
>       LABEL
>         MINFEATURESIZE 50
>         MINDISTANCE 150
>         POSITION CC
>         SIZE TINY
>         COLOR 0 0 0
>       END
>     END
>
> And then displayed it on an Annotation layer. Is there something
> simular in GeoServer?
>
> Thanks, David Robison
>




----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: SDL to draw Interstate Shields with Interstate numbers inside

alexander-petkov
That SLD snippet would make an excellent example for the WIKI.
Do we wait until the change is accepted?

Alex

On 1/6/06, Chris Holmes <[hidden email]> wrote:

> There's a patch to do it at: http://jira.codehaus.org/browse/GEOS-434
> The resolution isn't entirely accurate - it was voted down as geotools
> can't yet deal well with non-spec SLD, but the plan is to make it so it
> can.  So the patch should eventually make it in.  You can see it in
> action at: http://maps.massgis.state.ma.us/~sfarber/ka-map/ and Saul
> can probably help you apply the patch if you need help.
>
> best regards,
>
> Chris
>
> Quoting David Robison <[hidden email]>:
>
> >
> >
> >  Is there a way to  construct a SDL to draw annotate an Interstate
> > line with an Interstate  shield and then draw the interstate number
> > inside it? In UNM MapServer  I did it like:
> >
> >     CLASS
> >       STYLE
> >         COLOR 0 0 0
> >         SYMBOL '../htdocs/images/ctyhwy.png'
> >       END
> >       LABEL
> >         MINFEATURESIZE 50
> >         MINDISTANCE 150
> >         POSITION CC
> >         SIZE TINY
> >         COLOR 0 0 0
> >       END
> >     END
> >
> > And then displayed it on an Annotation layer. Is there something
> > simular in GeoServer?
> >
> > Thanks, David Robison
> >
>
>
>
>
> ----------------------------------------------------------
> This mail sent through IMP: https://webmail.limegroup.com/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
N�HY޵隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� 塧m����@^ǚ��^��z�Z�f�z�j�!�x2�������ɫ,��� a{� �,�H��4�m���i�(��ܢo�v'��jYhr'ׯ:�rX��g����z��z�&j)b� b�ў�ǫ�����+-��.�ǟ����a��l��b��,���y�+��޷�b��?�+-�w������z��z�
Reply | Threaded
Open this post in threaded view
|

Re: SDL to draw Interstate Shields with Interstate numbers inside

Chris Holmes-2
Yeah, I believe we have to wait, since I don't think that SLD snippet
will work without the patch properly applied to the code.

Chris

Quoting Alexander Petkov <[hidden email]>:

> That SLD snippet would make an excellent example for the WIKI.
> Do we wait until the change is accepted?
>
> Alex
>
> On 1/6/06, Chris Holmes <[hidden email]> wrote:
> > There's a patch to do it at:
> http://jira.codehaus.org/browse/GEOS-434
> > The resolution isn't entirely accurate - it was voted down as
> geotools
> > can't yet deal well with non-spec SLD, but the plan is to make it
> so it
> > can.  So the patch should eventually make it in.  You can see it in
> > action at: http://maps.massgis.state.ma.us/~sfarber/ka-map/ and
> Saul
> > can probably help you apply the patch if you need help.
> >
> > best regards,
> >
> > Chris
> >
> > Quoting David Robison <[hidden email]>:
> >
> > >
> > >
> > >  Is there a way to  construct a SDL to draw annotate an
> Interstate
> > > line with an Interstate  shield and then draw the interstate
> number
> > > inside it? In UNM MapServer  I did it like:
> > >
> > >     CLASS
> > >       STYLE
> > >         COLOR 0 0 0
> > >         SYMBOL '../htdocs/images/ctyhwy.png'
> > >       END
> > >       LABEL
> > >         MINFEATURESIZE 50
> > >         MINDISTANCE 150
> > >         POSITION CC
> > >         SIZE TINY
> > >         COLOR 0 0 0
> > >       END
> > >     END
> > >
> > > And then displayed it on an Annotation layer. Is there something
> > > simular in GeoServer?
> > >
> > > Thanks, David Robison
> > >
> >
> >
> >
> >
> > ----------------------------------------------------------
> > This mail sent through IMP: https://webmail.limegroup.com/
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> > for problems?  Stop!  Download the new AJAX search engine that
> makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD
> SPLUNK!
> > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > _______________________________________________
> > Geoserver-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>




----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users