• Content count

  • Joined

  • Last visited

  • Days Won


3dbu last won the day on January 11

3dbu had the most liked content!

Community Reputation

149 Famous

About 3dbu

  • Rank
    Assistant Professor
  • Birthday

Contact Methods

  • Website URL
  • Skype
  • MSN

Profile Information

  • Gender
  • Location
    from hell
  • Interests
    GIS Analyst
  1. nice paper, interest topic, useful for get better skill in temperature analyst with remote sensing, regards and good luck in the learning process.
  2. Check the Script of multi ring buffer: """---------------------------------------------------------------------------------- Tool Name: Multiple Ring Buffer Source Name: MultiRingBuffer.py Author: Environmental Systems Research Institute Inc. Required Arguments: An input feature class or feature layer An output feature class A set of distances (multiple set of double values) Optional Arguments: The name of the field to contain the distance values (default="distance") Option to have the output dissolved (default="ALL") Description: Creates a set of buffers for the set of input features. The buffers are defined using a set of variable distances. The resulting feature class has the merged buffer polygons with or without overlapping polygons maintained as separate features. ----------------------------------------------------------------------------------""" import arcpy import os import locale # Define message constants so they may be translated easily msgBuffRings = arcpy.GetIDMessage(86149) # "Buffering distance " msgMergeRings = arcpy.GetIDMessage(86150) # "Merging rings..." msgDissolve = arcpy.GetIDMessage(86151) # "Dissolving overlapping boundaries..." def initiate_multi_buffer(): """Gather arguments and set up for createMultiBuffers""" # Get the input argument values in_features = arcpy.GetParameterAsText(0) output = arcpy.GetParameterAsText(1) distances = arcpy.GetParameter(2) unit = arcpy.GetParameterAsText(3) if unit.lower() == 'default': unit = '' field_name = checkfieldname(arcpy.GetParameterAsText(4), os.path.dirname(output)) dissolve_type = arcpy.GetParameterAsText(5) outside_polygons = arcpy.GetParameterAsText(6) if outside_polygons.lower() == 'true': side_type = 'OUTSIDE_ONLY' else: side_type = '' create_multi_buffers(in_features, output, distances, unit, field_name, dissolve_type, side_type) def checkfieldname(field_name, workspace): """Validate field name on the workspace as needed""" if field_name in ['#', '']: return "distance" else: out_name = arcpy.ValidateFieldName(field_name, workspace) out_name = out_name.replace(' ', '_') if out_name != field_name: arcpy.AddIDMessage('WARNING', 648, out_name) return out_name def lower_license_union(feature_classes): """If Union is not licensed for more than 2 inputs at a time, perform Unions in batches""" union_fc = None tmp_fc = arcpy.Union_analysis( feature_classes[0:2], arcpy.CreateUniqueName('union', arcpy.env.scratchGDB))[0] for fc in feature_classes[2:]: if union_fc: tmp_fc = union_fc union_fc = arcpy.Union_analysis( [tmp_fc, fc], arcpy.CreateUniqueName('union', arcpy.env.scratchGDB))[0] # Delete intermediate data once used by next Union try: arcpy.Delete_management(tmp_fc) except arcpy.ExecuteError: # Don't fail for a delete issue pass return union_fc def create_multi_buffers(in_features, output, distances, unit, field_name, dissolve_type, side_type): """Main multiple ring buffer routine""" # Establish place holders for data cleanup buffer_list = [] union_fc = None try: # Loop through each distance creating a new layer and then buffering the input. # Set the step progressor if there are > 1 rings if len(distances) > 1: arcpy.SetProgressor('step', '', 0, len(distances)) step_progressor = True else: arcpy.SetProgressor('default') step_progressor = False # Buffer the input for each buffer distance. If the field_name is different than # the default, add a new field and calculate the proper value for dist in distances: if step_progressor: arcpy.SetProgressorPosition() arcpy.SetProgressorLabel(msgBuffRings + '{}...'.format(dist)) buf_distance = '{} {}'.format(dist, unit) buf_output = arcpy.Buffer_analysis(in_features, arcpy.CreateUniqueName('buffer', arcpy.env.scratchGDB), buf_distance, side_type, '', dissolve_type)[0] buffer_list.append(buf_output) if field_name.lower() != 'buff_dist': arcpy.AddField_management(buf_output, field_name, 'double') arcpy.CalculateField_management(buf_output, field_name, dist, 'PYTHON') arcpy.ResetProgressor() arcpy.SetProgressor('default') arcpy.SetProgressorLabel(msgMergeRings) if dissolve_type == 'ALL': # Set up the expression and codeblock variables for CalculateField to ensure # the distance field is populated properly expression = 'pullDistance({}, '.format(distances) for fc in buffer_list: expression += '!FID_{}!, '.format(os.path.basename(fc)) expression = expression[:-2] + ')' # If we have a full license then Union all feature classes at once, otherwise # Union the feature classes 2 at a time if arcpy.ProductInfo().upper() in ['ARCINFO', 'ARCSERVER'] or len(buffer_list) < 3: union_fc = arcpy.Union_analysis(buffer_list, arcpy.CreateUniqueName('union', arcpy.env.scratchGDB))[0] codeblock = '''def pullDistance(distL, *fids): return min([i for i, j in zip(distL, fids) if j != -1])''' else: union_fc = lower_license_union(buffer_list) codeblock = '''def pullDistance(distL, *fids): return min([i for i, j in zip(distL, fids) if j == 1])''' arcpy.CalculateField_management(union_fc, field_name, expression, 'PYTHON', codeblock) # Complete the final Dissolve arcpy.SetProgressorLabel(msgDissolve) if dissolve_type.upper() == 'ALL': arcpy.Dissolve_management(union_fc, output, field_name) else: # Reverse the order of the inputs so the features are appended from # largest to smallest buffer features. buffer_list.reverse() template = buffer_list[0] sr = (arcpy.env.outputCoordinateSystem or arcpy.Describe(template).spatialreference) arcpy.CreateFeatureclass_management(os.path.dirname(output), os.path.basename(output), 'POLYGON', template, 'SAME_AS_TEMPLATE', 'SAME_AS_TEMPLATE', sr) for fc in buffer_list: arcpy.Append_management(fc, output, 'NO_TEST') if arcpy.ListFields(output, 'buff_dist'): # Remove duplicate field arcpy.DeleteField_management(output, 'buff_dist') # Set the default symbology params = arcpy.GetParameterInfo() if len(params) > 0: params[1].symbology = os.path.join(arcpy.GetInstallInfo()['InstallDir'], "arctoolbox\\templates\\layers\\multipleringbuffer.lyr") except arcpy.ExecuteError: arcpy.AddError(arcpy.GetMessages(2)) except Exception as err: arcpy.AddError(err) finally: if buffer_list: for fc in buffer_list: try: arcpy.Delete_management(fc) except arcpy.ExecuteError: # Don't fail for a delete issue pass if union_fc: try: arcpy.Delete_management(union_fc) except arcpy.ExecuteError: # Don't fail for a delete issue pass if __name__ == '__main__': initiate_multi_buffer()
  3. Btw you can use a open source plugin in Qgis for made seem to drone2Arcgis , regards
  4. cool waiting for New Version of GISAREA forum, regards
  5. Give all my solidarity for Indonesian people, really love Indonesia i was there in Bogor and Jakarta in 2013, regards
  6. nice, i gonna check it, regards
  7. nice share regards
  8. cool "moderate spatial resolution—15 m (49 ft), 30 m (98 ft), and 100 m (328 ft) depending on spectral band—and the ability to detect the same range in intensity as Landsat 8. Landsat 9 will be placed in an orbit that it is eight days out of phase with Landsat 8 to increase temporal coverage of observations.", regards.
  9. this is amazing, thks for share dude, regards.
  10. nice , that mean more data for analyst and service for offer to other, congratulation, regards
  11. dude!! check this link of search there get many ebook and book about this topic;;; http://bookzz.org/s/?q=Kriging%2C+semi-variogram&yearFrom=&yearTo=&language=&extension=&t=0 regards
  12. nice web for get ebook and book, regards and thks.
  13. Amazing discovery , now we can understand better the seismic and dynamic of our planet, regards
  14. So i do, usually used yahoo for unimportant thing ....but really is sad and danger how this hackers sell account...regards