Taking your 2D data from a map and throwing it into a 3D scene increases the realism, which can make it easier for the audience to interpret and make the comparison to the real-world equivalent. GetMessages ( 2 )) # Return python error messages for script tool or Python Window arcpy. format_tb ( tb ) # Concatenate error information into message string pymsg = "PYTHON ERRORS: \n Traceback info: \n \n ". GetMessages () except : # Get the traceback object tb = sys. Intersect3D ( outFC, outIntersection, outShadows, 'SOLID' ) arcpy. ![]() SunShadowVolume ( outFC, dt, shadows, 'ADJUST_FOR_DST', inTimeZone, '', minInterval, 'MINUTES' ) if dt is not dt_result : arcpy. CreateUniqueName ( 'shadow', 'in_memory' ) arcpy. Delete ( importFC ) dt_result = time_list () for dt in dt_result : if dt = dt_result : shadows = outShadows else : shadows = arcpy. EncloseMultiPatch ( importFC, outFC, 0.05 ) # Discard in-memory feature arcpy. Import3DFiles ( inFiles, importFC, 'ONE_FILE_ONE_FEATURE', spatialRef, 'Z_IS_UP', 'wrl' ) # Ensure that building models are closed arcpy. CreateUniqueName ( 'geovrml_import', 'in_memory' ) # Import GeoVRML files to in-memory feature arcpy. CheckOutExtension ( '3D' ) importFC = arcpy. append ( startDate ) return dt_result try : arcpy. year, 12, 31, 23, 59 ): startDate += timedelta ( days = dayInterval ) dt_result. date ( startDate ) while startDate <= datetime ( daymonthyear. append ( endDate ) else : # Behavior when end date is not given daymonthyear = datetime. GetParameterAsText ( 10 ) # shadow & bldg intersection # Function to find all possible date/time intervals for shadow modelling def time_list (): dt_result = if dayInterval : if endDate : #Defines behavior when end date is supplied while startDate < endDate : startDate += timedelta ( days = dayInterval ) dt_result. GetParameterAsText ( 9 ) # output shadow models outIntersection = arcpy. GetParameter ( 8 ) # minute interval as Boolean outShadows = arcpy. GetParameter ( 7 ) # minute interval as long (0-60) enforceTime = arcpy. GetParameter ( 6 ) # day interval as long (0-365) minInterval = arcpy. ![]() GetParameter ( 5 ) # ending date as datetime dayInterval = arcpy. GetParameter ( 4 ) # starting date as datetime endDate = arcpy. ![]() GetParameterAsText ( 3 ) # time zone startDate = arcpy. GetParameterAsText ( 2 ) # multipatch from 3D files inTimeZone = arcpy. GetParameterAsText ( 1 ) # list of GeoVRML files outFC = arcpy. GetParameterAsText ( 0 ) # list of input features spatialRef = arcpy. This sample is designed to be used in a script tool. A range of times from the start time and end time can also be specified by setting the EnforceTimes Boolean to True. '''********************************************************************* Name: Model Shadows For GeoVRML Models Description: Creates a model of the shadows cast by GeoVRML models imported to a multipatch feature class for a range of dates and times.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |