Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: Re: [gislist] Select and Copy Aerial Photos to Another DirectoryProgrammatically
Date:  11/10/2006 08:45:00 AM
From:  Losso Ekolo



Hi All,

My problem has been resolved thanks to David.
He mailed me an mxd file from where I executed the code.
It was 100% successful. Once more thanks for your help.
If anyone needs it, I'm ready to send it over.

Kind Regards,

Losso Ekolo

-----Original Message-----
From: David Lamb [mailto:dslamb@acewater.com]
Sent: 09 November 2006 05:30 PM
To: Losso Ekolo
Subject: RE: [gislist] Select and Copy Aerial Photos to Another
DirectoryProgrammatically

Losso,

That's strange. This time I attached an mxd file with a button that
should launch the form. Maybe the form became corrupt when it was
emailed. Did you receive any error messages when you tried to run the
program?

David

-----Original Message-----
From: Losso Ekolo [mailto:l.ekolo@netgroup.co.za]
Sent: Thursday, November 09, 2006 3:28 AM
To: David Lamb
Subject: RE: [gislist] Select and Copy Aerial Photos to Another
DirectoryProgrammatically

David,

It seems you left out the code.
Because it can't run it both 9 & 9.1
I did an extensive search on Esri Forum but couldn't get a solution.
I'll appreciate you patience.

Regards,


Losso


-----Original Message-----
From: David Lamb [mailto:dslamb@acewater.com]
Sent: 08 November 2006 05:53 PM
To: Losso Ekolo
Subject: RE: [gislist] Select and Copy Aerial Photos to Another
DirectoryProgrammatically

Losso,

You can give this a try, it was written with 9.1 but should probably
work with 9.0.

Attached is a form, you will have to import it into your mxd. You
should select your grid first, or you can go through all the features at
once. When you launch it, you select the feature class and then the
field name that has the image in it. I didn't know how your images were
stored. If they are just a geotiff then they don't have a bunch of
associated extra files with it. Jpegs on the other hand might have
three files that need to be copied. So that's why I chose to only
accept image names, and then you manually select the different
extensions for the images. I hope that makes sense. If the file
already exists in the "to" folder, then the program automatically
overwrites it.

The code is pretty simple, and the function to copy the images is
separated from cycling through the features, so you can change that
around based on your image field.

You could also check out the downloads section, or even the forums for
other scripts to do this.

http://support.esri.com/index.cfm?fa=knowledgeBase.gateway

David

-----Original Message-----
From: Losso Ekolo [mailto:l.ekolo@netgroup.co.za]
Sent: Wednesday, November 08, 2006 1:52 AM
To: David Lamb
Subject: RE: [gislist] Select and Copy Aerial Photos to Another
DirectoryProgrammatically

Hi David,

Sorry, I forgot to mention that I'm using ArGIS 9.
The code you sent works fine for simple copy.
I don't have a programming background.
I want a code that will copy based on a criteria or a table.
Something like:


For Each Record/Name

IN Grid_Index

For Each Image/Name

If Grid_Index.Name = Image_Name.Name

Copy files to New Destination

Loop

Regards,

Losso


-----Original Message-----
From: David Lamb [mailto:dslamb@acewater.com]
Sent: 07 November 2006 05:45 PM
To: Losso Ekolo
Subject: RE: [gislist] Select and Copy Aerial Photos to Another
DirectoryProgrammatically

Losso,

What software are you using? This could be done fairly easily using vba
in ArcMap. You can copy files using vba:

Public Sub copyFile()
Dim SourceFile As String
Dim Destination As String

SourceFile = "c: est.xls"
Destination = "c: empcopiedTest.xls"
FileCopy SourceFile, Destination
End Sub

David

-----Original Message-----
From: gislist-bounces@lists.geocomm.com
[mailto:gislist-bounces@lists.geocomm.com] On Behalf Of Losso Ekolo
Sent: Tuesday, November 07, 2006 3:44 AM
To: gislist@lists.geocomm.com
Subject: [gislist] Select and Copy Aerial Photos to Another
DirectoryProgrammatically

Hi Listers, I don't know if anyone knows of a script or a tool that I
can use to extract Aerial photo programmatically from a directory after
clipping the Grid index .My workflow looks as follows:

1. Select features from layer (Sheet_Index) that intersects with
features from layer (Study_Area)

2. Export select features to new feature class (Study_Area_Sheet_Index)

3. Select and copy corresponding sheets (based on attribute field
Sheet_Number) to directory B.

I know this can be done manually but it is very time consuming
especially when you're working with over 350 Sheets.
Alternatively, I created a raster catalogue but it doesn't suit the
purpose because, time and again I'll have to extract sheets for
different areas to be used in different projects. I'll appreciate you
suggestions.


Dir:APhotos |Study_Area_Sheet_Index| New Dir:B
----------------------------------------------------
100A.tiff

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group