Questions tagged [floating-point]

From Wikipedia: In computing, floating point describes a method of representing an approximation to real numbers in a way that can support a wide range of values. The numbers are, in general, represented approximately to a fixed number of significant digits (the mantissa) and scaled using an exponent. The base for the scaling is normally 2, 10 or 16.

Filter by
Sorted by
Tagged with
-1
votes
0answers
25 views

Viewing the Attribute Table for a 32-bit Float raster?

Basically I have multiple water table depth (WTD) rasters (from Fan et al) that I would like to use in order to carry out some area tabulations for specific zones. The rasters cannot be read into the ...
1
vote
1answer
49 views

Exporting a GeoTIFF in Float16 format

I'm trying to merge large raster files (DEM's) together but I run into memory errors using the 'Raster Merge' tool in QGIS 3.8. I suspect the issue is mainly the high amount of precision in the ...
1
vote
0answers
32 views

Geopackage vector data type

I am reading a shapefile in Python using geopandas, join some tabular data and export to geopackage using geopandas. The entire process is very easy. However, when I export the vector data, the file ...
1
vote
0answers
73 views

FloatingPointError: invalid value encountered in greater_equal in Semi-Automatic Classification Plugin in QGIS

2019-04-05T00:29:33 WARNING Traceback (most recent call last): File "C:/Users/ASUS/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\dock\scpdock.py", line ...
5
votes
0answers
71 views

Robust formula to get row,column of raster given X,Y

I'm looking for a robust method to get the row and column of a pixel in a raster, given the coordinates of the origin and the cell spacing. This seems like a problem with an incredibly obvious ...
0
votes
0answers
78 views

Any way to use the range slider in ArcGIS Pro with a floating point raster?

So I've created these classified floating point rasters showing specific heights. However, I need to enable range properties for them so that they can function with the range slider in ArcGIS Pro. I ...
2
votes
1answer
284 views

Converting each cell value of raster into floating-point representation using QGIS?

I have several bands of raster from the Landsat8 satellite, and I need to convert them into a floating-point representation. In ArcMap this is done through: Spatial Analyst Toolbox -> Math -> ...
1
vote
0answers
167 views

Feature class - HEC-GeoRAS

I am currently working with HEC-GeoRAS I am trying to import data from a shapefile into the feature class River. I would like to insert a type of data DOUBLE in the attribute ARCLENGTH of the table ...
3
votes
1answer
117 views

Postgis floating point error? in st_split

I am not able to st_split a line with a point on it. I have a linestring and a point in epsg:3857 coordinate system. Their distance is 0: select st_distance( st_geomfromtext('LineString (2121053....
1
vote
0answers
77 views

Raster calculator ArcGIS, high precision floating point operation

I need to preform a transformation on a DTM, in order to use it as a variable in a multiple regression equation (the variables, including elevation data have been box-cox transformed). A part of the ...
1
vote
0answers
300 views

How to convert raster DEM to reduce file size in QGIS? e.g. 32 to 8 bit floating point

I have a raster DTM (.tif, 32 bit floating point) which has a very large file size and is thus slowing down the software. I am looking for a way of reducing the file size without reducing grid cell ...
3
votes
1answer
173 views

Need less significant digits returned in ArcGIS REST Services

In ArcGIS REST Services Directory when querying a service the values that are set as floats or doubles (elevation, lat, long) return with too many significant digits if the format is JSON. For example ...
2
votes
1answer
447 views

Convert double to string with Calculator

I would like to convert double to string using the calculator (or ArcObjects) and get the actual number. Calculator seems to truncate the number at ~15 decimal places but the actual value may be a ...
4
votes
3answers
4k views

Rounding all coordinates in shapely?

Following on from How can I add points to a LineString in shapely?, I'm hitting a problem where floating point representations mean objects aren't precisely where I expect them be after they are moved ...
3
votes
2answers
2k views

Creating flt (floating point raster) with QGIS

I would like to create a flt (floating point raster) with QGIS to use later as a terrain in Hec RAS RAS-Mapper. With Raster -> Conversion -> Translate there is no option to create a flt. Is there ...
1
vote
1answer
43 views

Any open source raster applications that accept floating point rasters with attribute tables?

I understand that Arc floating point rasters don't have attribute tables because of the high potential number of unique values in each cell but at a theoretical level, I think a floating point raster ...
7
votes
3answers
3k views

Getting ArcMap to recognize csv column as float and not int? [duplicate]

I am trying to show a .csv file (2 columns, 291 rows) in ArcMap 10.2 using Catalog window to drag the .csv file into ArcMap. The second column of the .csv is a floating point number (range is [0-1]), ...
2
votes
1answer
137 views

arcpy handling of floating points

This arises from my own question How to handle coordinates accuracy in ArcGIS where I have tried to use the documentation entitled Using geometry objects with geoprocessing tools as a reference. I ...
1
vote
0answers
178 views

gdal_polygonize floating values [duplicate]

gdal_polygonize converts whatever rasters values into vector integers as it is based on the GDALPolygonize() function (http://gdal.org/gdal__alg_8h.html#a3f522a9035d3512b5d414fb4752671b1). It is ...
2
votes
1answer
122 views

arcpy cursor not accepting float(Inf)

I have a vector layer in which I have added some fields of type 'float' using arcpy.AddField_management. I'm performing simple calculations between those fields using update cursors but the problem is ...
1
vote
2answers
4k views

How to round up/down an pixel value of a raster to a pixel value with 2 decimal places?

I have a raster (DTM) with floating points as pixel value. Now i want to round up/down the pixel values (to its next nearest value) to 2 decimal places. I use ArcGIS (with extensions) and tried the ...
2
votes
0answers
331 views

Conversion of Polygon vector files to Raster GRID 8 bit unsigned integer

I am trying to convert a polygon shapefile layer into Raster GRID with 8 bits and which is unsigned integer. I managed to convert the shapefile in ArcGIS with the Arc Toolbox Conversion tools, but the ...
1
vote
1answer
411 views

How to reclass aspect raster to float values

So I have an aspect raster that was created from a DEM. I'm trying to reclassify it using python, but I'm running into some issues. Here's the setup: I need to reclassify values in the aspect raster ...
0
votes
1answer
141 views

How to interpolate integer rasters to floating point?

I have an reclassified raster, I need to convert it to floating point, the "float" tool does not suffice, because I need the output values to be spatially interpolated. For example, at the midpoint of ...
1
vote
0answers
449 views

Why does GeoServer's GetFeature round my numbers, but only for outputFormat=CSV?

When I make a GetFeature request with outputFormat=CSV to my GeoServer v2.4.5 I'm finding that the floating point numbers in my returned data have been rounded. When I make the same request with ...
2
votes
1answer
3k views

Raster Multiplication - Can't Multiply Sequence by Non-Int of Type “Float”

I am trying to multiply a list of GRID raster datasets using a different value for each raster. The value is in the raster name. Some examples are [wse_1979_5,wse_1980_0,wse_1980_5], where 1979_5, ...
1
vote
1answer
2k views

Floating point calculations in QGIS

How do I manage floating point calculations in QGIS? I have carried out 3 consecutive calculations on landsat bands. I end up with 32 bit floating point rasters on which I can't carry out a 4th ...
4
votes
3answers
10k views

How can I reclassify a raster to floating point values?

I have a raster of landuse values that I need to reclassify into pollution concentration values. I have the pollution values in a separate table. They are decimal values (ex. 0.0056), and my landuse ...
6
votes
1answer
2k views

How can I snap lines in PostGIS?

I have a few linestrings that together form a long line. The start- and endpoints of the linestrings are equal with their direct neighbour, but when tested the ST_Distance between any 2 lines is like ...
26
votes
5answers
39k views

Fully load raster into a numpy array?

I have been trying to check my filters on DEM raster for pattern recognition and it is always resulting in missing last rows and columns(like..20). I have tried with PIL library, image load. Then with ...
3
votes
4answers
996 views

Floating point: understanding their inaccuracy [closed]

I am trying to understand why a floating point is inaccurate. Please bear in mind that I am not a mathematician. What is exactly the difference between floating point and double integers? and why use ...
22
votes
2answers
553 views

Precision when working with spatial data in GIS

Is there a basic or introductory study that examines and compares the precision of spatial data when working with varying precison of the data input, like having 1, 2, ... decimal places? with the ...
10
votes
1answer
2k views

Referring to NaN or ±∞ (special floating point values) in ArcMap definition queries?

I have by chance discovered how ArcMap displays special floating point values to the user. +∞ (positive infinity) is displayed as 1.#INF –∞ (negative infinity) would supposedly be displayed as -1.#...