BookmarkSubscribeRSS Feed
Anpu
Calcite | Level 5

Hello,

I have a dataset contains x,y and lat long value for my study area in Canada. I plotted Gmap (Block), my grid boundaries were not displayed. I thought my dataset was not geocoded. I tried to geocode my data by I couldn't.

I also want to find the number of grids from selected x,y with a varying radius. Any suggestions, Please advise me.

Many thanks 

M.Anputhas

2 REPLIES 2
Anpu
Calcite | Level 5

The data set looks like this

data deepcrek;

input ID idwsd areacode x y Actual Simulated;

cards;

2 1 2 50.636685 -119.295393 2 2

3 1 3 50.636260 -119.288352 2 2

4 1 4 50.635835 -119.281311 2 2

35 1 35 50.632214 -119.296062 2 2

36 1 36 50.631789 -119.289021 2 2

37 1 37 50.631363 -119.281981 2 2

38 1 38 50.630938 -119.274941 2 2

39 1 39 50.630511 -119.267902 2 2

40 1 40 50.630085 -119.260862 2 2

41 1 41 50.629657 -119.253823 2 2

.

.

.

.

.....................

................................

ballardw
Super User

Lat and long don't need to be geocoded but may need to be transformed and projected to match the area you want to map. If you look at the coordinates in MAPS.Canada you will see that the x values range from -0.35 to 0.49 and y from -0.33 to 0.36.

The documentation for Proc Gproject should help.

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1162 views
  • 0 likes
  • 2 in conversation