Re: [Geoserver-users] How to upload custom files to Geoserver

2019-12-09 Thread fawzyb
I am very sorry, the exception occured due to another reason, I was returning null string :) Now everything is working fine. Regards, Fawzy -- Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: https://tutanota.com Dec 8, 2019, 08:57 by faw...@tutamail.com: > Thanks

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-12-07 Thread fawzyb
Thanks Imarn for you reply. I have set the maxPostSize to a large value in tomcat, but the same exception still occures. Any help! Regards, Fawzy -- Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: https://tutanota.com Dec 8, 2019, 05:38 by raj...@gmail.com: > Hi, >

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-12-07 Thread Imran Rajjad
Hi, Are you running Tomcat? Try increasing the allowed request size. By default its around 100k approximately. Regards, Imran On Sun, 8 Dec 2019 at 12:55 AM, wrote: > > > > > > > > > > > Hi, > I have created a custom WPS for the import stuff, and I am putting the > base64 encoding of the file

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-12-07 Thread fawzyb
Hi, I have created a custom WPS for the import stuff, and I am putting the base64 encoding of the file to be imported in the request body. The problem now is when the file size reaches few kilo bytes (e.g. 10kb) the GeoServer throws a NullPointerException java.lang.NullPointerException at

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-16 Thread fawzyb
Thanks a lot Andrea for your help :) Regards, Fawzy -- Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: https://tutanota.com Nov 14, 2019, 21:51 by andrea.a...@geo-solutions.it: > Hi, > I believe most web containers limit the size of what can be uploaded by POST, >

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-14 Thread Andrea Aime
Hi, I believe most web containers limit the size of what can be uploaded by POST, but it's configurable.. in each container in a different way. For example, in GeoSolutions we use Tomcat, and the configuration is called maxPostSize, see here:

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-13 Thread fawzyb
Hi, The problem in this solution is that the limitation of the body of the WPS request. I tried to search if there isĀ  a limitation on that, but found that it's just the limitation of the web-browser you are using. Is that correct? are there any other limitations on the WPS request's body?

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-13 Thread Andrea Aime
Hi, since this is a mix of info that can be directly managed by GeoServer (the GML), and info that do not (the images), and you're already familiar with writing a WPS process, writing another process to do the import and place the files wherever you need would seem the easiest way. Cheers Andre

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-13 Thread fawzyb
Hi Andrea, Thanks a lot for your replies. My problem is: 1- I have a vector layer, which has some points. 2- When a user adds a point, he associates an image to it. He first needs to upload these images to GeoServer (using a custom WPS I've made), then assign each image to as much points as he

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-13 Thread Andrea Aime
On Wed, Nov 13, 2019 at 6:36 PM wrote: > My data is neither a vector nor a raster data. It's a custom data. > Oh, in that case the import is the last of your problems, GeoServer has concepts only for rasters and vectors, if your custom data can be related to one of those two (or both) you'll

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-13 Thread Andrea Aime
On Mon, Nov 11, 2019 at 9:10 PM wrote: > I've taken a look at the Importer Plugin, but found that it can only > upload vector files, which is not my case. > Where did you get this information from? The importer can import raster data too, e.g.:

Re: [Geoserver-users] How to upload custom files to Geoserver

2019-11-13 Thread Jody Garnett
Options: - as you found the importer can accept a zip file, unpack it and import the vector contents. - you may use the REST API to upload individual resources (this is intended to upload icons and fonts for example) - If you really need to upload a zip, you may wish to write a custom plugin --

[Geoserver-users] How to upload custom files to Geoserver

2019-11-11 Thread fawzyb
Hi, My environment is PostGIS + GeoServer + OpenLayers. I need to implement a method for import/export, where the user will select some features, these features might have some custom image icons associated to them. So the features data and the images need to be exported into a single zip