Giter Site home page Giter Site logo

error using map studio about armarealmap HOT 3 CLOSED

wwwronin avatar wwwronin commented on June 6, 2024
error using map studio

from armarealmap.

Comments (3)

jetelain avatar jetelain commented on June 6, 2024

Hi,
It looks like that ImageSharp have an issue with image size.
I had a look to their source code, it computes width * height on a int. If you tried 400x400Km with a decent resolution like 5m/px, width * height will be equal to 7 530 086 400 which overflows int.MaxValue => 2 147 483 647. Due to this limitation, image width is limited to Math.Sqrt(int.MaxValue) => 46340. So you should set resolution to 9 m/px until I add the system able to split very large images.
I will also submit a merge request on ImageSharp to compute width * height on a long to circumvent the issue (and allow draw operation on large pictures). But not sure that images that are larger than 8 GiB will be seen as legitimate use case.

from armarealmap.

wwwronin avatar wwwronin commented on June 6, 2024

I think split method may be better. So when will you add that system .

from armarealmap.

jetelain avatar jetelain commented on June 6, 2024

Should have been fixed with the HugeImage system

from armarealmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.