You should be able to post directory to http://…/geoserver/wms. Something like the following (note the OutputFormat element specified in the near the end).
As for how exactly to read the image or pdf that is returned in php... i am not sure off the top of my head, perhaps someone more familiar with php libraries can lend some guidance.
-Justin
<?xml version="1.0" encoding="UTF-8"?>
<ogc:GetMap xmlns:ogc="http://www.opengis.net/ows"
xmlns:gml="http://www.opengis.net/gml"
version="1.2.0"
service="WMS">
<StyledLayerDescriptor>
<NamedLayer>
<Name>topp:states</Name>
<UserStyle>
<FeatureTypeStyle/>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
<BoundingBox>
<gml:coord>
<gml:X>-180</gml:X>
<gml:Y>-90</gml:Y>
</gml:coord>
<gml:coord>
<gml:X>180</gml:X>
<gml:Y>90</gml:Y>
</gml:coord>
</BoundingBox>
<Output>
<Format>application/pdf</Format>
<Transparent>false</Transparent>
<Size>
<Width>501</Width>
<Height>501</Height>
</Size>
</Output>
<Exceptions>application/vnd.ogc.se+xml</Exceptions>
</ogc:GetMap>
Toan Nguyen wrote:
I know that. But in this example, request is posted to http://localhost:8080/geoserver/testwfs and it is submited in a frame.
If I use Javascript to post request through XMLHttpRequest object, I down't know how to make a image from response.
And, I want to use PHP to post request and get that image to print it into PDF file.
On Mon, Mar 10, 2008 at 10:55 PM, Justin Deoliveira <jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>> wrote:
Hi,
If you check out the sample requests page and look at the
WMS_getMap_inlineFeature.xml, you will see an example of how to make a
GetMap request with a POST.
Hope that helps.
-Justin
--
Nguyễn Đình Toán
-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding --> chon Unicode (UTF-8). Cam on. !DSPAM:4007,47d5dcbb36131336712104!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
!DSPAM:4007,47d5dcbb36131336712104!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,47d5dcbb36131336712104!