by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 17 15:11
    echeipesh milestoned #3218
  • Sep 17 15:11
    echeipesh demilestoned #3218
  • Sep 17 14:54
    echeipesh assigned #3289
  • Sep 17 14:54
    echeipesh milestoned #3289
  • Sep 17 14:51
    echeipesh milestoned #3288
  • Sep 17 14:50
    echeipesh milestoned #3291
  • Sep 17 12:40
    pomadchin unlabeled #3280
  • Sep 17 12:40
    pomadchin edited #3280
  • Sep 17 12:39
    pomadchin edited #3280
  • Sep 17 00:21
    pomadchin synchronize #3294
  • Sep 16 23:04
    pomadchin synchronize #3294
  • Sep 16 22:33
    pomadchin commented #3218
  • Sep 16 22:11
    pomadchin edited #3294
  • Sep 16 22:09
    pomadchin assigned #3294
  • Sep 16 22:09
    pomadchin labeled #3294
  • Sep 16 22:09
    pomadchin opened #3294
  • Sep 16 19:55
    pomadchin labeled #3293
  • Sep 16 19:55
    pomadchin edited #3293
  • Sep 16 19:49
    laxiwuka opened #3293
  • Sep 16 18:47
    echeipesh closed #1565
pinis123
@pinis123
@pomadchin Hello, the previous problem, with your help, I have solved it.
Now, I have a 20GB geotiff, I want to use a pyramid extent to cut it. If I use the clop method of the raster package of geotrellis, this process will take a lot of time and sometimes cause memory overflow. I noticed that the 3.5 version of geotrellis has gdal support. The help I want to ask you is: Can I cut very large images like 20GB as fast as gdal does.
I did a test and the geotiff data size is 20GB. The given extent is the same in both cases. The clop method of the raster package of geotrellis will take 26 minutes, and gdal will take 3 minutes.
thanks!
Grigory
@pomadchin
hey @pinis123 you mean clip? You can read the necessary window at the read time
RasterSource(uri).read(extent) // it will read only the portion of the picture that is covered by the requested extent
pinis123
@pinis123
@pomadchin Yes,I mean clip.And I see what you sent me
image.png
Grigory
@pomadchin
Perfect, be sure that you depend on gt 3.5.0
pinis123
@pinis123
Yes, the version of gt I rely on is 3.5, I will implement it next, thank you
Grigory
@pomadchin
:+1: you are welcome
pinis123
@pinis123
Keep in touch from now on
😀
pinis123
@pinis123
@pomadchin hi,
image.png
Hello, my error situation is the same as his, and then I followed the solution you provided him, here is the combination of mingw and gdal, but the error still exists
image.png
The above is a screenshot of the installation and deployment of gdal in mingw
Below is a screenshot of my geotrellis code
image.png
Below is a screenshot of the reported error
pinis123
@pinis123
image.png
for help
Where do I need to set up some special environment variables, on a windows10 computer, or in the mingw program?
thanks
pinis123
@pinis123
image.png
This screenshot is the verification result after configuring the gdal environment variable on the windows10 computer
Grigory
@pomadchin
Hi @pinis123 that is with GT 3.5.0?
I think you haven’t set the LD_LIBRARY_PATH properly
so that is why your java application can’t find dependent libs
also, what were the results of the GeoTiffRaterSource(uri).read(extent)?
it also should read things smartly without utilizing the entire memory
also, can you share the gdalinfo of tiffs you’re experiencing issues with?
you can remove the geospatial information (extent and crs) and any other possibly sensitive information from the output
pinis123
@pinis123
@pomadchin I just started working today, and then I will try the solution you provided above.
Yes, the gt version I am using is 3.5
thanks
henry000513
@henry000513
@pomadchin I'm very sorry. I tried to compress the TIF and upload it, but it failed. How can I give you the TIF,ziped-Tif is 64M
Grigory
@pomadchin
hi @henry000513, you can upload it to any file share service like google drive or Dropbox
henry000513
@henry000513
@pomadchin Could you please give me your email address? I will send it to you
Grigory
@pomadchin
@henry000513 got it! I’ll give it a try later tomorrow, thanks for sending the tiff
pinis123
@pinis123
@pomadchin HI,Hello, this is the local installation directory of GDAL produced after I used MinGW to compile the GDAL3 source code on my windows10 computer.
image.png
image.png
image.png
Then, in MinGW, do I configure the LD_LIBRARY_PATH environment variable like this?
image.png
In MinGW, I use the cd command to enter the gdal3 installation directory, execute the gdalinfo --version command, and the gdal version information will appear
Finally, my requirement is: I want to use gdal in geotrellis in the windows10 local development environment
Grigory
@pomadchin
@pinis123 the last release of gdalwarpbindings is built against http://download.gisinternals.com/sdk/downloads/release-1911-x64-gdal-3-0-4-mapserver-7-4-3-libs.zip
Try exactly this version
Grigory
@pomadchin
I’m also not sure how Windows works with the ld_library_path; try to set -Djava.library.path=/path/to/gdal/lib as well as the GDAL from the link above