Re: [geonode] SLD upload
- From:
- David Winslow
- Date:
- 2011-07-14 @ 18:50
GeoNode currently doesn't support uploading styles for layers that already
exist (you can create them but only by editing them in the JavaScript style
editor.) It's a pretty straightforward feature to implement and if you're
interested in doing it I could provide some details about it. It would be
mostly Python/Django work, depending on how comfortable you are in
JavaScript and how nicely you want it to integrate with the map viewer,
there could be a significant JavaScript component as well.
However, GeoNode currently does nothing special with styles - that is to
say, there isn't any special extra metadata in the Django database that
GeoServer doesn't know about. So it should work well to add styles through
the GeoServer web admin or REST configuration API; GeoNode should properly
pick up on those and list them on the layer detail page etc.
Hope that helps.
--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Jul 14, 2011 at 2:41 PM, Jeffrey Johnson <jjohnson@opengeo.org>wrote:
> Mauricio,
>
> I'm not sure there is a good way to upload and assign a new SLD to an
> existing layer, at least I dont know of one directly in geonode, but
> you can create the SLD by hand, and then upload the new layer on the
> upload page and include the .sld file at that time. This functionality
> is available in more recent versions of GeoNode (1.1 I believe)
>
> Let us know if that works for you,
>
> Jeff
>
> On Thu, Jul 14, 2011 at 11:37 AM, Mauricio Miranda
> <mmiranda@xoomcode.com> wrote:
> > Hi there,
> >
> > I just wanna know if I can upload a SLD file and assign the style to some
> layer. Is that possible?
> >
> > If I create the style directly in Geoserver, can I use it in a new map in
> Geonode?
> >
> > Basically, I need to create a style by hand with some features that are
> not yet supported for Styler and I want to use it in a Geonode map.
> >
> > Any idea?
> >
> > --
> > Mauricio Miranda
> > Chief Development Officer
> > http://www.xoomcode.com
> >
> >
>
Re: [geonode] SLD upload
- From:
- Mauricio Miranda
- Date:
- 2011-07-14 @ 20:16
On Jul 14, 2011, at 15:50 PM, David Winslow wrote:
> However, GeoNode currently does nothing special with styles - that is to
say, there isn't any special extra metadata in the Django database that
GeoServer doesn't know about. So it should work well to add styles through
the GeoServer web admin or REST configuration API; GeoNode should properly
pick up on those and list them on the layer detail page etc.
Ok, so I see two options:
1) Create the style in GeoNode and update it using Geoserver.
2) Create the style in Geoserver, add it to the layer publishing options
and then select it in Geonode.
Right?
--
Mauricio Miranda
Chief Development Officer
http://www.xoomcode.com
Re: [geonode] SLD upload
- From:
- David Winslow
- Date:
- 2011-07-14 @ 20:24
Yes, both of those approaches should work.
--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Jul 14, 2011 at 4:16 PM, Mauricio Miranda <mmiranda@xoomcode.com>wrote:
> On Jul 14, 2011, at 15:50 PM, David Winslow wrote:
> > However, GeoNode currently does nothing special with styles - that is to
> say, there isn't any special extra metadata in the Django database that
> GeoServer doesn't know about. So it should work well to add styles through
> the GeoServer web admin or REST configuration API; GeoNode should properly
> pick up on those and list them on the layer detail page etc.
>
>
> Ok, so I see two options:
>
> 1) Create the style in GeoNode and update it using Geoserver.
>
> 2) Create the style in Geoserver, add it to the layer publishing options
> and then select it in Geonode.
>
> Right?
>
> --
> Mauricio Miranda
> Chief Development Officer
> http://www.xoomcode.com
>
>