I've been trying to make my way through the Wiki documentation and I'm having issues figuring out what's going on. The Wiki explains a lot of things, but I haven't been able to find one of the most basic things.
I just want to talk to the GeoServer and for a box of lat/lon coordinates, get back the image that represents the layers/features in the server for that box. This is where I'm getting stuck as I can't really find the API specification for the WMS that would allow me to do that.
I know that I will have to go through the process to load sets of data and such, but right now I'm just trying to figure out how I actually interact with the system to get map images since I'm not building out a web page.
On 5/26/06, Gregory Pierce <gpierce@...568...> wrote:
I've been trying to make my way through the Wiki documentation and
I'm having issues figuring out what's going on. The Wiki explains a
lot of things, but I haven't been able to find one of the most basic
things.
I just want to talk to the GeoServer and for a box of lat/lon
coordinates, get back the image that represents the layers/features
in the server for that box. This is where I'm getting stuck as I
can't really find the API specification for the WMS that would allow
me to do that.
I know that I will have to go through the process to load sets of
data and such, but right now I'm just trying to figure out how I
actually interact with the system to get map images since I'm not
building out a web page.
You can "get map images" simply by making a getmap request. Just
follow the "Sample Requests" examples on the Demo page.
Here is one from the docs, given that you have that layer:
http://localhost:8080/geoserver/wms?request=GetMap&layers=topp:bc_roads&bbox=489153,5433000,529000,5460816&width=400&height=200&srs=EPSG:27354&styles=normal&Format=image/png
It is not quite clear what is you intended end result--help me out by
telling more.
Alex
On May 26, 2006, at 9:05 PM, Alexander Petkov wrote:
You can "get map images" simply by making a getmap request. Just
follow the "Sample Requests" examples on the Demo page.
Here is one from the docs, given that you have that layer:
http://localhost:8080/geoserver/wms?request=GetMap&layers=topp:bc_roads&bbox=489153,5433000,529000,5460816&width=400&height=200&srs=EPSG:27354&styles=normal&Format=image/png
It is not quite clear what is you intended end result--help me out by
telling more.
My needs are pretty basic at this point. I just want to take a box of coordinates specifying the extremes of the area of interest an get an image back. Once I understand that, I will move on to drawing other things on the map.
GetMap looks like what I'm looking for right now, thank you. Is there a page on the Wiki that describes this in any great detail?
Well, I copied the example from the old docs:
http://geoserver.sourceforge.net/documentation/user/working.html
In the example below you can see the argument separated by "&"
symbols. You can change things like layer names, projection code
(srs), bounding box, the style (the look) of the map, etc.
Hint: you can have multiple layers, separated by comma. Then each
layer will need a style, so with multiple layers you will need a
comma-separated style list.
Alex
On 5/26/06, Gregory Pierce <gpierce@...568...> wrote:
On May 26, 2006, at 9:05 PM, Alexander Petkov wrote:
>
> You can "get map images" simply by making a getmap request. Just
> follow the "Sample Requests" examples on the Demo page.
>
> Here is one from the docs, given that you have that layer:
> http://localhost:8080/geoserver/wms?
> request=GetMap&layers=topp:bc_roads&bbox=489153,5433000,529000,5460816
> &width=400&height=200&srs=EPSG:27354&styles=normal&Format=image/png
>
> It is not quite clear what is you intended end result--help me out by
> telling more.
>
My needs are pretty basic at this point. I just want to take a box of
coordinates specifying the extremes of the area of interest an get an
image back. Once I understand that, I will move on to drawing other
things on the map.
GetMap looks like what I'm looking for right now, thank you. Is there
a page on the Wiki that describes this in any great detail?