Thank you very much Eric, It has been very helpful.
I used the REST API to add the 25 shapefiles without problems using CURL (I
saw the samples found in the documentation).
I even grouped them with the same mechanism (group layer).
The 25 shp that I have to upload each month are new. So I have to create a
new group of layers each time. But with the API rest it's an easy job.
This brings me to an issue that I think is not resolved for vector data in
Geoserver, and that is the "time management".
I'm wondering to have a single service WMS with an parameter TIME. So with
this parameter I have to decide which group of layers I sent to the client
side. I think thatGeoServer does not accept today this complex
configuration.
Example of call to a proxy:
http://server/geoserver/myproxy?Request=GetMap
<http://server/geoserver/myproxy?Request=GetMap&layers=mylayer&TIME=27/05/20
11> &layers=mylayer&TIME=27/05/2011
Services in Geoserver
May_layer (time extent: 01-05-2011 - 31-05-2011)
April_layer (time extent: 01-04-2011 - 31-04-2011)
March_layer (time extent: 01-03-2011 - 31-03-2011)
Probably the most viable solution is to make a proxy to make the time
management and redirect requests to the group of layers that belongs in
time.
Any other ideas in the list?
Regards,
De: Eric Grosso [mailto:[email protected]]
Enviado el: jueves, 26 de mayo de 2011 19:02
Para: Javier Maestu
CC: [email protected]
Asunto: Re: [Geoserver-users] Publish information through GeoServer
Hi Javier,
You can use indeed the REST api to do it. You've got two pure Java clients
to help you that way (or you can use the cURL library if you prefer):
- the original one, gsrcj: http://code.google.com/p/gsrcj/
- or the new one, geoserver manager:
http://code.google.com/p/geoserver-manager/
Both provide good examples and are easy to use (if you want plenty of
examples, check the unit tests).
"Is possible that I have to publish this 25 shapefiles once each six months,
and I would need to publish this data in a simple way."
It depends on what you want to do:
- if it's just an update (same names of your files, same SRS and same area),
you can just replace your "old" data by the new one,
- if you want to add 25 other shapefiles, use the REST api again.
Hope it can help you.
Cheers,
Eric
On 26 May 2011 17:08, Javier Maestu <[email protected]> wrote:
Hi all,
I'm newbie with GeoServer, I know other projects like MapServer, but I'm
very interested in GeoServer because they have some interesting
functionalities.
I'm doing my first test and I have a question:
- I have 25 shapefiles and I would like to publish all the
shapefiles (25)
- Using the administrator I have to publish each one of the
shapefiles (defining bounds, SRS.) , one by one.
Do you know if they are any feature to publish all the shapefiles at once?
Reading the documentation I see that the REST api could be helpful, but I'm
not sure.
Is possible that I have to publish this 25 shapefiles once each six months,
and I would need to publish this data in a simple way.
All the help would be appreciated!
Regards,
Javier.
----------------------------------------------------------------------------
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users