<?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 Adding Georeferenced Images to the Map in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495700#M11368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've been looking into how you can add georeferenced jpegs to a flex map using their associated world (jgw) files.&amp;nbsp; Judging by the lack of information out there on this topic, I have a feeling it isn't possible yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've gathered the following parameters on world files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 1: A, pixel size in the x-direction in map units/pixel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 2: &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; rotation about y-axis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 3: B: rotation about x-axis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 4: E: pixel size in the y-direction in map units, almost always negative[3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 5: C: x-coordinate of the center of the upper left pixel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 6: F: y-coordinate of the center of the upper left pixel &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried adding the image to the map using &amp;lt;mx:image&amp;gt;, but the only properties that I could import form the world file are rotationY (line 2) and rotationX (line 3).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to do this?&amp;nbsp; Is it even possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 22:19:47 GMT</pubDate>
    <dc:creator>JasonLevine</dc:creator>
    <dc:date>2011-02-17T22:19:47Z</dc:date>
    <item>
      <title>Adding Georeferenced Images to the Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495700#M11368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've been looking into how you can add georeferenced jpegs to a flex map using their associated world (jgw) files.&amp;nbsp; Judging by the lack of information out there on this topic, I have a feeling it isn't possible yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've gathered the following parameters on world files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 1: A, pixel size in the x-direction in map units/pixel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 2: &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; rotation about y-axis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 3: B: rotation about x-axis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 4: E: pixel size in the y-direction in map units, almost always negative[3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 5: C: x-coordinate of the center of the upper left pixel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 6: F: y-coordinate of the center of the upper left pixel &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried adding the image to the map using &amp;lt;mx:image&amp;gt;, but the only properties that I could import form the world file are rotationY (line 2) and rotationX (line 3).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to do this?&amp;nbsp; Is it even possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 22:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495700#M11368</guid>
      <dc:creator>JasonLevine</dc:creator>
      <dc:date>2011-02-17T22:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Georeferenced Images to the Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495701#M11369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You have a long road ahead of you... Here is a starting place:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://thunderheadxpler.blogspot.com/2009/02/ground-overlays-on-maps.html"&gt;http://thunderheadxpler.blogspot.com/2009/02/ground-overlays-on-maps.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 00:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495701#M11369</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-02-18T00:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Georeferenced Images to the Map - Next Chapter</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495702#M11370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason ended up implementing our images as PictureMarkerSymbols, since we had an associated layer of the shapes of the rectified images. We get the geometry from the layer file and then size and position the PictureMarkerSymbol accordingly. The resizing needs to be done after every change in zoom level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, however, we are experiencing what I think is a timing issue related to the file size of the image. Somewhere between 5.5 mb and 6.5 mb, the images do not load. No error is returned but all I can come up with is the asynchronous processing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for implementation suggestions, given that I don't know when the PictureMarkerSymbol is ready. I've tried using CallLater to add them and, since there could be a list of desired images, pushing all of the PictureMarkerSymbols into an array and adding them to the graphics layer after traversing the list. Neither adds the larger files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If a bit of code will help you visualize the process, here's what I'm currently toying with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; public function georeference(event:*):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; georeferenceLayer.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; anchorPoint = map.extent.center;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var level:Number = map.level;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var currentResolution:Number = map.lods[level].resolution;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var widthInPixels:Number = new Number();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var heightInPixels:Number = new Number();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var geoImageSymbol:PictureMarkerSymbol = new PictureMarkerSymbol();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var subdivisionExtent:Extent = new Extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var xOffset:Number = new Number;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var yOffset:Number = new Number;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (level &amp;gt; 13)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imageArray = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var k:int = 0; k&amp;lt;subdivisionArray.length; k++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (subdivisionArray&lt;K&gt;.isSelected == true)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widthInPixels = subdivisionArray&lt;K&gt;.widthInUnits/currentResolution;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; heightInPixels = subdivisionArray&lt;K&gt;.heightInUnits/currentResolution;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subdivisionExtent = subdivisionArray&lt;K&gt;.subdivisionExtent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xOffset = (subdivisionExtent.center.x - map.extent.center.x)/currentResolution;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yOffset = (subdivisionExtent.center.y - map.extent.center.y)/currentResolution;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geoImageSymbol = new PictureMarkerSymbol(PRINT_CENTER+subdivisionArray&lt;K&gt;.filename,widthInPixels,heightInPixels,xOffset,yOffset,0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //georeferenceLayer.add(geoImage);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imageArray.push(geoImageSymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (imageArray.length &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (k = 0; k&amp;lt;imageArray.length; k++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var geoImage:Graphic = new Graphic(anchorPoint,imageArray&lt;K&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; georeferenceLayer.add(geoImage);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Please zoom in closer to view subdivision maps.");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If timing is my issue, how can I wrap it to get around this problem? I would greatly appreciate any suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-georeferenced-images-to-the-map/m-p/495702#M11370</guid>
      <dc:creator>MarthaSelig1</dc:creator>
      <dc:date>2021-12-11T21:48:03Z</dc:date>
    </item>
  </channel>
</rss>

