<?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 Re: Proc GMAP projections in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703521#M20782</link>
    <description>&lt;P&gt;Are you starting with one of the SAS supplied maps?&lt;/P&gt;
&lt;P&gt;If so, then show the entire procedure for the projection and your Gmap code. Then we can duplicate, hopefully, your result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not be surprised if you have to trim out some of the outlying islands if using the MAPSGFK.Europe or similar. Any projection that maintains those is likely to be an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 23:09:33 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-03T23:09:33Z</dc:date>
    <item>
      <title>Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703508#M20780</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am creating a map of Europe. Maps are projected in a way that northern hemisphere countries like Denmark, Sweden etc. are displayed bigger and the central Europe dense and smaller.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, I'd like flat display (as in square map and not as in globe).&lt;/P&gt;
&lt;P&gt;I have tried to change from Albers to other different types of projections but doesn't seem to work.&lt;/P&gt;
&lt;P&gt;Will appreciate your tips. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 21:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703508#M20780</guid>
      <dc:creator>RealePrimavera</dc:creator>
      <dc:date>2020-12-03T21:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703516#M20781</link>
      <description>&lt;P&gt;"&lt;EM&gt;but doesn't seem to work&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you get a map or just error messages? Please show.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 22:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703516#M20781</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-12-03T22:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703521#M20782</link>
      <description>&lt;P&gt;Are you starting with one of the SAS supplied maps?&lt;/P&gt;
&lt;P&gt;If so, then show the entire procedure for the projection and your Gmap code. Then we can duplicate, hopefully, your result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not be surprised if you have to trim out some of the outlying islands if using the MAPSGFK.Europe or similar. Any projection that maintains those is likely to be an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 23:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703521#M20782</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-03T23:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703565#M20784</link>
      <description>&lt;P&gt;I am using Eurostat provided shapefiles where id is statistical region (that I cannot attach due to size). However, writing my (non-reproduceable) code below.&lt;/P&gt;
&lt;P&gt;My question is simple: In "proc gproject" project, have tried many options including albers, lambert, and other options that project the map in globe shape (see:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grmapref&amp;amp;docsetTarget=p0oknwbrj6gr01n1j2ig214b7ogy.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grmapref&amp;amp;docsetTarget=p0oknwbrj6gr01n1j2ig214b7ogy.htm&amp;amp;locale=en&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;Do you know any projection option/trick that project the map in square display? (I have already trimmed the unnecessary islands etc. from shape file). Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;libname drive "C:\local";&lt;/P&gt;
&lt;P&gt;proc gproject data=shapefile out=id dupok eastlong degrees project=albers;&lt;BR /&gt;id id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc greduce data=shapefile out=shapefile;&lt;BR /&gt;id id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;FILENAME drive "C:\local";&lt;BR /&gt;DEVICE=imgpng&lt;BR /&gt;xpixels=1000&lt;BR /&gt;ypixels=1000&lt;BR /&gt;transparency &lt;BR /&gt;GSFNAME=drive &lt;BR /&gt;GSFMODE=REPLACE &lt;BR /&gt;NOFILEONLY;&lt;BR /&gt;pattern1 c=cxeff3ff;&lt;BR /&gt;pattern2 c=cxbdd7e7;&lt;BR /&gt;pattern3 c=cx6baed6;&lt;BR /&gt;pattern4 c=cx3182bd;&lt;BR /&gt;pattern5 c=cx08519c;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ods listing;&lt;/P&gt;
&lt;P&gt;proc gmap data=value map=shapefile density=0 all;&lt;BR /&gt;id id;&lt;BR /&gt;choro bin/cdefault=white cempty=black;&lt;BR /&gt;label bin=value;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods listing close;&lt;BR /&gt;ods output;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 08:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703565#M20784</guid>
      <dc:creator>RealePrimavera</dc:creator>
      <dc:date>2020-12-04T08:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703567#M20785</link>
      <description>"but doesn't seem to work" = "any options of project (e.g., lambert, gnonom) doesn't seem to project the map in square form instead of globe form". &lt;BR /&gt;I have these problems because my data covers entire Europe and other neighbor countries. The globe shape (as we see in the world globe) displays northern countries like Denmark bigger and the central countries like Germany, Netherlands, France much smaller. Thank you.</description>
      <pubDate>Fri, 04 Dec 2020 08:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703567#M20785</guid>
      <dc:creator>RealePrimavera</dc:creator>
      <dc:date>2020-12-04T08:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703612#M20786</link>
      <description>&lt;P&gt;Could you provide an example (image/screen-capture/etc) of a Europe map that you *do* like. Then we'll know what sort of projection/look you're striving for...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703612#M20786</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-12-04T13:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703639#M20787</link>
      <description>&lt;P&gt;Basically, I think the ultimate answer will be in using Proc Gproject's to= option (which allows you to use any proj.4 projection), rather than using the project= (which only allows you to specify some of the more common projections by name).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The proj.4 projection strings can be a bit daunting, therefore SAS has placed several of them in the sashelp.proj4def dataset, where the 'name' column contains shortcut names you can use. I have gone through all the ones that have 'Europe' in the description field, and&amp;nbsp;"ESRI:37201" appears to be the most 'square'. Here's some sample code showing how to use Gproject's to= option (you can specify a shortcut from the table, or a full proj.4 string):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data europe; set mapsgfk.europe (drop = x y);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc gproject&lt;/STRONG&gt; data=europe out=europe latlong eastlong degrees&lt;BR /&gt;latmax=70.9 longmin=-12 &lt;STRONG&gt;to="ESRI:37201"&lt;/STRONG&gt;;&lt;BR /&gt;id id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap data=europe map=europe;&lt;BR /&gt;id id;&lt;BR /&gt;choro segment / levels=1 nolegend coutline=gray55;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is the output from the above code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="europe.png" style="width: 800px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52294i274A2DA3D12EAB25/image-size/large?v=v2&amp;amp;px=999" role="button" title="europe.png" alt="europe.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703639#M20787</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-12-04T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703662#M20788</link>
      <description>&lt;P&gt;One of our mapping developers also provided the following suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"You could also point them to &lt;A href="https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspatialreference.org%2F&amp;amp;data=04%7C01%7CRobert.Allison%40sas.com%7C1a7bb75ae57640d54ff708d8986717a0%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C1%7C637426915826398474%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=9fyzwlavlsZYO%2FD4yA2R%2BL%2BjivvzSbzXEGatI059aSs%3D&amp;amp;reserved=0" target="_blank"&gt;http://spatialreference.org&lt;/A&gt; to peruse other projections they may want to try.&amp;nbsp; As long as it has EPSG or ESRI in the code, we should support it.&amp;nbsp;&lt;A href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspatialreference.org%2Fref%2F%3Fsearch%3Deurope&amp;amp;data=04%7C01%7CRobert.Allison%40sas.com%7C1a7bb75ae57640d54ff708d8986717a0%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C1%7C637426915826408428%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=mRGcA2189LRSy93eDZ7zksfq7EpyFZEo75OI2QbteR4%3D&amp;amp;reserved=0" target="_blank"&gt;https://spatialreference.org/ref/?search=europe"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703662#M20788</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-12-04T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703698#M20789</link>
      <description>&lt;P&gt;Thank you for recreating this map here. It kind of provided me "square" map that I was looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But now realizing (also confirmed from your map) that its possibly a problem of actual sizes of the country.&amp;nbsp; (Inserted an example below where my values are categorized and in the countries like Germany, Belgium it's too dense.) I'd rather keep the entire map than clipping the parts.&amp;nbsp; In case, you know quick fixing. Thanks a lot! For fast solutions.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52297iEEDE22961E1ED35A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 18:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703698#M20789</guid>
      <dc:creator>RealePrimavera</dc:creator>
      <dc:date>2020-12-04T18:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703730#M20790</link>
      <description>&lt;P&gt;You may also investigate the techniques for displaying disparate areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have Proc Gmap is suspect that you have the MAPS library and should be able to run this code.&lt;/P&gt;
&lt;PRE&gt;proc gmap data=maps.us
          map= maps.us
;
  id statecode;
  choro statecode / nolegend;
run;&lt;/PRE&gt;
&lt;P&gt;The states of Alaska and Hawaii are not shown in their actual positions because there is a lot of ocean between Hawaii and the US main land and Alaska has Canada between it and the lower 48 states. Plus the size of Alaska is much larger than Texas, so the map has that bit reduced, and Hawaii has the islands enlarged, relative to the main scale of the map, because otherwise they would be pretty small.&lt;/P&gt;
&lt;P&gt;So perhaps you could treat Scandinavia similar to Alaska: clip that part out make a slightly reduced scale version and then recombine with the rest of the Europe data but Scandinavia placed off set and smaller.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not a trivial exercise, especially getting the relative X, Y coordinates offset in the reduced size to mate will with the rest of Europe but doable.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 21:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/703730#M20790</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-04T21:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GMAP projections</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/704396#M20792</link>
      <description>This looks like a last option. I am going to try it today and see. I will update about final outcome. Thank you.</description>
      <pubDate>Tue, 08 Dec 2020 13:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GMAP-projections/m-p/704396#M20792</guid>
      <dc:creator>RealePrimavera</dc:creator>
      <dc:date>2020-12-08T13:26:10Z</dc:date>
    </item>
  </channel>
</rss>

