Click here to see the SAS code.
Click here to see the example.
Note: This is using the 'old' technique for determining the coordinate system
of the floorplan image. I have since come up with a better/easier way, where
I use the x/y-pixels of the image itself as the coordinate system.
==============================================================================
First, I found an image of a Home Depot floorplan at the following location ...
http://assi-cad.com/depot.html
and saved it as "hdr2.jpg".
Then, I brought up the image using 'xv' (image viewer/editor)
on unix, and right-clicked on it, and noted that the dimensions
were 635 by 458 (635 is in the x/horizontal-direction).
See xsize & ysize macro variables.
I then create a sas/graph map dataset containing 1 single map area,
with corners at the same x/y coordinates as the gif map/image
so that my map area/coordinates have the same proportions as the
Home Depot floorplan map/image.
I can now annotate the red stars on the map/image.
If I use the map/data coordinate system (xsys=2/ysys=2) then I
am assured that once I determine the x/y coordinates of each item/shelf,
those coordinates will always line up on the same location when I
annotate the stars.
To determine the x/y coordinates, I generate a grid of circles that
I annotate on the map, and I mouse over the desired areas and look
at the x/y values in the mouseover/charttip. I lookup the info for
each item/shelf, and save the x/y coordinates in a sas data set which
I can reuse later to determine what x/y coordinate to place the
stars for which item/shelf.
Back to Samples Index