POST
|
Thanks Chris. I was able to get something that worked for me, although it is not as elegant as I would have liked. I placed the Lawn 2.jpg in the assets\3D_City_Design_Assets\Material_Library\BlocksPavers\ folder. Then I changed the rule to: HardscapeStep2 --> case texturingOn: setupProjection(0, scope.xz, 5*Pathway_Scale, 5*Pathway_Scale) projectUV(0) texture(materialDirectory + "BlocksPavers/" + "Lawn 2.jpg") #texture(materialDirectory + "BlocksPavers/" + Pathway_Type + ".jpg") HardscapeStep3 else: HardscapeStep3 This removes the hardscape and matches the lawn. You can still see a difference. Something with the spacing on the pathway scale that is not quite right maybe. But for largescale perspectives it is ok. Would like to have a lawn option in the hardscape dropdown if there is way. Right now the rule is just hardcoded to override the hardscape, which could get confusing if I forget. I saw what you did to the rule--adding cases to the FrontYard option, but for some reason it is not working in the dropdown.
... View more
11-06-2015
12:59 PM
|
0
|
0
|
652
|
POST
|
Chris, I still get only Formal and Natural for Green_Space_Type after I replaced the rule files as instructed. Let me know if I need to recompile or something. Thanks! Jake
... View more
10-26-2015
01:38 PM
|
0
|
2
|
652
|
POST
|
Any ideas on how to modify Redlands Redevelopment Rule (v2015) to (A) eliminate hardscape (pathways) in rear yards and/or (B) specify maximum building footprint in a cga rule (Redlands Redev. or other)? See the attached image for the problems. You will see around A there is pathways in the rear yard that is unrealistic, specifying unit width in the rule has no effect. In B in the attached image you will see that on some parcels buildings are created that are long and not reflective of proposed single family condition.
... View more
10-19-2015
08:31 AM
|
1
|
4
|
2960
|
POST
|
Hey David, Just getting going with this. How do you change the overall street width. It seems like I can't vary the overall width and adding components (medians, bike lanes, etc.) is just adding stuff where there is no room. Any help/documentation to assist with this would be great. Thanks! Jake P.
... View more
03-06-2015
09:20 AM
|
0
|
1
|
1719
|
POST
|
Slight modification to script below: import arcpy arcpy.env.overwriteOutput=1 inFC = r"C:\GIS\IncidentData\November\982292_Setandinterpolatemsbetween\UserData\PwkTransportationFDSCopyNovember2011.gdb\RouteCopySubsetNov2" #Update path to the feature class toField = "MILEMARKER_END" #Update name of the To Measure Field fromField = "MILEMARKER_BEGIN" #Update name of the From Measure Field routeID = "ROUTEID" #Update name of Route ID field desc = arcpy.Describe(inFC) shapeField = desc.shapeFieldName print shapeField oidField = desc.OIDFieldName print oidField oidQueryName = arcpy.AddFieldDelimiters(inFC, oidField) g = arcpy.Geometry() #Create update cursor on input feature class rows = arcpy.UpdateCursor(inFC) #Make feature layer from input feature class arcpy.MakeFeatureLayer_management(inFC, "featureLayer") #loop through rows in feature layer and select each OID for row in rows: arcpy.SelectLayerByAttribute_management("featureLayer", "New_Selection", oidQueryName + "=" + str(row.getValue(oidField))) #create geometry object from each feature row geomList = arcpy.CreateRoutes_lr("featureLayer", routeID, g, "TWO_FIELDS", fromField, toField) #update shape field for input feature class for each row (replace M values) row.setValue(shapeField, geomList[0]) rows.updateRow(row) arcpy.Delete_management("featureLayer") del row, rows
... View more
11-14-2011
12:17 PM
|
0
|
0
|
245
|
POST
|
Posted the below at forum post 34274. I do not think it is possible to remeasure routes via the field calculator using python or VBA. However, you could use a script similar to the following to recalculate m values for an existing route feature class. I would change the reference to the feature class and to/from fields and run it in IDLE or PythonWin. It simulates the functionality of the setandinterpolatemsbetween arcobjects command. import arcpy arcpy.env.overwriteOutput=1 inFC = r'C:\GIS\IncidentData\November\982292_Setandinterpolatemsbetween\test.gdb\routes_w_MPs' #Update path to the feature class toField = "BEGMP1" #Update name of the To Measure Field fromField = "ENDMP1" #Update name of the From Measure Field desc = arcpy.Describe(inFC) shapeField = desc.shapeFieldName oidField = desc.OIDFieldName oidQueryName = arcpy.AddFieldDelimiters(inFC, oidField) g = arcpy.Geometry() #Create update cursor on input feature class rows = arcpy.UpdateCursor(inFC) #Make feature layer from input feature class arcpy.MakeFeatureLayer_management(inFC, "featureLayer") #loop through rows in feature layer and select each OID for row in rows: arcpy.SelectLayerByAttribute_management("featureLayer", "New_Selection", oidQueryName + "=" + str(row.getValue(oidField))) #create geometry object from each feature row geomList = arcpy.CreateRoutes_lr("featureLayer", toField, g, "TWO_FIELDS", fromField, toField) #update shape field for input feature class for each row (replace M values) row.setValue(shapeField, geomList[0]) rows.updateRow(row) arcpy.Delete_management("featureLayer") del row, rows Many thanks to Chris F. in Redlands for creating this. Slight modifications to the script. See below: import arcpy arcpy.env.overwriteOutput=1 inFC = r"C:\GIS\IncidentData\November\982292_Setandinterpolatemsbetween\UserData\PwkTransportationFDSCopyNovember2011.gdb\RouteCopySubsetNov2" #Update path to the feature class toField = "MILEMARKER_END" #Update name of the To Measure Field fromField = "MILEMARKER_BEGIN" #Update name of the From Measure Field routeID = "ROUTEID" #Update name of Route ID field desc = arcpy.Describe(inFC) shapeField = desc.shapeFieldName print shapeField oidField = desc.OIDFieldName print oidField oidQueryName = arcpy.AddFieldDelimiters(inFC, oidField) g = arcpy.Geometry() #Create update cursor on input feature class rows = arcpy.UpdateCursor(inFC) #Make feature layer from input feature class arcpy.MakeFeatureLayer_management(inFC, "featureLayer") #loop through rows in feature layer and select each OID for row in rows: arcpy.SelectLayerByAttribute_management("featureLayer", "New_Selection", oidQueryName + "=" + str(row.getValue(oidField))) #create geometry object from each feature row geomList = arcpy.CreateRoutes_lr("featureLayer", routeID, g, "TWO_FIELDS", fromField, toField) #update shape field for input feature class for each row (replace M values) row.setValue(shapeField, geomList[0]) rows.updateRow(row) arcpy.Delete_management("featureLayer") del row, rows
... View more
11-14-2011
12:14 PM
|
0
|
0
|
492
|
POST
|
Richard, I do not know a way to work with the non-linear geometries in arcpy. I would suspect, as you have, that it is not possible. I would start a new forum thread and ask (if you haven't already). If you don't get an answer you can always submit an idea at http://ideas.arcgis.com.
... View more
11-09-2011
08:33 AM
|
0
|
0
|
492
|
POST
|
Link to other thread is http://forums.arcgis.com/threads/34274-remeasure-routes-in-field-calculator-using-python.
... View more
11-09-2011
04:25 AM
|
0
|
0
|
492
|
POST
|
Posted the below at forum post 34274. I do not think it is possible to remeasure routes via the field calculator using python or VBA. However, you could use a script similar to the following to recalculate m values for an existing route feature class. I would change the reference to the feature class and to/from fields and run it in IDLE or PythonWin. It simulates the functionality of the setandinterpolatemsbetween arcobjects command. import arcpy arcpy.env.overwriteOutput=1 inFC = r'C:\GIS\IncidentData\November\982292_Setandinterpolatemsbetween\test.gdb\routes_w_MPs' #Update path to the feature class toField = "BEGMP1" #Update name of the To Measure Field fromField = "ENDMP1" #Update name of the From Measure Field desc = arcpy.Describe(inFC) shapeField = desc.shapeFieldName oidField = desc.OIDFieldName oidQueryName = arcpy.AddFieldDelimiters(inFC, oidField) g = arcpy.Geometry() #Create update cursor on input feature class rows = arcpy.UpdateCursor(inFC) #Make feature layer from input feature class arcpy.MakeFeatureLayer_management(inFC, "featureLayer") #loop through rows in feature layer and select each OID for row in rows: arcpy.SelectLayerByAttribute_management("featureLayer", "New_Selection", oidQueryName + "=" + str(row.getValue(oidField))) #create geometry object from each feature row geomList = arcpy.CreateRoutes_lr("featureLayer", toField, g, "TWO_FIELDS", fromField, toField) #update shape field for input feature class for each row (replace M values) row.setValue(shapeField, geomList[0]) rows.updateRow(row) arcpy.Delete_management("featureLayer") del row, rows Many thanks to Chris F. in Redlands for creating this.
... View more
11-09-2011
04:21 AM
|
0
|
0
|
492
|
POST
|
I do not think it is possible to remeasure routes via the field calculator using python. However, you could use a script similar to the following to recalculate m values for an existing route feature class. I would change the reference to the feature class and to/from fields and run it in IDLE or PythonWin. It simulates the functionality of the setandinterpolatemsbetween arcobjects command. import arcpy arcpy.env.overwriteOutput=1 inFC = r'C:\GIS\IncidentData\November\982292_Setandinterpolatemsbetween\test.gdb\routes_w_MPs' #Update path to the feature class toField = "BEGMP1" #Update name of the To Measure Field fromField = "ENDMP1" #Update name of the From Measure Field desc = arcpy.Describe(inFC) shapeField = desc.shapeFieldName oidField = desc.OIDFieldName oidQueryName = arcpy.AddFieldDelimiters(inFC, oidField) g = arcpy.Geometry() #Create update cursor on input feature class rows = arcpy.UpdateCursor(inFC) #Make feature layer from input feature class arcpy.MakeFeatureLayer_management(inFC, "featureLayer") #loop through rows in feature layer and select each OID for row in rows: arcpy.SelectLayerByAttribute_management("featureLayer", "New_Selection", oidQueryName + "=" + str(row.getValue(oidField))) #create geometry object from each feature row geomList = arcpy.CreateRoutes_lr("featureLayer", toField, g, "TWO_FIELDS", fromField, toField) #update shape field for input feature class for each row (replace M values) row.setValue(shapeField, geomList[0]) rows.updateRow(row) arcpy.Delete_management("featureLayer") del row, rows Many thanks to Chris F. in Redlands for creating this.
... View more
11-09-2011
04:12 AM
|
0
|
0
|
245
|
POST
|
I do not think that there is currently a way to do this using any out of the box setting in ArcPad/ArcGIS. Checking it in during an edit session and then having a flag field or two that denotes when the changes were made and approved would be one way. I could see the benefit of the option though. I would suggest adding that functionality to the Data Manager Toolbar checkin process at the Ideas site (http://ideas.arcgis.com). Development is really looking toward that site for determining what fixes/additions they will include in future releases.
... View more
04-15-2011
07:21 AM
|
0
|
0
|
241
|
Title | Kudos | Posted |
---|---|---|
1 | 10-19-2015 08:31 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|