Skip to content

Instantly share code, notes, and snippets.

@johnjreiser
Created March 26, 2012 16:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnjreiser/2206339 to your computer and use it in GitHub Desktop.
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.
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)
@SKalt
Copy link

SKalt commented Nov 14, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment