[Geoserver-users] REST Configuration API

Patel, Ronak Avinash (US SSA) wrote:

Another question,

How can I specify which coverages I want to appear in which layers?
And...do I need to use Styles in order to make layers?

Well first you have to add the coverage. This will implicitly create a layer for you which references the coverage under the name <ws>:<coverageName>

You should be able to create a layer without specifying a default style, but one will be assigned to it implicitly.

I don't intend to reverse engineer the whole thing...just the parts that
I need so I can get moving.

Ronak

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, March 31, 2009 10:14 AM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] REST Configuration API

Nope, pretty much spread out across the globe from Vancouver to Sydney
:slight_smile:

Patel, Ronak Avinash (US SSA) wrote:

I'm also on PST...I thought you guys were all in Europe...

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, March 31, 2009 10:06 AM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] REST Configuration API

I will be around for 2-3 more hours, and then online later tonight
(PST).

Patel, Ronak Avinash (US SSA) wrote:

Justin,

Yes, I am doing that now...kinda have to just to fill out values so I
can POST and GET and make sense of the data.

It's very hard to traverse a DOM when you don't know what the DOM

even

looks like....

I will send it to you for review before I start to use it in my
application.

How long will you be available today?

Thanks!

Ronak

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, March 31, 2009 10:01 AM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] REST Configuration API

Well... xstream is nice and simple. You do not need to define a

schema

or antyhing to serialize and deserialize objects. We also had a bunch

of

a xstream based stuff around for serializing the exact same objects,

so

it made sense to reuse it.

Part of my hesitation of publishing a schema at this point is that

this

api is very new, and will undoubtedly change. But I realize this

makes

it hard for the client since there is no great way to figure out what

a

legal representation is.

Anyways, if you do reverse engineer a schema and would be willing to share it I would be happy to review it, and incorporate it into the

api.

-Justin

Patel, Ronak Avinash (US SSA) wrote:

In the meantime, I'll have to improvise and make up the schema on my

own

based on the data I see in the examples on your site.

Why did your team decide to use XStream rather than the popular JAXB

or

XMLBeans Java <-> XML binding APIs?

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, March 31, 2009 5:43 AM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] REST Configuration API

Patel, Ronak Avinash (US SSA) wrote:

Hi,

I am exploring the new REST Configuration API and I was curious

about

the XML datatype.

Do you provide an XSD schema that lists the type of data structures

that

would be returned from geoserver?

Unfortunately no, not yet. The library we use (XStream) does not

provide

any facility for generating an XML schema, nor should it really. So

one

thing I was was thinking of was coming up with one manually, but something i have not got around with.

This would work out well with a JAXB or XMLBeans.

Another thing I would like to do is publish a java based client api.

Actually there is a summer of code project for this. That way client

code would really have to worry about what the exact XML

representation

looks like.

Thanks!!

Ronak Patel

------------------------------------------------------------------------

------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.