<div dir="ltr"><div dir="ltr">When I run the query in pgadmin4 query tool it works correctly.<div>SELECT<br>       hidro.fid, <a href="http://hidro.name">hidro.name</a>, ST_Intersection(gcc.geom, hidro.geom) AS geom<br>    FROM<br>          vector.hidrography AS hidro, <br>         vector.gcc AS gcc<br>     WHERE ST_Intersects(gcc.geom, hidro.geom) AND <a href="http://gcc.name">gcc.name</a> = UPPER('grande')<br></div><div><div><br></div><div>When I run the same query in mapfile it does not work (it returns only null).</div><div><br></div><div><div style="font-family:"Fira Code","Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";line-height:19px;white-space:pre-wrap"><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">DATA "geom FROM (</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">          SELECT</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">            hidro.fid, <a href="http://hidro.name">hidro.name</a>, ST_Intersection(gcc.geom, hidro.geom) AS geom</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">          FROM</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">            vector.hidrography AS hidro, </font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">            vector.gcc AS gcc</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">          WHERE ST_Intersects(gcc.geom, hidro.geom) AND <a href="http://gcc.name">gcc.name</a> = UPPER('grande')</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000">  ) as subquery USING UNIQUE fid USING SRID=4326"</font></span></div><div style=""><span style="background-color:rgb(255,255,255)"><font color="#000000"><br></font></span></div><div style=""><font color="#000000">The difference is "</font>as subquery USING UNIQUE fid USING SRID=4326"</div></div></div><div><br></div><div>When I run shp2image the query returns:</div><div><br></div><div>...</div><div>msPostGISReadShape: [shape] (null)<br>msPostGISReadShape called.<br>msPostGISReadShape: [shape] (null)<br>msPostGISReadShape called.<br>msPostGISReadShape: [shape] (null)<br>msPostGISReadShape called.<br>msPostGISReadShape: [shape] (null)<br>msPostGISReadShape called.<br>msPostGISReadShape: [shape] (null)<br>msPostGISReadShape called.<br>msPostGISReadShape: [shape] (null)<br>msPostGISLayerFreeItemInfo called.<br>msPostGISLayerClose called: geom FROM (<br>          SELECT<br>            hidro.fid, <a href="http://hidro.name/" target="_blank">hidro.name</a>, ST_Intersection(gcc.geom, hidro.geom) AS geom<br>          FROM<br>            vector.hidrography AS hidro,<br>            vector.gcc AS gcc<br>          WHERE ST_Intersects(gcc.geom, hidro.geom) AND <a href="http://gcc.name/" target="_blank">gcc.name</a> = UPPER('grande')<br>) as subquery USING UNIQUE fid USING SRID=4326<br>msConnPoolRelease(hidrografia,host=************** dbname=****** user=****** password=****** port=5432,0x55c19e119740)<br>msDrawMap(): Layer 0 (hidrografia), 163.260s<br>msDrawMap(): Drawing Label Cache, 0.000s<br>msDrawMap() total time: 163.260s<br>msSaveImage(ttt.png) total time: 0.011s<br>msFreeMap(): freeing map at 0x55c19e10d3f0.<br>freeLayer(): freeing layer at 0x55c19e114ae0.<br>msPostGISLayerIsOpen called.<br>shp2img total time: 163.272s<br>msConnPoolClose(host=************ dbname=******** user=******** password=******** port=5432,0x55c19e119740)<br>GDAL: In GDALDestroy - unloading GDAL shared library.<br></div><div><br></div><div>PostgreSQL log returns:</div><div><br></div><div>FATAL: connection with client has been lost<br>COMMAND: select ST_AsBinary (("geom"), 'NDR') as geom, "fid" :: text from (<br>SELECT<br>hydro.fid, <a href="http://hydro.name/" target="_blank">hydro.name</a>, ST_Intersection (gcc.geom, hydro.geom) AS geom<br>FROM<br>vector.hidrography AS hydro,<br>vector.gcc AS gcc<br>WHERE ST_Intersects (gcc.geom, hydro.geom) AND <a href="http://gcc.name/" target="_blank">gcc.name</a> = UPPER ('grande')) as subquery where "geom" && ST_GeomFromText ('POLYGON ((- 46.7031998460824 -15.4471601311111, -46.703199856608-9353563593463563593563561035610610356)) , -43.0600566044731 -15.4471601311111, -46.7031998460824 -15.4471601311111)) ', 4326)<br></div><div><br></div><div>I didn't find out why the mapserver is not executing this query correctly.</div></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><a href="http://lattes.cnpq.br/0646984654461300" target="_blank"><span style="color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)"><font size="2"><b>Fernando Martins Pimenta</b></font></span></span></a><br>Graduando em Engenharia de Agrimensura e Cartográfica - UFV<br>Bacharel em Engenharia de Biossistemas - UFSJ<br><br><a href="http://www.biosfera.dea.ufv.br" target="_blank">www.biosfera.dea.ufv.br</a><br><img src="https://docs.google.com/uc?id=0BwEKA5E4J-qwcmZVMDJDMm9FUEE&export=download" height="48" width="96"><br></div><br></div><br></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020 at 1:02 PM <<a href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send mapserver-users mailing list submissions to<br>
        <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:mapserver-users-request@lists.osgeo.org" target="_blank">mapserver-users-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:mapserver-users-owner@lists.osgeo.org" target="_blank">mapserver-users-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of mapserver-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. PostGIS query problem (Fernando Martins Pimenta)<br>
   2. Re: PostGIS query problem (Seth G)<br>
   3. Re: PostGIS query problem (Jeff McKenna)<br>
   4. Sliver when displaying 0°-360° NetCDF data in EPSG:3857<br>
      (Rousseau Lambert2, Louis-Philippe (EC))<br>
   5. Problem with Python MapScript queryByRect (Just van den Broecke)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 25 Jun 2020 17:16:33 -0300<br>
From: Fernando Martins Pimenta <<a href="mailto:fernando.m.pimenta@gmail.com" target="_blank">fernando.m.pimenta@gmail.com</a>><br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: [mapserver-users] PostGIS query problem<br>
Message-ID:<br>
        <<a href="mailto:CA%2BVvBcEZ5tUetUXjAc-DSt3NMLo_ZCTX2oP4yiiEd0VUrX-odQ@mail.gmail.com" target="_blank">CA+VvBcEZ5tUetUXjAc-DSt3NMLo_ZCTX2oP4yiiEd0VUrX-odQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
I am using the query below to return a hydrograph of a region (using<br>
POSTGIS). This query works perfectly when I use it in pgadmin. With the<br>
mapserver, the connection with the client is lost. It records a query that<br>
shows no errors in SQL, just shows that the connection has lost. Why is<br>
that?<br>
<br>
DATA "geom FROM (<br>
         SELECT<br>
            hidro.fid, <a href="http://hidro.name" rel="noreferrer" target="_blank">hidro.name</a>, ST_Intersection(gcc.geom, hidro.geom) AS<br>
geom<br>
          FROM<br>
            vector.hidrography AS hidro,<br>
            vector.gcc AS gcc<br>
          WHERE ST_Intersects(gcc.geom, hidro.geom) AND <a href="http://gcc.name" rel="noreferrer" target="_blank">gcc.name</a> = 'GRANDE'<br>
) as subquery USING UNIQUE fid USING SRID=4326"<br>
<br>
Thanks in advance<br>
<br>
*Fernando Martins Pimenta <<a href="http://lattes.cnpq.br/0646984654461300" rel="noreferrer" target="_blank">http://lattes.cnpq.br/0646984654461300</a>>*<br>
Graduando em Engenharia de Agrimensura e Cartográfica - UFV<br>
Bacharel em Engenharia de Biossistemas - UFSJ<br>
<br>
<a href="http://www.biosfera.dea.ufv.br" rel="noreferrer" target="_blank">www.biosfera.dea.ufv.br</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200625/e300a5d6/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200625/e300a5d6/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 25 Jun 2020 22:20:50 +0200<br>
From: "Seth G" <<a href="mailto:sethg@geographika.co.uk" target="_blank">sethg@geographika.co.uk</a>><br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] PostGIS query problem<br>
Message-ID: <<a href="mailto:e0622663-7609-424b-9cc5-aac53925fd05@www.fastmail.com" target="_blank">e0622663-7609-424b-9cc5-aac53925fd05@www.fastmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
What client are you using?<br>
How long does the query take to complete?<br>
It is likely the client stops waiting for a response.<br>
<br>
Seth<br>
<br>
--<br>
web:<a href="http://geographika.co.uk" rel="noreferrer" target="_blank">http://geographika.co.uk</a><br>
twitter: @geographika<br>
<br>
<br>
On Thu, Jun 25, 2020, at 10:16 PM, Fernando Martins Pimenta wrote:<br>
> Hi,<br>
> <br>
> I am using the query below to return a hydrograph of a region (using POSTGIS). This query works perfectly when I use it in pgadmin. With the mapserver, the connection with the client is lost. It records a query that shows no errors in SQL, just shows that the connection has lost. Why is that?<br>
> <br>
> DATA "geom FROM (<br>
>  SELECT<br>
>  hidro.fid, <a href="http://hidro.name" rel="noreferrer" target="_blank">hidro.name</a>, ST_Intersection(gcc.geom, hidro.geom) AS geom<br>
>  FROM<br>
>  vector.hidrography AS hidro, <br>
>  vector.gcc AS gcc<br>
>  WHERE ST_Intersects(gcc.geom, hidro.geom) AND <a href="http://gcc.name" rel="noreferrer" target="_blank">gcc.name</a> = 'GRANDE' <br>
>  ) as subquery USING UNIQUE fid USING SRID=4326"<br>
> <br>
> Thanks in advance<br>
> <br>
> *Fernando Martins Pimenta <<a href="http://lattes.cnpq.br/0646984654461300" rel="noreferrer" target="_blank">http://lattes.cnpq.br/0646984654461300</a>>*<br>
> Graduando em Engenharia de Agrimensura e Cartográfica - UFV<br>
> Bacharel em Engenharia de Biossistemas - UFSJ<br>
> <br>
> <a href="http://www.biosfera.dea.ufv.br" rel="noreferrer" target="_blank">www.biosfera.dea.ufv.br</a><br>
> <br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200625/af1484e5/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200625/af1484e5/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 25 Jun 2020 21:36:58 -0300<br>
From: Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>><br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] PostGIS query problem<br>
Message-ID:<br>
        <<a href="mailto:c2612680-d503-215e-14a7-fe4bac21c4a4@gatewaygeomatics.com" target="_blank">c2612680-d503-215e-14a7-fe4bac21c4a4@gatewaygeomatics.com</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
Hi Fernando,<br>
<br>
I would try using the shp2img utility at the commandline, and set CONFIG <br>
"CPL_DEBUG" "ON" in your mapfile (see <br>
<a href="https://mapserver.org/optimization/debugging.html#step-3-turn-on-cpl-debug-optional" rel="noreferrer" target="_blank">https://mapserver.org/optimization/debugging.html#step-3-turn-on-cpl-debug-optional</a>) <br>
and then execute:<br>
<br>
   shp2img -m mymap.map -o ttt.png -all_debug 5<br>
<br>
The full query should be listed there in the response, which you can <br>
then paste into the psql commandline, and manually execute the same <br>
query to your database.<br>
<br>
PS. hello to my friends in Brasil!<br>
<br>
-jeff<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
co-founder of FOSS4G<br>
<a href="http://gatewaygeo.com/" rel="noreferrer" target="_blank">http://gatewaygeo.com/</a><br>
<br>
<br>
On 2020-06-25 5:16 p.m., Fernando Martins Pimenta wrote:<br>
> Hi,<br>
> <br>
> I am using the query below to return a hydrograph of a region (using <br>
> POSTGIS). This query works perfectly when I use it in pgadmin. With the <br>
> mapserver, the connection with the client is lost. It records a query <br>
> that shows no errors in SQL, just shows that the connection has lost. <br>
> Why is that?<br>
> <br>
> DATA "geom FROM (<br>
>           SELECT<br>
>              hidro.fid, <a href="http://hidro.name" rel="noreferrer" target="_blank">hidro.name</a> <<a href="http://hidro.name" rel="noreferrer" target="_blank">http://hidro.name</a>>, <br>
> ST_Intersection(gcc.geom, hidro.geom) AS geom<br>
>            FROM<br>
>              vector.hidrography AS hidro,<br>
>              vector.gcc AS gcc<br>
>            WHERE ST_Intersects(gcc.geom, hidro.geom) AND <a href="http://gcc.name" rel="noreferrer" target="_blank">gcc.name</a> <br>
> <<a href="http://gcc.name" rel="noreferrer" target="_blank">http://gcc.name</a>> = 'GRANDE'<br>
> ) as subquery USING UNIQUE fid USING SRID=4326"<br>
> <br>
> Thanks in advance<br>
> <br>
> *Fernando Martins Pimenta <<a href="http://lattes.cnpq.br/0646984654461300" rel="noreferrer" target="_blank">http://lattes.cnpq.br/0646984654461300</a>>*<br>
> Graduando em Engenharia de Agrimensura e Cartográfica - UFV<br>
> Bacharel em Engenharia de Biossistemas - UFSJ<br>
> <br>
> <a href="http://www.biosfera.dea.ufv.br" rel="noreferrer" target="_blank">www.biosfera.dea.ufv.br</a> <<a href="http://www.biosfera.dea.ufv.br" rel="noreferrer" target="_blank">http://www.biosfera.dea.ufv.br</a>><br>
> <br>
> <br>
> <br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 26 Jun 2020 13:00:31 +0000<br>
From: "Rousseau Lambert2, Louis-Philippe (EC)"<br>
        <<a href="mailto:louis-philippe.rousseaulambert2@canada.ca" target="_blank">louis-philippe.rousseaulambert2@canada.ca</a>><br>
To: "<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>"<br>
        <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
Subject: [mapserver-users] Sliver when displaying 0°-360° NetCDF<br>
        data in EPSG:3857<br>
Message-ID:<br>
        <<a href="mailto:mailman.97986.1593187336.17185.mapserver-users@lists.osgeo.org" target="_blank">mailman.97986.1593187336.17185.mapserver-users@lists.osgeo.org</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
<br>
This issue is related to:<br>
<br>
  *   <a href="https://github.com/mapserver/mapserver/commit/722716c49de2399f54b275ab31437f0e8c92cd63" rel="noreferrer" target="_blank">https://github.com/mapserver/mapserver/commit/722716c49de2399f54b275ab31437f0e8c92cd63</a><br>
  *   <a href="https://github.com/mapserver/mapserver/commit/4c2aeb4bbd229723d8ea67c337cf02350575b2ae" rel="noreferrer" target="_blank">https://github.com/mapserver/mapserver/commit/4c2aeb4bbd229723d8ea67c337cf02350575b2ae</a><br>
<br>
The issue is that when I try to visualize (via WMS) a layer with a NetCDF data file with longitude from 0° to 360° in EPSG:3857, there is a sliver around longitude 0° where no data is displayed.<br>
<br>
We already had that issue with the same files using EPSG:4326 and it's been fixed in MapServer (see merge request above).<br>
<br>
Here is where you can find example files: <a href="https://dd.weather.gc.ca/model_giops/netcdf/lat_lon/2d/00/003/CMC_giops_votemper_depth_0.5_latlon0.2x0.2_3h-mean_%7Byyyymmdd%7D00_P003.nc" rel="noreferrer" target="_blank">https://dd.weather.gc.ca/model_giops/netcdf/lat_lon/2d/00/003/CMC_giops_votemper_depth_0.5_latlon0.2x0.2_3h-mean_{yyyymmdd}00_P003.nc</a><br>
<br>
We are testing using: MapServer version 7.4.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
Here is a minimal mapfile to reproduce:<br>
<br>
    MAP<br>
 NAME ""<br>
 IMAGETYPE PNG<br>
 EXTENT -180 -90 180 90<br>
 MAXSIZE 4096<br>
 SIZE 500 300<br>
 IMAGECOLOR 255 255 255<br>
 PROJECTION<br>
  "init=epsg:4326"<br>
 END<br>
 TRANSPARENT ON<br>
  DEBUG 5<br>
     WEB<br>
      METADATA<br>
    "ows_extent" "-180 -90 180 90"<br>
    "wms_getmap_formatlist" "image/png,image/jpeg"<br>
    "wms_timeformat" "YYYY-MM-DDTHH:MM:SSZ"<br>
    "wms_getfeatureinfo_formatlist" "text/plain"<br>
    "ows_enable_request" "*"<br>
    "ows_abstract" ""<br>
    "ows_srs" "EPSG:4326 EPSG:3857"<br>
    "ows_title" ""<br>
      END<br>
     END<br>
    LAYER<br>
     NAME "TEST"<br>
     DEBUG 5<br>
     TYPE RASTER<br>
     PROCESSING "GDAL_NETCDF_BOTTOMUP=YES"<br>
     TOLERANCE 15<br>
     TEMPLATE "ttt.html"<br>
PROJECTION<br>
 "proj=longlat"<br>
 "a=6371229"<br>
 "b=6371229"<br>
 "lon_wrap=180"<br>
 "no_defs"<br>
END<br>
     DATA ''<br>
     METADATA<br>
      "ows_title" ""<br>
      "ows_abstract" ""<br>
      "ows_extent" "-180 -80.1 180 89.9"<br>
      "ows_geomtype" "Geometry"<br>
     END<br>
CLASS<br>
 NAME ""<br>
 STYLE<br>
  COLORRANGE 0 0 127 127 0 0<br>
  DATARANGE 200.00 400<br>
 END<br>
END<br>
    END<br>
END<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200626/09ce9091/attachment.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200626/09ce9091/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 26 Jun 2020 17:55:01 +0200<br>
From: Just van den Broecke <<a href="mailto:justb4@gmail.com" target="_blank">justb4@gmail.com</a>><br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: [mapserver-users] Problem with Python MapScript queryByRect<br>
Message-ID: <<a href="mailto:35fd8e93-e9c2-240b-154f-4c231c4c0d00@gmail.com" target="_blank">35fd8e93-e9c2-240b-154f-4c231c4c0d00@gmail.com</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
Hi,<br>
<br>
I am reviving a Python 2 MapServer MapScript app that used to work 7 <br>
years ago (and still is in old deployment) but stuck in some MapScript <br>
calls that fail but also throw no Exceptions.<br>
<br>
Purpose of the app "MapGlow" [1] is to generate a WMS-heatmap triggered <br>
by specific STYLE parameters. When no heatmap STYLE is requested <br>
requests are delegated to map_file.OWSDispatch() etc. The latter works <br>
fine so the overall setup/stack/mapfile is working. Using MS 7.6.0 in <br>
Docker (compose) with Lighttp, FastCGI, WSGI, flup.<br>
<br>
It is only when  layerObj.queryByRect() is called, a HTTP 500 is <br>
returned after a FastCGI hard error, no means to catch an Exception. The <br>
passed MapFile and Rect objects seem ok. Also I noticed that <br>
layerObj.metadata had 0 items. I can see that I have proper SWIG objects <br>
like<br>
<mapscript.layerObj; proxy of <Swig Object of type 'layerObj *' at <br>
0x7fded06b1de0> ><br>
If only I could get a hint, a MapFile setting, maybe some log output or <br>
debug flag I can set? The WIP is on GH, I can point at the failing line <br>
[2] but the code is<br>
quite involved (mind, my first Python 7-9 years ago):<br>
<br>
[1] <a href="https://github.com/justb4/mapglow" rel="noreferrer" target="_blank">https://github.com/justb4/mapglow</a><br>
[2] <br>
<a href="https://github.com/justb4/mapglow/blob/master/app1/wms/mapglow_ms.py#L249" rel="noreferrer" target="_blank">https://github.com/justb4/mapglow/blob/master/app1/wms/mapglow_ms.py#L249</a><br>
<br>
Thanks for any help,<br>
<br>
Just van den Broecke<br>
The Netherlands<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
------------------------------<br>
<br>
End of mapserver-users Digest, Vol 149, Issue 15<br>
************************************************<br>
</blockquote></div></div>