GeoTaggedPhotosToPoints_management ( inFolder, outFeatures, badPhotosList, photoOption, attachmentsOption ) arcpy. workspace = "C:/data" # Set local variables inFolder = "photos" outFeatures = "city.gdb/photos_points" badPhotosList = "city.gdb/photos_noGPS" photoOption = "ONLY_GEOTAGGED" attachmentsOption = "ADD_ATTACHMENTS" buffers = "city.gdb/photos_points_buffer" bufferDist = "1 Miles" arcpy. """Name: GeoTaggedPhotosToPoints example Description: Convert a folder of photos to points, then perform a buffer """ # Import system modules import arcpy # Set environment settings arcpy. Syntax (Input_Folder, Output_Feature_Class, ) Parameter Its latitude and longitude of where on Google the image was taken. The output feature class will have a GCS_WGS_1984 spatial reference, since that is the coordinate system used by GPS receivers. Its about adding GPS coordinates to the metadata of the photo file. If the Include Non-GeoTagged Photos parameter is checked ( ALL_PHOTOS in Python), the photo will be added as an output record with a null geometry. These empty coordinates often occur because the camera GPS does not have an adequate signal to capture real coordinates. If the x,y coordinates of a photo are 0,0, no point will be generated for that photo. Photo files may have a date taken or date modified property, but these often do not represent the date and time the photo was taken. If the output DateTime field has a null or empty value, this may be an indication that your device does not capture a useable timestamp with the geotagged photo. Use the Convert Time Field tool to convert this text field to a true datetime field that can be used to analyze and map the data with time. The output DateTime field is a text field with the timestamp in the format yyyy:MM:dd HH:mm:ss. Refer to device documentation for information on directional accuracy. Use a geotagged photo's directional information with caution, as the direction recorded by the device may not be accurate. Refer to device documentation for more information. Depending on the device being used this could refer to degrees from true north or magnetic north. If no direction is recorded by the device, this field will have a value of -9999. Values range from 0 to 359.99, where 0 indicates north, 90 east, and so on. Direction-The direction the device is pointing when the photo was captured.DateTime-The original capture date and time of the photo file, for example, 2010:11:21 15:23:34.Name-The short name of the photo file, for example, Pic0001.jpg.Path-The full path to the photo file used to generate the point, for example, C:\data\photos\Pic0001.jpg.The output feature class will have these attribute fields: This tool reads the longitude, latitude, and altitude coordinates from JPEG and TIFF photo files and writes these coordinates and associated attributes to an output point feature class. Optionally adds photo files to features in the output feature class as geodatabase attachments. Creates points from the x-, y-, and z-coordinates stored in geotagged photos.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |