Open syncthreads-sammith opened 11 months ago
Hi @ddohler as you mentioned in your previous response here i have tried create dataset.wrap without creating samllDataset unfortunately code is not generating any O/P Below code block i have tried
export const CreateLayer = async (files, map) => {
....//rest of the code same as above
**Changed code below **
const newDataset = await dataset.warp([
"-co",
"PREDICTOR=2",
"-dstnodata",
"0",
"-of",
"GTiff",
"-t_srs",
"EPSG:3857",
"-r",
"bilinear",
]);
...// rest of the code
};
if i have made this changes and use it on application this block of code will not give any O/P, i presume due to not creating smallDataset was i rigth ? did i got you answer right ? if not can you guide me through !,and although im trying to Resampling generated image it would be helpfull if give your thoughts on that
Hey hi, i just i want to know that does loam compromise the image quality,Below i have given code that is used to parse .tif file and return some O/P in object
The out put of this above method will return imageUrl,Bounds,ImageBounds and Center so here image url is being overlayed on react-leaflet map for further implement, but the image is being generated by loam will have poor quality then its original (original image size can be around 200mb to 600mb .tif file) my question is there any way that loam can persist image original size as it is,do we have any work arounds here
I have tried this below code to improve the image quality but no use !
const pngDataset = await newDataset.convert(["-of", "PNG","-co", "COMPRESSION=deflate","-co", "PREDICTOR=2",]);
Please let us know if there are any possibility. Thanks you...Originally posted by @syncthreads-sammith in https://github.com/azavea/loam/issues/120#issuecomment-1867372479