From sdlime at gmail.com Wed Sep 1 06:54:30 2021 From: sdlime at gmail.com (Steve Lime) Date: Wed, 1 Sep 2021 08:54:30 -0500 Subject: [mapserver-users] offset and symbolscaledenom In-Reply-To: References: Message-ID: Not that I know of - unless you did so yourself via MapScript. This seems like a limitation of the current implementation rather than a bug. We'd need to add additional parameters to limit the offsets (e.g. MINOFFSET, MAXOFFSET). --Steve On Fri, Aug 27, 2021 at 2:18 PM Travis Kirstine wrote: > Is there a method to scale the offset value between min / max sizes when > using symbolscaledenom. I'm trying to scale and offset a label but it > appears the offset is static based on the symbolscaledenon. > > Thanks > > mapfile > > LAYER > .... > SYMBOLSCALEDENOM 1000 > CLASS > NAME "label" > EXPRESSION "POINT" > LABEL > OFFSET 0 12 > FONT arial > SIZE 12 > MINSIZE 8 > MAXSIZE 12 > TYPE truetype > COLOR 0 0 0 > STYLE > GEOMTRANSFORM 'labelpoly' > COLOR "#ffffff4f" > END > END > END > > > _______________________________________________ > 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 traviskirstine at gmail.com Wed Sep 1 13:15:22 2021 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 1 Sep 2021 16:15:22 -0400 Subject: [mapserver-users] offset and symbolscaledenom In-Reply-To: References: Message-ID: Thanks Steve, I was able to find a workaround. On Wed, 1 Sept 2021 at 09:54, Steve Lime wrote: > Not that I know of - unless you did so yourself via MapScript. This seems > like a limitation of the current implementation rather than a bug. We'd > need to add additional parameters to limit the offsets (e.g. MINOFFSET, > MAXOFFSET). --Steve > > On Fri, Aug 27, 2021 at 2:18 PM Travis Kirstine > wrote: > >> Is there a method to scale the offset value between min / max sizes when >> using symbolscaledenom. I'm trying to scale and offset a label but it >> appears the offset is static based on the symbolscaledenon. >> >> Thanks >> >> mapfile >> >> LAYER >> .... >> SYMBOLSCALEDENOM 1000 >> CLASS >> NAME "label" >> EXPRESSION "POINT" >> LABEL >> OFFSET 0 12 >> FONT arial >> SIZE 12 >> MINSIZE 8 >> MAXSIZE 12 >> TYPE truetype >> COLOR 0 0 0 >> STYLE >> GEOMTRANSFORM 'labelpoly' >> COLOR "#ffffff4f" >> END >> END >> END >> >> >> _______________________________________________ >> 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 richard.greenwood at gmail.com Wed Sep 1 15:30:45 2021 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 1 Sep 2021 16:30:45 -0600 Subject: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client Message-ID: I need to serve WMS GetFeatureInfo requests in a suitable format for an ESRI JavaScript client. I'm asking if anyone has any tips or experience they could share. I'm not developing the client. I'm serving the content to a company that's used to using ESRI REST services and doesn't have any experience with WMS. I don't have any experience with the ESRI JavaScript client. >From what little I've found so far the request is typically INFO_FORMAT=text/html but the response is formatted as XML. Should the response mime type be text/xml or does it matter? Is there an XML structure that the ESRI client expects to receive or is that entirely up to the app developer? Thanks, Rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luc.ponelle at veolia.com Thu Sep 2 04:26:51 2021 From: luc.ponelle at veolia.com (PONELLE, Luc) Date: Thu, 2 Sep 2021 13:26:51 +0200 Subject: [mapserver-users] mapcache_seed : deleting tiles out of extent In-Reply-To: References: Message-ID: Hello I re-submit the message if anyone have an idea about my issue : mapcache_seed delete more than tiles existing in the given extent (extent of a city) When I delete the tiles for an other projection forn example it works Any help would be appreciated Le mer. 21 juil. 2021 ? 16:10, PONELLE, Luc a ?crit : > Hello > I want to delete tiles with mapcache_seed using like this : > > mapcache_seed -c /etc/mapcache.xml -L /tmp/log_tiles -m delete -e > 949898,6270769,958517,6278331 -t veolia2154 -g LAMB93 -z 16,16 -n 10 > > The deleting is very long and seems delete tiles out of extent : > seeded 32600 tiles, now at z16 x164200 y29275 > > And if I interrupt the process I have the following message : > seeded 1574 metatiles (39350 total tiles, 39350 non-empty tiles) in 87.0 > seconds at 452.4 tiles/sec (452.4 non-empty tiles/sec) > > There are less tiles in this extent > > > The mapcache.xml is defined like that : > .... > > > Lambert 1993 > > -357823.2365 6037008.6939 1313632.3628 7230727.3772 > EPSG:2154 > IGNF:LAMB93 > 2048 1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 > 0.03125 0.015625 0.0078125 > m > 256 256 > > .... > > fdp_veolia > s3 > LAMB93 > PNG_BEST > 5 5 > 10 > 604800 > > > Anyone have an idea ? > Thanks in adavance > > > Je reste disponible pour tout renseignement compl?mentaire. > > Cordialement > > *Luc PONELLE* > > Tech Lead - BS R?seau - Chapter Maintenance & Intervention + IS&T Eau > France > > Office : +33 (0)6 24 63 60 68 > Adresse : > > Immeuble Giovanni Battista A > > 1, rue Giovanni Battista Pirelli > > 94410 Saint-Maurice > *www.veolia.com * > > * > > ** * > > > > > * * > -- --------------------------------------------------------------------------------------------This e-mail transmission (message and any attached files) may contain information that is proprietary, privileged and/or confidential to Veolia Environnement and/or its affiliates and is intended exclusively for the person(s) to whom it is addressed. If you are not the intended recipient, please notify the sender by return e-mail and delete all copies of this e-mail, including all attachments. Unless expressly authorized, any use, disclosure, publication, retransmission or dissemination of this e-mail and/or of its attachments is strictly prohibited.? Ce message electronique et ses fichiers attaches sont strictement confidentiels et peuvent contenir des elements dont Veolia Environnement et/ou l'une de ses entites affiliees sont proprietaires. Ils sont donc destines a l'usage de leurs seuls destinataires. Si vous avez recu ce message par erreur, merci de le retourner a son emetteur et de le detruire ainsi que toutes les pieces attachees. L'utilisation, la divulgation, la publication, la distribution, ou la reproduction non expressement autorisees de ce message et de ses pieces attachees sont interdites. -------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gkvoelkl at nelson-games.de Thu Sep 2 23:29:28 2021 From: gkvoelkl at nelson-games.de (=?utf-8?Q?Gerhard_V=C3=B6lkl?=) Date: Fri, 3 Sep 2021 08:29:28 +0200 Subject: [mapserver-users] Error MsDrawMap Image handling error when using PNG In-Reply-To: <638c18e9-8f14-c333-ebd5-4cf885f5f475@gatewaygeomatics.com> References: <638c18e9-8f14-c333-ebd5-4cf885f5f475@gatewaygeomatics.com> Message-ID: Hallo, Thank you for your assistance. The cause was an older version of the oracle library. With version 19 mapserver can display the png files. Goodbye Gerhard > Am 17.08.2021 um 16:52 schrieb Jeff McKenna : > > ?Hi Gerhard, > > It seems to be a problem with the LIBPNG library on your server. Is "PNG" listed in the response from the command "gdalinfo --formats" ? > > I might also: > > - recompile ZLIB > > - recompile LIBPNG > > (executing 'sudo ldconfig' after each) > > - recompile GDAL (point to your external LIBPNG) > > - test with 'gdalinfo --formats' > > - recompile MapServer > > - test your mapfile with a 'shp2img' command > > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > >> On 2021-08-12 7:15 a.m., Gerhard V?lkl wrote: >> Hello, >> when using a png image as symbol I got the error >> Image handling error >> When using a gif image all is fine. >> But I can?t change all 1000 Images to gif. >> What can I do? What?s wrong? >> Here an example Output: >> /usr/lib/cgi-bin/mapserv QUERY_STRING="map=/data/ows/maps/test.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=725521.7,5433653.4,726708.5,5434495.5&CRS=EPSG:25832&WIDTH=1048&HEIGHT=317&LAYERS=test&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE" >> libpng error: bad parameters to zlib >> Content-Type: text/xml; charset=UTF-8 >> >> >> >> msDrawMap(): Image handling error. Failed to draw layer named 'test-layer'. >> >> >> GDAL: In GDALDestroy - unloading GDAL shared library. >> Thanks >> Best regards Gerhard >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From bahbouba.909 at gmail.com Sat Sep 4 13:20:16 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sat, 4 Sep 2021 21:20:16 +0100 Subject: [mapserver-users] Asking help Message-ID: Hello how l want to know the parameters of Hidden cgi_variable in html template because l try an exemple but if l submitted the formular of the pages they don't return a map that l check in formular if sommes can help to fix this problems Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ashley.Sommer at csiro.au Mon Sep 6 02:13:41 2021 From: Ashley.Sommer at csiro.au (Sommer, Ashley (L&W, Dutton Park)) Date: Mon, 6 Sep 2021 09:13:41 +0000 Subject: [mapserver-users] Potential bug when using Layer-Tile-Index where indexed files are GeoTiff files Message-ID: Hi Everyone, I'm trying to get WCS service with TIME parameter support working on latest Mapserver. My data is a timeseries of large geotiff files, in a directory, with the date encoded in the filename. Eg: - /datasets/mydataset/v1/layer1/raster_2020-08-01.tif - /datasets/mydataset/v1/layer1/raster_2020-08-02.tif - etc. I'm had it working on the WMS side of things, simply using Runtime Substitution, and embedding the TIME parameter into the DATA directive. eg: DATA "/datasets/mydataset/v1/layer1/raster_%time%.tif" That worked for WMS, but not for WCS. When Mapserver's WCS service encounters a TIME parameter, it assumes I'm using a tile index. If there is no tile index, it errors out. So I create a tile index for this dataset. Using gdaltindex for a record of "location" for each raster, then adding a temporal attribute to the dbf file, and assigning dates to each of the records. I then tried to use that in place of DATA: LAYER NAME "mylayer" TILEINDEX "/datasets/mydataset/v1/layer1/index.shp" TILEITEM "location" END Unfortunately, that doesn't work, because Mapserver now requires the use of new-style Layer-Tile-Index directives in order for WCS to work properly. So I changed it to: LAYER NAME "MyIndex" TILEINDEX "/datasets/mydataset/v1/layer1/index.shp" TILEITEM "location" END LAYER TILEINDEX "MyIndex" TILEITEM "location" END This now works to some extent, but then I get an error: msTiledSHPTryOpen(): Unable to access file. Unable to open shapefile 'raster_2020-08-02.tif' for layer 'MyIndex' ... fatal error. msShapefileOpen(): Unable to access file. (/tmp/raster_2020-08-02.tif) msShapefileOpen(): Unable to access file. (/datasets/mydataset/v1/layer1/raster_2020-08-01.tif) I believe I have tracked down why this is happening, and I believe it is a bug. 1) Mapserver _can_ open the .shp and .dbf file at the location. It must be able to to get the file location from the dbf index. 2) msTiledSHPTryOpen() is a helper fn that runs _after_ opening a tile index, to test if we can open the first-indexed file (to template some parts of the layer). See comment here: https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L2028 See also msTileSHPTryOpen fn here: https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L1868 3) So msTiledSHPTryOpen() tries to open the first-indexed file: "/datasets/mydataset/v1/layer1/raster_2020-08-02.tif" but returns an error, even though it _can_ open that file. The problem is, it is using msShapefileOpen() to do this, which in-turn uses msSHPOpen() to open the tif file: See msShapefileOpen fn: https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L1665 See opener: https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L1686 4) msSHPOpen() assumes whatever file its opening will have a .shp file and a .shx file. In this case, it's trying to open a .tif file. The function tries to open a non-existent /datasets/mydataset/v1/layer1/raster_2020-08-02.shp file. See the implementation here: https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L194 And where it opens a file here: https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L252 So I believe it is a bug to use msShapefileOpen() to test if a tileindex can open a file at its first-indexed location, because that file may not be a .shp file. I might be able to put in a PR to fix the bug, but I don't know the codebase well enough to not potentially introduce regressions. Let me know what you think? - Ashley Sommer -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at brainspeedjelly.co.uk Mon Sep 6 03:35:05 2021 From: mapserver at brainspeedjelly.co.uk (mapserver at brainspeedjelly.co.uk) Date: Mon, 6 Sep 2021 11:35:05 +0100 Subject: [mapserver-users] MapServer 7.4.3 - Poor projection from British National Grid (EPSG 27700) to WebMercator (EPSG 3857) Message-ID: <47758a0c-ab4b-503b-7e79-7e41f1e728a5@brainspeedjelly.co.uk> Reposted from https://gis.stackexchange.com/questions/410874/mapserver-7-4-3-poor-projection-from-british-national-grid-epsg-27700-to-web We have PostGIS data in BNG and are displaying it over Google satellite imagery. This worked fine previously - using a Ubuntu server running 18.04, with MapServer 7.0.7, GDAL 2.2.3, proj 4.9.3. This server is long out of date and we have a new one running 20.02, with MapServer 7.4.3, GDAL 3.0.4 and proj 6.3.1. However this is projecting the BNG layers incorrectly (~200m ESE). This appears to be similar to the issue reported at https://github.com/OSGeo/gdal/issues/3695 although that claims the problem only arose after proj 7.2.1 I have installed the updated transform OSTN15_NTv2_OSGBtoETRS.gsb but this had no effect. Is there a way to update the transforms used by MapServer or get MapServer to pass the transformation to PostGIS ? Thanks Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at gmail.com Mon Sep 6 05:38:56 2021 From: mikesaunt at gmail.com (Mike Saunt) Date: Mon, 6 Sep 2021 13:38:56 +0100 Subject: [mapserver-users] MapServer 7.4.3 - Poor projection from British National Grid (EPSG 27700) to WebMercator (EPSG 3857) In-Reply-To: <47758a0c-ab4b-503b-7e79-7e41f1e728a5@brainspeedjelly.co.uk> References: <47758a0c-ab4b-503b-7e79-7e41f1e728a5@brainspeedjelly.co.uk> Message-ID: Ben Have you considered using PostGIS to do the transformation instead? Also, depending on the amount of data you could set up some material views building transformed data or similar which may make it more responsive, if that is needed. All the best Mike On Mon, 6 Sept 2021 at 11:52, wrote: > Reposted from > https://gis.stackexchange.com/questions/410874/mapserver-7-4-3-poor-projection-from-british-national-grid-epsg-27700-to-web > > We have PostGIS data in BNG and are displaying it over Google satellite > imagery. > > This worked fine previously - using a Ubuntu server running 18.04, with > MapServer 7.0.7, GDAL 2.2.3, proj 4.9.3. > > This server is long out of date and we have a new one running 20.02, with > MapServer 7.4.3, GDAL 3.0.4 and proj 6.3.1. However this is projecting the > BNG layers incorrectly (~200m ESE). > > This appears to be similar to the issue reported at > https://github.com/OSGeo/gdal/issues/3695 although that claims the > problem only arose after proj 7.2.1 > > I have installed the updated transform OSTN15_NTv2_OSGBtoETRS.gsb but this > had no effect. > > Is there a way to update the transforms used by MapServer or get MapServer > to pass the transformation to PostGIS ? > > Thanks > > Ben > _______________________________________________ > 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 bob.basques at ci.stpaul.mn.us Tue Sep 7 12:31:50 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 7 Sep 2021 19:31:50 +0000 Subject: [mapserver-users] OSGeo Twin Cities (aka TCMUG) Local Chapter Meeting - Sept. 8th. Message-ID: <5BC15263-4795-477D-BA11-4B29DD056FED@ci.stpaul.mn.us> All, We had our first face to face meeting last month in over 15 months, and had some folks show up in person. So, building on that, this month?s meet up will also be a face to face. I have no presenter scheduled (yet), so we?ll be meeting at Sea Salt in Minnehaha Park. Online Presentation: NONE Where: Sea- Salt. https://www.bing.com/search?q=Minnehaha+Falls+Regional+Park+Minneapolis&filters=local_ypid:%22YN873x8433232369650977905%22 When Sept, 8th, 4:30 PM bobb OSGeo, Twin Cities (aka TCMUG), MN, USA Local Chapter Page. -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmanuel.castro at capgemini.com Wed Sep 8 05:44:48 2021 From: emmanuel.castro at capgemini.com (CASTRO, Emmanuel) Date: Wed, 8 Sep 2021 12:44:48 +0000 Subject: [mapserver-users] Float64 on WCS Message-ID: Hello I am new to WCS. While testing WCS 2.0 mode on MapServer 2.18. I noticed than WCS(1.0/2.0) only supports image mode BYTE, INT16 and FLOAT32 (I checked in the source mapwcs.cpp and mapwcs20.cpp). There is no support for FLOAT64. Is there a specific reason for not supporting that? (GDAL supports FLOAT64 very well in GeoTiff). My tests with WCS are from Grib2 data (Float64) to GeoTiff (which only produces Float32). Thank you for your comments. Emmanuel This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Sep 8 06:26:41 2021 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 8 Sep 2021 13:26:41 +0000 Subject: [mapserver-users] Float64 on WCS Message-ID: <037232c77d7c4ef1bbeb6d9d83dd5e9d@maanmittauslaitos.fi> Hi, It seems to me that there is no support for Float64 anywhere in Mapserver. See IMAGEMODE in https://mapserver.org/mapfile/outputformat.html. -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta CASTRO, Emmanuel via MapServer-users L?hetetty: keskiviikko 8. syyskuuta 2021 15.45 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Float64 on WCS Hello I am new to WCS. While testing WCS 2.0 mode on MapServer 2.18. I noticed than WCS(1.0/2.0) only supports image mode BYTE, INT16 and FLOAT32 (I checked in the source mapwcs.cpp and mapwcs20.cpp). There is no support for FLOAT64. Is there a specific reason for not supporting that? (GDAL supports FLOAT64 very well in GeoTiff). My tests with WCS are from Grib2 data (Float64) to GeoTiff (which only produces Float32). Thank you for your comments. Emmanuel This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Wed Sep 8 16:26:55 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Thu, 9 Sep 2021 00:26:55 +0100 Subject: [mapserver-users] Asking help Message-ID: Hello everyone hope you are fine . Recently l created an interactive map wicth can calculate an itinerary And after created a mapefile and the template html I used the link below: *http://localhost/cgi-bin/mapserv.exe?map=/var/www/html/routing.map&layer=route & mode=browse* But the pages send me an errors: *MsloadMap():unable to access file.(/var/www/html/routing.map)* And l don't how to fix this issues if someone can help me please Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at brainspeedjelly.co.uk Thu Sep 9 01:34:40 2021 From: mapserver at brainspeedjelly.co.uk (BenH) Date: Thu, 9 Sep 2021 09:34:40 +0100 Subject: [mapserver-users] MapServer 7.4.3 - Poor projection from British National Grid (EPSG 27700) to WebMercator (EPSG 3857) In-Reply-To: References: <47758a0c-ab4b-503b-7e79-7e41f1e728a5@brainspeedjelly.co.uk> Message-ID: <063429d0-3f20-6e31-9761-89643afcebf3@brainspeedjelly.co.uk> I have tried some tests of this. A simple view, outputting the geometry with ST_Transform, is not performant at all - the transform breaks the spatial index and it's a large dataset. I assume that would still be an issue with a materialized view. So I think the only PostGIS option would be to create a full copy of the geometry with its own index. I've tested this, so it is a fall back option - but it's a lot of data duplication and the Mapserver transform is really quick. Thanks On 06/09/2021 13:38, Mike Saunt wrote: > Ben > > Have you considered using PostGIS to do the transformation instead?? > Also, depending on the amount of data you could set up some material > views building transformed data or similar which may make it?more > responsive, if that is needed. > > All the best > Mike From emmanuel.castro at capgemini.com Thu Sep 9 01:50:13 2021 From: emmanuel.castro at capgemini.com (CASTRO, Emmanuel) Date: Thu, 9 Sep 2021 08:50:13 +0000 Subject: [mapserver-users] Handling of NoData in WCS with MapServer Message-ID: Hello I have another question about MapServer capabilities. In my technical tests, I am trying to serve a GeoTiff Float32 with a declared NoData value (i.e. -3.4028234663852886e+38). The GeoTiff file resulting from my WCS request transforms the NoData value to 0, which is problematic because 0 can be a real data. Is there a way to handle this problem? I think I can prepare the GeoTiff file by filling the NoData with a value that I control, and then declaring it in the WCS nilValues metadata ; however I would like to avoid preprocessing my input files with gdal_translate or gdal_fillnodata. Thanks Emmanuel This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Thu Sep 9 02:04:39 2021 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Thu, 9 Sep 2021 11:04:39 +0200 Subject: [mapserver-users] Asking help In-Reply-To: References: Message-ID: Hi, as mapserver tells you: unable to access file make very sure that the files exists and the path is correct. If so, have a look at the access rights, the user www-data must be allowed to read the mapfile. By the way it is not a good idea to store the mapfile in the apache home because it is now accessible via http:/servername/routing.map -> everyone can read it an find critical information as file-paths and database connection information ect.. J?rg And another one: it would be nice, if you could use a more speaking subject, so it easier to find your questions and answers in the list-archive. Am 09.09.21 um 01:26 schrieb Boubacar Bah: > Hello everyone hope you are fine . Recently l created an interactive > map? wicth can calculate an itinerary > And after created a mapefile and the template html > I used the link below: > *http://localhost/cgi-bin/mapserv.exe?map=/var/www/html/routing.map&layer=route > > & mode=browse* > But the pages send me an errors: > *MsloadMap():unable to access file.(/var/www/html/routing.map)* > And l don't how to fix this issues if someone can help me please > Thanks in advance > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From sdlime at gmail.com Thu Sep 9 07:59:16 2021 From: sdlime at gmail.com (Steve Lime) Date: Thu, 9 Sep 2021 09:59:16 -0500 Subject: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client In-Reply-To: References: Message-ID: Hi Rich! I didn't see any replies to this email and I don't have any particular experience. That said, it seems to me that the vendor that is receiving the content would want it in some sort of presentation agnostic format so that they can apply a design, choose which attributes to display and so forth. So HTML doesn't make that much sense and standard XML/GML responses would be better IMHO. --Steve On Wed, Sep 1, 2021 at 5:31 PM Richard Greenwood < richard.greenwood at gmail.com> wrote: > I need to serve WMS GetFeatureInfo requests in a suitable format for an > ESRI JavaScript client. I'm asking if anyone has any tips or experience > they could share. > > I'm not developing the client. I'm serving the content to a company that's > used to using ESRI REST services and doesn't have any experience with WMS. > I don't have any experience with the ESRI JavaScript client. > > From what little I've found so far the request is typically > INFO_FORMAT=text/html > but the response is formatted as XML. Should the response mime type be > text/xml or does it matter? Is there an XML structure that the ESRI client > expects to receive or is that entirely up to the app developer? > > Thanks, > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > 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 spam at crystalsphere.net Thu Sep 9 07:59:02 2021 From: spam at crystalsphere.net (Spam) Date: Thu, 9 Sep 2021 15:59:02 +0100 Subject: [mapserver-users] Anyone got time to help with a MapServer setup? Message-ID: Please let me know - get in touch directly (use spam at crystalsphere.net). Happy to pay for time! Regards, John From richard.greenwood at gmail.com Thu Sep 9 08:54:17 2021 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 9 Sep 2021 09:54:17 -0600 Subject: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client In-Reply-To: References: Message-ID: Hey Steve, Thanks for the reply. I flailed with this for quite a while. I'm not an Esri user and the vendor that I'm supposed to support is unfamiliar with WMS. I was trying to follow an Esri example that was returning XML for GetFeatureInfo requests but I was making a lot of (bad) guesses. In the end I built a very basic app with the Esri JavaScript client that displayed GetFeatureInfo responses in a popup. So I've proven that it can be done which allows me to throw the ball into the vendor's court. To sort of answer my own question, plain unformatted text with a text/html mime type displays in the Esri JavaScript client (jsapi) attribute popup. XML does not appear to be necessary or helpful. Thanks, Rich On Thu, Sep 9, 2021 at 8:59 AM Steve Lime wrote: > Hi Rich! I didn't see any replies to this email and I don't have any > particular experience. That said, it seems to me that the vendor that is > receiving the content would want it in some sort of presentation agnostic > format so that they can apply a design, choose which attributes to display > and so forth. So HTML doesn't make that much sense and standard XML/GML > responses would be better IMHO. > > --Steve > > On Wed, Sep 1, 2021 at 5:31 PM Richard Greenwood < > richard.greenwood at gmail.com> wrote: > >> I need to serve WMS GetFeatureInfo requests in a suitable format for an >> ESRI JavaScript client. I'm asking if anyone has any tips or experience >> they could share. >> >> I'm not developing the client. I'm serving the content to a >> company that's used to using ESRI REST services and doesn't have any >> experience with WMS. I don't have any experience with the ESRI JavaScript >> client. >> >> From what little I've found so far the request is typically >> INFO_FORMAT=text/html >> but the response is formatted as XML. Should the response mime type be >> text/xml or does it matter? Is there an XML structure that the ESRI client >> expects to receive or is that entirely up to the app developer? >> >> Thanks, >> Rich >> >> -- >> Richard W. Greenwood, PLS >> www.greenwoodmap.com >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick.mckendree.young at gmail.com Fri Sep 10 09:17:21 2021 From: patrick.mckendree.young at gmail.com (Patrick Young) Date: Fri, 10 Sep 2021 10:17:21 -0600 Subject: [mapserver-users] Raster Upsampling Message-ID: Hello! I was curious if it is possible to have mapserver bilinearly upsample a low resolution raster to a higher resolution when there is no reprojection required. My setup is that I have a very low resolution image (a bathymetric layer) and a much higher resolution image (aerial), both in web mercator. When I request a high resolution XYZ tile, the low resolution image remains pixelated (it looks as if its is nearest neighbor upsampled) at the raster's native resolution even though I have set in the PROCESSING directive RESAMPLE=BILINEAR. I suspect from the docs that RESAMPLE only comes into play when we're doing on-the-fly reprojection, is that correct? When no reprojection is required, but just simpler upsampling, can one change the kernel used? Many thanks! Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick.mckendree.young at gmail.com Fri Sep 10 10:08:00 2021 From: patrick.mckendree.young at gmail.com (Patrick Young) Date: Fri, 10 Sep 2021 11:08:00 -0600 Subject: [mapserver-users] Raster Upsampling In-Reply-To: References: Message-ID: As a quick follow up, a hack that worked to get around this was to make a VRT of the low resolution dataset wherein I set the resampling to bilinear in the VRT and set the resolution to much much higher, and that has the desired effect. So the question is, is there a better way to achieve the same thing in mapserver. Thanks! On Fri, Sep 10, 2021 at 10:17 AM Patrick Young < patrick.mckendree.young at gmail.com> wrote: > Hello! > > I was curious if it is possible to have mapserver bilinearly upsample a > low resolution raster to a higher resolution when there is no reprojection > required. > > My setup is that I have a very low resolution image (a bathymetric layer) > and a much higher resolution image (aerial), both in web mercator. When I > request a high resolution XYZ tile, the low resolution image remains > pixelated (it looks as if its is nearest neighbor upsampled) at the > raster's native resolution even though I have set in the PROCESSING > directive RESAMPLE=BILINEAR. > > I suspect from the docs that RESAMPLE only comes into play when we're > doing on-the-fly reprojection, is that correct? When no reprojection is > required, but just simpler upsampling, can one change the kernel used? > > Many thanks! > Patrick > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spam at crystalsphere.net Sat Sep 11 06:01:18 2021 From: spam at crystalsphere.net (Spam) Date: Sat, 11 Sep 2021 14:01:18 +0100 Subject: [mapserver-users] Anyone got time to help with a MapServer setup? In-Reply-To: References: Message-ID: No takers? Maybe I should have asked for free help? On 2021-09-09 3:59 PM, Spam wrote: > Please let me know - get in touch directly (use > spam at crystalsphere.net). Happy to pay for time! > > Regards, > > John > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Sat Sep 11 10:23:54 2021 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sat, 11 Sep 2021 11:23:54 -0600 Subject: [mapserver-users] Anyone got time to help with a MapServer setup? In-Reply-To: References: Message-ID: Your email address doesn't inspire a lot of confidence. What platform are you installing MapServer on - Linux, Mac, Windows? Do you need help with CGI or MapScript? On Sat, Sep 11, 2021 at 7:00 AM Spam wrote: > No takers? Maybe I should have asked for free help? > > > On 2021-09-09 3:59 PM, Spam wrote: > > Please let me know - get in touch directly (use > > spam at crystalsphere.net). Happy to pay for time! > > > > Regards, > > > > John > > > > > > _______________________________________________ > > MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Sat Sep 11 17:55:39 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sun, 12 Sep 2021 01:55:39 +0100 Subject: [mapserver-users] Asking about cgi file executing error Message-ID: hi everyone i'm trying to run a cgi file with python scripts with url below *http: // localhost / cgi bin / test_pg.cgi? name = bah* but it gives me the following message* : the server encounter an internal error or misconfiguration and was unable to complete yours request* the cgi file in question contains python scripts whose beginning contains a shebang line: *#!/usr/bin/python * I don't know what the script doesn't work if someone can help me l'm on window and l have the ms4w installation Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From atlantageek at gmail.com Sat Sep 11 18:37:23 2021 From: atlantageek at gmail.com (Atlanta Geek) Date: Sat, 11 Sep 2021 21:37:23 -0400 Subject: [mapserver-users] Asking about cgi file executing error In-Reply-To: References: Message-ID: Follow the python instructions here: https://www.ms4w.com/README_INSTALL.html under the heading 'using the packaged python installation's If that does not work send me the apache log file On Sat, Sep 11, 2021, 20:55 Boubacar Bah wrote: > hi everyone i'm trying to run a cgi file with python scripts with url > below > *http: // localhost / cgi bin / test_pg.cgi? name = bah* > but it gives me the following message* : the server encounter an > internal error or misconfiguration and was unable to complete yours request* > the cgi file in question contains python scripts whose beginning > contains a shebang line: *#!/usr/bin/python * > I don't know what the script doesn't work if someone can help me l'm on > window and l have the ms4w installation > Thanks > > _______________________________________________ > 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 bahbouba.909 at gmail.com Sun Sep 12 06:52:52 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sun, 12 Sep 2021 14:52:52 +0100 Subject: [mapserver-users] Asking help about python library psycopg 2 installation on mapserver python Message-ID: Hello everyone, l'm here to ask your help about an problem l try to install python library psycopg 2 on mapserver python but l can't do it after saws some tutorial about it. I always encountered a problem about the installation if someone can help me to install this module on python mapserver Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Mon Sep 13 07:39:51 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Mon, 13 Sep 2021 15:39:51 +0100 Subject: [mapserver-users] Asking help Message-ID: Hello everyone l try to launch a script CGI in mapserver but it return an error when I put my CGI into cgi-bin folder: *the server encounter an internal error or misconfiguration and was unable to complete yours request* Or if l put. My script file into apps folder the server returned a error like that *Forbidden you don't have a permission To access this ressources.* I don't know how to fix this problems if someone can help me Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.j.kobben at utwente.nl Mon Sep 13 07:55:03 2021 From: b.j.kobben at utwente.nl (b.j.kobben at utwente.nl) Date: Mon, 13 Sep 2021 14:55:03 +0000 Subject: [mapserver-users] Asking help In-Reply-To: References: Message-ID: <5EE1E2B7-5805-49BA-9377-70F9451329B0@utwente.nl> This seems a general CGI scripting error, nothing to do with MapServer. In general for CGI script to run make sure: - a script handler for the script is installed I your server. eg for Python on Apache,: Options +ExecCGI AddHandler cgi-script .py Require all granted - the script has execute permission (eg in Linux do: chmod 755 script.py) - there are no script syntax errors (eg in Python run it locally first to test). -- Barend K?bben From: MapServer-users on behalf of Boubacar Bah Date: Monday, 13 September 2021 at 16:40 To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] Asking help Hello everyone l try to launch a script CGI in mapserver but it return an error when I put my CGI into cgi-bin folder: the server encounter an internal error or misconfiguration and was unable to complete yours request Or if l put. My script file into apps folder the server returned a error like that Forbidden you don't have a permission To access this ressources. I don't know how to fix this problems if someone can help me Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick.mckendree.young at gmail.com Mon Sep 13 08:35:14 2021 From: patrick.mckendree.young at gmail.com (Patrick Young) Date: Mon, 13 Sep 2021 09:35:14 -0600 Subject: [mapserver-users] Raster Upsampling In-Reply-To: References: Message-ID: Apologies, after revisiting this this morning, I can't reproduce what I was seeing... now I do see the raster being bilinearly upsampled when I overzoom. Sorry about that! On Fri, Sep 10, 2021 at 11:08 AM Patrick Young < patrick.mckendree.young at gmail.com> wrote: > As a quick follow up, a hack that worked to get around this was to make a > VRT of the low resolution dataset wherein I set the resampling to bilinear > in the VRT and set the resolution to much much higher, and that has the > desired effect. So the question is, is there a better way to achieve the > same thing in mapserver. > > Thanks! > > On Fri, Sep 10, 2021 at 10:17 AM Patrick Young < > patrick.mckendree.young at gmail.com> wrote: > >> Hello! >> >> I was curious if it is possible to have mapserver bilinearly upsample a >> low resolution raster to a higher resolution when there is no reprojection >> required. >> >> My setup is that I have a very low resolution image (a bathymetric layer) >> and a much higher resolution image (aerial), both in web mercator. When I >> request a high resolution XYZ tile, the low resolution image remains >> pixelated (it looks as if its is nearest neighbor upsampled) at the >> raster's native resolution even though I have set in the PROCESSING >> directive RESAMPLE=BILINEAR. >> >> I suspect from the docs that RESAMPLE only comes into play when we're >> doing on-the-fly reprojection, is that correct? When no reprojection is >> required, but just simpler upsampling, can one change the kernel used? >> >> Many thanks! >> Patrick >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From helms at ubilabs.com Mon Sep 13 09:51:01 2021 From: helms at ubilabs.com (Andreas Helms) Date: Mon, 13 Sep 2021 18:51:01 +0200 Subject: [mapserver-users] Fwd: Questions according to MapServer IDW implementation In-Reply-To: References: Message-ID: Hi all, I found this pull request created early this year: https://github.com/MapServer/MapServer/pull/6227 The IDW implementation is really impressive and works very well, but I am wondering if it would be possible to make the interpolated data available as a vector layer, too. In addition to the raster layer output we need some kind of WMS getFeatureInfo-Request, to access interpolated data for given coordinates. Do you have any suggestions, how this could work out? Kind regards from Germany -- Andreas Helms Full Stack Developer helms at ubilabs.com [image: ubilabs] Ubilabs GmbH Heidi-Kabel-Platz 2, 20099 Hamburg ubilabs.com Ubilabs GmbH, Handelsregister Hamburg: HRB 110269 Gesch?ftsf?hrer: Michael Pletziger, Jens Wille, Martin Kleppe -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Mon Sep 13 19:55:54 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Tue, 14 Sep 2021 03:55:54 +0100 Subject: [mapserver-users] asking help about generating html code in python script Message-ID: hello everyone , recently i create a cgi script in python now i try to integrate a html in my script to organize my web page but it's not work this my html page below *con = psycopg2.connect(host="localhost", database="#########", user="postgres", password=#######, port=5432)cur = con.cursor()cur.execute("insert into table_1(nom) values(%s)",(name,))con.commit()print("content-Type: text/html")print""" hello * *"""* but this code not work l know the problem is not in the python script code because l tested the python code alone. but if l add a html the server sent a error. now l want to know how to integrate a html with python script . -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Tue Sep 14 11:05:24 2021 From: sdlime at gmail.com (Steve Lime) Date: Tue, 14 Sep 2021 13:05:24 -0500 Subject: [mapserver-users] Potential bug when using Layer-Tile-Index where indexed files are GeoTiff files In-Reply-To: References: Message-ID: I'd agree this is a bug - just not sure what the fix should be. On Mon, Sep 6, 2021 at 4:21 AM Sommer, Ashley (L&W, Dutton Park) wrote: > Hi Everyone, > I'm trying to get WCS service with TIME parameter support working on > latest Mapserver. > My data is a timeseries of large geotiff files, in a directory, with the > date encoded in the filename. > Eg: > - /datasets/mydataset/v1/layer1/raster_2020-08-01.tif > - /datasets/mydataset/v1/layer1/raster_2020-08-02.tif > - etc. > I'm had it working on the WMS side of things, simply using Runtime > Substitution, and embedding the TIME parameter into the DATA directive. > eg: > DATA "/datasets/mydataset/v1/layer1/raster_%time%.tif" > That worked for WMS, but not for WCS. When Mapserver's WCS service > encounters a TIME parameter, it assumes I'm using a tile index. If there is > no tile index, it errors out. > > So I create a tile index for this dataset. Using gdaltindex for a record > of "location" for each raster, then adding a temporal attribute to the dbf > file, and assigning dates to each of the records. > I then tried to use that in place of DATA: > LAYER > NAME "mylayer" > TILEINDEX "/datasets/mydataset/v1/layer1/index.shp" > TILEITEM "location" > END > Unfortunately, that doesn't work, because Mapserver now requires the use > of new-style Layer-Tile-Index directives in order for WCS to work properly. > So I changed it to: > LAYER > NAME "MyIndex" > TILEINDEX "/datasets/mydataset/v1/layer1/index.shp" > TILEITEM "location" > END > LAYER > TILEINDEX "MyIndex" > TILEITEM "location" > END > > This now works to some extent, but then I get an error: > msTiledSHPTryOpen(): Unable to access file. Unable to open shapefile > 'raster_2020-08-02.tif' for layer 'MyIndex' ... fatal error. > msShapefileOpen(): Unable to access file. (/tmp/raster_2020-08-02.tif) > msShapefileOpen(): Unable to access file. > (/datasets/mydataset/v1/layer1/raster_2020-08-01.tif) > > I believe I have tracked down why this is happening, and I believe it is a > bug. > 1) Mapserver _can_ open the .shp and .dbf file at the location. It must be > able to to get the file location from the dbf index. > 2) msTiledSHPTryOpen() is a helper fn that runs _after_ opening a tile > index, to test if we can open the first-indexed file (to template some > parts of the layer). > See comment here: > https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L2028 > See also msTileSHPTryOpen fn here: > https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L1868 > 3) So msTiledSHPTryOpen() tries to open the first-indexed file: > "/datasets/mydataset/v1/layer1/raster_2020-08-02.tif" but returns an error, > even though it _can_ open that file. > The problem is, it is using msShapefileOpen() to do this, which in-turn > uses msSHPOpen() to open the tif file: > See msShapefileOpen fn: > https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L1665 > See opener: > https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L1686 > 4) msSHPOpen() assumes whatever file its opening will have a .shp file and > a .shx file. > In this case, it's trying to open a .tif file. The function tries to open > a non-existent /datasets/mydataset/v1/layer1/raster_2020-08-02.shp file. > See the implementation here: > https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L194 > And where it opens a file here: > https://github.com/MapServer/MapServer/blob/0d156a72893b1df712cb49c1b3ddaeed5365a68b/mapshape.c#L252 > > So I believe it is a bug to use msShapefileOpen() to test if a tileindex > can open a file at its first-indexed location, because that file may not be > a .shp file. > > I might be able to put in a PR to fix the bug, but I don't know the > codebase well enough to not potentially introduce regressions. > Let me know what you think? > > - Ashley Sommer > _______________________________________________ > 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 patrick.mckendree.young at gmail.com Tue Sep 14 21:29:34 2021 From: patrick.mckendree.young at gmail.com (Patrick Young) Date: Tue, 14 Sep 2021 22:29:34 -0600 Subject: [mapserver-users] Bilinear Resampling Bug? Message-ID: Hello! Before I put in a bug in GitHub, I was hoping someone could confirm if what I am seeing is expected behavior. I've made a small test case (https://github.com/youngpm/alphabug) where I have two adjacent rasters that abut but do not overlap. They are the same solid color, but contain a alpha band that goes from transparent to opaque along the border where they touch. When I use bilinear resampling and zoom in, I see a pixel of overlap (see https://github.com/youngpm/alphabug/blob/main/example/bilinear.png), which manifests as a darker line when the layers are composited in semi-transparent areas. This doesn't occur with nearest neighbor resampling (see https://github.com/youngpm/alphabug/blob/main/example/nearest.png). I've placed these sample rasters and a mapfile with shp2map command examples that illustrate what I am seeing here via individual raster layers and when using a tile index: https://github.com/youngpm/alphabug For another experiment, in QGIS, I loaded one of the geotiffs directly and again via WMS. With bilinear resampling, one sees that the WMS layer has an additional 1/2 pixel arpon (the pixel size being the native pixel size) all the way around compared with the directly loaded version, but they agree exactly when nearest neighbor is used; bilinear appears to be interpolating past the image boundary by half a pixel. I'm pretty new to using mapserver so it may very well be user error. My other thought is that during compositing, there is some mixup between pixel centers and pixel edges. Thanks for any suggestions! Happy to file an issue if anyone believes this is a bug and not expected behavior. Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From caletrio_mar at gva.es Thu Sep 16 01:08:31 2021 From: caletrio_mar at gva.es (CALETRIO ARCOS, MARGARITA) Date: Thu, 16 Sep 2021 08:08:31 +0000 Subject: [mapserver-users] INSPIRE WMS - INSPIRE Message-ID: Hi, I am trying to get a validated INSPIRE View Map Service. I haven't found a complete information about how to write the .map to obtain the correct capabilities xml to be validated with INSPIRE VALIDATOR besides, I don't have experience using mapserver. I hope you can help me, thanks. 1: where and how it's defined in mapserver the namespaces that appear in the getcapabilities xml. I think it's not defined iat the .map. How can I change the namespaces that appear in the capabilities xml? 2: Please, can someone send me a mapserver file .map and its getcapabilities xml associated according with INSPIRE to understand how to conform the desired getcapabilities xml? Thank you. Regards Marga [cid:image001.jpg at 01D7AAE2.CC5B8640] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 17529 bytes Desc: image001.jpg URL: From schroeter at netgis.de Thu Sep 16 01:29:17 2021 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 16 Sep 2021 10:29:17 +0200 Subject: [mapserver-users] INSPIRE WMS - INSPIRE In-Reply-To: References: Message-ID: <538eebef-003f-f9cc-92ca-0f23cf2b46e8@netgis.de> Hi Marga, maybe this is helpful: https://mapserver.org/ogc/inspire.html Greetings Sven Am 16.09.2021 um 10:08 schrieb CALETRIO ARCOS, MARGARITA: > > Hi, I am trying to get a validated INSPIRE View Map Service. I haven?t > found a complete information about how to write the .map to obtain the > correct capabilities xml to be validated with INSPIRE VALIDATOR > besides, I don?t have experience using mapserver. I hope you can help > me, thanks. > > 1: where and how it?s defined in mapserver the namespaces that appear > in the getcapabilities xml. I think it?s not defined iat the .map. > > How can I change the namespaces that appear in the capabilities xml? > > 2: Please, can someone send me a mapserver file .map and its > getcapabilities xml associated according with INSPIRE to understand > how to conform the desired getcapabilities xml? > > Thank you. > > Regards Marga > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 17529 bytes Desc: not available URL: From sdlime at gmail.com Thu Sep 16 09:46:06 2021 From: sdlime at gmail.com (Steve Lime) Date: Thu, 16 Sep 2021 11:46:06 -0500 Subject: [mapserver-users] Recoloring a raster... Message-ID: Hi all: I think this is possible. What's the easiest/best way to recolor a raster image, so for example, turning all pixels of 255 0 0 to 0 0 255? There are only 6 colors in the input image I need to deal with. --Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Thu Sep 16 10:07:37 2021 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Thu, 16 Sep 2021 19:07:37 +0200 Subject: [mapserver-users] Recoloring a raster... In-Reply-To: References: Message-ID: Hi Steve, I have one solution with gdal that I showed in some context that I can't remember now.? It changes palette images. It does a simple reclass of the color values with gdal_calc and some glue with awk and sed. https://gist.github.com/LarsSchy/c1be96fa03f7dc11df4247be033e2705 Have fun / Lars Schylberg Den 2021-09-16 kl. 18:46, skrev Steve Lime: > Hi all: I think this is possible. What's the easiest/best way to > recolor a raster image, so for example, turning all pixels of 255 0 0 > to 0 0 255? There are only 6 colors in the input image I need to deal > with. > > --Steve > > _______________________________________________ > 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 dmorissette at mapgears.com Thu Sep 16 10:18:19 2021 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 16 Sep 2021 13:18:19 -0400 Subject: [mapserver-users] Recoloring a raster... In-Reply-To: References: Message-ID: Maybe I misunderstood the question, is it not what raster class expressions are for? https://mapserver.org/input/raster.html#classifying-rasters CLASS NAME "red -> blue" EXPRESSION ([red] = 255 AND [green] = 0 AND [blue] = 0) STYLE COLOR 0 0 255 END END On 2021-09-16 12:46, Steve Lime wrote: > Hi all: I think this is possible. What's the easiest/best way to recolor > a raster image, so for example, turning all pixels of 255 0 0 to 0 0 > 255? There are only 6 colors in the input image I need to deal with. > > --Steve > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 From sdlime at gmail.com Thu Sep 16 12:16:58 2021 From: sdlime at gmail.com (Steve Lime) Date: Thu, 16 Sep 2021 14:16:58 -0500 Subject: [mapserver-users] Recoloring a raster... In-Reply-To: References: Message-ID: No, you didn't misunderstand, that's what I was looking for (duh)... However, I get really inconsistent behavior using that method. Partially because upon closer inspection my RGB has more than 6 colors (anti-aliasing). Still large blocks of pixels don't match when using an expression like ([red] = 255 AND [green] = 0 AND [blue] = 0) even though they should, based on inspection with a tool like Photoshop. I figured out a workaround. On Thu, Sep 16, 2021 at 12:26 PM Daniel Morissette wrote: > Maybe I misunderstood the question, is it not what raster class > expressions are for? > > https://mapserver.org/input/raster.html#classifying-rasters > > CLASS > NAME "red -> blue" > EXPRESSION ([red] = 255 AND [green] = 0 AND [blue] = 0) > STYLE > COLOR 0 0 255 > END > END > > > On 2021-09-16 12:46, Steve Lime wrote: > > Hi all: I think this is possible. What's the easiest/best way to recolor > > a raster image, so for example, turning all pixels of 255 0 0 to 0 0 > > 255? There are only 6 colors in the input image I need to deal with. > > > > --Steve > > > > _______________________________________________ > > MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Daniel Morissette > Mapgears Inc > T: +1 418-696-5056 #201 > _______________________________________________ > 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 bahbouba.909 at gmail.com Fri Sep 17 12:21:38 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Fri, 17 Sep 2021 20:21:38 +0100 Subject: [mapserver-users] asking help about python except databsaseError syntaxe Message-ID: Hi everyone currently I am on a python script in the I am using the psycopg2 to connect to a database now at con = none I try to connect to my database and make an insertion in my postgis database after this request I try to manage the except in case of error; This is where the script is problematic then the day of apache error says that the except synstax has an error but after having this several times I can't find the problem. below I send you the script and error log if someone can help me solve the problem. this is my script cgi: con = None try: con = psycopg2.connect(host="localhost", database="webmapping", user= "postgres", password=97071884) cur = con.cursor() cur.execute( "insert into points(geom) values((SELECT ST_GeometryFromText('POINT(%s %s )',4326)))",(coordx,coordy,)) con.commit() except psycopg2.DatabaseError, e: print("Error %s") % e sys.exit(1) finally: if con: con.close() this is my log error bellow: [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: File "C:\\ms4w\\Apache\\cgi-bin\\suivi_gps.cgi", line 32\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: except psycopg2.DatabaseError, e:\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: ^\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: SyntaxError: invalid syntax\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi if someone can suppose me idea to solve this problem thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Sep 17 12:29:25 2021 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 17 Sep 2021 13:29:25 -0600 Subject: [mapserver-users] asking help about python except databsaseError syntaxe In-Reply-To: References: Message-ID: Try putting quotes around the database password. ---------------------------------------- From: "Boubacar Bah" Sent: 9/17/21 1:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] asking help about python except databsaseError syntaxe Hi everyone currently I am on a python script in the I am using the psycopg2 to connect to a database now at con = none I try to connect to my database and make an insertion in my postgis database after this request I try to manage the except in case of error; This is where the script is problematic then the day of apache error says that the except synstax has an error but after having this several times I can't find the problem. below I send you the script and error log if someone can help me solve the problem.this is my script cgi: con = None try: con = psycopg2.connect(host="localhost", database="webmapping", user="postgres", password=97071884) cur = con.cursor() cur.execute("insert into points(geom) values((SELECT ST_GeometryFromText('POINT(%s %s)',4326)))",(coordx,coordy,)) con.commit() except psycopg2.DatabaseError, e: print("Error %s") % e sys.exit(1) finally: if con: con.close() this is my log error bellow: [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: File "C:\\ms4w\\Apache\\cgi-bin\\suivi_gps.cgi", line 32\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: except psycopg2.DatabaseError, e:\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: ^\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi [Thu Sep 16 20:52:16.176534 2021] [cgi:error] [pid 2852:tid 1232] [client ::1:59242] AH01215: SyntaxError: invalid syntax\r: C:/ms4w/Apache/cgi-bin/suivi_gps.cgi if someone can suppose me idea to solve this problem thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahbouba.909 at gmail.com Fri Sep 17 13:03:32 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Fri, 17 Sep 2021 21:03:32 +0100 Subject: [mapserver-users] asking help about python script cgi Message-ID: Good evening ; i just wrote a python script when i try to run the script with apache the server throws an error. when I check the apache error log. it displays the message to me without however indicating the line on which the error is located here is the error message: *[Fri Sep 17 20:56:55.398787 2021] [http:error] [pid 7484:tid 1232] [client ::1:58700] AH02429: Response header name '