Hi,

Just to let you know, the below was not working due to a bug in my code (got 
the wrong styleName).  Working fine now.  Thanks for all your help!

Cheers,

Greg


On Dec 2, 2009, at 9:50 AM, Greg Ederer wrote:

> Hi Andrea,
> 
> Thanks for the pointer.  I'm almost there.  The one question I have is how to 
> create a new Style.  I'm using the following code:
> 
>      style = factory.createStyle();
>      style.setName(styleName);
>      style.setFilename(styleName + ".sld");
> 
>      catalog.add(style);
> 
> The .sld files are in the styles directory of my GEOSERVER_DATA_DIR.  But, 
> the styles are not created. Should the argument to setFileName be an absolute 
> file path, or am I just doing this wrong?
> 
> Thanks!
> 
> Greg
> 
> 
> On Nov 28, 2009, at 1:36 AM, Andrea Aime wrote:
> 
>> Greg Ederer ha scritto:
>>> Hi Justin,
>>> Thanks for the response.  I implemented a solution using REST with
>>> GeoServer 1.7.x.  Unfortunately, with the volume of data that we have
>>> to process, this is just too inefficient.  This is why I have decided
>>> to replace this system with one that directly manipulates the
>>> GeoServer 2.0 Catalog.  When the Hibernate extension is released, I
>>> will move to that.
>>> Since GeoServer already contains code that creates and configures the
>>> various ResourceInfo implementations, it would be very groovy if I
>>> could examine this code.  Any pointers?
>> 
>> Look for the CatalogBuilder class
>> 
>> Cheers
>> Andrea
>> 
>> -- 
>> Andrea Aime
>> OpenGeo - http://opengeo.org
>> Expert service straight from the developers.
> 
> 
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing. 
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to