agreed, shouldn't segfault in either case
From: Andrea Peri
Sent: Friday, August 18, 2017 2:22:15 PM
To: Lime, Steve D (MNIT)
Cc: Dave Barter; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Segfault - LINE layer
Hi, I guess
Hi, I guess the avoid of empty or null geometries should happened surely in
wms service.
Not sure It is good in wfs services.
A.
Il 18 Ago 2017 17:19, "Lime, Steve D (MNIT)" ha
scritto:
Still it the code should gracefully skip empty geometries. Can you create a
ticket
Still it the code should gracefully skip empty geometries. Can you create a
ticket please?
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On
Behalf Of Dave Barter
Sent: Friday, August 18, 2017 9:56 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users]
Hi,
As a quick workaround edit your DATA:
where type in ('trunk','motorway','primary') AND geometry is not null
-Jukka Rahkonen-
Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org]
Puolesta Dave Barter
Lähetetty: 18. elokuuta 2017 16:05
Vastaanottaja:
>
> As a quick workaround edit your DATA:
>
> where type in ('trunk','motorway','primary') AND geometry is not null
>
> -Jukka Rahkonen-
That will not work as an empty geometry is not null
The fix is WHERE NOT ST_EMPTY(geometry)
>
> Lähettäjä: mapserver-users
> On 18 Aug 2017, at 13:44, Lime, Steve D (MNIT) wrote:
>
> I'd call it a bug. What version? Can you prepare a small test case?
MapServer version 7.0.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS
This call:-
/usr/lib/cgi-bin/mapserv.ngx -nh
"QUERY_STRING=map=/usr/src/app/mapfiles/api/wms_osm_google_world_bw.map=WMS=1.1.1=GetMap=WMS==-6114.962263%2c6099063.360931%2c162657.996191%2c6267836.319384=276=276=image%2fpng=EPSG%3a3857=roads8=false
Is giving me:-
Segmentation fault (core dumped)