[mapserver-users] extracting geo data from a tiff
Ben Madin
lists at remoteinformation.com.au
Mon Apr 30 17:23:50 PDT 2012
Jess,
This might depend a little bit on what interface you are using to display the map. If you are using templates, you have access to the Map Geometry information, check out :
http://mapserver.org/mapfile/template.html#template
I think you can access similar information using OpenLayers.
If not, do you specify the IMGEXT of your map in your URL? Could you use this information?
cheers
Ben
On 01/05/2012, at 12:00 AM, "Jessica Clarke" <Jessica.Clarke at forestrytas.com.au> wrote:
> I'm trying to find out the geographic coordinates of an output map.
> Please correct me if there is an easier way, but I have added the GDAL/GTIFF output format to my mapfile, and I am calling it with ...&qformat=GTiff&... in my URL so that it selects that instead of the png output format (which is already in use by a large number of people).
>
> What I want to do now, is produce a report that gives the top-left coordinate of the map.
> Is there a way to extract this information and produce a report?
>
> My thought process at the moment:
> Include another outputformat which is text so my URL would be ...&qformat=GTiff+report&...
> But I'm not sure how to do that exactly, or how to extract the coordinates.
>
> I have run GDAL info in cmd, so I'm aware of the data that is contained.
>
> Any advice would be appreciated. I am hoping I'm on the right track at the moment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120501/ebecce3b/attachment.htm>
More information about the MapServer-users
mailing list