Skip to content

Maaka2890/BoundingBox

Repository files navigation

BoundingBox Plugin for QGIS 2

This QGIS 2 plugin returns the xmin, ymin, xmax, ymax and the GetMap request of the current view window of the selected WMS. For this plugin compatible with QGIS version 3.4 or higher go to: https://github.com/Maaka2890/BBox3

Developers of web services often need bounding boxes of specific areas during trouble shooting, for test calls or for communication. The goal of this plugin is to, with one click, provide the bounding box of the current view window and the GetMap request of the selected WMS. You can copy this for your tests. With this plugin you can pan to a new location and press "Get BBOX" to updated the bounding box and GetMap request. Making it the quickest way of getting the needed information. No more need for different software, python commands, or copying xmin, ymin etc. one by one. Your bounding box is only 2 clicks away.

Notes: Put the content in a folder called "BoundingBox" in C:\Users\[USERNAME]\.qgis2\python\plugins. The GetMap request only works if you use the English Qgis. The plugin searches metadata therms which, when translated, can't be found. You can change the locale by going to Settings->Options|Locale and use U.S. English. It also only returns the GetMap request if you select (highlight) the WMS in the Layers Panel. The order will be xmin, ymin, xmax, ymax. This corresponds to the gml simple features point geometry encoding. Depending on the EPSG code you might need ymin, xmin, ymax, xmax in your tests.

This plugin was created using Plugin Builder, Qt Creator and python. For more information, see the PyQGIS Developer Cookbook at: http://www.qgis.org/pyqgis-cookbook/index.html

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

About

This plugin return the xmin, ymin, xmax, ymax of the current view window in Qgis, and the GetMap request of the selected WMS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages