From mniemyjski at cloudferro.com Tue Jan 2 01:47:12 2024 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Tue, 2 Jan 2024 09:47:12 +0000 Subject: [MapServer-users] TileIndex and Scale problem Message-ID: Hello, I encountered some difficulties while working with TileIndex, specifically for panchromatic rasters. Specifically: 3-band rasters are displayed correctly, but single-band rasters appear as full white boxes. I added the PROCESSING "SCALE=AUTO," and it resolved the issue, but the result is not aesthetically pleasing: [Image Link: https://pasteboard.co/I5AB2PSJR2rC.png] It appears that the scale is being calculated per request rather than for the entire image. Is there a way to improve this? Best regards, Marcin [cid:49c6e6ef-64df-4703-ade9-8d63ced0eeaa] Book time to meet with me -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-umoowoh5.png Type: image/png Size: 528 bytes Desc: Outlook-umoowoh5.png URL: From bob.basques at ci.stpaul.mn.us Fri Jan 5 16:13:49 2024 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Sat, 6 Jan 2024 00:13:49 +0000 Subject: [MapServer-users] OSGeo Twin Cities Local Chapter Monthly Meeting (aka TCMUG) Message-ID: All, This month?s meeting will be at the https://igbrewing.com/ Date: Jan 10th, 4:30 ? 6:00 Place: Inver Grove Brewing (google map link) in Inver Grove Heights, Mn. See you there. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Tue Jan 9 14:35:30 2024 From: bob.basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 9 Jan 2024 22:35:30 +0000 Subject: [MapServer-users] [REMINDER] OSGeo Twin Cities Local Chapter Monthly Meeting (aka TCMUG) Message-ID: All, This month?s meeting will be at the https://igbrewing.com/ Date: Jan 10th, 4:30 ? 6:00 Place: Inver Grove Brewing (google map link) in Inver Grove Heights, Mn. See you there. Bobb Get me in Teams PW19-S295-C024 -------------- next part -------------- An HTML attachment was scrubbed... URL: From genuchten at yahoo.com Tue Jan 16 09:11:45 2024 From: genuchten at yahoo.com (Paul) Date: Tue, 16 Jan 2024 17:11:45 +0000 (UTC) Subject: [MapServer-users] option to use sld in mapfile to configure layer styling References: <1459835906.2369735.1705425105662.ref@mail.yahoo.com> Message-ID: <1459835906.2369735.1705425105662@mail.yahoo.com> mapserver has capability to use SLD to style a layer, by appending sld to request unfortunately there is currently no option to use sld as part of mapfile to style a layer what do you think to add this as a new feature to next version? syntax could be something like this: LAYER ?STYLEITEM "sld://mysldfile.xml" # relative path ?CLASS ?END END Alternative to introduce it also as embedded SLD, but the mix of ms syntax and xml is not very nice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alesinar.grlj at gmail.com Thu Jan 18 01:57:38 2024 From: alesinar.grlj at gmail.com (=?UTF-8?Q?Ale=C5=A1_Grlj?=) Date: Thu, 18 Jan 2024 10:57:38 +0100 Subject: [MapServer-users] Mosaicking large number of rasters Message-ID: I have all my rasters in one table, I would like to serve them through WMS. I Generate the mapfile with mapscript and query the rasters with: ms_layer.data = f"PG:host='{HOST}' user='{USER}' password='{PASS}' " \ f"dbname='{DB}' schema='{some_schema}' table='{some_table}' " \ f"column='rast' mode=2 where='field_id IN ({field_ids}) AND rast IS NOT NULL" This works well for a short list of field_ids (up to 6 places integer) but with a long list (could be up to 10000 elements) it won't because of the "path too long error". I assume the DATA instruction is treated as a path and os determines its max length, preventing the query from executing and the "mosaicked" raster to draw. Correct me if I'm wrong. How would I approach this? Ale? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Thu Jan 18 07:35:32 2024 From: sethg at geographika.co.uk (Seth G) Date: Thu, 18 Jan 2024 16:35:32 +0100 Subject: [MapServer-users] option to use sld in mapfile to configure layer styling In-Reply-To: <1459835906.2369735.1705425105662@mail.yahoo.com> References: <1459835906.2369735.1705425105662.ref@mail.yahoo.com> <1459835906.2369735.1705425105662@mail.yahoo.com> Message-ID: <6e1b627f-3e2f-4bcf-8668-d00051bfbf22@app.fastmail.com> Hi Paul, I think all the code functions are in place to do the bulk of this work, and this would be a nice addition to MapServer. Sharing SLD between applications is a huge benefit. If it is possible to apply SLD from a URL it should also be possible to apply SLD from disk. I wouldn't be a huge fan of embedding SLD directly in a Mapfile (although the CONNECTION parameter can accept large chunks of OGRVRTDataSource XML as long as quotes are escaped). Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jan 16, 2024, at 6:11 PM, Paul via MapServer-users wrote: > mapserver has capability to use SLD to style a layer, by appending sld to request > > unfortunately there is currently no option to use sld as part of mapfile to style a layer > > what do you think to add this as a new feature to next version? > > syntax could be something like this: > > LAYER > > STYLEITEM "sld://mysldfile.xml" # relative path > > CLASS > > END > > END > > Alternative to introduce it also as embedded SLD, but the mix of ms syntax and xml is not very nice. > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlos.padron at gigaclear.com Fri Jan 19 03:46:52 2024 From: carlos.padron at gigaclear.com (Carlos Padron Florez) Date: Fri, 19 Jan 2024 11:46:52 +0000 Subject: [MapServer-users] wfs array attributes as json arrays Message-ID: Hi, Is there a way to configure a WFS so when it is requested a application/json, and one of the attributes happens to be a string array, it returns for that attribute a json array and not a SQL array as a string ? Let me expand. Now I get something like this: "attribute": "{value1, value2}" I'd prefer this: "attribute": ["value1", "value2"] These are extracts from my mapfile that handles the json output: OUTPUTFORMAT NAME "application/json" DRIVER "OGR/GEOJSON" MIMETYPE "application/json" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "STORAGE=memory" FORMATOPTION "FILENAME=result.json" END WEB METADATA ??????... other details ????"wfs_getfeature_formatlist" "OGRGML,application/json" END END Kind regards Carlos Padr?n, MRes | Geomatics Team Lead D: 01865 664120 W: www.gigaclear.com [signature_261337870] Gigaclear ltd, Building 1, Wyndyke Furlong, Abingdon, Oxfordshire, OX14 1UQ Gigaclear plc is registered in England and Wales with company number 07476617 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-signature_.png Type: image/png Size: 10923 bytes Desc: Outlook-signature_.png URL: From pmoen at nd.gov Sat Jan 20 06:24:35 2024 From: pmoen at nd.gov (Moen, Paul T.) Date: Sat, 20 Jan 2024 14:24:35 +0000 Subject: [MapServer-users] Symbol not found: _loadParams In-Reply-To: References: Message-ID: Does anyone know where to begin to find the origins of this error? admin$ mapserv -v dyld[23010]: Symbol not found: _loadParams Referenced from: /usr/local/bin/mapserv Expected in: unknown Abort trap: 6 Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Mon Jan 22 03:37:52 2024 From: pmoen at nd.gov (Moen, Paul T.) Date: Mon, 22 Jan 2024 11:37:52 +0000 Subject: [MapServer-users] Symbol not found: _loadParams In-Reply-To: References: Message-ID: The problem was -DCMAKE_SKIP_RPATH=ON in my cmake command. This was added in the past to get things working on macOS. Evidently it is no longer needed, because removing it seems to fix the problem. cmake .. -DCMAKE_BUILD_TYPE=RELEASE -Wno-dev -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_FCGI=ON -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF -DWITH_KML=ON -DWITH_POSTGIS=ON -DWITH_PHPNG=ON -DWITH_SOS=ON -WITH_CAIRO=ON Everything looks good now. admin$ mapserv -v MapServer version 8.0.1 PROJ version 9.3 GDAL version 3.8 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF Thanks, From: MapServer-users on behalf of Moen, Paul T. via MapServer-users Date: Saturday, January 20, 2024 at 8:25?AM To: mapserver-users at lists.osgeo.org Subject: [MapServer-users] Symbol not found: _loadParams ***** CAUTION: This email originated from an outside source. Do not click links or open attachments unless you know they are safe. ***** Does anyone know where to begin to find the origins of this error? admin$ mapserv -v dyld[23010]: Symbol not found: _loadParams Referenced from: /usr/local/bin/mapserv Expected in: unknown Abort trap: 6 Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Wed Jan 24 11:30:13 2024 From: even.rouault at spatialys.com (Even Rouault) Date: Wed, 24 Jan 2024 20:30:13 +0100 Subject: [MapServer-users] New GDAL Raster Tile Index driver Message-ID: Hi, while I'm still thinking to it, I just wanted to mention a new driver that has landed into the development version of GDAL, code-named "GTI", for GDAL Raster Tile Index ( https://gdal.org/drivers/raster/gti.html ) which will be available in the GDAL 3.9 release. This is basically a MapServer raster tile index that is recognized as a GDAL raster, with a few optional metadata items, typically to declare the target resolution, stored in the vector file (typically GeoPackage or FlatGeoBuf), or externally in a XML file. This should enhance the interoperability between GDAL and MapServer. If using MapServer against GDAL 3.9, you could potentially use such a tile index as a classic DATA in your mapfile. One nice enhancement is that it can also support referencing other tile indexes or plain rasters for overviews. Many possibilities to explore. Even -- http://www.spatialys.com My software is free, but my time generally not. From even.rouault at spatialys.com Thu Jan 25 11:44:51 2024 From: even.rouault at spatialys.com (Even Rouault) Date: Thu, 25 Jan 2024 20:44:51 +0100 Subject: [MapServer-users] New GDAL Raster Tile Index driver In-Reply-To: References: Message-ID: <9dc7521e-b590-4125-8390-1b8630b48afa@spatialys.com> (adding back the list) Le 25/01/2024 ? 20:33, Richard Greenwood a ?crit?: > Sounds like an interesting new driver. What advantages does it have > over tile indexes created with gdaltindex? None, since gdaltindex is the nominal way to create a tile index usable by both the GTI driver and MapServer. > Or in what situations would GTI be preferable to tile indexes? I don't > want to miss out on any new goodness! GTI was created mostly to serve GDAL needs, in particular users that used to use XML VRT to create virtual mosaic. XML VRT works fine, until you try adding 100,000 + tiles into it, where it becomes huge and slow to load. The good thing is that a GTI index can now be used nominally by both GDAL and MapServer. > > Thanks, > Rich > > On Wed, Jan 24, 2024 at 12:30?PM Even Rouault via MapServer-users > wrote: > > Hi, > > while I'm still thinking to it, I just wanted to mention a new driver > that has landed into the development version of GDAL, code-named > "GTI", > for GDAL Raster Tile Index ( > https://gdal.org/drivers/raster/gti.html ) > which will be available in the GDAL 3.9 release. This is basically a > MapServer raster tile index that is recognized as a GDAL raster, > with a > few optional metadata items, typically to declare the target > resolution, > stored in the vector file (typically GeoPackage or FlatGeoBuf), or > externally in a XML file. This should enhance the interoperability > between GDAL and MapServer. > > If using MapServer against GDAL 3.9, you could potentially use such a > tile index as a classic DATA in your mapfile. One nice enhancement is > that it can also support referencing other tile indexes or plain > rasters > for overviews. Many possibilities to explore. > > Even > > -- > http://www.spatialys.com > My software is free, but my time generally not. > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Richard W. Greenwood > www.greenwoodmap.com -- http://www.spatialys.com My software is free, but my time generally not. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Etienne.Pelletier at ec.gc.ca Tue Jan 30 05:45:27 2024 From: Etienne.Pelletier at ec.gc.ca (=?iso-8859-1?Q?Pelletier=2C=C9tienne_=28ECCC=29?=) Date: Tue, 30 Jan 2024 13:45:27 +0000 Subject: [MapServer-users] Is it possible to wrap GeoJSON over multiple globes when using OGR connection type? Message-ID: Hi, We often use single-image requests when generating animations from WMS GetMap images via the use of OpenLayer's ImageWMS source. In many cases, the user may make a request for an image that contains a wrapped globe. In most cases, MapServer is able to handle these requests correctly but we have noticed an issue with a simple EPSG:4326 GeoJSON. See the following request as an example: http://geomet-dev-22.cmc.ec.gc.ca:8020/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360 The PROJECTION directive in the mapfile is defined as such: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END For a similar GeoTIFF with the same projection, adding the lon_wrap=-180 parameter to the proj4 string does the trick and allows the data to be displayed on these "multi-globe" single-image requests. See the following which image which has the following PROJECTION directive defined: https://pasteboard.co/DPK1uNvyEKTd.png PROJECTION "proj=longlat" "datum=WGS84" "lon_wrap=-180" "no_defs" END Is this simply not interpreted the same way for OGR connections? Thanks in advance! Etienne Pelletier, Sp?cialiste en g?omatique / Geomatics Specialist Syst?mes de donn?es g?ospatiales et ouvertes Geospatial and Open Data Systems Service M?t?orologique du Canada Meteorological Service of Canada Environnement et Changement Climatique Canada Environment and Climate Change Canada (514)464-6772 etienne.pelletier at ec.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From Etienne.Pelletier at ec.gc.ca Tue Jan 30 05:49:28 2024 From: Etienne.Pelletier at ec.gc.ca (=?iso-8859-1?Q?Pelletier=2C=C9tienne_=28ECCC=29?=) Date: Tue, 30 Jan 2024 13:49:28 +0000 Subject: [MapServer-users] Is it possible to wrap GeoJSON over multiple globes when using OGR connection type? In-Reply-To: References: Message-ID: Sorry, the above example WMS GetMap URL is incorrect (doh!). The correct one is as follows: http://geo.weather.gc.ca./geomet?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360 That'll teach me to always re-read my emails... or not! Etienne ________________________________ From: MapServer-users on behalf of Pelletier,?tienne (ECCC) via MapServer-users Sent: January 30, 2024 8:45 AM To: mapserver-users at lists.osgeo.org Subject: [MapServer-users] Is it possible to wrap GeoJSON over multiple globes when using OGR connection type? Hi, We often use single-image requests when generating animations from WMS GetMap images via the use of OpenLayer's ImageWMS source. In many cases, the user may make a request for an image that contains a wrapped globe. In most cases, MapServer is able to handle these requests correctly but we have noticed an issue with a simple EPSG:4326 GeoJSON. See the following request as an example: http://geomet-dev-22.cmc.ec.gc.ca:8020/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360 The PROJECTION directive in the mapfile is defined as such: PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END For a similar GeoTIFF with the same projection, adding the lon_wrap=-180 parameter to the proj4 string does the trick and allows the data to be displayed on these "multi-globe" single-image requests. See the following which image which has the following PROJECTION directive defined: https://pasteboard.co/DPK1uNvyEKTd.png PROJECTION "proj=longlat" "datum=WGS84" "lon_wrap=-180" "no_defs" END Is this simply not interpreted the same way for OGR connections? Thanks in advance! Etienne Pelletier, Sp?cialiste en g?omatique / Geomatics Specialist Syst?mes de donn?es g?ospatiales et ouvertes Geospatial and Open Data Systems Service M?t?orologique du Canada Meteorological Service of Canada Environnement et Changement Climatique Canada Environment and Climate Change Canada (514)464-6772 etienne.pelletier at ec.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at eloiribeiro.eu Wed Jan 31 09:27:17 2024 From: mail at eloiribeiro.eu (Eloi Ribeiro) Date: Wed, 31 Jan 2024 17:27:17 +0000 Subject: [MapServer-users] getting incomplete parts of a geometry Message-ID: Hi all, I'm using Mapserver 8.0 and I'm getting incomplete parts of a geometry, either if is TYPE LINE or POLYGON. Please, see pictures https://pasteboard.co/ToPTZ6OnjPaJ.png. I wonder if I'm missing something in the mapfile. The LAYER part of the mapfile looks like this: LAYER TEMPLATE "XXXXX.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX password=XXXXX" DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING srid=28992" EXTENT 194914 420110 195152 420307 PROCESSING "CLOSE_CONNECTION=DEFER" CLASS NAME "Food_Forest" STYLE COLOR 255 0 0 OUTLINEWIDTH 1 END # STYLE END # CLASS END # LAYER Thanks! Cheers, Eloi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Jan 31 10:58:09 2024 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Wed, 31 Jan 2024 18:58:09 +0000 Subject: [MapServer-users] getting incomplete parts of a geometry In-Reply-To: References: Message-ID: Hi, Does the rendered part perhaps match with the extent that you have configured for the layer "EXTENT 194914 420110 195152 420307"? -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Eloi Ribeiro via MapServer-users L?hetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] getting incomplete parts of a geometry Hi all, I'm using Mapserver 8.0 and I'm getting incomplete parts of a geometry, either if is TYPE LINE or POLYGON. Please, see pictures https://pasteboard.co/ToPTZ6OnjPaJ.png. I wonder if I'm missing something in the mapfile. The LAYER part of the mapfile looks like this: LAYER TEMPLATE "XXXXX.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX password=XXXXX" DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING srid=28992" EXTENT 194914 420110 195152 420307 PROCESSING "CLOSE_CONNECTION=DEFER" CLASS NAME "Food_Forest" STYLE COLOR 255 0 0 OUTLINEWIDTH 1 END # STYLE END # CLASS END # LAYER Thanks! Cheers, Eloi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at eloiribeiro.eu Wed Jan 31 11:19:21 2024 From: mail at eloiribeiro.eu (Eloi Ribeiro) Date: Wed, 31 Jan 2024 19:19:21 +0000 Subject: [MapServer-users] getting incomplete parts of a geometry In-Reply-To: References: Message-ID: Hi Jukka, Thanks for your email. I got the extent from the geometry it self. Like so: ogrinfo PG:"host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx" ibm.food_forest -summary INFO: Open of `PG:host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.000000, 420110.000000) - (195152.000000, 420307.000000) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka wrote: > Hi, > > Does the rendered part perhaps match with the extent that you have configured for the layer ?EXTENT 194914 420110 195152 420307?? > > -Jukka Rahkonen- > > L?hett?j?: MapServer-users Puolesta Eloi Ribeiro via MapServer-users > L?hetetty: keskiviikko 31. tammikuuta 2024 19.27 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [MapServer-users] getting incomplete parts of a geometry > > Hi all, > > I'm using Mapserver 8.0 and I'm getting incomplete parts of a geometry, either if is TYPE LINE or POLYGON. Please, see pictures https://pasteboard.co/ToPTZ6OnjPaJ.png. > I wonder if I'm missing something in the mapfile. The LAYER part of the mapfile looks like this: > > LAYER > > TEMPLATE "XXXXX.tmpl" > > NAME "Food_Forest" > > STATUS ON > > TYPE LINE > > PROJECTION #source > > "init=epsg:28992" > > END # PROJECTION > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX password=XXXXX" > > DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING srid=28992" > > EXTENT 194914 420110 195152 420307 > > PROCESSING "CLOSE_CONNECTION=DEFER" > > CLASS > > NAME "Food_Forest" > > STYLE > > COLOR 255 0 0 > > OUTLINEWIDTH 1 > > END # STYLE > > END # CLASS > > END # LAYER > > Thanks! > > Cheers, > > Eloi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Jan 31 11:29:01 2024 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Wed, 31 Jan 2024 19:29:01 +0000 Subject: [MapServer-users] getting incomplete parts of a geometry In-Reply-To: References: Message-ID: Hi, How about the client, what is the BBOX that it is using in the WMS GetMap request that it creates? -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Eloi Ribeiro via MapServer-users L?hetetty: keskiviikko 31. tammikuuta 2024 21.19 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [MapServer-users] getting incomplete parts of a geometry Hi Jukka, Thanks for your email. I got the extent from the geometry it self. Like so: ogrinfo PG:"host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx" ibm.food_forest -summary INFO: Open of `PG:host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.000000, 420110.000000) - (195152.000000, 420307.000000) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka > wrote: Hi, Does the rendered part perhaps match with the extent that you have configured for the layer "EXTENT 194914 420110 195152 420307"? -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Eloi Ribeiro via MapServer-users L?hetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] getting incomplete parts of a geometry Hi all, I'm using Mapserver 8.0 and I'm getting incomplete parts of a geometry, either if is TYPE LINE or POLYGON. Please, see pictures https://pasteboard.co/ToPTZ6OnjPaJ.png. I wonder if I'm missing something in the mapfile. The LAYER part of the mapfile looks like this: LAYER TEMPLATE "XXXXX.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX password=XXXXX" DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING srid=28992" EXTENT 194914 420110 195152 420307 PROCESSING "CLOSE_CONNECTION=DEFER" CLASS NAME "Food_Forest" STYLE COLOR 255 0 0 OUTLINEWIDTH 1 END # STYLE END # CLASS END # LAYER Thanks! Cheers, Eloi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at eloiribeiro.eu Wed Jan 31 11:33:20 2024 From: mail at eloiribeiro.eu (Eloi Ribeiro) Date: Wed, 31 Jan 2024 19:33:20 +0000 Subject: [MapServer-users] getting incomplete parts of a geometry In-Reply-To: References: Message-ID: Hi, That I don't know, but I'll check tomorrow with my colleague that is doing the front-end. The URL is https://ibm.wur.nl/ and the Basemap and the layer is Food_Forest. Eloi On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka wrote: > Hi, > > How about the client, what is the BBOX that it is using in the WMS GetMap request that it creates? > > -Jukka Rahkonen- > > L?hett?j?: MapServer-users Puolesta Eloi Ribeiro via MapServer-users > L?hetetty: keskiviikko 31. tammikuuta 2024 21.19 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [MapServer-users] getting incomplete parts of a geometry > > Hi Jukka, > > Thanks for your email. I got the extent from the geometry it self. Like so: > > ogrinfo PG:"host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx" ibm.food_forest -summary > > INFO: Open of `PG:host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx' > > using driver `PostgreSQL' successful. > > Layer name: ibm.food_forest > > Geometry: Polygon > > Feature Count: 1 > > Extent: (194914.000000, 420110.000000) - (195152.000000, 420307.000000) > > (...) > > Eloi > > On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka wrote: > >> Hi, >> >> Does the rendered part perhaps match with the extent that you have configured for the layer ?EXTENT 194914 420110 195152 420307?? >> >> -Jukka Rahkonen- >> >> L?hett?j?: MapServer-users Puolesta Eloi Ribeiro via MapServer-users >> L?hetetty: keskiviikko 31. tammikuuta 2024 19.27 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [MapServer-users] getting incomplete parts of a geometry >> >> Hi all, >> >> I'm using Mapserver 8.0 and I'm getting incomplete parts of a geometry, either if is TYPE LINE or POLYGON. Please, see pictures https://pasteboard.co/ToPTZ6OnjPaJ.png. >> I wonder if I'm missing something in the mapfile. The LAYER part of the mapfile looks like this: >> >> LAYER >> >> TEMPLATE "XXXXX.tmpl" >> >> NAME "Food_Forest" >> >> STATUS ON >> >> TYPE LINE >> >> PROJECTION #source >> >> "init=epsg:28992" >> >> END # PROJECTION >> >> CONNECTIONTYPE POSTGIS >> >> CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX password=XXXXX" >> >> DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING srid=28992" >> >> EXTENT 194914 420110 195152 420307 >> >> PROCESSING "CLOSE_CONNECTION=DEFER" >> >> CLASS >> >> NAME "Food_Forest" >> >> STYLE >> >> COLOR 255 0 0 >> >> OUTLINEWIDTH 1 >> >> END # STYLE >> >> END # CLASS >> >> END # LAYER >> >> Thanks! >> >> Cheers, >> >> Eloi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Jan 31 12:56:26 2024 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Wed, 31 Jan 2024 20:56:26 +0000 Subject: [MapServer-users] getting incomplete parts of a geometry In-Reply-To: References: Message-ID: Hi, The client is making tiled requests like this: https://ibm-test.containers.wur.nl/mapserver/?map=%2Fetc%2Fmapserver%2FFood_Forest.map&SERVICE=WMS&serverType=mapserver&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&TILED=true&serverType=mapserver&layers=Food_Forest&query_layers=Food_Forest&CRS=EPSG%3A3857&INFO_FORMAT=text%2Fhtml&WIDTH=256&HEIGHT=256&STYLES=&BBOX=664084.9017416127%2C6758256.292862143%2C664696.3979678941%2C6758867.789088425 This tile contains most part of the parcel. What might happen is that when the client is asking for the next tile to the left, then the BBOX is partially outside the EXTENT that you have configured for the layer. Maybe Mapserver considers that the request is off-site and does not render anything. Make your extent bigger or comment it out altogether. Also check the extent at the MAP level. It should cover the whole area where you possibly have data. -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Eloi Ribeiro via MapServer-users L?hetetty: keskiviikko 31. tammikuuta 2024 21.33 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [MapServer-users] getting incomplete parts of a geometry Hi, That I don't know, but I'll check tomorrow with my colleague that is doing the front-end. The URL is https://ibm.wur.nl/ and the Basemap and the layer is Food_Forest. Eloi On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka > wrote: Hi, How about the client, what is the BBOX that it is using in the WMS GetMap request that it creates? -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Eloi Ribeiro via MapServer-users L?hetetty: keskiviikko 31. tammikuuta 2024 21.19 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [MapServer-users] getting incomplete parts of a geometry Hi Jukka, Thanks for your email. I got the extent from the geometry it self. Like so: ogrinfo PG:"host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx" ibm.food_forest -summary INFO: Open of `PG:host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.000000, 420110.000000) - (195152.000000, 420307.000000) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka > wrote: Hi, Does the rendered part perhaps match with the extent that you have configured for the layer "EXTENT 194914 420110 195152 420307"? -Jukka Rahkonen- L?hett?j?: MapServer-users > Puolesta Eloi Ribeiro via MapServer-users L?hetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MapServer-users] getting incomplete parts of a geometry Hi all, I'm using Mapserver 8.0 and I'm getting incomplete parts of a geometry, either if is TYPE LINE or POLYGON. Please, see pictures https://pasteboard.co/ToPTZ6OnjPaJ.png. I wonder if I'm missing something in the mapfile. The LAYER part of the mapfile looks like this: LAYER TEMPLATE "XXXXX.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX password=XXXXX" DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING srid=28992" EXTENT 194914 420110 195152 420307 PROCESSING "CLOSE_CONNECTION=DEFER" CLASS NAME "Food_Forest" STYLE COLOR 255 0 0 OUTLINEWIDTH 1 END # STYLE END # CLASS END # LAYER Thanks! Cheers, Eloi -------------- next part -------------- An HTML attachment was scrubbed... URL: From public at postholer.com Wed Jan 31 13:09:15 2024 From: public at postholer.com (Scott) Date: Wed, 31 Jan 2024 13:09:15 -0800 Subject: [MapServer-users] getting incomplete parts of a geometry In-Reply-To: References: Message-ID: <6ceab3e3-7600-41c4-b7b2-384853d65c4c@postholer.com> In your .map file try setting: PROCESSING "POLYLINE_NO_CLIP=True" On 1/31/24 12:56, Rahkonen Jukka via MapServer-users wrote: > Hi, > > The client is making tiled requests like this: > > > https://ibm-test.containers.wur.nl/mapserver/?map=%2Fetc%2Fmapserver%2FFood_Forest.map&SERVICE=WMS&serverType=mapserver&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&TILED=true&serverType=mapserver&layers=Food_Forest&query_layers=Food_Forest&CRS=EPSG%3A3857&INFO_FORMAT=text%2Fhtml&WIDTH=256&HEIGHT=256&STYLES=&BBOX=664084.9017416127%2C6758256.292862143%2C664696.3979678941%2C6758867.789088425 > > This tile contains most part of the parcel. What might happen is that > when the client is asking for the next tile to the left, then the BBOX > is partially outside the EXTENT that you have configured for the layer. > Maybe Mapserver considers that the request is off-site and does not > render anything. > Make your extent bigger or comment it out altogether. Also check the > extent at the MAP level. It should cover the whole area where you > possibly have data. > > -Jukka Rahkonen- > > *L?hett?j?:* MapServer-users > *Puolesta *Eloi Ribeiro via MapServer-users > *L?hetetty:* keskiviikko 31. tammikuuta 2024 21.33 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* Re: [MapServer-users] getting incomplete parts of a geometry > > Hi, > > That I don't know, but I'll check tomorrow with my colleague that is > doing the front-end. > > The URL is https://ibm.wur.nl/ and the Basemap and > the layer is Food_Forest. > > Eloi > > On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka > > wrote: > > Hi, > > How about the client, what is the BBOX that it is using in the WMS > GetMap request that it creates? > > -Jukka Rahkonen- > > *L?hett?j?:* MapServer-users > > *Puolesta *Eloi > Ribeiro via MapServer-users > *L?hetetty:* keskiviikko 31. tammikuuta 2024 21.19 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > > *Aihe:* Re: [MapServer-users] getting incomplete parts of a geometry > > Hi Jukka, > > Thanks for your email. I got the extent from the geometry it self. > Like so: > > ? ogrinfo PG:"host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx" > ibm.food_forest -summary > > ? INFO: Open of `PG:host=pxxxxx port=5432?dbname=pxxxxx user=pxxxxx' > > ? ? ? ? using driver `PostgreSQL' successful. > > ? Layer name: ibm.food_forest > > ? Geometry: Polygon > > ? Feature Count: 1 > > ? Extent: (194914.000000, 420110.000000) - (195152.000000, > 420307.000000) > > (...) > > Eloi > > On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka > > wrote: > > Hi, > > Does the rendered part perhaps match with the extent that you > have configured for the layer ?EXTENT 194914 420110 195152 420307?? > > -Jukka Rahkonen- > > *L?hett?j?:* MapServer-users > > *Puolesta > *Eloi Ribeiro via MapServer-users > *L?hetetty:* keskiviikko 31. tammikuuta 2024 19.27 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > > *Aihe:* [MapServer-users] getting incomplete parts of a geometry > > Hi all, > > > I'm using Mapserver 8.0 and I'm getting incomplete parts of a > geometry, either if is TYPE LINE or POLYGON. Please, see > pictures https://pasteboard.co/ToPTZ6OnjPaJ.png > . > I wonder if I'm missing something in the mapfile. The LAYER part > of the mapfile looks like this: > > /? LAYER/ > > /? ? ? TEMPLATE "XXXXX.tmpl"/ > > /? ? ? NAME "Food_Forest"/ > > /? ? ? STATUS ON/ > > /? ? ? TYPE *LINE*/ > > /? ? ? PROJECTION #source/ > > /? ? ? ? "init=epsg:28992"/ > > /? ? ? END # PROJECTION/ > > /? ? ? CONNECTIONTYPE POSTGIS/ > > /? ? ? CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX > password=XXXXX"/ > > /? ? ? DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING > srid=28992"/ > > /? ? ? EXTENT 194914 420110 195152 420307/ > > /? ? ? PROCESSING "CLOSE_CONNECTION=DEFER"/ > > /? ? ? CLASS/ > > /? ? ? ? NAME "Food_Forest"/ > > /? ? ? ? STYLE/ > > /? ? ? ? ? COLOR 255 0 0/ > > /? ? ? ? ? OUTLINEWIDTH 1/ > > /? ? ? ? END # STYLE/ > > /? ? ? END # CLASS/ > > /? END # LAYER/ > > > Thanks! > > Cheers, > > Eloi > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users