Rename batch grid data using ArcGIS Python

Source: Internet
Author: User

Rename batch grid data using ArcGIS Python

I. Code

 

[Python]
  1. Import arcpy. env. workspace = F: \ KNN \
  2. Rasters = arcpy. ListRasters (*, grid) for raster in rasters:
  3. Rename = Re _ + raster arcpy. Rename_management (raster, Rename, RasterDataset)
  4. Print (raster + ----> + Rename) print (All done)
    Import arcpyarcpy. env. workspace = F: \ SVD \ rasters = arcpy. listRasters (*, grid) for raster in rasters: Rename = Re _ + raster arcpy. rename_management (raster, Rename, RasterDataset) print (raster + ----> + Rename) print (All done)

     

    Ii. Description

    1. Raster data is processed this time. It can also be used to process ShapeFile and TextFile)

    2. Do not change the data format;

    3. You can only rename the original data and cannot generate new files.

    Iii. Running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.