<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alberta map - rotate to center on page in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Alberta-map-rotate-to-center-on-page/m-p/325819#M11431</link>
    <description>&lt;P&gt;Statistics Canada has released the files for the new census boundaries and I'm trying to create a map for Alberta.&lt;/P&gt;
&lt;P&gt;The data they provide is for all of Canada, so if I map all of Canada the map appears correct, but if I map only Alberta it's rotated. I'd like to rotate it a centered version, more similar to what you'd see in Google Maps - with the top boundary parallel to the top of the page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a straightforward option to do this? GPROJECT? My Google/Search is failing me today &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a data step version to create the file required for mapping, in a text file (zipped because it was too big otherwise) and the code to create the map is below.&lt;/P&gt;
&lt;P&gt;Other features that would be nice, that I'll work on next:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create HTML where a mouse hover shows CSD name and population (from DATA table)&lt;/LI&gt;
&lt;LI&gt;Full AB boundaries, even if no information is present.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gmap map=alberta_CSD2016;
   id csdname  ;
choro csdname; 
run; 
quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 21:57:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-01-18T21:57:16Z</dc:date>
    <item>
      <title>Alberta map - rotate to center on page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Alberta-map-rotate-to-center-on-page/m-p/325819#M11431</link>
      <description>&lt;P&gt;Statistics Canada has released the files for the new census boundaries and I'm trying to create a map for Alberta.&lt;/P&gt;
&lt;P&gt;The data they provide is for all of Canada, so if I map all of Canada the map appears correct, but if I map only Alberta it's rotated. I'd like to rotate it a centered version, more similar to what you'd see in Google Maps - with the top boundary parallel to the top of the page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a straightforward option to do this? GPROJECT? My Google/Search is failing me today &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a data step version to create the file required for mapping, in a text file (zipped because it was too big otherwise) and the code to create the map is below.&lt;/P&gt;
&lt;P&gt;Other features that would be nice, that I'll work on next:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create HTML where a mouse hover shows CSD name and population (from DATA table)&lt;/LI&gt;
&lt;LI&gt;Full AB boundaries, even if no information is present.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gmap map=alberta_CSD2016;
   id csdname  ;
choro csdname; 
run; 
quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 21:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Alberta-map-rotate-to-center-on-page/m-p/325819#M11431</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-18T21:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alberta map - rotate to center on page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Alberta-map-rotate-to-center-on-page/m-p/326064#M11440</link>
      <description>&lt;P&gt;Looking at the data in your map data set, it appears to be projected.&lt;/P&gt;
&lt;P&gt;It is a similar projection to our MAPSGFK.CANADA data set. &amp;nbsp;If you do all of Canada it is on the same angle as when you display Alberta only. &amp;nbsp;You need to find what projection it is in to "unproject" it with Proc GPROJECT and the PROJ4 options (From= and To=).&lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data alberta;  set mapsgfk.canada; 
  /*Uncomment for UNPROJECTED*/ /*x=long; y=lat;*/ 
  if id1="CA-48" then output; run;
proc gmap map=alberta data=alberta; id id; choro id; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is MAPSGFK.CANADA projected and unprojected:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6805i81D5579E75BE4489/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="projected.PNG" title="projected.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6806i96109425CB3CAC39/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="unprojected.PNG" title="unprojected.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 17:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Alberta-map-rotate-to-center-on-page/m-p/326064#M11440</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2017-01-19T17:58:26Z</dc:date>
    </item>
  </channel>
</rss>

