<?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 WMS: Blank image returned, Feature Count: 0 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/wms-blank-image-returned-feature-count-0/m-p/714281#M15876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: yohanb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying out the ArcGIS API for Flex sample called &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;WMS Layers on/off&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already have a MapService with the WMS capability running in my ArcGIS Server 10 SP2 and tried replacing the URL in the sample with my own, as a test. My URL looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;http://AZIVMYOHAN01:8399/arcgis/services/POC_BROMONT_THREE_LAYERS/MapServer/WMSServer?EXCEPTIONS=INIMAGE&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My service is started and I also see it in my rest/services page&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when I run the sample with only this modification, the only thing the server sends back are blank images of the width and height specified by the WMS GetMap request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I spent hours trying to figure out what's wrong, I've inspected the log files in verbose mode (using Eclipse's LogViewer plugin for highlighting) and there's isn't any error . The server says it's successful in serving the binary request but always ends up with a result of 5673 bytes, which is a black png of size 1380x730.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the rest services page is says the EPSG is 3395, so I also tried forcing the CRS to 3395 in the WMS request sent from the sample code to match since otherwise it was sending 4326. It didn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add my service in ArcGIS Explorer, as a test, the layers are displayed properly. Although they are displayed as one (I can't turn on/off specific layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm hoping someone could give me a clue or tip on how I could figure out why the server is returning blank images. I'm out of ideas. One thing I have noticed in the logs, is that the Feature Count is 0. If that is the reason why the images are blank, then the question is: why is it 0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have included a log excerpt, the XML returned for the GetCapabilities request, a screenshot of my rest services page and a screenshot of the GetMap query sent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 20:39:32 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-05-26T20:39:32Z</dc:date>
    <item>
      <title>WMS: Blank image returned, Feature Count: 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/wms-blank-image-returned-feature-count-0/m-p/714281#M15876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: yohanb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying out the ArcGIS API for Flex sample called &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;WMS Layers on/off&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already have a MapService with the WMS capability running in my ArcGIS Server 10 SP2 and tried replacing the URL in the sample with my own, as a test. My URL looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;http://AZIVMYOHAN01:8399/arcgis/services/POC_BROMONT_THREE_LAYERS/MapServer/WMSServer?EXCEPTIONS=INIMAGE&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My service is started and I also see it in my rest/services page&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when I run the sample with only this modification, the only thing the server sends back are blank images of the width and height specified by the WMS GetMap request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I spent hours trying to figure out what's wrong, I've inspected the log files in verbose mode (using Eclipse's LogViewer plugin for highlighting) and there's isn't any error . The server says it's successful in serving the binary request but always ends up with a result of 5673 bytes, which is a black png of size 1380x730.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the rest services page is says the EPSG is 3395, so I also tried forcing the CRS to 3395 in the WMS request sent from the sample code to match since otherwise it was sending 4326. It didn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add my service in ArcGIS Explorer, as a test, the layers are displayed properly. Although they are displayed as one (I can't turn on/off specific layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm hoping someone could give me a clue or tip on how I could figure out why the server is returning blank images. I'm out of ideas. One thing I have noticed in the logs, is that the Feature Count is 0. If that is the reason why the images are blank, then the question is: why is it 0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have included a log excerpt, the XML returned for the GetCapabilities request, a screenshot of my rest services page and a screenshot of the GetMap query sent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 20:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/wms-blank-image-returned-feature-count-0/m-p/714281#M15876</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-26T20:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: WMS: Blank image returned, Feature Count: 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/wms-blank-image-returned-feature-count-0/m-p/714282#M15877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: yohanb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok I've finally been able to see something, it appears the problem is with the extent. Even when I tried to force EPSG:3395 the WMS request was still using a BBOX value for another EPSG. I had not noticed. I tried forcing an extent as well and the layers finally displayed, feature count is now ok too. I added this in &amp;lt;esri:Map&amp;gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:extent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:Extent xmin="-8100949.5328330025" ymin="5634733.364931424" xmax="-8083915.623765184" ymax="5642782.006028707"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="3395" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/esri:Extent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:extent&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm confused as to why the WMS GetCapabilities request says that CRS:84 and EPSG:4326 are also available, when it appears they are not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 11:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/wms-blank-image-returned-feature-count-0/m-p/714282#M15877</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-27T11:47:35Z</dc:date>
    </item>
  </channel>
</rss>

