Daniel J. Dufour

Results 387 comments of Daniel J. Dufour
trafficstars

Unfortunately, I haven't had much luck. The GeoTIFFs use an afine transformation for each pixel, which georaster doesn't currently support. They also take a large time to decode. I'm going...

You might be able to reproject with Raster IO, but I'm not sure. I reprojected it with the following command using gdal: ``` gdalwarp -t_srs EPSG:4326 ENR_L01.tif -r cubic ENR_L01_4326.tif...

Just wanted to let you know I saw this. I'll get back to you within 24 hrs with an answer. Thanks! :-)

@khannurien , how many bands does your raster have? If it's a simple 3-Band RGB raster you could do: ```javascript pixelValuesToColorFn: values => values[0] === -99.0 ? null : `rgb(${values[0]},${values[1]},${values[2]})`...

@khannurien , could you try sharing the file again? I get this error when I go to your link: ![image](https://user-images.githubusercontent.com/4313463/62263618-eeb3f100-b3ea-11e9-8e9f-d417db66790e.png) You can also email it to me: [email protected] Thanks

Here's some interesting metadata for the image that you sent me. ![image](https://user-images.githubusercontent.com/4313463/62293661-16c94180-b437-11e9-9bea-ed4651f06084.png)

The NoData Value for the raster is -32767. Is this SRTM / elevation data? I this case, you actually want to change your pixelValuesToColorFn to use `-32767` and not `-99`....

Here's a picture of the raster when I boosted resolution of drawn image to 512x512 canvas: ![image](https://user-images.githubusercontent.com/4313463/62294159-60fef280-b438-11e9-928c-9105a42ddcf6.png)

`rgb(` is supposed to take 3 values. You have only provided one. This is the same RGB mentioned here: https://www.w3schools.com/cssref/func_rgb.asp You will also want to scale your values for RGB....

Sorry, I haven't gotten back to you on this. I'm slammed with work at the moment.