AFAIK this does not upload the geotiff files, but just updates the configuration in Geoserver to look at those new files (because you use "external")
This in itself should not create out-of-memory conditions in Geoserver

see: https://docs.geoserver.org/latest/en/api/#1.0.0

> The upload method. Can be "url", "file", "external", "remote". “file” uploads a file from a local source. The body of the request is the file itself. “url” uploads a file from a remote source. The body of the request is a URL pointing to the file to upload. This URL must be visible from the server. “external” uses an existing file on the server. The body of the request is the absolute path to the existing file. “remote” uses a direct reference to a remote url, i.e. a file on a cloud storage. No data copy will occur. The body of the request is a URL pointing to the remote dataset.

- M


On 17-01-2022 14:26, Nikola Krlovic wrote:

Hi - so I do not understand the question - I am self taught with a lot of holes in knowledge, so please forgive me.

Basically, I am harvesting files from one folder, and they appear, as required, as another layer in the Mosaic, using curl scripts that are executed via cron every 24 hours.

After the script is executed I check the Dimensions of the ImageMosaic with GetCapabilities, and see that the new file has been added, it is visible when I do a getMap request, and appears on my webmap - however, I wish to know where the actual physical GeoTIFF is - does it remain the folder where I reharvested it from or is there a copy as well, that is created during the process.

The example is similar as below, as explained by GeoSolutions :

Harvesting can also be directed towards a whole directory, as follows:

curl -v -u admin:geoserver -XPOST -H "Content-type: text/plain" -d "file:///path/to/the/mosaic/folder" "http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores/poly-incremental/external.imagemosaic <http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores/poly-incremental/external.imagemosaic>"

Kindest regards,

Nikola
On Mon, Jan 17, 2022 at 2:21 PM Alexandre Gacon <alexandre.ga...@gmail.com <mailto:alexandre.ga...@gmail.com>> wrote:

    Hi,

    Could you precise what API you are using?

    Alexandre

    Le lun. 17 janv. 2022 à 14:12, Nikola Krlovic
    <nikola.krlo...@gmail.com <mailto:nikola.krlo...@gmail.com>> a écrit :

        Dear all,

        I have managed to set up a CURL command that is executed via a
        cron job every 24 hours, and it takes the last 24 geotiffs
        corresponding to the day in question and puts them in the
        imagemosaic.

        The question that a SysAdmin asked me (out of memory concerns)
        is, where is the data? It does not appear in my data_dir folder,
        but it is visible and fully functioning when a GetCapabilities
        is ran.

        Does it just read the data from the source folder, or are the
        GeoTiffs actually getting transferred somewhere during the
        harvesting process?

        Kindest regards,

        Nikola
        _______________________________________________
        Geoserver-users mailing list

        Please make sure you read the following two resources before
        posting to this list:
        - Earning your support instead of buying it, but Ian Turton:
        http://www.ianturton.com/talks/foss4g.html#/
        <http://www.ianturton.com/talks/foss4g.html#/>
        - The GeoServer user list posting guidelines:
        http://geoserver.org/comm/userlist-guidelines.html
        <http://geoserver.org/comm/userlist-guidelines.html>

        If you want to request a feature or an improvement, also see
        this:
        
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
        
<https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer>


        Geoserver-users@lists.sourceforge.net
        <mailto:Geoserver-users@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/geoserver-users
        <https://lists.sourceforge.net/lists/listinfo/geoserver-users>



-- Alexandre Gacon



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users




_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to