Okay so the second solution is not very elegant but it is effective as I could not figure out any way to actually project an ECW file.
Solution 2 – Changing the Format of Your ECW File This is a pretty simple solution but admittedly it is not actual solving the ECW projection issue. It will not however change the unrecognized but assumed projection of the current map session if an unprojected file, like the ECW here, is loaded first and then a projected shapefile is. In a quick sentence, ArcGIS sets the projection of the map session to that of the first file you load, so if the second (and subsequent) files you load are in this same projection, ArcGIS assumes the projections match and the data appears in its correct location.
This process is called on-the-fly projections and is a topic we have covered in the past here. However, if I were to load the same projected shapefile first and then the unrecognized ECW file, viola, there would be a map projection for the current session and they would line up. Now, if I were to load a shapefile, for example, properly set in the same projection as the ECW that intersects the imagery, the current map session would still not have a projection. In the example above, the first thing I did was load the ECW files which did not have a known projection. Perhaps ECW world files cannot be created for the simple fact of naming conventions as the file format already ends in a W?Īnyhow, let’s get back to the topic at hand.
A second related theory is that World Files are commonly appended to spatial files where projection information cannot be stored in the metadata, take for example JPEG2000 world files called. Or perhaps, according to the GDAL website, ECW files can only assume “common” projections.
HOW TO DETERMINE PROJECTION OF ARCGIS FILE SOFTWARE
First, the GeoTIFF file format has metadata tags inside the file which can be read by spatial software solutions like ArcGIS and so I would assume ECW files do not have these similar metadata tags that store projection information. The issue with ECW files is that they appear not to hold a projection even if you try to define one, see this Esri blog post as we are not the only ones that faced this.Īs a quick side note to this discussion, I have a few theories on why ECW files cannot be projected. In many cases, this is an easy problem to solve in that you can use the Define Projection toolbox function to set the projection if it is known. When I tried to load the 50+ ECW tiles given to me by our client, I received the all too common warning in ArcMap about an Unknown Spatial Reference which usually means your data might have coordinates that Arc recognizes but is not exactly sure which projection they refer too. In fact, only ArcGIS would even load the tiles but they did not have a projection so it was my goal to figure out a work around which is also the topic of this GTM! Solution 1 – Change the Order in Which You Load Spatial Files When we tried to work with the ECW imagery tiles, we quickly hit a road block as the software we typical use for orthorectification would not recognize the ECW files. The goal was to improve the spatial accuracy of the WorldView-2 dataset so that it matched the older dataset which happened to be in compressed ECW format. We had a project in Texas where we were asked to match a newly collected WorldView-2 dataset to an older orthorectified imagery layer from the same location. So it is the focus of this edition of the Geospatial Tip of the Month (GTM) to offer a few tips for working with compressed ECW imagery files in ArcGIS.Ī little history here for our readers before I jump into this GTM. And while it would be excellent if these compressed formats work as nicely as “native” GeoTIFF imagery files do, that has not been the case for us often. As the resolution of imagery increases so do file sizes which means it is rather common for us to work with source raster data in a compressed format such as ECW, MrSID or JPEG2000.