Recently in GIS Category

Here is the description from the ESRI Support Center website: "This script converts features in a KML file to an ESRI shapefile. KML files can be created by digitizing features in Google Earth. These data must be converted to a shapefile format before they can be used in a GIS. The script provides an easy method to convert these kml features to shapefiles. The shapefile retains the names, descriptions, and the Google Earth folder of the kml features. The script is run out of ArcToolbox and will work with any license level of ArcGIS 9.2 and 9.3. The tool's documentation describes its use. The accompanying word document describes how to load the toolbox into ArcToolbox."
I highly recommend this if you are using Google Earth to digitize information that you intend to use in ArcMap. Many thanks to Carrie Hritz for bringing the script to my attention.
This link can be used to gain free access to the ESRI virtual campus. The catalog of ESRI courses can be found here. Free access to Virtual Campus courses is a great way to cover basic ground on the use of GIS. Students are strongly encouraged to explore this fantastic free resource. Thanks to George Chaplin for bringing it to my attention.
After reformatting the card on the gun, there was no problem with gun orientation and no error warnings arose for the rest of the day. At the end of the workday, I attempted to transfer the files from the PCMCIA card to the laptop computer. While attempting to do this, I got the "Incorrect Function" error and the card would not read. Yes, back to square one and I did not want to reformat the card and lose all of the days work.
Today, I returned to Huacho (Peru) where I had a serial to USB cable stored for possible situations just like this. Previously, I had not been successful in getting this conversion cable to work properly. Today, it thankfully worked. Here is the make of the cable and what I did.
Cable make: Gigaware 6-tf USB-A to Serial Cable. It came with Driver CD 26-949. The cable has a box attached to it, and it is not a "simple" USB to Serial. It is a "fancy" one that has drivers and accepts some of the communication issues that Serial cables require. I strongly suggest having one of these or a similar cable up one's sleeve. Here is the URL:
http://www.radioshack.com/product/index.jsp?productId=3120513
Procedures for Windows XP:
1) I installed the drivers for the cable using the provided CD.
2) Then I attached the cable (w/o the gun or anything attached to the cable).
3) I waited for Windows to recognize the cable and to tell me that my new hardware was ready to use. It seems that Windows did an internet search for the driver. Strange considering that I believe the driver was just installed from the CD, but I fear that one may need an internet connection to do this. The lack of an internet connection may have been the reason this cable did not work successfully in Pukara (Peru).
4) I attached the Lemo cable (the one with the five pins, two notches, and the red line) on the Leica to its communication port (the one with the five holes and the two notches).
5) I attached the Serial to USB cable (still plugged in) to the Serial end of the Lemo cable that was just plugged into the Leica.
6) On windows, I opened up the System control panel and went to the Device Manager. There I looked for the RadioShack USB to Serial Cable and made note of which COM port it was using. In this case, the cable used COM5.
7) Then I put the total station into Geocom mode and started up Leica Geo Office.
8) I made sure that the settings on the COM5 port were correctly set in LGO data exchange manager.
9) Browse to the card and retrieve the necessary file.
In the end, I think this is a much better solution than formatting the PCMCIA in Windows. Note: from reading the reviews of the cable, I fear that this solution may not work with either Vista or Win 7--just be aware...
"As digital technologies are expanding the power and reach of research, they are also raising complex issues. These include complications in ensuring the validity of research data; standards that do not keep pace with the high rate of innovation; restrictions on data sharing that reduce the ability of researchers to verify results and build on previous research; and huge increases in the amount of data being generated, creating severe challenges in preserving that data for long-term use.
Ensuring the Integrity, Accessibility, and Stewardship of Research Data in the Digital Age examines the consequences of the changes affecting research data with respect to three issues - integrity, accessibility, and stewardship-and finds a need for a new approach to the design and the management of research projects. The report recommends that all researchers receive appropriate training in the management of research data, and calls on researchers to make all research data, methods, and other information underlying results publicly accessible in a timely manner. The book also sees the stewardship of research data as a critical long-term task for the research enterprise and its stakeholders. Individual researchers, research institutions, research sponsors, professional societies, and journals involved in scientific, engineering, and medical research will find this book an essential guide to the principles affecting research data in the digital age."

- Download data from WIST via LPDACC
- Wait for confirmation email
- Pull files from FTP directory indicated in confirmation email
- Unzip the compressed archive using 7-Zip
- Move the individual zipped tiles to the root directory and unzip all tile components to this root, a series of tif and xml files are produced. Write over the readme.pdf file, these are identical in all cases.
- Launch ArcCatalog and build pyramids using the "Batch Build Pyramids" tool.
- Do something else while that grinds away.
- More soon...
The band math is as follows:
(float(b4)-float(b5)) / (float(b4) + float(b5))
The equation must be performed with the float parameter.
Craig is presently applying this transformation to examine the spatial pattern of salinity in relation to the distribution of q'ochas in the northern Lake Titicaca Basin.
REFERENCE
Al-Khaier, F.
2003 Soil Salinity Detection Using Satellite Remote Sensing. Masters of Science, International Institute for Geo-Information Science and Earth Observation.
Another Interesting Reference:
14.00 Fernando Caceres, Hamid Ali-Ammar, Eric Pirard (Universite de
Liege, Belgium) - Mineral mapping in salt lakes from Sud Lipez
(Bolivia) using ASTER images.
This post suggests that record by record looping is not possible. Specifically, it states "You can't pass a row object to a gp tool" The first thread gives python code for taking a directory of feature classes and calculating pathdistance from those. The second thread tries to calculate costdistances on several records in a single file. The conclusion is that the single file with multiple records needs to be converted into multiple files each with one record. I believe that the crime analysis tools has the capability of taking multiple records and making a theme from each record.
Reading to the bottom of the post it looks like there is a python solution which will loop through.
Nico's most recent notes can be found here.
Here is the command line for PathDistance:
PathDistance_sa Places C:\WorkSpace\PathDis_Plac2 # dem5792 # 'BINARY 1 45' dem5792 'TABLE C:\WorkSpace\ToblerAway.txt' # C:\WorkSpace\PathDis_Bk2
Here is the command line for CostPath
CostPath Qocha_Centroid PathDis_Plac3 PathDis_Bk3 C:\WorkSpace\CostPat_Qoch1 EACH_CELL ORIG_FID
ViewShed for each DEM point / Weighed Distance
http://arcscripts.esri.com/details.asp?dbid=13500
This aml had to be run from workstation. Note: On first run, the aml failed. N Craig has contacted the author. Craig has a revised version.Automate viewshed analysis
http://arcscripts.esri.com/details.asp?dbid=14687Burn multipatch into DTM custom geoprocessing tool
http://arcscripts.esri.com/details.asp?dbid=15173This allows for buildings and other objects to be burned into a dem so that surface analysis can be performed in urban spaces.
Use ArcToolbox to repair geometry.
ArcToolbox --> Data Management Tools --> Features --> Repair Geometry
This procedure fixed the problem
In the following example, the cartographer has a data layer called "Strat" and the map should not illustrate features on this layer that are called "Bone", "Chert Fla", or "FAR".
To exclude these three specific categories from labels use the following expression:
NOT "Strat" = 'Bone' AND NOT "Strat" = 'Chert Fla' AND NOT "Strat" = 'FAR'
If the projection is not defined use Define Projection (Management)
When transforming from one projection to another use Project (Management)
Solution: Use ArcToolbox to reproject the raster into the current projection. Either select the projection from the list or import it from one of the other properly projected layers.
Sometimes
it can be a real bear to join tables in ArcGIS. If the column of both
tables has not been formatted exactly the same, the join operation may
not work properly. Sometimes ArcView can serve as a helpful workaround.
Once a table has been joined, there may be a need to make the joins
permanent. The Compiled Table Tools can be a helpful tool for performing this task.This Extension Adds Several Tools To Your Table Tool Bar . Most Are From ESRI's Web Site. The author compiled them into a single extension! Super useful.
- Import / Export to Excel
- Export to Word Processor
- Rename Fields
- Multi-Field Sort
- Multi-Field Delete
- Field & Table Properties
- Add Increment Field
- Auto ID with Prefix/Suffix
- Make Joins Permanent
- Append Tables
- Concatenate Fields
- Find Common Attributes
- Import From Txt File
- Find Duplicate in a Table and Tag
- Pad a Field
- Print Tables
- Zoom to Selected Shape by Selecting a Record in a Table
- Summarize Col and Row's
- Convert Text Data To/From {Upercase/Lowercase/Proper}
- Break Apart A String Field into new Fields by Each Word
- Merge Any Fields Together
- Hide/UnHide Fields (Sets Visibly)
- Add Formulas to Fields
- Calculate with Formulas Stored in a Field & Output to Existing or New Field
- Cut/Paste A Fields Contents
- Cut/Paste a Records Contents
- Duplicate Fields From one Table to Another Table
- Sort Fields Permanently
At present my two favorite geotagging programs are RoboGeo (ca. $30) and GeoSetter (FREE).
RoboGeo
Though it costs money, RoboGeo performs some fantastic functions that are not offered by many geotagging programs. Among the features that I like are:
- Time stamp images
- Geocode RAW (.CR5) files.
- Export to KML, KMZ, Google Maps
- Export ESRI shapefile. (Note, I'll be writing a post on this at a later date. The ability to export a geocoded photograph to a shapefile is a very powerful GIS data collection tool).
- Export to Autocad DXF
- Upload to Flickr and Yahoo Maps
- Associate Dictation files with individual photos. (This is very handy for note taking in the field).
GeoSetter
Free and powerful, GeoSetter is a GUI frontend for ExifTool--the mother of all image metadata editing programs. Unlike many free geotagging tools, GeoSetter will process RAW (.CR5) files. In my opinion, if you want to get started with geotagging this is the program to use.
GPS-Photo Link: GIS Pro Series
A somewhat expensive geotagging and photographic mapping software. It appears to also work with a laser rangefinder. Here is some information from their website:
• Users will now be able to indicate the direction they were facing when they took the photo.
GPS-Photo Link will automatically include directional information from a GPS's digital compass or the Ricoh camera's memo fields.
• A wedge indicating the Ricoh camera's field of view can be displayed as a shape file so users will know what is included in the picture when looking at the map.
• GPS-Photo Link now supports high resolution color photography from the USGS,
making your background maps more detailed and easier to read.
• USB capability allows the use of GPS receivers on PC's without a serial port hook-up.
• There are also changes to the ArcView Ricoh plug-in included with GPS-Photo
Link. The new version will output Personal GeoDatabases along with shape files
• Waypoint comments entered in the GPS can now be used as the default file
names for photos making it easier to find specific photos.
• Audio captured with a photo will be available to play as you enter attribute data
The following are a couple of GPS units that are used with a camera for geotagging. I do not use one of these units, I use a Garmin Forerunner 405cx. The advantages are that the unit is a wrist watch and it also has a heart rate monitor. The disadvantage is that the 405cx will only run for eight hours. During fieldwork I frequently have battery problems. Another disadvantage is that the 405cx does not output digital compass information.
GlobalSat BT-359 review
Qstarz BT Q1300 review
ATP PhotoFinder Mini review and another and yet one more and still another.
The following expressions can be used to calculate various parameters of polygons.
Ai as the Area of polygon i, and Li as its perimeter length, and Bi as the area of a circle with perimeter Li, then example measures include:
Perimeter/Area ratio (P1A):
ArcMap Field Calculator Expression: ([Shape_Length]/[Shape_Area])
Because the value of the index changes with the size of the figure, this ratio is unsatisfactory for most comparative applications.
Perimeter2/Area ratio (P2A):
Algebraic Formula:ArcMap Field Calculator Expression: ([Shape_Length]^2/[Shape_Area])
If preferred, this index, or its square root may be adjusted so that its value equals 1 when applied to a circle of the same area as Ai.
Shape Index or Compactness ratio (C):
ArcMap Field Calculator Expression: Sqr([Shape_Area]/(([Shape_Length]^2)/12.56))
This ratio is dimensionless (it is unaffected by the
size of the polygon) and it has a value of 1 for a circular region and a range of
[0,1] for all plane shapes. Sometimes the index is computed as [1‑Ci].
Many
useful functions are available at ESRI's ArcScripts. I also bookmark scripts that look especially useful for archaeology or anthropology. However, sometimes figuring out how to add this new script into ArcMap is so frustrating that it can feel like one is about to have their head chopped off...To help minimize these frustrations, this post details information on how to add user created scripts to ArcMap.

Scripts are
written in a number of different languages. Each of these
requires slightly different methods to connect the script to ArcMap.
It can be confusing to figure out how the scripts need to be integrated into the program so that the scripts can be used. Descriptions are given for adding functions in the following formats:
-
Arc Macro Language (AML)
-
Avenue
-
Visual Basic (VB, VBA, VBScript)
-
Python
-
Model Builder


Software, tutorials, and other links related integrating SketchUp and ArcMap
http://mapaspects.org/courses/gis-and-anthropology/workshop-2009-viewshed-and-cost-distance/ii-cost-distance-2009

- Add the new shapefile as a layer in ArcMap.
- Set a coordinate system for the shapefile--> double click Layers in the Table of Contents, select the Coordinate System tab, and choose the desired coordinate system. Click Apply.
- In the Editor menu--> start editing
- Set task in the Editor Toolbar to create new feature. Set target as the newly added layer.
- Use the sketch tool to create a new point feature.
- Assign coordinates to the new feature-->Double click the feature with the Editor tool to highlight it (the vertex should be green). Right click and scroll down to select properties. Change the x,y coordinates* in properties dialog box.
- Alternately, with the feature highlighted, click the properties icon on the Editor Toolbar to open the properties dialog box.
- In UTM northing = y and easting = x