IDEAS home Printed from
   My bibliography  Save this paper

gpsbound: Routine for importing and verifying geographical information from a user provided shapefile


  • Brophy, Tim

    (SALDRU, School of Economics, University of Cape Town)

  • Daniels, Reza Che

    (School of Economics, University of Cape Town)

  • Musundwa, Sibongile

    (SALDRU, School of Economics, University of Cape Town)


Geographical coordinates such as Global Positioning System (GPS) latitude and longitude estimates form the foundation of many spatial statistical methods. gpsbound allows users to (1) import geographical information from the attribute table of a polygon shapefile based on the identified location of GPS coordinates in a Stata dataset, and (2) check that the GPS coordinates lie within the bounds of a polygon demarcated in the shapefile (e.g. enumerator areas, primary sampling units, suburb, city, country). One of the contributions of gpsbound is to allow users to work with spatial data in Stata without ever needing Geographical Information System (GIS) software.

Suggested Citation

  • Brophy, Tim & Daniels, Reza Che & Musundwa, Sibongile, 2014. "gpsbound: Routine for importing and verifying geographical information from a user provided shapefile," SALDRU Working Papers 132, Southern Africa Labour and Development Research Unit, University of Cape Town.
  • Handle: RePEc:ldr:wpaper:132

    Download full text from publisher

    File URL:
    File Function: Full text
    Download Restriction: no


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Kraemer-Eis, Helmut & Signore, Simone & Prencipe, Dario, 2016. "The European venture capital landscape: an EIF perspective. Volume I: The impact of EIF on the VC ecosystem," EIF Working Paper Series 2016/34, European Investment Fund (EIF).
    2. Martin Gustafsson, 2016. "Teacher supply and the quality of schooling in South Africa. Patterns over space and time," Working Papers 03/2016, Stellenbosch University, Department of Economics.
    3. Andrew Kerr & Patrizio Piraino & Vimal Ranchhod, 2016. "Estimating the size and impact of Affirmative Action at the University of Cape Town," SALDRU Working Papers 172, Southern Africa Labour and Development Research Unit, University of Cape Town.

    More about this item


    Stata ado; GPS coordinates; Bounding box; Point in polygon algorithm;
    All these keywords.

    JEL classification:

    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ldr:wpaper:132. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Alison Siljeur (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.