Rasmus,
There's probably something incorrect in your SLD file. Could you send
it?
dave
ps. I also sent this to the geoserver-devel list so other could help.
Rasmus Lindberg wrote:
Hallo Chris and Dave
Now I have tried and tried but I can't get teh geoserver to do as I
wan't
to.
I have one layer with major roads and when I use the normal style I get
a
default boring blackline map. Now I have tried to make an SLD-file
where I
define the LineSymbolizer to make a 10 pixel width red line.
Then in config/data/style.do I have created a new style and uploaded my
redline.xml
In /config/data/typeSelect.do I have choosen the layer with the major
road
and changed
Style to redline and "Submit", "Apply", "Save"Now when I run my klient I hoped to get a red roadnet, but I don't.
What have I made wrong?
/ Rasmus
-----Ursprungligt meddelande-----
Fran: Chris Holmes [mailto:cholmes@anonymised.com]
Skickat: den 14 mars 2005 21:15
Till: Rasmus Lindberg
Kopia: David Blasby
Amne: Re: SLD for smal displaysHey, this is going to be a quick answer, since I'm moving to Africa in
6
hours. But David should be able to help you out - he is geared to make
a
much nicer sld tutorial/introduction probably in april.
Hallo Chris
My name is Rasmus Lindberg and I'm studing Land Survaying in Lund,
Sweden.
Now I'm doing my Master thesis at GIS-centrum in
Lund. I will write about Catografy for small screens, more exactly how
to
best present nice looking maps in PDA and cellphones.
Sounds cool.
I'm planning to use SLD tolayou the data in our GeoServer or our
Deegreeserver. For some days I have searched the webb to find
something
more
than the spec, which I started to read but didn't understand much of.
Friday
last week I found you page "A quick introduction to SLD" which made me
understand much more what I'm trying to do. I hope that I now will
understand a bit more what is said in the spec.Yeah, that introduction needs a ton of improvement. There really is a
dearth of good information.But I have some questions that maybee you can answear.
Yes, I can try to answer these. But could you do me a big, big favor
if I
do? The page you found is a wiki, and editable, so if you could
improve
it with your findings, it would make many people happy. Sample SLD
files
would be great, and more detailed introductions and examples. Really
whatever you want. We're all about the open source philosophy -
throwing
the beginnings of something useful up and hoping that others
contribute.
Can I make one SLD-file that can work for several layers? And if, do I
then
have to cover all possible objects?
Yeah, you can make one sld file that works for several layers, but it
has
to be fairly general. You don't specify the name of the layer, and it
will match against others. But it means that you can't really do
filters
against the names of properties, unless of course the layers share
property names. Which is possible, especially if you are the one
making
the layers. But basically, yes, you can have one sld file that works
for
several layers, and I don't think you have to cover all possible
objects.
I think that line symbolizers will work for polygons, for example, at
least in our implementation. Though probably would not work for
points.
As I understand you can't send SLD-files to the server, but that will
be
pssible in 1.3. When will 1.3 be relised?
We should have a beta out this week, and hopefully a release candidate
at
the end of the month. The functionality should be in on subversion
(the
source tree), we just haven't tested or released yet.
Do you have any bigger SLD-file that I can look at to understand a bit
better how SLD works? The normal-file that I found in GeoServer does't
say
so much.
No, I don't have any bigger ones. I'm far from an expert on sld - I
just
wanted to put up an intro for people who knew nothing. If/when you do
get
some larger sld files please do share them with us. Oh wait, there are
more than the 'normal' file in geoserver. If you have the binary
version
check the server/geoserver/data/styles directory. There are a few with
filters and a couple more interesting things than 'normal'.Do you have any experiances of cartografy for small displays?
Nope.
Hope that you can help me, and that I maybee can help you later on.
Cool. I hope this helps. Like I said, I'm not an sld expert. But the
next big goal for geoserver is very solid sld support _and_ tutorials
to
get everyone making much prettier maps.
best regards,
Crhsi
Whish you a happy day/ Rasmus
---
Rasmus Lindberg
Student at the M.Sc. Programme in Land Surveying at the
Lund Insitute of Technology, Sweden.
Email: cil00lr8@anonymised.com
Phone: +46735-070278--
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/