From sethg at geographika.co.uk Fri Oct 1 10:12:00 2021 From: sethg at geographika.co.uk (Seth G) Date: Fri, 01 Oct 2021 19:12:00 +0200 Subject: [mapserver-users] State of MapServer 2021 Slides Message-ID: <72339445-14b7-4553-b7de-218cebf65a54@www.fastmail.com> Hi all, For those who weren't able to attend FOSS4G this year the slides of the State of MapServer 2021 presentation can be found at https://geographika.github.io/mapserver-state-2021/ Also of interest to MapServer users are: Mapserver ? Labeling and Circles ? my best tips and tricks [1] Geostyler Mapfile Parser [2] I believe the talks will all be published online in around a month. Seth [1] https://2021-foss4g.venueless.events/schedule/talks/M8JCVH [2] https://2021-foss4g.venueless.events/schedule/talks/FG7PBN -- web:http://geographika.co.uk twitter: @geographika From atlantageek at gmail.com Tue Oct 5 11:51:40 2021 From: atlantageek at gmail.com (Atlanta Geek) Date: Tue, 5 Oct 2021 14:51:40 -0400 Subject: [mapserver-users] (no subject) Message-ID: Im attempting to configure mapcache. I assume that this is covered in this mailing list as well. Mapcache is returning images of the map for me but the cache files are not being written. Its strange because I can use the seeding command with the same xml file and its populating the expected directory but when I go through the mapcache script its not writing to that cache directory. Any guidance would be appreciated. The URL Im testing with is this. http://192.168.112.225/mapcache?service=WMS&request=GetMap&layers=default&styles=&format=image%2Fpng&transparent=true&version=1.1.1&width=2048&height=2048&srs=EPSG%3A3857&bbox=-10018754.171394622,0,0,10018754.171394628 mapcache.xml is as follows: /tmp/mapcache fast 256 image/jpeg default /usr/lib/cgi-bin/osm-bw.map true http://192.168.112.225/cgi-bin/mapserv? vmap0 disk WGS84 g png 3600 png png assemble bilinear 4096 http://192.168.112.225/cgi-bin/mapserv?transparent=true&map=/usr/lib/cgi-bin/osm-bw.map report /tmp debug -- http://www.atlantageek.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Thu Oct 7 05:57:13 2021 From: sdlime at gmail.com (Steve Lime) Date: Thu, 7 Oct 2021 07:57:13 -0500 Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: I've not used a similar setup but it seems like there's no need to create tiles if you're passing WMS calls through to another WMS server. Do you get tiles if you make tiled service requests? On Tue, Oct 5, 2021 at 1:52 PM Atlanta Geek wrote: > Im attempting to configure mapcache. > I assume that this is covered in this mailing list as well. Mapcache is > returning images of the map for me but the cache files are not being > written. Its strange because I can use the seeding command with the same > xml file and its populating the expected directory but when I go through > the mapcache script its not writing to that cache directory. > > Any guidance would be appreciated. > > The URL Im testing with is this. > > http://192.168.112.225/mapcache?service=WMS&request=GetMap&layers=default&styles=&format=image%2Fpng&transparent=true&version=1.1.1&width=2048&height=2048&srs=EPSG%3A3857&bbox=-10018754.171394622,0,0,10018754.171394628 > > > > mapcache.xml is as follows: > > > /tmp/mapcache > > > > fast > 256 > > > > > image/jpeg > default > /usr/lib/cgi-bin/osm-bw.map > true > > > > http://192.168.112.225/cgi-bin/mapserv? > > > > vmap0 > disk > WGS84 > g > png > 3600 > > png > > > png > assemble > bilinear > 4096 > > > > http://192.168.112.225/cgi-bin/mapserv?transparent=true&map=/usr/lib/cgi-bin/osm-bw.map > > > > > > > > > > > report > /tmp > debug > > -- > http://www.atlantageek.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 bob.basques at ci.stpaul.mn.us Thu Oct 7 15:43:01 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 7 Oct 2021 22:43:01 +0000 Subject: [mapserver-users] OSGeo Twin Cities (aka TCMUG) Local Chapter Meeting - Oct 13th Message-ID: All, Last month?s meeting, while it technically happened, didn?t amount to too much cross pollination, since there were only two of us that showed up. :c). We did get rained out at the end with a short lived sun shower. No matter. This month I have a virtual Presentation for the group related to the EPC/ UUMPT group I?m a part of. Some more info available here in Video meeting recordings. We?re just starting back up from the Summer hiatus and the work going on in this group I think will be interesting to a number of, if not most of you. I?m going to try and get Damon Nelton, another member of the EPC/UUMPT group, to tag team on this presentation with me as a rehearsal for the GIS/LIS meeting where we?ll be presenting something similar. Not sure yet if he can be ready before next Wednesday though, in which case I?ll tackle it on my own. Online Presentation: https://meet.jit.si/osgeo_tcmug When Oct, 13th, 4:30 PM bobb OSGeo, Twin Cities (aka TCMUG), MN, USA Local Chapter Page. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgodkin at gmail.com Thu Oct 7 16:12:31 2021 From: cgodkin at gmail.com (Carl Godkin) Date: Thu, 7 Oct 2021 16:12:31 -0700 Subject: [mapserver-users] Mapserver + WMS Message-ID: Hi, I'm new to mapserver but fairly experienced with GDAL. I hope that someone can explain where I've gone wrong with setting up WMS. I followed the instructions here [ https://worldwind.earth/elevation-server.html] almost exactly to set up a WMS server and it sort of works. (I am using MS4W actually, so I didn't install Apache & Mapserver as that page described and of course I made a few other adaptations for Windows.) I downloaded the GEBCO tiles from here [ https://www.gebco.net/data_and_products/gridded_bathymetry_data/] without any problems. What I don't understand is that while the GEBCO GeoTIFF files that I am using have one band that gdalinfo describes as Band 1 Block=512x512 Type=Int16, ColorInterp=Gray when I look at the WMS bands using gdalinfo, I see three byte-sized bands: Band 1 Block=1024x1024 Type=Byte, ColorInterp=Red Band 2 Block=1024x1024 Type=Byte, ColorInterp=Green Band 3 Block=1024x1024 Type=Byte, ColorInterp=Blue I'd really like to get 16-bit integer elevations from my WMS server but I don't know why this didn't just happen or how I mis-configured things to make it not happen. I know these are not complete details, but rather than write a novel for my first post here, I'm hoping someone can suggest where the problem might be or suggest some further documentation to read. Thanks very much, carl -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Fri Oct 8 09:50:05 2021 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 8 Oct 2021 16:50:05 +0000 Subject: [mapserver-users] WCS: Write error at scanline xxxx Message-ID: <78a286a963bb429eb86e7d924d258643@maanmittauslaitos.fi> Hi, When I try to get any bigger output from WCS (in this case 12000x12000 pixels RGB) with a request like http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w_data/wcs_vv_jr.map&service=WCS&version=2.0.0&request=GetCoverage&CoverageID=orto_vv&format=image/tiff&geotiff:tiling=true&geotiff:tileheight=256&geotiff:tilewidth=256 I get errors like this > msWCSWriteFile20(): General error message. msSaveImage() failed msSaveImageGDAL(): General error message. Failed to create output GTiff file. TIFFAppendToStrip:Write error at scanline 1024 I managed to get bigger images = more pixels by asking for compressed output with &geotiff:compression=jpeg I wonder what is the limiting resource and if there is something I could improve with some configuration. Because the output is a tiled GeoTIFF but the error is about writing a strip I guess that Mapserver is writing first an interim TIFF. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycharieau at sma-netagis.fr Mon Oct 11 00:56:49 2021 From: ycharieau at sma-netagis.fr (Yoann CHARIEAU) Date: Mon, 11 Oct 2021 09:56:49 +0200 (CEST) Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: <20817046.118470.1633939009493.JavaMail.zimbra@sma-netagis.fr> Did you check permissions on your /tmp/mapcache directory ? It should be writeable by your http server user (usually www-data). Yoann ----- Mail original ----- De: "Steve Lime" ?: "Atlanta Geek" Cc: "mapserver-users" Envoy?: Jeudi 7 Octobre 2021 14:57:13 Objet: Re: [mapserver-users] (no subject) I've not used a similar setup but it seems like there's no need to create tiles if you're passing WMS calls through to another WMS server. Do you get tiles if you make tiled service requests? On Tue, Oct 5, 2021 at 1:52 PM Atlanta Geek < [ mailto:atlantageek at gmail.com | atlantageek at gmail.com ] > wrote: Im attempting to configure mapcache. I assume that this is covered in this mailing list as well. Mapcache is returning images of the map for me but the cache files are not being written. Its strange because I can use the seeding command with the same xml file and its populating the expected directory but when I go through the mapcache script its not writing to that cache directory. Any guidance would be appreciated. The URL Im testing with is this. [ http://192.168.112.225/mapcache?service=WMS&request=GetMap&layers=default&styles=&format=image%2Fpng&transparent=true&version=1.1.1&width=2048&height=2048&srs=EPSG%3A3857&bbox=-10018754.171394622,0,0,10018754.171394628 | http://192.168.112.225/mapcache?service=WMS&request=GetMap&layers=default&styles=&format=image%2Fpng&transparent=true&version=1.1.1&width=2048&height=2048&srs=EPSG%3A3857&bbox=-10018754.171394622,0,0,10018754.171394628 ] mapcache.xml is as follows: /tmp/mapcache fast 256 image/jpeg default /usr/lib/cgi-bin/osm-bw.map true [ http://192.168.112.225/cgi-bin/mapserv | http://192.168.112.225/cgi-bin/mapserv ] ? vmap0 disk WGS84 g png 3600 png png assemble bilinear 4096 [ http://192.168.112.225/cgi-bin/mapserv?transparent=true&map=/usr/lib/cgi-bin/osm-bw.map | http://192.168.112.225/cgi-bin/mapserv?transparent=true&map=/usr/lib/cgi-bin/osm-bw.map ] report /tmp debug -- [ http://www.atlantageek.com/ | http://www.atlantageek.com ] _______________________________________________ MapServer-users mailing list [ mailto:MapServer-users at lists.osgeo.org | MapServer-users at lists.osgeo.org ] [ https://lists.osgeo.org/mailman/listinfo/mapserver-users | 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 aimdev at mail.com Mon Oct 11 11:04:31 2021 From: aimdev at mail.com (aimdev at mail.com) Date: Mon, 11 Oct 2021 19:04:31 +0100 Subject: [mapserver-users] Xml support in Mapserver v8 Message-ID: <66EF6C84-562A-4862-B882-FBE05439D3C5@mail.com> Hi I maintain my maps in xml, converting to map files utilising xsltproc. 1. will there be an xsltproc in v8? 2. will there be an updated xsd file for v8? 3 if 1 & 2 are yes, is it possible to get an early release of the xsd file? Thanks Aimee From jmckenna at gatewaygeomatics.com Mon Oct 11 11:35:41 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 11 Oct 2021 15:35:41 -0300 Subject: [mapserver-users] Mapserver + WMS In-Reply-To: References: Message-ID: <449649f1-4a96-597c-f2e7-155967281c1d@gatewaygeomatics.com> Hi Carl, First, welcome to the MapServer community! Thanks for the detailed question, and pointing to the source data, this always helps to give a proper answer. You've done well and are very close. Here are some points to consider: - the OGC specification for serving raw raster data is actually WCS (which MapServer does well, see https://mapserver.org/ogc/wcs_server.html ) - but you're right that a cool trick is to use the (more) popular WMS specification and set an OUTPUTFORMAT in your server's mapfile, to generate a GeoTIFF through a WMS GetMap request. - I see that you've already setup an OUTPUTFORMAT such as: OUTPUTFORMAT NAME "GEOTIFF_16" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE INT16 EXTENSION "tif" END - now the trick is to call that specific outputformat. I recommend always testing this at the commandline first, with shp2img (which will be renamed to 'map2img' shortly, for the MapServer 8.0 release). It takes a mapfile and generates an output (or gives exact error). - since you are using MS4W, just open a CMD window and cd into /ms4w. Then execute 'setenv.bat' to set necessary paths. Then, in that same windows, cd to where your mapfile is, and execute the following (notice the "-i" switch, which requests the named outputformat set in the mapfile) : shp2img -m local.map -o ttt16.tif -map_debug 3 -i GEOTIFF_16 - that command should return a draw speed for each layer, and generate your 16-bit GeoTIFF. And look closely at that response, the first words will be something like: rendering using outputformat named GEOTIFF_16 (GDAL/GTiff) Great! That's what we want. - once you're satisfied, now we can turn to WMS requests. But always first start with removing any "WARNING" messages in your GetCapabilities request, and then also verifying that the section of that response includes a listed "image/tiff" format option. (example GetCapabilities request) : http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities - once you're happy with the GetCapabilities response, then you can try a GetMap request, that includes "&FORMAT=image/tiff" http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=346&HEIGHT=173&LAYERS=gebco&STYLES=&FORMAT=image/tiff&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE - or you can stay right there at your commandline, and make that GetMap request there with the "mapserv -nh QUERY_STRING="" trick, and pipe that to a new image file, such as: mapserv -nh QUERY_STRING="map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=346&HEIGHT=173&LAYERS=gebco&STYLES=&FORMAT=image/tiff&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE" > getmap.tif Hope that helps. Also thanks for the positive feedback on MS4W, its goal is to serve big data fast for organizations, on enterprise Windows servers, and it sounds like it has met your needs well. Look for a big MS4W release soon ;) And a happy (Canadian) Thanksgiving holiday to you. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-10-07 8:12 p.m., Carl Godkin wrote: > Hi, > > I'm new to mapserver but fairly experienced with GDAL.? I hope that > someone can explain where I've gone wrong with setting up WMS. > > I followed the instructions here > [https://worldwind.earth/elevation-server.html > ] almost exactly to set > up a WMS server and it sort of works.? (I am using MS4W actually, so I > didn't install Apache & Mapserver as that page described and of course I > made a few other adaptations for Windows.) > > I downloaded the GEBCO tiles from here > [https://www.gebco.net/data_and_products/gridded_bathymetry_data/ > ] > without any problems. > > What I don't understand is that while the GEBCO GeoTIFF files that I am > using have one band that gdalinfo describes as > > ?Band 1 Block=512x512 Type=Int16, ColorInterp=Gray > > when I look at the WMS bands using gdalinfo, I see three byte-sized bands: > > Band 1 Block=1024x1024 Type=Byte, ColorInterp=Red > Band 2 Block=1024x1024 Type=Byte, ColorInterp=Green > Band 3 Block=1024x1024 Type=Byte, ColorInterp=Blue > > I'd really like to get 16-bit integer elevations from my WMS server but > I don't know why this didn't just happen or how I mis-configured things > to make it not happen. > > I know these are not complete details, but rather than write a novel for > my first post here, I'm hoping someone can suggest where the problem > might be or suggest some further documentation to read. > > Thanks very much, > carl > > > From jmckenna at gatewaygeomatics.com Mon Oct 11 11:47:12 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 11 Oct 2021 15:47:12 -0300 Subject: [mapserver-users] Mapserver + WMS In-Reply-To: <449649f1-4a96-597c-f2e7-155967281c1d@gatewaygeomatics.com> References: <449649f1-4a96-597c-f2e7-155967281c1d@gatewaygeomatics.com> Message-ID: Hi Carl, Also, as you travel down this path, please aim to adding your upcoming elevation WMS service into the MapServer Site Gallery : https://github.com/MapServer/MapServer/wiki/MapServer-Site-Gallery This really helps new users see the powers of MapServer. Thanks! -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ On 2021-10-11 3:35 p.m., Jeff McKenna wrote: > Hi Carl, > > First, welcome to the MapServer community! > > Thanks for the detailed question, and pointing to the source data, this > always helps to give a proper answer. > > You've done well and are very close.? Here are some points to consider: > > - the OGC specification for serving raw raster data is actually WCS > (which MapServer does well, see https://mapserver.org/ogc/wcs_server.html ) > > - but you're right that a cool trick is to use the (more) popular WMS > specification and set an OUTPUTFORMAT in your server's mapfile, to > generate a GeoTIFF through a WMS GetMap request. > > - I see that you've already setup an OUTPUTFORMAT such as: > > OUTPUTFORMAT > ? NAME "GEOTIFF_16" > ? DRIVER "GDAL/GTiff" > ? MIMETYPE "image/tiff" > ? IMAGEMODE INT16 > ? EXTENSION "tif" > END > > - now the trick is to call that specific outputformat.? I recommend > always testing this at the commandline first, with shp2img (which will > be renamed to 'map2img' shortly, for the MapServer 8.0 release).? It > takes a mapfile and generates an output (or gives exact error). > > - since you are using MS4W, just open a CMD window and cd into /ms4w. > Then execute 'setenv.bat' to set necessary paths.? Then, in that same > windows, cd to where your mapfile is, and execute the following (notice > the "-i" switch, which requests the named outputformat set in the > mapfile) : > > ? shp2img -m local.map -o ttt16.tif -map_debug 3 -i GEOTIFF_16 > > - that command should return a draw speed for each layer, and generate > your 16-bit GeoTIFF.? And look closely at that response, the first words > will be something like: > > ?? rendering using outputformat named GEOTIFF_16 (GDAL/GTiff) > > Great! That's what we want. > > - once you're satisfied, now we can turn to WMS requests.? But always > first start with removing any "WARNING" messages in your GetCapabilities > request, and then also verifying that the section of that > response includes a listed "image/tiff" format option.? (example > GetCapabilities request) : > > > http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities > > > - once you're happy with the GetCapabilities response, then you can try > a GetMap request, that includes "&FORMAT=image/tiff" > > > > http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=346&HEIGHT=173&LAYERS=gebco&STYLES=&FORMAT=image/tiff&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE > > > - or you can stay right there at your commandline, and make that GetMap > request there with the "mapserv -nh QUERY_STRING="" trick, and pipe that > to a new image file, such as: > > ? mapserv -nh > QUERY_STRING="map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=346&HEIGHT=173&LAYERS=gebco&STYLES=&FORMAT=image/tiff&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE" > > getmap.tif > > Hope that helps. > > Also thanks for the positive feedback on MS4W, its goal is to serve big > data fast for organizations, on enterprise Windows servers, and it > sounds like it has met your needs well.? Look for a big MS4W release > soon ;) > > And a happy (Canadian) Thanksgiving holiday to you. > > -jeff > > > From cgodkin at gmail.com Mon Oct 11 15:35:20 2021 From: cgodkin at gmail.com (Carl Godkin) Date: Mon, 11 Oct 2021 15:35:20 -0700 Subject: [mapserver-users] Mapserver + WMS In-Reply-To: <449649f1-4a96-597c-f2e7-155967281c1d@gatewaygeomatics.com> References: <449649f1-4a96-597c-f2e7-155967281c1d@gatewaygeomatics.com> Message-ID: Hi Jeff, Thank you very much for the detailed response. When I run the commands you provided, everything matches and the output GeoTIFF file definitely has the type "Type=Int16." I was originally asking why I didn't see that type when querying the server with the sub-datasets returned by this command > gdalinfo "WMS:http://localhost:8080//elev" but I'm probably just coloring outside the lines of what WMS is meant to support. I think that the next thing I will do is use WCS for this instead. I confess that I went with WMS since I'm more familiar with it. I expected a single-band 16-bit "image" to act like a 2D grid which is what happens when I import "BIL" files or other single-band images. Thanks for stepping me through this and pointing me at WCS. carl On Mon, Oct 11, 2021 at 11:35 AM Jeff McKenna wrote: > Hi Carl, > > First, welcome to the MapServer community! > > Thanks for the detailed question, and pointing to the source data, this > always helps to give a proper answer. > > You've done well and are very close. Here are some points to consider: > > - the OGC specification for serving raw raster data is actually WCS > (which MapServer does well, see https://mapserver.org/ogc/wcs_server.html > ) > > - but you're right that a cool trick is to use the (more) popular WMS > specification and set an OUTPUTFORMAT in your server's mapfile, to > generate a GeoTIFF through a WMS GetMap request. > > - I see that you've already setup an OUTPUTFORMAT such as: > > OUTPUTFORMAT > NAME "GEOTIFF_16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE INT16 > EXTENSION "tif" > END > > - now the trick is to call that specific outputformat. I recommend > always testing this at the commandline first, with shp2img (which will > be renamed to 'map2img' shortly, for the MapServer 8.0 release). It > takes a mapfile and generates an output (or gives exact error). > > - since you are using MS4W, just open a CMD window and cd into /ms4w. > Then execute 'setenv.bat' to set necessary paths. Then, in that same > windows, cd to where your mapfile is, and execute the following (notice > the "-i" switch, which requests the named outputformat set in the mapfile) > : > > shp2img -m local.map -o ttt16.tif -map_debug 3 -i GEOTIFF_16 > > - that command should return a draw speed for each layer, and generate > your 16-bit GeoTIFF. And look closely at that response, the first words > will be something like: > > rendering using outputformat named GEOTIFF_16 (GDAL/GTiff) > > Great! That's what we want. > > - once you're satisfied, now we can turn to WMS requests. But always > first start with removing any "WARNING" messages in your GetCapabilities > request, and then also verifying that the section of that > response includes a listed "image/tiff" format option. (example > GetCapabilities request) : > > > > http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities > > - once you're happy with the GetCapabilities response, then you can try > a GetMap request, that includes "&FORMAT=image/tiff" > > > > > http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=346&HEIGHT=173&LAYERS=gebco&STYLES=&FORMAT=image/tiff&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE > > - or you can stay right there at your commandline, and make that GetMap > request there with the "mapserv -nh QUERY_STRING="" trick, and pipe that > to a new image file, such as: > > mapserv -nh > QUERY_STRING="map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=346&HEIGHT=173&LAYERS=gebco&STYLES=&FORMAT=image/tiff&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE" > > > getmap.tif > > Hope that helps. > > Also thanks for the positive feedback on MS4W, its goal is to serve big > data fast for organizations, on enterprise Windows servers, and it > sounds like it has met your needs well. Look for a big MS4W release soon > ;) > > And a happy (Canadian) Thanksgiving holiday to you. > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, MapServer Consulting and Training > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2021-10-07 8:12 p.m., Carl Godkin wrote: > > Hi, > > > > I'm new to mapserver but fairly experienced with GDAL. I hope that > > someone can explain where I've gone wrong with setting up WMS. > > > > I followed the instructions here > > [https://worldwind.earth/elevation-server.html > > ] almost exactly to set > > up a WMS server and it sort of works. (I am using MS4W actually, so I > > didn't install Apache & Mapserver as that page described and of course I > > made a few other adaptations for Windows.) > > > > I downloaded the GEBCO tiles from here > > [https://www.gebco.net/data_and_products/gridded_bathymetry_data/ > > ] > > without any problems. > > > > What I don't understand is that while the GEBCO GeoTIFF files that I am > > using have one band that gdalinfo describes as > > > > Band 1 Block=512x512 Type=Int16, ColorInterp=Gray > > > > when I look at the WMS bands using gdalinfo, I see three byte-sized > bands: > > > > Band 1 Block=1024x1024 Type=Byte, ColorInterp=Red > > Band 2 Block=1024x1024 Type=Byte, ColorInterp=Green > > Band 3 Block=1024x1024 Type=Byte, ColorInterp=Blue > > > > I'd really like to get 16-bit integer elevations from my WMS server but > > I don't know why this didn't just happen or how I mis-configured things > > to make it not happen. > > > > I know these are not complete details, but rather than write a novel for > > my first post here, I'm hoping someone can suggest where the problem > > might be or suggest some further documentation to read. > > > > Thanks very much, > > carl > > > > > > > _______________________________________________ > 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 Oct 12 10:10:58 2021 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 12 Oct 2021 17:10:58 +0000 Subject: [mapserver-users] [REMINDER] OSGeo Twin Cities (aka TCMUG) Local Chapter Meeting - Oct 13th Message-ID: UPDATE: Damon will be sharing the presentation duties. All, Last month?s meeting, while it technically happened, didn?t amount to too much cross pollination, since there were only two of us that showed up. :c). We did get rained out at the end with a short lived sun shower. No matter. This month I have a virtual Presentation for the group related to the EPC/ UUMPT group I?m a part of. Some more info available here in Video meeting recordings. We?re just starting back up from the Summer hiatus and the work going on in this group I think will be interesting to a number of, if not most of you. I?m going to try and get Damon Nelton, another member of the EPC/UUMPT group, to tag team on this presentation with me as a rehearsal for the GIS/LIS meeting where we?ll be presenting something similar. Not sure yet if he can be ready before next Wednesday though, in which case I?ll tackle it on my own. Online Presentation: https://meet.jit.si/osgeo_tcmug When Oct, 13th, 4:30 PM bobb OSGeo, Twin Cities (aka TCMUG), MN, USA Local Chapter Page. -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.schipkov at gmail.com Thu Oct 14 03:43:22 2021 From: n.schipkov at gmail.com (=?UTF-8?B?0J3QuNC60LjRgtCwINCp0LjQv9C60L7Qsg==?=) Date: Thu, 14 Oct 2021 13:43:22 +0300 Subject: [mapserver-users] localhost refused to connect Message-ID: Hello everyone! Yesterday I opened demo apps from MapCache. Today in the morning the localhost is not connecting to the server. How to diagnose the problem? Thank you in advance! From bahbouba.909 at gmail.com Sat Oct 16 04:12:55 2021 From: bahbouba.909 at gmail.com (Boubacar Bah) Date: Sat, 16 Oct 2021 12:12:55 +0100 Subject: [mapserver-users] asking help Message-ID: hello everyone ; recently l tried to use openlayers to create my own map with mapserver. my program work well if try just to display a open layer map in a browser *but if l try to add the interaction tools like modify, snap , draw* the program don't work. this is my source code bellow if someone can hem me with the interaction library of openlayer. OpenLayers example

My bah