Can't add raster image (.jpg) with world file (.jgw).

4370
9
09-09-2010 01:15 PM
KevinCudmore
New Contributor
Error "Unknown Coordinate System".  Coordinate system is UTM NAD83 Zone 13.
0 Kudos
9 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

Are you using ArcGIS Explorer 1500? (if not it would be best to upgrade).

Have you downloaded the projection engine expansion pack? (http://resources.arcgis.com/content/arcgis-explorer/1500/download)

Do you have ArcGIS Desktop? - if so try opening the raster in ArcCatalog and taking a look at the coordinate system listed in the raster properties.

Regards

Mike
0 Kudos
ErwanCaradec
New Contributor II
Hi,
i'm currently working on a widget development for the FlexViewer 2.1 wich can take snapshots of an area of the map displayed. I woul'd like ArcGIS Explorer's users be able to load the image saved as JPEG image.

The widget let the user save the image as jpeg with world file (.jgw) generated, without coordinate system. The jpeg image can be correctly imported and positionned in ArcMap if the same coordinate system as the flex map is used, but ArcGIS Explorer can't load it. "Unknown Coordinate System" error occured. I'm using version 2.0.0.1500 with the projection engine expansion pack.

Attached there's an example zip file generated containing a snapshot of Louisville sample service in CGS_WGS_1984.

Beta version of the widget can tested here http://erwan.caradec.pagesperso-orange.fr/flexViewer/index.html?config=configs/tests/config.xml

Is there a solution ?

Regards.

Erwan Caradec
0 Kudos
AndreiIvanov
New Contributor III
Erwan,

in order to add raster to ArcGIS Explorer it needs to have projection file, i.e. MapSnapshot.jpg.aux.xml

Example for GCS_WGS_1984:

<PAMDataset>
   <SRS>
     GEOGCS["GCS_WGS_1984",DATUM["GCS_WGS_1984",
     SPHEROID["GCS_WGS_1984",6378137.0,298.257223563]],
     PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
  </SRS>
</PAMDataset>
0 Kudos
ErwanCaradec
New Contributor II
Thanks Andriy,
where coul'd i find aux file description for others coordinate system ?

I can generate one by one with ArcMap using the right coordinate system but it's not very easy.

Erwan
0 Kudos
AndreiIvanov
New Contributor III
Erwan,

why not to generate world file in WGS_1984? ArcMap or ArcGIS Explorer can reproject it on a fly.

I've done same way with my add-in "Georeferencing":

http://www.arcgis.com/home/item.html?id=7f362afd85984387ad3b570a68c81f17

It does affine transformation on a raster, stores world and projection data in WGS_1984, then ArcGIS Explorer reprojects raster on a fly.

Hope it helps!
0 Kudos
ErwanCaradec
New Contributor II
Great tool and really easy to use !

I solved my problem adding the .prj files needed, corresponding to the map's coordinate system well known ID (wkid). So the aux.xml files are correctly generated and the images saved from the FlexViewer can now be added to ArcGIS Explorer as raster data.
http://www.arcgis.com/home/item.html?id=3803b1ec34b446b684b80a067e4d133c

Thanks for your help Andriy !

Regards.

Erwan
0 Kudos
AndreiIvanov
New Contributor III
Erwan, nice job! I verified that your tool works great now in ArcGIS Explorer!
0 Kudos
DianeMcConnaughey
Occasional Contributor
ArcGIS 9.3.1 - Unable to read/ use jgw with jpg raster.  State Plane Feet Idaho West FIPS 1103.  ArcGIS does not "see" the spatial reference.    I have tried  setting the data frame properties then adding data, as well as using project define,  No luck.  These were provided by someone who may be using ArcGIS 10.
0 Kudos
KeithAddison1
Occasional Contributor III

Does anyone have a way to make ArcGIS (Map, Pro, they all have this problem) recognize the spatial ref of a jpg?  Aux file is there, jgw file is there, Pro is just doesn't recognize it as a coordinate system and says its unprojected, even though it does actually locate it correctly in the map.

0 Kudos