Select to view content in your preferred language

Populate polygon field with sid raster file names

593
5
Jump to solution
03-03-2025 09:13 AM
SandyWatford
Occasional Contributor

ArcPro 3.4.2 (no extensions)

I have 800 separate sid raster files (5000'x5000') and a separate polygon shape file with 800 polygons surrounding each individual sid file. 

Is there a way to automate populating each polygon field with the correct sid file names it surrounds/outlines? 

I also have access to ArcMap 10.8.2 if it would be easier.

0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor

Other option that just need Basic license.

ArcCatalog, New -> Raster Catalog.  Create the catalog, then Load from Workspace to  add all the SIDs to it.

However, it won't let you delete the Raster column now, so:

   make a blank Polygon layer with the only attribute as "Name" text length 256.

   then, start editing on the new blank polygon layer, select all of the polygons in the raster catalog, copy, paste to the new polygon layer.

This will give you a polygon layer with the outlines and the Name field preserved to use for spatial join.

This method will preserve the file name and extension.

RhettZufelt_0-1741122469662.png

 

R_

View solution in original post

5 Replies
RhettZufelt
MVP Notable Contributor

one way would be to create a new Mosaic dataset, then add the SID rasters to it without building overviews.

RhettZufelt_0-1741044673980.png

 

This will make a Footprint layer (polygons) with the outlines of each input SID image.  You can then 'Export' the Footprint layer to a separate Polygon feature class, and each polygon will have the name of the SID it encompasses in the [name] field.

If you delete the Raster field from the 'new' Footprint layer (need to delete the Raster field from this new FC or it won't let you perform a spatial join against it), you could then use this as your polygon layer, or can perform a spatial join against it to populate your polygon featureclass.

Not sure if this works for you, but may get you along a path that does.

R_ 

Edit:  This will NOT copy the file extension of the image files, just the name itself.

SandyWatford
Occasional Contributor

Thank you for your kind response.  It looks as if that is exactly what I need. 

Unfortunately, the Create Mosaic Dataset tool is not licensed for our ArcPro.  I am currently using it under our ArcMap license and thought everything was available, but apparently not.

If you have any other ideas, let me know.  It may be awhile before my company is able to license the tool.

Thanks again

0 Kudos
RhettZufelt
MVP Notable Contributor

I don't have time to wait around for 'Pro' to do it's thing, and since you said you had Desktop, I just did I there. 

I just right click in my GDB in ArcCatlog (10.8.2) and select  New -> Mosaic Dataset, then Add Rasters to it, then load into ArcMap to do the rest.

It does say it needs a Standard license.

R_

RhettZufelt
MVP Notable Contributor

Other option that just need Basic license.

ArcCatalog, New -> Raster Catalog.  Create the catalog, then Load from Workspace to  add all the SIDs to it.

However, it won't let you delete the Raster column now, so:

   make a blank Polygon layer with the only attribute as "Name" text length 256.

   then, start editing on the new blank polygon layer, select all of the polygons in the raster catalog, copy, paste to the new polygon layer.

This will give you a polygon layer with the outlines and the Name field preserved to use for spatial join.

This method will preserve the file name and extension.

RhettZufelt_0-1741122469662.png

 

R_

SandyWatford
Occasional Contributor

Jumping off from your method, I ended up creating a raster catalog and doing basically the same thing.

  1. Create raster catalog (unmanaged)
  2. Workspace to raster catalog 
  3. Export footprint from catalog (to new feature class)
  4. Export feature class (from footprint) to shapefile

Thanks again for your help.  You put me on the right track!

super easy, super fast