Created
March 26, 2012 16:29
-
-
Save johnjreiser/2206339 to your computer and use it in GitHub Desktop.
buildPAMS - a function to return a NJ PAMS pin for GIS parcels. Python code for use in ArcGIS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def buildPAMS(mun, blk, lot, qua=None): | |
"""Returns a PAMS Pin from three or four cadastre fields.""" | |
if (qua == None) or (qua == ''): | |
return "%s_%s_%s" % (mun, blk, lot) | |
else: | |
return "%s_%s_%s_%s" % (mun, blk, lot, qua) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note from the NJ GIS parcel mapping standard: a pams_pin should be max 38 characters in length: 4 mun, 10 blk, 10 lot, 11 qua if present, 3 underscores if qua present. Hope this helps others specifying unified postgis table schemas.