<?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 Problem adding HTML to PROC GMAP in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132864#M5145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 30px;"&gt;I have encountered a problem when trying to add a title to an html map.&amp;nbsp; I imported a shape file from ESRI (which had about 9 million data points), ran a GREDUCE, limited to density &amp;lt;=1 and then a GPROJECT and used the code below to map.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;proc gmap data=SR_Proj map=SR_Proj;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;id SRV_REGN;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;choro SRV_REGN / nolegend html=SR_HTML;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;quit;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Note: I am only using a data file equal to the map file to test the data boundaries.&amp;nbsp; The code above works when I exclude the HTML statement, but when I include it, I get the follwing error message and no map results:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;ERROR: Integer divide by zero.&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;ERROR: Termination due to Floating Point Exception&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;I've been researching that error message and most of the results seem to do with divide by 0 errors, missing data errors and such (I have confirmed there is no missing data in my HTML field), not related to GMAP.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 21:58:06 GMT</pubDate>
    <dc:creator>P5C768</dc:creator>
    <dc:date>2013-05-08T21:58:06Z</dc:date>
    <item>
      <title>Problem adding HTML to PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132864#M5145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 30px;"&gt;I have encountered a problem when trying to add a title to an html map.&amp;nbsp; I imported a shape file from ESRI (which had about 9 million data points), ran a GREDUCE, limited to density &amp;lt;=1 and then a GPROJECT and used the code below to map.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;proc gmap data=SR_Proj map=SR_Proj;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;id SRV_REGN;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;choro SRV_REGN / nolegend html=SR_HTML;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;quit;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Note: I am only using a data file equal to the map file to test the data boundaries.&amp;nbsp; The code above works when I exclude the HTML statement, but when I include it, I get the follwing error message and no map results:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;ERROR: Integer divide by zero.&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;ERROR: Termination due to Floating Point Exception&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;I've been researching that error message and most of the results seem to do with divide by 0 errors, missing data errors and such (I have confirmed there is no missing data in my HTML field), not related to GMAP.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 21:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132864#M5145</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2013-05-08T21:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding HTML to PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132865#M5146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your map isn't proprietary/secret, it would be great if you could get us a copy of it, so we can try to reproduce (and fix) this bug.&amp;nbsp; We would hopefully like to handle all cases with something more graceful than a divide-by-zero &amp;amp; Floating Point Exception! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your immediate need, perhaps we can come up with a work-around ... You mention that you're using the map also as your data=.&amp;nbsp; Since your map sounds like it's pretty big, could you maybe try creating a data= data set with just 1 single observation for each map area? (that way, gmap won't have to decide which of the multiple/duplicate sr_html variables to use).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work-around the problem, perhaps you could try subsetting the map to see if it works OK with the html on just a small subset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, could you post up the line(s) of code you're using to create the sr_html variable, and also do a proc print and post up what the output of the variable looks like?&amp;nbsp; Oh, and it might be useful to know what version of SAS you're using (9.2, 9.3?) in case it might be some bug that has recently been fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 01:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132865#M5146</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-05-09T01:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding HTML to PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132866#M5147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish my map was secret, I would feel much cooler.&amp;nbsp; However, your idea of reducing it down to smaller areas did seem to work.&amp;nbsp; I was able to map about 12 states/60k records before I started getting the error, so it does seem to indicate a space issue.&amp;nbsp; Ultimately I was trying to add an html title to find areas I was missing (my ESRI data is a dissolve of zip codes to a office region level) and what I discovered was that I am only missing data where no zip code is assigned, such as some national parks and northwest Maine.&amp;nbsp; As always, thanks for the help Robert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 18:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-adding-HTML-to-PROC-GMAP/m-p/132866#M5147</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2013-05-10T18:55:30Z</dc:date>
    </item>
  </channel>
</rss>

