I am reading in a standard TIGER shapefile of U.S. counties (
https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_county_20m.zip) using IDLffShape. Almost everything reads in just fine. Two of the attributes are called ALAND and AWATER (area of land and area of water, both in m^2).
Those do get read in, but if the value is too large, it sets the value to -
2147483648. This is clearly wrong. When I read the same shapefile into QGIS and look at the attributes, the correct values are in there, so this is an IDL issue, not a shapefile issue.
How can I convince IDL that the attribute should not be a long integer? In the attribute info vector, those ALAND and AWATER attributes say they are type 3 (long integer) but somehow QGIS is able to retrieve the correct values.
For a very specific example, Miami-Dade County FL is FIPS code 12086.
In IDL, ALAND = -
2147483648 and AWATER = 1378974993. In QGIS, ALAND = 4917746437 and AWATER = 1378974993. There are plenty of counties with an area larger than 2147 km^2, and IDL does not like that. What I can't figure out is how to make IDL read in the attributes correctly.
Thanks,
Brian