Popular recipes tagged "coordinates"http://code.activestate.com/recipes/tags/coordinates/popular/2015-01-11T10:53:38-08:00ActiveState Code RecipesQGIS startup script: Change display of coordinates (Python) 2015-01-11T10:53:38-08:00redoutehttp://code.activestate.com/recipes/users/4188210/http://code.activestate.com/recipes/578692-qgis-startup-script-change-display-of-coordinates/ <p style="color: grey"> Python recipe 578692 by <a href="/recipes/users/4188210/">redoute</a> (<a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/gis/">gis</a>, <a href="/recipes/tags/qgis/">qgis</a>, <a href="/recipes/tags/startup/">startup</a>). </p> <p>This script for QGIS version 2 replaces the default statusbar coordinate display with a configurable widget. Save the script as .qgis2/python/startup.py. Click the statusbar widget left of the coordinates, initially labelled 'EPSG:4326', to select the demanded CRS. Delete startup.py to deinstall.</p> Coordinates of numpy array from index and shape (Python) 2012-10-23T19:51:55-07:00Garretthttp://code.activestate.com/recipes/users/4181290/http://code.activestate.com/recipes/578302-coordinates-of-numpy-array-from-index-and-shape/ <p style="color: grey"> Python recipe 578302 by <a href="/recipes/users/4181290/">Garrett</a> (<a href="/recipes/tags/convert/">convert</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/index/">index</a>, <a href="/recipes/tags/numpy/">numpy</a>, <a href="/recipes/tags/python/">python</a>). </p> <p>returns the coordinates of a numpy array given the index and the shape. A first_index_et function is given as example code</p> Geocoding Lists via Google Maps (Python) 2012-05-11T05:06:27-07:00Mano Bastardohttp://code.activestate.com/recipes/users/4182040/http://code.activestate.com/recipes/578126-geocoding-lists-via-google-maps/ <p style="color: grey"> Python recipe 578126 by <a href="/recipes/users/4182040/">Mano Bastardo</a> (<a href="/recipes/tags/batch/">batch</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/geocode/">geocode</a>, <a href="/recipes/tags/geocoding/">geocoding</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/google_maps/">google_maps</a>, <a href="/recipes/tags/lat/">lat</a>, <a href="/recipes/tags/latitude/">latitude</a>, <a href="/recipes/tags/list/">list</a>, <a href="/recipes/tags/list_comprehension/">list_comprehension</a>, <a href="/recipes/tags/lng/">lng</a>, <a href="/recipes/tags/longitude/">longitude</a>, <a href="/recipes/tags/map/">map</a>, <a href="/recipes/tags/web/">web</a>). Revision 2. </p> <p>A simple script written as an experiment in geocoding addresses in a database. A list of addresses in the form of "100 Any Street, Anytown, CA, 10010" is passed to a Google Maps URL, and the latitude/longitude coordinates are extracted from the returned XML.</p> <p>XML methods are not used in this script, but simple string searches instead.</p> Midpoint of two GPS points (Python) 2011-05-21T22:11:01-07:00Stijn de Graafhttp://code.activestate.com/recipes/users/4178055/http://code.activestate.com/recipes/577713-midpoint-of-two-gps-points/ <p style="color: grey"> Python recipe 577713 by <a href="/recipes/users/4178055/">Stijn de Graaf</a> (<a href="/recipes/tags/circle/">circle</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/gps/">gps</a>, <a href="/recipes/tags/latitude/">latitude</a>, <a href="/recipes/tags/longitude/">longitude</a>, <a href="/recipes/tags/midpoint/">midpoint</a>, <a href="/recipes/tags/orthodrome/">orthodrome</a>). </p> <p>This calculates the midpoint between two GPS coordinates along the Earth's surface. Based on formula from <a href="http://www.movable-type.co.uk/scripts/latlong.html" rel="nofollow">http://www.movable-type.co.uk/scripts/latlong.html</a></p> 3 Point Area Finder (Python) 2009-09-08T14:08:14-07:00Daniel Sahahttp://code.activestate.com/recipes/users/4171644/http://code.activestate.com/recipes/576896-3-point-area-finder/ <p style="color: grey"> Python recipe 576896 by <a href="/recipes/users/4171644/">Daniel Saha</a> (<a href="/recipes/tags/area/">area</a>, <a href="/recipes/tags/coordinates/">coordinates</a>, <a href="/recipes/tags/triangles/">triangles</a>). </p> <p>Plug in three coordinates to triArea(a,b,c), and it will return the area of the triangle. some common variable letters transfer into these meanings: m: slope y,c: y intercept a: x's coefficient b: y's coefficient </p>