<?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: gmap version of maps.counties that uses Connecticut planning regions instead of counties in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/986555#M25892</link>
    <description>&lt;P&gt;When using the new CT imported from the shapefile, it is already projected, there you will not need to run the "proc gproject" on it (unless you want some other projection, in which case you can use Jeff's suggestion to deproject and get the lat/long values, so you can re-project it using any projection you want).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example of importing the shapefile, and plotting the already-projected map:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mapimport datafile="/home/u59782200/data/CT_Planning_Regions/CT_Planning_Regions.shp" out=raw_ct;
run;

proc gmap data=raw_ct map=raw_ct;
id ObjectID;
choro planningRE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="foo.png" style="width: 800px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114322i4C09F4C07F3054F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="foo.png" alt="foo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I notice that your title mentions &lt;STRONG&gt;maps.counties.&lt;/STRONG&gt;&amp;nbsp;Note that the 'maps' library is the old/legacy SAS maps (perhaps from 1996 vintage), and you'll probably want to use the latest 'mapsgfk' library instead (for your maps other than CT). Specifically &lt;STRONG&gt;mapsgfk.us_counties&lt;/STRONG&gt; (the dataset label indicates this map is based on 2021 map data in the version of SAS I'm using).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2026 15:08:26 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2026-04-20T15:08:26Z</dc:date>
    <item>
      <title>gmap version of maps.counties that uses Connecticut planning regions instead of counties</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985303#M25860</link>
      <description>&lt;P&gt;The current maps.counties&amp;nbsp; uses counties instead of the planning regions as implemented by Connecticut around the 2023 timeframe. I need to make a Connecticut map using&amp;nbsp; planning regions.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 21:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985303#M25860</guid>
      <dc:creator>bablumenstein</dc:creator>
      <dc:date>2026-03-24T21:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: gmap version of maps.counties that uses Connecticut planning regions instead of counties</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985349#M25861</link>
      <description>&lt;P&gt;You can download this publicly available shapefile and import it into a SAS dataset using PROC MAPIMPORT.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://geodata.ct.gov/datasets/ctmaps::ct-planning-regions-1/explore?location=41.516459%2C-72.761756%2C8" target="_blank"&gt;https://geodata.ct.gov/datasets/ctmaps::ct-planning-regions-1/explore?location=41.516459%2C-72.761756%2C8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 13:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985349#M25861</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2026-03-25T13:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: gmap version of maps.counties that uses Connecticut planning regions instead of counties</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985376#M25862</link>
      <description>&lt;P&gt;Remember to create a library other than work to store the resulting imported data set or you will have to re-import the data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 20:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985376#M25862</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2026-03-25T20:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: gmap version of maps.counties that uses Connecticut planning regions instead of counties</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985483#M25863</link>
      <description>I assume you can see the response I got in response to my query. I will try&lt;BR /&gt;to explain the problem despite I cannot attach a simple PDF file that&lt;BR /&gt;illustrates the issue.&lt;BR /&gt;&lt;BR /&gt;Please note that I am new to using GMAP but have been successful in making&lt;BR /&gt;maps serving my project goal in all states except CT. The reason for CT&lt;BR /&gt;failure is that CT changed from 8 counties to 9 planning regions around&lt;BR /&gt;2024 and I therefore needed a version of USA.counties that used planning&lt;BR /&gt;regions instead of counties. The version of USA.counties supplied by SAS&lt;BR /&gt;is based on CT counties applicable before the change to planning regions.&lt;BR /&gt;&lt;BR /&gt;(It seems that the X and Y coordinates in USA.counties are based on&lt;BR /&gt;radians. Correct?)&lt;BR /&gt;&lt;BR /&gt;I used PROC MAPIMPORT on the shape file identified in the response to my&lt;BR /&gt;query. When I use the results of the import in PROC GPROJECT it responds&lt;BR /&gt;that the X and Y in the imported CT file are out of the allowed ranges,&lt;BR /&gt;suggesting they might not be radians.&lt;BR /&gt;&lt;BR /&gt;I am at a loss regarding how to convert the X and Y in the imported CT&lt;BR /&gt;shape file to radians as required by PROC GPROJECT.&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2026 13:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985483#M25863</guid>
      <dc:creator>bablumenstein</dc:creator>
      <dc:date>2026-03-27T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: gmap version of maps.counties that uses Connecticut planning regions instead of counties</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985512#M25864</link>
      <description>&lt;P&gt;The shape file is in projected coordinates for Connecticut State Plane (&lt;A href="https://spatialreference.org/ref/epsg/6434/" target="_self"&gt;EPSG:6434&lt;/A&gt;).&amp;nbsp; This is a bit ugly, as we don't have a lookup for that code available, but this will convert it to lat/lon degrees:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;proc gproject data=ct out=newct proj=proj4 to="EPSG:4326"
from="+proj=lcc +lat_0=40.8333333333333 +lon_0=-72.75 +lat_1=41.8666666666667 +lat_2=41.2 +x_0=304800.609601219 +y_0=152400.30480061 +ellps=GRS80 +units=us-ft +no_defs";
id PlanningRe;
run;&lt;/PRE&gt;
&lt;P&gt;I used "PlanningRe" as the ID as that seemed easier to link to later.&amp;nbsp; You could use "OBJECTID" if you wanted.&amp;nbsp; Depends on what you used in MAPIMPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if I can be of any more assistance.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;BTW, I looked in the .prj file from the shapefile download to get an approximation of what projection was being used.&amp;nbsp; Then I went to &lt;A href="https://spatialreference.org" target="_blank"&gt;https://spatialreference.org &lt;/A&gt;and searched for "connecticut" to get a list of projections they use regularly.&amp;nbsp; Then it was a matter of matching up the Esri WKT strings.&amp;nbsp; Wish there was an easier way, but it may help down the road if you run into importing and projection issues in the future.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 14:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/985512#M25864</guid>
      <dc:creator>JeffP</dc:creator>
      <dc:date>2026-03-27T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: gmap version of maps.counties that uses Connecticut planning regions instead of counties</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/986555#M25892</link>
      <description>&lt;P&gt;When using the new CT imported from the shapefile, it is already projected, there you will not need to run the "proc gproject" on it (unless you want some other projection, in which case you can use Jeff's suggestion to deproject and get the lat/long values, so you can re-project it using any projection you want).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example of importing the shapefile, and plotting the already-projected map:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mapimport datafile="/home/u59782200/data/CT_Planning_Regions/CT_Planning_Regions.shp" out=raw_ct;
run;

proc gmap data=raw_ct map=raw_ct;
id ObjectID;
choro planningRE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="foo.png" style="width: 800px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114322i4C09F4C07F3054F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="foo.png" alt="foo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I notice that your title mentions &lt;STRONG&gt;maps.counties.&lt;/STRONG&gt;&amp;nbsp;Note that the 'maps' library is the old/legacy SAS maps (perhaps from 1996 vintage), and you'll probably want to use the latest 'mapsgfk' library instead (for your maps other than CT). Specifically &lt;STRONG&gt;mapsgfk.us_counties&lt;/STRONG&gt; (the dataset label indicates this map is based on 2021 map data in the version of SAS I'm using).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 15:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gmap-version-of-maps-counties-that-uses-Connecticut-planning/m-p/986555#M25892</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2026-04-20T15:08:26Z</dc:date>
    </item>
  </channel>
</rss>

