Jump to content

 
Photo

Boolean value in ArcGIS?

- - - - -

  • Please log in to reply
6 replies to this topic

#1
hocgis

hocgis

    Contributor

  • Validated Member
  • PipPip
  • 23 posts
  • Vietnam

Hi everybody! Can you help me?
I want to represent logical data which have 2 value: true or false for attribute of features.

#2
Matthew Hampton

Matthew Hampton

    Hall of Fame

  • Moderator
  • PipPipPipPipPipPipPip
  • 1,304 posts
  • Gender:Male
  • Location:Portland, Oregon
  • Interests:Playing in the mountains and rivers.
  • United States

0 1

:-)

co-cartographic creator of boringmaps.com


#3
hocgis

hocgis

    Contributor

  • Validated Member
  • PipPip
  • 23 posts
  • Vietnam

0 1

:-)


0 or 1 values are integer format. I mean Attribute field must be logical.

Ex:
+ To represent character data, we use "text" data type
+ To represent numeric data, we use "float/ double/ integer" data type
+ To represent logical data (true or false), we use " ? " data type

#4
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,304 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

Why can't you just use an unsigned one digit integer, and just use 0 and 1?
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#5
hocgis

hocgis

    Contributor

  • Validated Member
  • PipPip
  • 23 posts
  • Vietnam

Why can't you just use an unsigned one digit integer, and just use 0 and 1?


Sorry, can you explain more clearly? I have not already understand what you mean?

#6
DaveB

DaveB

    Hall of Fame

  • Validated Member
  • PipPipPipPipPipPipPip
  • 1,053 posts
  • Gender:Not Telling
  • Location:Redlands, CA
  • United States

As far as I know there is no boolean or logical data type. You could use an integer type as suggested, or a text type, and restrict the possible values by setting up an attribute domain. Look up domains in the ArcGIS Desktop help for more info.

edit: I stand corrected. See Hugo's post following this one. :)
Dave Barnes
Esri
Product Engineer
Map Geek

#7
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,304 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

If you use a file/personal/enterprise geodatabase you can have bit/boolean values.
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->