Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [typecast]

Typecasting is the process of changing the type of a variable into another type. The string "4" has different properties than the number 4 on most computer systems and environments, and casting between types is necessary when you want to be able to use certain properties (like ordering operations) on values of a type that doesn't have the desired properties.

1
vote
1answer
80 views

Tile error Google Earth Engine “Some bands might require explicit casts”

I'm getting this error when trying to map the result after calculating the seasonal median NDVI images for a time series with 7 different landsat tiles in Google Earth Engine: Link to the code : ...
0
votes
1answer
44 views

Measuring distance to two Points in ArcPy?

I would like to know how to measure the distance from two Points in ArcPy? I know only Geometry has the distanceTo method but how do I could make a typecast in ArcPy? I got the following error ...
1
vote
1answer
266 views

Extracting mean values in Earth Engine

I am trying to extract the dates and mean NDVI values of a processed Google Earth Engine image collection thru Python. All goes well until I try to use getInfo(), where I always encounter this error: ...
1
vote
1answer
522 views

How to Cast geometry to Geography in SQL script in MS SQL Server?

I have a Table with some spatial Data in MS SQL Server. The datatype of the spatial column is geometry. I'm trying to get the closest data from an input file using the following query: DECLARE @g ...
0
votes
2answers
628 views

CartoDB SQL string as integer

Because data is imported as string, I need to query string values as if they were integers, is there something I could use to cast values to string? Where could I find documentation for this SQL in ...