# Preparing my custom shp file for use as LULC in InVEST

**URL:** <https://community.naturalcapitalalliance.org/t/preparing-my-custom-shp-file-for-use-as-lulc-in-invest/3020>\
**Category:** Software Support\
**Created:** [August 29, 2022, 9:56am UTC](https://community.naturalcapitalalliance.org/t/preparing-my-custom-shp-file-for-use-as-lulc-in-invest/3020 "2022-08-29T09:56:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gismat](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@gismat](https://community.naturalcapitalalliance.org/u/gismat)\
**Post date:** [August 29, 2022, 9:56am UTC](https://community.naturalcapitalalliance.org/t/preparing-my-custom-shp-file-for-use-as-lulc-in-invest/3020/1 "2022-08-29T09:56:31Z")

</div>

### Description

I am using QGIS

I have made (what I think is) a beautiful .shp file for my study site. There are houses and streets and various kinds of parkland are all delineated as polygons, and with associated attributes in the attribute table. I have 31 landuse types in my map.

My big plan is to:  
a. export the attribute table, and add usle\_c and usle\_p to the .csv as my biophysical table (this I can do, copy-paste out the table to excel, and add the usle\_c and usle\_p columns, save as .csv)  
b. create a raster of the map information so I can use it as my Land Use/Land Cover raster

and then run my wonderful SDR model.

I am having trouble exporting the raster to a format that is any good to me - I have tried  
Project \> Import/Export \> Export map to image (then select .tiff)  
Project \> New Print Layout (add map) \> save map as image

In both cases, I end up with a raster that has more like 255 colours (instead of 31) and so I guess either my workflow philosophy above is incorrect, or I am exporting my map incorrectly, or something else that I don’t know that I am doing wrongly.

I understand this is more like a general-purpose GIS question than an InVEST problem, but I thought you might be able to help this newbie save the world through the powers of GIS.

The .shp file is zipped [here](https://drive.google.com/file/d/13fKBGYMYyQlL-evCw1lCmmkv4-3a3AKh/view?usp=sharing), and is 15mb, in case you want to see it.

Thanks in advance,

mat

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [August 29, 2022, 12:43pm UTC](https://community.naturalcapitalalliance.org/t/preparing-my-custom-shp-file-for-use-as-lulc-in-invest/3020/2 "2022-08-29T12:43:41Z")

</div>

Hi @gismat , sounds like a good plan overall. I think what you want is to “rasterize” your shapefile. In QGIS, find the following menu:

`Raster > Conversion > Rastertize` . Then the “burn-in” field should be a field from the shapefile’s attribute table with a landuse code integer.

Good luck,

---

<div class="post-metadata">

**Author:** ![gismat](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@gismat](https://community.naturalcapitalalliance.org/u/gismat)\
**Post date:** [August 29, 2022, 8:02pm UTC](https://community.naturalcapitalalliance.org/t/preparing-my-custom-shp-file-for-use-as-lulc-in-invest/3020/3 "2022-08-29T20:02:55Z")

</div>

you’re a genius.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)\
**Post date:** [September 5, 2022, 8:03pm UTC](https://community.naturalcapitalalliance.org/t/preparing-my-custom-shp-file-for-use-as-lulc-in-invest/3020/4 "2022-09-05T20:03:19Z")

</div>

Closed on September 5, 2022, 8:03pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
