[Geoserver-users] Alternative for reloading the Geoserver catalog

hi all,
I have read http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog.
I use PHP and want to read the content of a style, then modify it and save to Geover.
I don’t know url and param to do it. Can you help me?
Thank you.


Nguyễn Đình Toán


Neu khong doc duoc tieng Viet, vui long vao menu View → chon Encoding → chon Unicode (UTF-8). Cam on.

Toan Nguyen ha scritto:

hi all,
I have read http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog.
I use PHP and want to read the content of a style, then modify it and save to Geover.
I don't know url and param to do it. Can you help me?

I don't know what is the exact request that you have to make, but I can suggest a way to dig out that information.
Install Firefox, then install the Firebug extension, open it and look
in the Net tab. There you'll be able to see every single request made
by the browser to GeoServer.
Do the operations you need to automate using the browser, and see in
the net tab the corresponding http request, then make up PHP code
to make the same requests.

Hope this helps
Cheers
Andrea

I want to use PHP code to get the contents (in XML format) of a defined Style (SLD) in GeoServer. After editing SLD, I want to post it to GeoServer and Save it. Summary, I want to edit SLD doc by PHP code.
To access GeoServer, I use code like tutorial:

$client->post(‘/geoserver/admin/loginSubmit.do’, array (
‘username’ =>“admin”,
‘password’ =>“geoserver”,
‘submit’ => ‘Submit’
));

And go to editor SLD page by:

$client->post(‘/geoserver/config/data/styleSelectSubmit.do’, array (
‘selectedStyle’ =>“binhthanh_diadanh”,
‘action’ =>“Edit”
));

But I don’t know how to get SLD contents. And how to Submit a SLD…

On Mon, Mar 3, 2008 at 4:13 PM, Andrea Aime <aaime@…1…> wrote:

I don’t know what is the exact request that you have to make, but I can
suggest a way to dig out that information.
Install Firefox, then install the Firebug extension, open it and look
in the Net tab. There you’ll be able to see every single request made
by the browser to GeoServer.
Do the operations you need to automate using the browser, and see in
the net tab the corresponding http request, then make up PHP code
to make the same requests.

Hope this helps
Cheers
Andrea


Nguyễn Đình Toán


Neu khong doc duoc tieng Viet, vui long vao menu View → chon Encoding → chon Unicode (UTF-8). Cam on.