Dear Statalisters,
I am trying to convert coordinates in meters to xy latitude and longitude in Stata. I use Robert Picard's [geoinpoly] package to generate the xy coordinates so I can merge them with the shapefile.
The coordinates look like this:
_ID _X _Y
1 722289.86 1194827.3
2 724874.6 1194249.9
3 713779.37 1193967.1
4 719852.11 1195935.7
When I run the command:
geoinpoly _Y _X using "ttcoord.dta"
I get the error code 198:
latitude _Y must be between -90 and 90
r(198);
Even if I try using the option noprojection, I still get the same error.
Any advice would be greatly appreciated.
Thank you
Erik
Related Posts with Convert xy coordinate in meters to degrees in Stata
Stata markdown: can dyndoc create md files instead of html?I'm working in a project with many collaborators, all of which have Stata version 15. We use the dyn…
Appending Files Conditional on File NameI have a number of files that are named the following: lp1_x0_rf1.dta ... lp1_x9_rf1.dta lp1_x0_rf2…
How to control MRTs in PPML Gravity ModelCan i control MRTs in PPML method by estimating exporter, importer and year group dummies by followi…
Test for endogeneity when using in between-effectsHello everyone, I am trying to run the following model xi: xtivreg sba ids fco vvm nan avi i.year (…
How to change the data in letters ?Hello. The column I actually have is address1. I want to change the contents of address1 to address2…
Subscribe to:
Post Comments (Atom)
0 Response to Convert xy coordinate in meters to degrees in Stata
Post a Comment