Showing posts with label ArcGIS. Show all posts
Showing posts with label ArcGIS. Show all posts

Tuesday, 31 July 2012

Maps, maps and more maps

Looking for something to fill a bit of time?
Here's a few maps, I've been impressed by lately - some are just cool, others do things in interesting ways (but need a little more work!), but all are worth a look

Real time geo-located twitter feeds (tweets).  
Says a lot about time and resource dependent use of tech.
http://pure-waterfall-1016.herokuapp.com/


Print your own 3D model of part of the Earth
I CAN.NOT.WAIT to do this

http://www.landprint.com/

Geovisualization of time
Such an interesting example of how to map time and distance rather than space and distance.  Shows how far you can get from Amsterdam Central and makes use of train timetables.  Great job.
http://app.timemaps.nl/map


Interactive online ESRI/ArcGIS map
Shows whether current crop production can meet future demand.
The slider is a nice touch but not sure if it fully functions here - must remember for future though!
http://storymaps.esri.com/stories/feedingtheworld/


Wednesday, 15 February 2012

Arcpy Code: Find duplicate values in an ArcGIS feature class field

I'm finding coding in arcpy a little more frustrating than I would like and decided to share useful code here in case it helps anyone else trying to the same or similar things.


###########################################
# identifyduplicates.py
# Created by: Mairead de Roiste, Victoria University of Wellington
# Date: 16 Feb 2012
# What does it do?: prints to screen a list of the values that are

# duplicates in a particular field in an ArcGIS feature class
###########################################


# Import arcpy module
import arcpy

# set up variables
# the feature class you want to sort then search

fc = "D:\\ISCR_transport\\code\\data\\NZTA_workhomepoints\\workhomepoints.gdb\\workloc"

# field to sort in ascending order
fieldname = "FIRST_uniquePerson"fieldascend = fieldname + " A"

# create UpdateCursor to search through the rows, field above sorted in ascending order
rows = arcpy.SearchCursor(fc,"","","", fieldascend)

#Create an empty list
dupValuesList = []

# the code needs to be updated for the name of the field
i = -1
for row in rows:
    if i == -1: #first time around       

        value = row.FIRST_uniquePerson
        i += 1
        print value, i
    elif row.FIRST_uniquePerson != value: #if a new ID       

        value = row.FIRST_uniquePerson
        i = 0
    else:
        dupValuesList.append(value)

print dupValuesList

Monday, 15 August 2011

Installing ArcGIS on a Mac

Have a Mac and want to install ArcGIS? Some helpful folks have developed a how to guide - available at http://www.esricanada.com/k12_docs/BP_ArcGIS_on_Mac.pdf