The REST endpoint I am using is POST to
http://localhost:8080/geoserver/rest/imports

To create the ImageMosaic the JSON sent is

{
    "import" : {
        "targetWorkspace" : {
            "workspace" : {
                "name" : "TEST"
            }
        },
        "data" : {
            "type" : "mosaic",
            "location" : "D:\\PART1"
        }
   }
}

Now in order to add files from a different directory I send the following

{
    "import" : {
        "targetStore" : {
            "store" : "PART1"
        },
        "targetWorkspace" : {
            "workspace" : {
                "name" : "TEST"
            }
        },
        "data" : {
            "type" : "mosaic",
            "location" : "D:\\PART2"
        }
    }
}
The above was copied from a computer that is not connected to the internet
so I apologize if there are any obvious errors in the JSON,
Looking at the GeoServer source code I see that the error I am getting is
thrown in importer.java at initForMosaic.

On a related note. Is there any way to get GeoServer to log the requests it
gets from the supplied Web UI. Perhaps I could do this at the level of the
Jetty web server. This would be a really useful to the API documentation.

Regards,

Simon Crown


On Sun, Feb 14, 2021 at 10:17 AM Andrea Aime <[email protected]>
wrote:

> Hi Simon,
> can you please show which requests you've used?
>
> Cheers
> Andrea
>
> On Sun, Feb 14, 2021 at 9:14 AM Simon Crown <[email protected]>
> wrote:
>
>> GeoServer 2.18.0 Java 1.8 on Windows
>>
>> I have succeeded in creating an ImageMosaic store using the REST API.
>> This store is located as a single directory in the file system. The data
>> are GeoTIFF.
>>
>> I would like to add new tiles to this store. To do this l add a
>> targetStore JSON object to the REST import object. GeoServer returns an
>> INIT_ERROR with a message " ingest not supported for mosaics"
>>
>> This seems to indicate that it is not possible to extend a mosaic once it
>> has been created. Is this the case or perhaps I am calling the REST API
>> incorrectly?
>>
>> Note. I previously posted this question to GIS StackExchange but it was
>> not answered so I am trying my luck here.
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
> --
>
> Regards, Andrea Aime
>
> == GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
> Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
> (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
> http://www.geo-solutions.it http://twitter.com/geosolutions_it
> ------------------------------------------------------- *Con riferimento
> alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
> Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
> circostanza inerente alla presente email (il suo contenuto, gli eventuali
> allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
> destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
> errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
> sarei comunque grato se potesse darmene notizia. This email is intended
> only for the person or entity to which it is addressed and may contain
> information that is privileged, confidential or otherwise protected from
> disclosure. We remind that - as provided by European Regulation 2016/679
> “GDPR” - copying, dissemination or use of this e-mail or the information
> herein by anyone other than the intended recipient is prohibited. If you
> have received this email by mistake, please notify us immediately by
> telephone or e-mail.*
>
_______________________________________________
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


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to