Back to Blog
Geodist stata7/25/2023 ![]() ![]() genid(id) specified that we wanted the ID variable created in nepaldb.dta to be named id.coordinates(nepalcoord) specified that we wanted the coordinate file to be named nepalcoord.dta.database(nepaldb) specified that we wanted the database file to be named nepaldb.dta.Pay attention to the three options we specified: Shp2dta using shape_files_of_districts_in_nepal, database(nepaldb) coordinates(nepalcoord) genid(id) We use shp2dta command to extract data from shapefile in the curernt directory. dbf filesī) Poverty Dataset (poverty.dta) Useful tip: Free Downloadable GIS Shapfiles Avabilable from these (private) Website: Please download the example dataset here:Ī) Nepal Shapefiles (shape_files_of_districts_in_nepal.rar) - Please unzip it - we need only. We are going to use Nepal Country Map shapefile to find poverty level in each state by merging Poverty dataset. Those maps are available from public or provate sources. Find a map (as ESRI shapefile or a Mapinfo format file).Ī map recordes the geometry and attribute information of spatial features. ![]() Important Note: This works only on STATA version 15.1 and above versions. Shp2dta using shpfilename, database(filename) coordinates(filename) Install the spmap, shp2dta, and mif2dta commands You can use ESRI shapefiles or MapInfo Interchange Format.ġ. Obtain and install the spmap, shp2dta, and mif2dta commands and search the web for the files that describe the map onto which you want to graph your data. With spmap, you can graph data onto maps and produce results. Working with spmap and maps How do I graph data onto a map with Stata? Part 2: How do I find the nearest city/location with Stata?Ī.Part 1: How do I calculate the distance between two locations with Stata?. ![]()
0 Comments
Read More
Leave a Reply. |