[Zoo-discuss] ZOO Project with MapServer (WIndows 10)

Gérald Fenoy gerald.fenoy at geolabs.fr
Mon Jul 2 01:50:34 PDT 2018


Dear Mayank,
you are right about this double file creation. 

This is an issue which is here for long time, with the very old version of GDAL we were using at the time of the implementation we realized that it was expecting the zip files to end by the « .zip » string. As we wanted to support services that return zipped shape file then we decided to try to load the file as a zip file first, so we should rename the file to add the .zip extension. The ZOO-Kernel then try to load the file as a zip file, which fail generally (except in case you service return a zipped shapefile) then try to load the original file.

Note that if you try to use the version of the ZOO-Kernel which is available on the prototype-v0 branch then this double file creation has been removed.

I hope this helps.

Bes regards,

Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay

> Le 2 juil. 2018 à 08:36, MAYANK JASORIA <f2016703 at pilani.bits-pilani.ac.in> a écrit :
> 
> Just a follow up to the previous email,
> Although the mapfile is generated successfully and both GetMap (WMS) and GetFeature (WFS) requests are working, two files, a .data file and a .zip file are also generated with each request and for every request, the zoo-error log says "Unable to access the DataSource as ZIP File".
> 
> Is this some configuration error which is perhaps also related to the previous email?
>> 
> On Mon, Jul 2, 2018 at 11:37 AM, MAYANK JASORIA <f2016703 at pilani.bits-pilani.ac.in> wrote:
> I have got MapServer working fine now. Thanks for the help.
> 
> I finally ended up passing GML3 to generate the mapfile from the WPS service with MapServer. The problem is that this mapfile does not seem to support WMS GetFeatureInfo. Are there some additional configuration steps required to add that? (The generated mapfile does not contain any TEMPLATE element.)
> 
> Please Help. Thanks in advance
>> 
> On Fri, Jun 29, 2018 at 9:01 PM, Gérald Fenoy <gerald.fenoy at geolabs.fr> wrote:
> Mayank,
> I suppose you may have better result using this version of the installer [1].
> 
> For being able to use « Shapefile as input », you should provide a zip file containing all the files associated with it.
> 
> When you say the image is resized in the image you get when accessing the returned GetMap url, it is probably due to the fact that the GetMap returned use the WGS84 projection (EPSG:4326). Nevertheless, the published mapfile (first part of the URL) can be accessed through a WMS client to display it in another supported projection system, such as Spherical Mercator (EPSG:3857) used by traditional tile providers. 
> 
> I hope this helps.
> 
> Regards,
> 
> 
> 
> [1] https://bintray.com/gfenoy/ZOO-Project/Windows-Binaries/1.6.0-rc2#files
> 
> Gérald Fenoy
> http://wiki.osgeo.org/wiki/User:Djay
> 
> > Le 29 juin 2018 à 16:36, MAYANK JASORIA <f2016703 at pilani.bits-pilani.ac.in> a écrit :
> > 
> > I am using ZOO Project 1.5.0 installed using ZOO-Project-Installer-x64-72.exe.
> > 
> > For MapServer I followed the instructions to host MapServer on IIS according to this link: MapServer on IIS (MapServer version 7.0.7).
> > 
> > As for the data that I want to process, I was initially under the impression that it should be some result from WMS GetMap request as GDAL does list image/png, image/geotiff etc. as a valid input accepting rasters (MapServer input formats). However, it does make sense that I needed the data from a WFS GetFeature request, unlike my previous thoughts. I also tested the geotiff8 input for multiple cases and found that after a point it started to fail miserably, giving outputs which were very far off from the actual data. Sorry for this confusion, I'm pretty new to this.
> > 
> > Now when I tried WFS GetFeatures, it seems to work fine for GML 3. However, if I try to pass a shapefile, I see the same errors which I reported for other formats. I tried this on a script that I wrote instead of HelloPy though as it is easier to try the returned GetMap URL (from MapServer) here. Also, I found that the KML error was because of an error on my part.
> > 
> > There is another thing though. Now the images that I am getting are getting resized instead of maintaining the actual shape which it should, to align properly on a map. I am not sure of the reason though I guess it is because the image is getting resized according to the width and height parameters in the GetMap request returned from MapServer.
> > 
> > Could you please guide me on the shapefile and image resizing issue?
> > 
> > Thank you very much for your help.
> > 
> > On Fri 29 Jun, 2018, 5:56 PM Gérald Fenoy, <gerald.fenoy at geolabs.fr> wrote:
> > Dear Mayank,
> > there are few things I am not sure to understand correctly in your email.
> > 
> > You say that you want to process data coming from a GetMap request, I guess that you want to process the data coming from a GetFeature request. Indeed, in case you want to process any WPS service on vector data you should then use a WFS GetFeature request. You may be willing to process raster data but, in such a case, we usually use a WCS GetCoverage  request rather than a WMS GetMap one.
> > 
> > Also, you make mention of using HelloPy to access your data, nevertheless, HelloPy service does not except any binary data but a string only. So, I suppose that there may be some issue when trying to convert your binary data to a string. Still, it should not occur.
> > 
> > You also said that when you pass a geotiff you are getting the required results, I would like to be sure that the produced files contain what you expect as a result. Can you please confirm you are getting the proper output? 
> > 
> > I would like to be sure of what is the version of the ZOO-Project you are using on your windows platform. What is the installer you have used? I guess the best choice available currently is MS4W.
> > 
> > I hope to hear back from you.
> > 
> > Best regards,
> > 
> > 
> > 
> > > Le 27 juin 2018 à 08:18, MAYANK JASORIA <f2016703 at pilani.bits-pilani.ac.in> a écrit :
> > > 
> > > Dear all,
> > > 
> > > I am working on a service which fetches some data via a getMap WMS request to GeoServer. This is then supposed to give me a GetMap request URL from the mapfile generated by MapServer, which once made would return the WMS layer as required. The problem is that for all formats of data returned by GeoServer except image/geotiff8, I am getting  ZOO Kernel failed to process your request, receiving signal 11 = SIGSEGV error. The same is happening if I pass any such data to HelloPy (according to the test method on the ZOO website).
> > > 
> > > If I pass Geotiff8 however, I am getting the required results.
> > > 
> > > Two files, a .data file and a .zip file are generated with each request. Also, for every request, the zoo-error log says "Unable to access the DataSource as ZIP File", along with different messages (sometimes none) for different formats of data passed.
> > > 
> > > For the following formats, a .map file is generated, but the SIGSEGV error persists.:
> > >       • image/jpeg
> > >       • image/geotiff
> > >       • kml
> > >       • rss
> > > Zoo Project was installed using the installer and MapServer 7.0.7 are installed.
> > > If some more information is needed, I have posted a question here. 
> > > 
> > > I would be highly obliged if someone could help me.
> > > ᐧ
> > > _______________________________________________
> > > Zoo-discuss mailing list
> > > Zoo-discuss at lists.osgeo.org
> > > https://lists.osgeo.org/mailman/listinfo/zoo-discuss
> > 
> > 
> > 
> > Gérald Fenoy
> > http://wiki.osgeo.org/wiki/User:Djay
> > 
> > ᐧ
> 
> 
> 
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/zoo-discuss



More information about the Zoo-discuss mailing list