Geodist staat6/29/2023 ![]() ![]() Spmap poverty using nepalcoord, id(id) /// Variable name type format label variable labelī) Napel Coordinate data (extracted from the map)Īdding Title, Legends and Colors to the base map based on the povery level dta datasets: nepaldb.dta and nepalcoord.dta.Ī) Nepal Dataset (extracted from the map) In any case, the translation has created two new. We would have translated MapInfo files the same way, but we would have used the command mif2dta instead of shp2dta. The Nepal map, however, took only a few seconds. Shp2dta can take several minutes to run, depending on the map’s size and level of detail. 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
Leave a Reply. |