polygon to raster

429
2
Jump to solution
09-05-2021 06:14 PM
DamonJohnson
New Contributor

Hi 

I am attempting to convert a land use polygon gdb to raster for inclusion in a suitability analysis. Am receiving the folllowing errors

 

DamonJohnson_0-1630890813464.png

The data looks like the following: 

DamonJohnson_1-1630890849740.png

 

Do I need to remove all the spaces from the description column? If so, what is the quickest way of doing this?

Thanks in advance!

0 Kudos
1 Solution

Accepted Solutions
David_Brooks
MVP Regular Contributor

@DamonJohnson use field calculator with the python scripting selected and use the .replace function

!field_name!.replace(" ","_")

This will replace all spaces with underscores

 

 


David
..Maps with no limits..

View solution in original post

2 Replies
DanPatterson
MVP Esteemed Contributor

Polygon to raster... the preferred raster format is a *.tif file in a folder.

Also, paths with spaces and punctuation (eg. dashes etc) are just asking for trouble


... sort of retired...
David_Brooks
MVP Regular Contributor

@DamonJohnson use field calculator with the python scripting selected and use the .replace function

!field_name!.replace(" ","_")

This will replace all spaces with underscores

 

 


David
..Maps with no limits..