<?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 MapServer exportMapImage - Device Resolution in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapserver-exportmapimage-device-resolution/m-p/192214#M4998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/com/esri/arcgis/carto/MapServer.html#exportMapImage(com.esri.arcgis.carto.IMapDescription, com.esri.arcgis.carto.IImageDescription)" rel="nofollow" target="_blank"&gt;MapServer exportMapImage&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the documentation, when exporting a map image, specifying a device resolution in IImageDisplay will affect map scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a method to calculate the correct device resolution for IImageDisplay based on the width and height you are setting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 15:38:03 GMT</pubDate>
    <dc:creator>LeoDonahue</dc:creator>
    <dc:date>2013-07-17T15:38:03Z</dc:date>
    <item>
      <title>MapServer exportMapImage - Device Resolution</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapserver-exportmapimage-device-resolution/m-p/192214#M4998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/com/esri/arcgis/carto/MapServer.html#exportMapImage(com.esri.arcgis.carto.IMapDescription, com.esri.arcgis.carto.IImageDescription)" rel="nofollow" target="_blank"&gt;MapServer exportMapImage&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the documentation, when exporting a map image, specifying a device resolution in IImageDisplay will affect map scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a method to calculate the correct device resolution for IImageDisplay based on the width and height you are setting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapserver-exportmapimage-device-resolution/m-p/192214#M4998</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-07-17T15:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer exportMapImage - Device Resolution</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapserver-exportmapimage-device-resolution/m-p/192215#M4999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With the help of Ameya N. from ESRI tech support I think we have it figured out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before you export the map image from MapServer, you need to know how much space the image is going to take up.&amp;nbsp; In my case, I was exporting the MapServer map image to be added to a pdf document.&amp;nbsp; In the pdf document, I had placed 36 pt (1/2 inch margins), so I know that I only have 7.5 inches to work with in the width area now, slightly less if I add a border to the map area in the pdf.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically you multiply 7.5 times the device resolution you want your image to have (say 100), and that gives you the width of the IImageDisplay width property, in this case 750.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I follow this, the MapServer map image that is exported and then printed from the pdf retains the correct map scale for features in the map image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, you have to set your map scale before you export the map image from MapServer, that is if you want to create a print of a known map scale.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 17:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapserver-exportmapimage-device-resolution/m-p/192215#M4999</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-07-17T17:23:44Z</dc:date>
    </item>
  </channel>
</rss>

