Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Automate creating Rectified files from georeferenced images
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
George Corea  
View profile  
 More options Jul 13 2011, 12:41 am
From: George Corea <core...@gmail.com>
Date: Tue, 12 Jul 2011 21:41:53 -0700 (PDT)
Local: Wed, Jul 13 2011 12:41 am
Subject: Automate creating Rectified files from georeferenced images
I have georeferenced a few hundred survey plans using the
Georeferencing toolbar in ArcGIS but did not Rectify the images (i.e
create a new rectified image) as I didn't want to create new files and
take up more space. Now when I want to open them up in ERDAS or
MapInfo they don't accept the georeferencing process and require a new
file to be created using Rectify-->Save As

I found a tool to do this "Create Ortho Corrected Raster Dataset" but
the python script for it gives errors when I try.

[code]
import arcpy import glob import os  path = os.getcwd() filename = path
+"\Stage2_19" #for pathname, directories, filenames in os.walk(path):
#    for filename in filenames: #        if
filename.lower().endswith(".TIF"): arcpy.GetMessages()
arcpy.CreateOrthoCorrectedRasterDataset_management(filename+".TIF",
\                                                    filename+".jpg",
\
"CONSTANT_ELEVATION", "0")  arcpy.GetMessages() print "Created: " +
filename + ".jpg"

[/code]

[output]
Traceback (most recent call last): File "Q:\Software\GIS\ESRI
\ArcGIS10\CustomScripts\temp\Georef-Rectified.py", line 16, in
"CONSTANT_ELEVATION", "0") File "C:\Program Files\ArcGIS
\Desktop10.0\arcpy\arcpy\management.py", line 7815, in
CreateOrthoCorrectedRasterDataset raise e ExecuteError: ERROR 000425:
Failed to create ortho-corrected raster dataset Failed to execute
(CreateOrthoCorrectedRasterDataset).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Priour  
View profile  
 More options Jul 13 2011, 12:37 pm
From: Matt Priour <mpri...@gmail.com>
Date: Wed, 13 Jul 2011 11:37:32 -0500
Local: Wed, Jul 13 2011 12:37 pm
Subject: Re: Automate creating Rectified files from georeferenced images
I would imagine that ArcGIS wrote a projection metadata "sidecart"
file (either in XML format or as a world file; same name as image file
but different extension).

I would try to use GDAL (http://gdal.org) command line utility
gdalinfo (http://gdal.org/gdalinfo.html) and see if it can understand
the rectification information. If it can't then your task becomes more
difficult and your going to have to re-do the rectification either
manually or with some kind of batch script. If you want to use Python
for this and not be dependant on ArcPy, then use the Python api for
libgdal and create a batch script that will read control points from a
file, apply them to the image and output a rectified image. gdal_warp
does this as a command line tool for individual images. You could
create a script that uses the command line tool rather than
"re-inventing the wheel".

If gdalinfo can understand the rectification info, then you can use
gdal_translate to write it that info in a more standards compliant way
that ERDAS & MapInfo should understand. If the command line utility
works then you can either write a simple batch or shell script that
executes the utility for a number of files, or you can use the Python
api for libgdal and create a batch processing script.

Hope that is at least somewhat helpful

Matt Priour


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »