Quantcast
Channel: 懒得折腾
Viewing all articles
Browse latest Browse all 764

MOE GIS portal data update

$
0
0

To change the tool tip, go to Language -> Caption Editor -> Permit To TAke Water – 2013_tolltip

OPERATIONS.PTTW_20120913: run a python script
EMR_PUB.PARCEL_OWNERSHIP_WITHPIN: add one field
EMR_PUB.PARCEL_CROWN

# ---------------------------------------------------------------------------
# PTTW.py
# Created on: Thu Apr 11 2013 01:44:22 PM
#   (generated by ArcGIS/ModelBuilder)
# ---------------------------------------------------------------------------

# Import system modules
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

# Load required toolboxes...
gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx")

# Local variables...
PTTW__2_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__3_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__4_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__5_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__6_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__7_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__8_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__9_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__10_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__11_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__12_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__13_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__14_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW__15_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW"
PTTW_Project__2_ = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW_Project"
PTTW_project = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW_Project"
PTTW_project_1 = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW_Project"
PTTW_projected_2 = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW_Project"
PTTW_Project = "C:\\working\\PTTW\\20130411\\test\\PTTW.gdb\\PTTW_Project"

# Process: Add Field...
gp.AddField_management(PTTW__3_, "OUTOFUTM", "DOUBLE", "", "", "", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (2)...
gp.AddField_management(PTTW__2_, "NOUTM", "DOUBLE", "", "", "", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (3)...
gp.AddField_management(PTTW, "PERMIT_UC", "TEXT", "", "", "50", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (4)...
gp.AddField_management(PTTW__4_, "FILENO_UC", "TEXT", "", "", "200", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (5)...
gp.AddField_management(PTTW__5_, "CLNTNM_UC", "TEXT", "", "", "200", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (6)...
gp.AddField_management(PTTW__6_, "CLNTNO_UC", "TEXT", "", "", "150", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (7)...
gp.AddField_management(PTTW__7_, "LATITUDE", "DOUBLE", "16", "8", "", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (8)...
gp.AddField_management(PTTW__8_, "LONGITUDE", "DOUBLE", "16", "8", "", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (9)...
gp.AddField_management(PTTW__9_, "ID", "TEXT", "", "", "500", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Add Field (10)...
gp.AddField_management(PTTW__10_, "LEGEND", "TEXT", "", "", "50", "", "NULLABLE", "NON_REQUIRED", "")

# Process: Calculate Field...
gp.CalculateField_management(PTTW__11_, "PERMIT_UC", "UCase ( [PERMITNO] )", "VB", "")

# Process: Calculate Field (2)...
gp.CalculateField_management(PTTW__12_, "FILENO_UC", "UCase ( [FILENO]  )", "VB", "")

# Process: Calculate Field (3)...
gp.CalculateField_management(PTTW__13_, "CLNTNM_UC", "UCase ( [CLIENTNAME] )", "VB", "")

# Process: Calculate Field (4)...
gp.CalculateField_management(PTTW__14_, "CLNTNO_UC", "UCase ( [CLIENTNO] )", "VB", "")

# Process: Project...
gp.Project_management(PTTW__15_, PTTW_Project, "GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]", "", "PROJCS['MNR_Lambert_Conformal_Conic',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Lambert_Conformal_Conic'],PARAMETER['False_Easting',930000.0],PARAMETER['False_Northing',6430000.0],PARAMETER['Central_Meridian',-85.0],PARAMETER['Standard_Parallel_1',44.5],PARAMETER['Standard_Parallel_2',53.5],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]")

# Process: Calculate Field (7)...
gp.CalculateField_management(PTTW_project, "ID", "[PERMITNO] & \"--\" & Str( [UTMZONE] )& \"--\" & [SOURCEID]", "VB", "")

# Process: Calculate Field (5)...
gp.CalculateField_management(PTTW_Project, "LATITUDE", "pPoint.Y", "VB", "Dim pGeo As IGeometry\\n Set pGeo = [Shape]\\n Dim pPoint As IPoint\\n Set pPoint = pGeo")

# Process: Calculate Field (6)...
gp.CalculateField_management(PTTW_Project__2_, "LONGITUDE", "pPoint.X", "VB", "Dim pGeo As IGeometry\\n Set pGeo = [Shape]\\n Dim pPoint As IPoint\\n Set pPoint = pGeo")

# Process: Calculate Field (8)...
gp.CalculateField_management(PTTW_project_1, "LEGEND", "result", "VB", "dim result as String\\n\\nif [ACTIVE] = 'No' then\\n    result   =  'No'\\nend if\\n\\nif [ACTIVE] = 'Yes' then\\n    result   =  'Yes' & \"-\" & [SURFGRND]\\nend if")



Viewing all articles
Browse latest Browse all 764

Trending Articles