Hi all,
Sorry for cross-posting - I've played today with uDig and Geoserver SLD. I was trying to define simple SLD in uDig, upload it in Geoserver and use it there. When using uDig “Theme” SLD it works but I've realized that when I define the “Simple” SLD in uDig the Geoserver WMS won't render anything. I thought that I've used to do it this way some time before and all worked so now I'm confused where is the mistake...
I've tried uDigRC12 and RC15 and geoserver 1.6.4 and 1.6.2. When I define SLD in geoserver GUI editor or using “Theme” in uDig all seems to work. The simple SLD that doesn't work for me is attached - it is for point layer and it should draw simple big green squares.
Thanks I advanced for any help.
Best regards,
Jan.
greensquare.sld (3.8 KB)
Jan Jezek ha scritto:
Hi all,
Sorry for cross-posting - I've played today with uDig and Geoserver
SLD. I was trying to define simple SLD in uDig, upload it in
Geoserver and use it there. When using uDig “Theme” SLD
it works but I've realized that when I define the
“Simple” SLD in uDig the Geoserver WMS won't render
anything. I thought that I've used to do it this way some time before
and all worked so now I'm confused where is the mistake...
I've tried uDigRC12 and RC15 and geoserver 1.6.4 and 1.6.2. When I
define SLD in geoserver GUI editor or using “Theme” in
uDig all seems to work. The simple SLD that doesn't work for me is
attached - it is for point layer and it should draw simple big green
squares.
I haven't tried, but this:
<sld:FeatureTypeName>New Feature Type</sld:FeatureTypeName>
makes me thing that SLD will work only against a feature type with
exactly that name. Change that to "Feature", which is the wildcard
type working against all feature types and see if it works.
Cheers
Andrea
Thanks!
Now I see - the problem is that when I add the WFS to uDig from Geoserver the name is something like layername_Type or what is in the FeatureType Editor Title column - so by default different from the feature name how it understand geoserver and therefor it defines the SLD in different way. The uDig Theme Editor uses the Feature wildcard so it works.
So it seem to me as uDig issues:
1) maybe wrong Layer name from WFS or at least inconsistent with Geoserver.
2) Just to be sure - use 'Feature' as feature name for uDig Simple SLD editor
Thanks for explanation.
Bests,
Jan.
______________________________________________________________
Od: aaime@anonymised.com
Komu: Jan Jezek <h.jezek@anonymised.com>
CC: udig-users@anonymised.com, geoserver-users@lists.sourceforge.net
Datum: 11.06.2008 15:53
Pøedmìt: Re: [Geoserver-users] uDig SLD in Geoserver
Jan Jezek ha scritto:
Hi all,
> Sorry for cross-posting - I've played today with uDig and Geoserver
SLD. I was trying to define simple SLD in uDig, upload it in
Geoserver and use it there. When using uDig “Theme” SLD
it works but I've realized that when I define the
“Simple” SLD in uDig the Geoserver WMS won't render
anything. I thought that I've used to do it this way some time before
and all worked so now I'm confused where is the mistake...
> I've tried uDigRC12 and RC15 and geoserver 1.6.4 and 1.6.2. When I
define SLD in geoserver GUI editor or using “Theme” in
uDig all seems to work. The simple SLD that doesn't work for me is
attached - it is for point layer and it should draw simple big green
squares.
I haven't tried, but this:
<sld:FeatureTypeName>New Feature Type</sld:FeatureTypeName>
makes me thing that SLD will work only against a feature type with
exactly that name. Change that to "Feature", which is the wildcard
type working against all feature types and see if it works.
Cheers
Andrea
Hi Jan,
Have you verified that the FeatureTypeName is correct. In some versions of uDig (RC14+ I think) the FeatureTypeName is "Feature" which should apply to all features. In this example I see that it is "New Feature Type" so it will only work for layers called "New Feature Type"
Other than that it looks fine. You say the RC15 also had this problem? Ah I found a bug. I recently made it generic, but seems I missed a spot. I will fix that up.
To fix your problem I think you just need to change the typename.
<sld:FeatureTypeName>New Feature Type</sld:FeatureTypeName>
to
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
Jesse
On 11-Jun-08, at 3:29 PM, Jan Jezek wrote:
Hi all,
Sorry for cross-posting - I've played today with uDig and Geoserver SLD. I was trying to define simple SLD in uDig, upload it in Geoserver and use it there. When using uDig “Theme” SLD it works but I've realized that when I define the “Simple” SLD in uDig the Geoserver WMS won't render anything. I thought that I've used to do it this way some time before and all worked so now I'm confused where is the mistake...
I've tried uDigRC12 and RC15 and geoserver 1.6.4 and 1.6.2. When I define SLD in geoserver GUI editor or using “Theme” in uDig all seems to work. The simple SLD that doesn't work for me is attached - it is for point layer and it should draw simple big green squares.
Thanks I advanced for any help.
Best regards,
Jan.
<greensquare.sld>_______________________________________________
udig-users mailing list
udig-users@anonymised.com
http://lists.refractions.net/mailman/listinfo/udig-users
Fixed.
Jesse
On 11-Jun-08, at 3:29 PM, Jan Jezek wrote:
Hi all,
Sorry for cross-posting - I've played today with uDig and Geoserver SLD. I was trying to define simple SLD in uDig, upload it in Geoserver and use it there. When using uDig “Theme” SLD it works but I've realized that when I define the “Simple” SLD in uDig the Geoserver WMS won't render anything. I thought that I've used to do it this way some time before and all worked so now I'm confused where is the mistake...
I've tried uDigRC12 and RC15 and geoserver 1.6.4 and 1.6.2. When I define SLD in geoserver GUI editor or using “Theme” in uDig all seems to work. The simple SLD that doesn't work for me is attached - it is for point layer and it should draw simple big green squares.
Thanks I advanced for any help.
Best regards,
Jan.
<greensquare.sld>_______________________________________________
udig-users mailing list
udig-users@anonymised.com
http://lists.refractions.net/mailman/listinfo/udig-users
Cool!
Thanks for fast fix 
______________________________________________________________
Od: jeichar.w@anonymised.com
Komu: Jan Jezek <h.jezek@anonymised.com>
CC: <udig-users@anonymised.com>, <geoserver-users@lists.sourceforge.net>
Datum: 12.06.2008 08:49
Pøedmìt: Re: [udig-users] uDig SLD in Geoserver
Fixed.
Jesse
On 11-Jun-08, at 3:29 PM, Jan Jezek wrote:
Hi all,
Sorry for cross-posting - I've played today with uDig and Geoserver >
SLD. I was trying to define simple SLD in uDig, upload it in > Geoserver
and use it there. When using uDig “Theme” SLD > it works but
I've realized that when I define the > “Simple” SLD in uDig
the Geoserver WMS won't render > anything. I thought that I've used to do
it this way some time > before and all worked so now I'm confused where is
the mistake...
I've tried uDigRC12 and RC15 and geoserver 1.6.4 and 1.6.2. When I >
define SLD in geoserver GUI editor or using “Theme” in > uDig
all seems to work. The simple SLD that doesn't work for me is > attached -
it is for point layer and it should draw simple big green > squares.
Thanks I advanced for any help.
Best regards,
Jan.
<greensquare.sld>_______________________________________________
udig-users mailing list
udig-users@anonymised.com
http://lists.refractions.net/mailman/listinfo/udig-users