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
Non stationary data transformation questionSo I have some panel data, investment in different regions over the course of a 7 years. It's non st…
Combine 2 variables 'year', 'month' into 1 quarterly variableHi all, I need to analyze quarterly data, but I have only variables 'year' and 'month' in my data …
Remove duplicate observationsHi all, I use data from the American Housing Survey and I have the following issue with preparing t…
Fixed effect vs random effect vs OLSDear Sir, I have yearly panel data from 2008-2018 and 63 companies. My variables are: Dependent- ex…
xtgee outputHi how can I find the variance of the mean after xtgee? should I use SE to get Variance or is there …
Subscribe to:
Post Comments (Atom)
0 Response to Convert xy coordinate in meters to degrees in Stata
Post a Comment