Select to view content in your preferred language

Enter NULL as Value in Unique Value Renderer

820
6
04-27-2023 05:00 PM
NathanHeickLACSD
Frequent Contributor

I'm having a very difficult time adding NULL values to a unique value renderer.  I am using 3 fields and I want to enter in all possible combinations even though I don't have all the values in the data, but it says that <Null> is an invalid type.  I have no idea how they want you to enter NULL manually.  I even tried creating all the values in the data, but the tool to add all values wouldn't add value triplets even though the data was saved and clearly present.  I reentered the data and some values would show up and not others.

Thanks,

Nathan

0 Kudos
6 Replies
DanPatterson
MVP Esteemed Contributor

NULL is a translation of an appropriate nodata value, you can't enter NULL.  If the groupings are strings and you are using

UniqueValueRenderer—ArcGIS Pro | Documentation

you would have to provide a text value to represent nodata/null/none


... sort of retired...
NathanHeickLACSD
Frequent Contributor

Thanks Dan,

Do you know what NULL would be for a short?

0 Kudos
DanPatterson
MVP Esteemed Contributor

None... in python,

a nodata value could be anything, it is the user that decides for the mostpart

For text, it could be None, "", '', "this is my nodata value" ...

For integers that can only be in the range 0 to 255, then -1 could be used for a nodata value.

Some packages, like numpy, scipy etc, use the concept of

NaN   ... that is... not a number

NaT   ... that is ... not a time

You really have to provide what you have and what you want to do, rather than figuring out the "null" thing for now.  What are your groupings as per the link I sent.


... sort of retired...
0 Kudos
NathanHeickLACSD
Frequent Contributor

Hi Dan,

What I am referring to is how to type in NULL in the UI?  If the NULL values are in the data, it will add them.  If I want to type them in, it says invalid data type if I type in <Null>.

NathanHeickLACSD_0-1682641908151.png

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

value column

-1, -1, -1

2, 0, -1

2, 1, -1

3, 0, -1

3, -1, -1

3, 1, -1

4, 0, -1

-1, -1, 1

Your values are integers, hence you have to use an integer to represent nodata


... sort of retired...
0 Kudos
NathanHeickLACSD
Frequent Contributor

Hi Dan,

I was able to get it to work by extracting the .aprx and editing the XML.  NULL was stored as <Null> in the XML.

0 Kudos