BookmarkSubscribeRSS Feed
Betty_sam
Obsidian | Level 7

Hi,

 

I want to convert Lambert (XY= (521387.001,204215.954)) to WGS84 ( LAT-LONG).

 

Any help plz ? 

 

Thanks in advance

2 REPLIES 2
BrunoMueller
SAS Super FREQ

Proc GPROJECT can help you with this. See the FROM= and TO= options. The SASHELP.PROJ4DEF contains some common values to be used for the FROM= and TO= options.

 

Here is an example on how to convert the swiss coordinate system to WGS84. You will have to lookup the proper values as needed.

 

By the way, where is the point you mentioned


data lv95;
  x = 600000;
  y = 200000;
  id = 1;
run;
proc gproject 
  data=lv95
  out=wgs84
  project=proj4  
  from="EPSG:21781" /* CH1903+ / LV95 */ 
  to="EPSG:4326";  /* WGS 84 */ 
  id id;
run;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1041 views
  • 4 likes
  • 3 in conversation