<?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: Cliping A Map based on another Feature or Map in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541257#M33243</link>
    <description>&lt;P&gt;I'm not sure I quite understand what you mean by: " clip shape files based on the size of another shape file."&lt;/P&gt;
&lt;P&gt;Does that mean to have the same outside boundary?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 22:23:19 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-03-07T22:23:19Z</dc:date>
    <item>
      <title>Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541238#M33242</link>
      <description>&lt;P&gt;I am trying to recreate a map I creates using ESRI ArcGIS using SAS.&amp;nbsp; The first map below is what I originally created in ESRI. The second was created with SAS. In ESRI, I can clip shape files based on the size of another shape file but I haven't been able to figure out how to do this in SAS. The data set I am using can be down loaded from &lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;&lt;A href="https://data.hrsa.gov/data/download" target="_blank"&gt;https://data.hrsa.gov/data/download&lt;/A&gt;&lt;FONT color="#000000"&gt; under mental health chose the parent boundaries shape file.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;&lt;FONT color="#000000"&gt;Below is the SAS code I used to create the second map.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;&lt;FONT color="#000000"&gt;proc mapimport datafile="....../HPSA_PLYMH_SHP_DET_CUR_VX.shp"&lt;BR /&gt;out=MHShortageArea;&lt;BR /&gt;run;&lt;BR /&gt;proc gproject&lt;BR /&gt;data=MHShortageArea&lt;BR /&gt;out=MI_MHShortageArea&lt;BR /&gt;project=ALBERS degrees eastlong&lt;BR /&gt;parmentry=mi&lt;BR /&gt;dupok;&lt;BR /&gt;where CStFips eq "26";&lt;BR /&gt;id HpsSrcID;&lt;BR /&gt;run; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;&lt;FONT color="#000000"&gt;proc gmap data=MI_MHShortageArea map=MI_MHShortageArea RES=NONE ;&lt;BR /&gt;id HpsSrcID;&lt;BR /&gt;choro CStFips / nolegend levels=1 coutline=white;&lt;BR /&gt;run; quit;&lt;/FONT&gt;&lt;/SPAN&gt;&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="Capture v3.PNG" style="width: 470px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27753i0DCCF69C0B272D6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture v3.PNG" alt="Capture v3.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 523px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27754iAF654898F85B028A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 21:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541238#M33242</guid>
      <dc:creator>liztraore</dc:creator>
      <dc:date>2019-03-07T21:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541257#M33243</link>
      <description>&lt;P&gt;I'm not sure I quite understand what you mean by: " clip shape files based on the size of another shape file."&lt;/P&gt;
&lt;P&gt;Does that mean to have the same outside boundary?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 22:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541257#M33243</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-07T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541403#M33244</link>
      <description>&lt;P&gt;Yes, Clipping in ESRI allows you to make the outside boundaries the same.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541403#M33244</guid>
      <dc:creator>liztraore</dc:creator>
      <dc:date>2019-03-08T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541449#M33245</link>
      <description>&lt;P&gt;GPROJECT changes spherical coordinates so I am not quit sure that "clipping" would be an appropriate concept to try&amp;nbsp;with that procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try displaying the &lt;FONT face="Calibri" size="3"&gt;MHShortageArea data set with GMAP?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" size="3"&gt;Display size would be controlled typically by setting the GOPTIONS HSIZE and VSIZE, horizontal and vertical size and/or XMAX and YMAX.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541449#M33245</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-08T16:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541452#M33246</link>
      <description>&lt;P&gt;It isn't a projection issue. The shape file for what every reason included the water surrounding Michigan. I want to cut the water out so only the land associated with the state of Michigan is showing.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541452#M33246</guid>
      <dc:creator>liztraore</dc:creator>
      <dc:date>2019-03-08T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541544#M33247</link>
      <description>&lt;P&gt;Just to be clear, are you saying that the top map would be fine if the areas that are in white were completely missing, the way they are in the bottom map? Or are there other changes you need as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541544#M33247</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-03-08T19:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541551#M33248</link>
      <description>&lt;P&gt;No, the top map was produce in ESRI ARC GIS. Using the same shape file that was used in the second map but I was able to "clip" the map or modify the outer boarder so it didn't include the water surrounding Michigan. I am now trying to replicate the map using SAS as I don't have access to ESRI ARC GIS software any more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is the bottom map that I am trying to get to look like the top one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541551#M33248</guid>
      <dc:creator>liztraore</dc:creator>
      <dc:date>2019-03-08T19:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541583#M33253</link>
      <description>&lt;P&gt;Now I'm confused. I'm not an expert with SAS mapping, but I've used it a couple of times. Using the following code does a simple Michigan county map:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MI1;
	set mapsgfk.us_counties (where=(StateCode = "MI"));
run;

proc sql noprint;
	create table QData as select distinct County, 1 as DataVar
		from MI1 order by County;
quit;

pattern1 v=s c=aliceblue;

/* Draw the map */
proc gmap data=QData map=MI1 density=5 all;
	id county;
	choro DataVar / coutline="White";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MI1.png" style="width: 407px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27791i83C747790EB82380/image-size/large?v=v2&amp;amp;px=999" role="button" title="MI1.png" alt="MI1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That to me is identical to your ESRI map, except that a few counties aren't blanked out. I'm not sure what you mean about the "water surrounding Michigan". I don't see any water.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 20:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541583#M33253</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-03-08T20:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541593#M33255</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The map below highlights the water issue. I can't use the maps within SAS alone. I am bring a shape file in that was created by Health and Human Services. This shape file shows areas that they've designated as under served for mental health providers; which is most of Michigan.&amp;nbsp; This shape file includes the water (the great lakes) that is part of Michigan. I need to clip the shape file so the water isn't part of the map. The shape file that I am bringing in is the blue layer shown on the map below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Designations are a combination of counties, municipalities, and census tracks. So I can't create an excel file and then map that by county either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="MI HPSA Mental Health 2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27793i1CD8F27BE8633F7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MI HPSA Mental Health 2.PNG" alt="MI HPSA Mental Health 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 20:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541593#M33255</guid>
      <dc:creator>liztraore</dc:creator>
      <dc:date>2019-03-08T20:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cliping A Map based on another Feature or Map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541712#M33257</link>
      <description>&lt;P&gt;Now I understand. Thanks for the clarification!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, this goes beyond my basic knowledge of SAS mapping software (or any other mapping software, for that matter). Hopefully someone else will be able to provide some guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;BR /&gt;Tom&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 17:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cliping-A-Map-based-on-another-Feature-or-Map/m-p/541712#M33257</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-03-09T17:18:32Z</dc:date>
    </item>
  </channel>
</rss>

