Re: [mapserver-users] Any trick to buffer labelpoly?

2022-05-02 Thread Rahkonen Jukka (MML)
rtial transparency is not perfect where the fill meets the outline. And when a colored outline is widened it starts to paint over the label text. -Jukka- Lähettäjä: Steve Lime Lähetetty: perjantai 29. huhtikuuta 2022 17.07 Vastaanottaja: Rahkonen Jukka (MML) Kopio: Mapserver-Users (mapserver-

[mapserver-users] Any trick to buffer labelpoly?

2022-04-28 Thread Rahkonen Jukka (MML)
Hi, There is a wish to buffer the labelpoly in https://gis.stackexchange.com/questions/429779/mapserver-background-buffer-around-labels-geomtransform-labelpoly but it does not seem to be supported directly. Can anybody suggest a trick or workaround? -Jukka Rahkonen- __

Re: [mapserver-users] Floating point exception

2022-04-08 Thread Rahkonen Jukka (MML)
Hi, Mapserver 8 has increased security and requires a special config file. The best link for the documentation at the moment is probably https://mapserver.org/development/rfc/ms-rfc-135.html (The message "See mapserver.org/config_file.html for more information" points to non-existing location

Re: [mapserver-users] mapserver OGR does not forward BBOX at all

2022-04-01 Thread Rahkonen Jukka (MML)
believe I used the WFS connectiontype. -Jukka Rahkonen- Lähettäjä: Lars Fricke mailto:lars.fri...@skendata.de>> Lähetetty: perjantai 1. huhtikuuta 2022 14.54 Vastaanottaja: Rahkonen Jukka (MML) mailto:jukka.rahko...@maanmittauslaitos.fi>>; mapserver-users@lists.osgeo.org<mailto:

Re: [mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale?

2022-02-26 Thread Rahkonen Jukka (MML)
Hi, Have you tried to use two filled circle symbols for making the outline effect, one below and the other one above? Or to use png image as a symbol? -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Kyle Qian Lähetetty: lauantai 26. helmikuuta 2022 1.58 Vastaanottaja: Jason Snyder Aihe:

Re: [mapserver-users] Mapserver URL request layer

2022-02-09 Thread Rahkonen Jukka (MML)
Hi, About ows_* from https://www.mapserver.org/ogc/wms_server.html (Note that each of the metadata below can also be referred to as ‘ows_*’ instead of ‘wms_*’. MapServer tries the ‘wms_*’ metadata first, and if not found it tries the corresponding ‘ows_*’ name. Using this reduces the amount of

Re: [mapserver-users] Creation of raster layer legend

2022-02-04 Thread Rahkonen Jukka (MML)
Hi, Named classes appear in the legend and add least with CLASS-KEYIMAGE you can define the icon for the class. LAYER TYPE RASTER … CLASS NAME "TEST" KEYIMAGE "c:\ms4w_data\legend.png" … END -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Ahmet Temiz Lähetetty: perjanta

Re: [mapserver-users] msPostGISLayerWhichShapes() Error : java library set wrong query

2022-01-26 Thread Rahkonen Jukka (MML)
Hi, I wonder if it could be related to which locale Java detects on your computer – Italian (or Finnish) computer -> comma as a separator. Maybe something that deals around the same thing https://stackoverflow.com/questions/4713166/decimal-separator-in-numberformat. -Jukka Rahkonen- Lähettäj

Re: [mapserver-users] LUT file too long, what to do?

2022-01-26 Thread Rahkonen Jukka (MML)
. -Jukka- Lähettäjä: thomas bonfort Lähetetty: keskiviikko 26. tammikuuta 2022 12.19 Vastaanottaja: Rahkonen Jukka (MML) Kopio: Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [mapserver-users] LUT file too long, what to do? Hi Jukka, Unfortunately it's hardcoded: https://githu

[mapserver-users] LUT file too long, what to do?

2022-01-26 Thread Rahkonen Jukka (MML)
Hi, I am trying to adjust satellite image colors with a GIMP curve file but trial fails because the file is too long [Wed Jan 26 12:03:52 2022].708000 msDrawRasterLayerLow(sentinel_lut): entering. [Wed Jan 26 12:03:52 2022].713000 drawGDAL(): Unable to access file. LUT definition from file c:\m

Re: [mapserver-users] WCS layer units question...

2022-01-13 Thread Rahkonen Jukka (MML)
Hi, I can only tell that with these metadata settings in my mapfile METADATA "wcs_label""orto_vv" ### required "wcs_resolution" "0.5 0.5" "wcs_imagemode" "BYTE" "wcs_bandcount" "3" "wcs_band_names" "Band1 Band2 Band3"

Re: [mapserver-users] WCS layer units question...

2022-01-12 Thread Rahkonen Jukka (MML)
.) Thanks for your help, carl On Tue, Jan 11, 2022 at 11:57 PM Rahkonen Jukka (MML) mailto:jukka.rahko...@maanmittauslaitos.fi>> wrote: Hi, WCS users are supposed to read the metadata with DescribeCoverage, for example https://avoin-visukuva.nls.fi/ortokuvat-ja-korkeusmallit/wcs/v1?servic

Re: [mapserver-users] WCS layer units question...

2022-01-11 Thread Rahkonen Jukka (MML)
Hi, WCS users are supposed to read the metadata with DescribeCoverage, for example https://avoin-visukuva.nls.fi/ortokuvat-ja-korkeusmallit/wcs/v1?service=WCS&version=2.0.1&request=DescribeCoverage&coverageID=ortokuva_vari The units can be configured in the mapfile with “wcs_band_uom”. I do not k

Re: [mapserver-users] security problem?

2021-12-14 Thread Rahkonen Jukka (MML)
: tiistai 14. joulukuuta 2021 17.08 Vastaanottaja: Rahkonen Jukka (MML) Kopio: Zimmer Rene ; 'mapserver-users@lists.osgeo.org' Aihe: Re: [mapserver-users] security problem? Uhm - guess not many are using the Mapscript Java-binding then? (I don't, so haven't tested) https

Re: [mapserver-users] security problem?

2021-12-14 Thread Rahkonen Jukka (MML)
Hi, Log4j is a Java library, Mapserver is not Java. You can feel safe with this issue. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Zimmer Rene Lähetetty: tiistai 14. joulukuuta 2021 15.36 Vastaanottaja: 'mapserver-users@lists.osgeo.org' Aihe: [mapserver-users] security problem? He

Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-25 Thread Rahkonen Jukka (MML)
sting was wrong, as mode=map and layers= was > overriding the REQUIRES parameter, as I see that in msautotest things > are working with shp2img.  So, maybe I should not have sent these > messages ha. > > -jeff > > > > On 2021-11-23 5:42 p.m., Rahkonen Jukka (MM

Re: [mapserver-users] WFS bbox/intersect etc query from custom projection to EPSG:4326

2021-11-25 Thread Rahkonen Jukka (MML)
(resending to the list without the original mail, list has rather (too?) strict size limits, 40 KB) Hi, Perhaps you fell into the infamous axis order trap. With WFS 1.1.x and 2.0 the coordinates of EPSG:4326 most be in latitude-longiture oreder. I modified you mapfile a bit for my test data th

Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-23 Thread Rahkonen Jukka (MML)
Hi Jeff, I know REQUIRES has worked in a positive way (show copyright when a layer is on) because I have used that feature but I do not admin that service any more and I can't check the details. Probably I used version 6.x then. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: MapServ

Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-23 Thread Rahkonen Jukka (MML)
Hi, I would try LAYER - REQUIRES that is documented in https://mapserver.org/mapfile/layer.html#labelrequires -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: MapServer-users Puolesta Carlos Neves (LREC) Lähetetty: tiistai 23. marraskuuta 2021 21.46 Vastaanottaja: mapserver-users@lis

Re: [mapserver-users] Trouble with OpenStreetMap data in MapServer

2021-11-19 Thread Rahkonen Jukka (MML)
Hi, I agree with Jörg. The polygon that is used in the query is about 19000 km wide. Run shp2img with for smaller bbox with -e switch https://mapserver.org/utilities/shp2img.html. However, there may be something to improve in the mapfile and layer maxscaledenom because it does not make sense t

Re: [mapserver-users] Running on Mac Apache with Hombrew Install of Mapserver 7.6.4

2021-11-18 Thread Rahkonen Jukka (MML)
Hi, I have env setting at the top level in httpd.conf. On my Windows I have there also things like SetEnv PROJ_LIB "/ms4w/proj/nad/" SetEnv GDAL_DATA "/ms4w/gdaldata" but you may have those set already as generic environmental variables on your Mac. And you do not need to have directory /opt/ma

Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

2021-11-15 Thread Rahkonen Jukka (MML)
-paste-edit-test rounds to make the regexp work. -Jukka Rahkonen- Lähettäjä: Kenneth Kniel Lähetetty: maanantai 15. marraskuuta 2021 21.37 Vastaanottaja: Rahkonen Jukka (MML) Aihe: Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set Thank you sir.

Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

2021-11-15 Thread Rahkonen Jukka (MML)
Hi, You seem to have an extra space character in your url after /mapserv?. See %20 in that place, it is space as url-encoded. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Kenneth Kniel via MapServer-users Lähetetty: maanantai 15. marraskuuta 2021 20.19 Vastaanottaja: mapserver-users@

Re: [mapserver-users] Point query from Mapserver raster

2021-11-02 Thread Rahkonen Jukka (MML)
Hi, Yes, it is a useful hack. The same hack works with Geoservers but then GetFeatureInfo returns the values that are scaled to 0-255 for GetMaps instead of the raw values and that is not especially useful if you have a DEM layer. So be warned and stay with Mapserver. None of the existing OGC s

Re: [mapserver-users] Point query from Mapserver raster

2021-11-02 Thread Rahkonen Jukka (MML)
Hi, (Had to clip some text from the bottom because of the size limit of this list) You do not seem to do anything wrong. Your WMS 1.3.0 EPSG:4326 lat-long BBOX=42.94,-122.09,42.95,-122.08& gets converted into long-lat order and for some reason the lower and higher values are equal {-122.082500

Re: [mapserver-users] Point query from Mapserver raster

2021-11-01 Thread Rahkonen Jukka (MML)
Hi, The WMS GetFeatureInfo should work and the answer in gis.stackexhange seems to contain all the details that you need for making it to work. With WCS what you did is probably the best you can do with Mapserver. With some other servers you may get a single pixel output by using WCS slicing (s

Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" fails to validate

2021-10-31 Thread Rahkonen Jukka (MML)
Hi, Read https://mapserver.org/optimization/limit_mapfile_access.html and https://mapserver.org/development/rfc/ms-rfc-56.html and set MS_MAP_PATTERN. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Carlos Neves (LREC) Lähetetty: lauantai 30. lokakuuta 2021 23.0 Vastaanottaja: mapserver-

[mapserver-users] Times and axis labels in WCS 2.0.1

2021-10-26 Thread Rahkonen Jukka (MML)
Hi, Is there any way to get the time positions of a layer advertised in WCS 2.0.1 DescribeCoverage? They are listed with WCS 1.0.0 but as can be checked with the demo service: WCS 1.0.0 with time positions https://demo.mapserver.org/cgi-bin/wcs?SERVICE=wcs&VERSION=1.0.0&REQUEST=DescribeCoverage

Re: [mapserver-users] WCS Tile index question

2021-10-20 Thread Rahkonen Jukka (MML)
Hi, I was just about to suggest to use DEBUG. GDAL does not use “wcs_native_format”, it is used for setting what will be written into DescribeCoverage. -Jukka Rahkonen- Lähettäjä: Carl Godkin Lähetetty: torstai 21. lokakuuta 2021 1.50 Vastaanottaja: Rahkonen Jukka (MML) Aihe: Re: [mapserver

Re: [mapserver-users] WCS Tile index question

2021-10-20 Thread Rahkonen Jukka (MML)
Lähettäjä: MapServer-users Puolesta Carl Godkin >> On Tue, Oct 19, 2021 at 5:37 PM Rahkonen Jukka (MML) >> <mailto:jukka.rahko...@maanmittauslaitos.fi> wrote: >> Hi,   >> Here is more accurate documentation but only in the text >> https://www.mapserv

Re: [mapserver-users] WCS Tile index question

2021-10-19 Thread Rahkonen Jukka (MML)
Hi, Here is more accurate documentation but only in the text https://www.mapserver.org/ogc/wcs_server.html “The convention is that once (wcs|ows)_extent and one of (wcs|ows)_size and (wcs|ows)_resolution is set in the layer metadata, all the coverage specific metadata will be retrieved from th

Re: [mapserver-users] Getting started with WCS on mapserver...

2021-10-18 Thread Rahkonen Jukka (MML)
Hi, The wgs84-BoundingBox is an optional element in the CoverageSummary by the WCS 2.0.1 standard. There may be no way to configure Mapserver to add that information into GetCapabilities. You must read extents coverage by coverage with DescribeCoverage requests. But the boundedBy in that place

[mapserver-users] WCS: Write error at scanline xxxx

2021-10-08 Thread Rahkonen Jukka (MML)
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:tileh

Re: [mapserver-users] Tile Mode Output Format

2021-09-21 Thread Rahkonen Jukka (MML)
Hi, It seems that formats were not considered at all https://mapserver.org/development/rfc/ms-rfc-43.html -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Patrick Young Lähetetty: tiistai 21. syyskuuta 2021 22.41 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Til

Re: [mapserver-users] QGIS WMS SINGLE CONNECTION: MapServer Multiple Maps Request

2021-09-19 Thread Rahkonen Jukka (MML)
Hi, WMS standard supports GetMap requests with a list of layers: &layers=layer_1, layer_2, layer_3. Layers are rendered in the same order, so that layer_3 will be rendered on top of the others in the final map. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Atlanta Geek Lähetetty: sunn

Re: [mapserver-users] Asking about mapefile display

2021-09-18 Thread Rahkonen Jukka (MML)
Hi, Show your mapfile and the requests that you are using. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Boubacar Bah Lähetetty: lauantai 18. syyskuuta 2021 22.30 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Asking about mapefile display good evening, recently

Re: [mapserver-users] Float64 on WCS

2021-09-08 Thread Rahkonen Jukka (MML)
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 Vastaanotta

[mapserver-users] How to get a single-part ASCII Grid result from WCS

2021-08-30 Thread Rahkonen Jukka (MML)
Hi, I have been trying to configure a GDAL AAIGrid outputformat for WCS 2.0. The format works, but I can only get the response as a mime multipart attachment. I would like to get just the ASCII grid part as simple text. I can see that with the OGR outputformats https://mapserver.org/output/og

Re: [mapserver-users] asking help

2021-08-26 Thread Rahkonen Jukka (MML)
Hi, MS4W certainly has support for PostGIS. That detail you can check with command C:\ms4w\Apache\cgi-bin>mapserv -v If you can find “INPUT=POSTGIS” then you have the support. The next thing to do is to read the documentation https://www.mapserver.org/input/vector/postgis.html. The previous p

Re: [mapserver-users] WFS changing NULL values to 0.

2021-08-02 Thread Rahkonen Jukka (MML)
Hi, Attributes of type double can not really be nulls in shapefile. See https://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm#GUID-A10ADA3B-0988-4AB1-9EBA-AD704F77B4A2. A value -1.7976931348623158e+308 might work as a null but I

Re: [mapserver-users] SUM: MapServer PostGIS: WMS Layers Without Features

2021-06-03 Thread Rahkonen Jukka (MML) via mapserver-users
Hi, All Mapserver admins do that error every now and then. There is a configuration option in the QGIS WMS Connection editor “Ignore GetMap/GetTile/GetLegendGraphic URI reported in capabilities” that helps to access many misconfigured WMS servers. If you check that box the same base URL that i

Re: [mapserver-users] Styling a WFS ? or not ?

2021-05-31 Thread Rahkonen Jukka (MML) via mapserver-users
Hi, Mapserver can serve a layers through different services. STYLE is not for WFS but it can be used in &mode=map or in the WMS service. Similarly Geoserver can deliver GML data http://demo.geo-solutions.it/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&max

Re: [mapserver-users] WFS Client returns data at random with very same call

2021-05-27 Thread Rahkonen Jukka (MML)
Hi, Have you already tried to use WFS connection instead of OGR connection? -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Lars Fricke Lähetetty: torstai 27. toukokuuta 2021 14.59 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] WFS Client returns data at rando

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-19 Thread Rahkonen Jukka (MML)
Hi, Can someone say if the issue is already fixed or not by https://github.com/MapServer/MapServer/pull/6225/files that adds: typedef mapserver::renderer_scanline_bin_solid renderer_scanline_aliased; Is this enough for turning antialiasing off and making png files with lots of linework small

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
Kopio: Rahkonen Jukka (MML) ; Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [mapserver-users] differing image size with different mapserver versions Progress! Using Andreas' suggestion: changing the typedef in line 91 of mapagg.cpp from typedef maps

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
ä: Eichner, Andreas - SID Lähetetty: maanantai 17. toukokuuta 2021 16.53 Vastaanottaja: Rahkonen Jukka (MML) ; Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: AW: [mapserver-users] differing image size with different mapserver versions Hi Jukka, as a result of the discussion IMO Erik

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
Jukka (MML) Lähetetty: maanantai 17. toukokuuta 2021 16.06 Vastaanottaja: Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [mapserver-users] differing image size with different mapserver versions Hi, (Re-sent as edited to mailing list because the body was originally too long. Are you

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
Hi, (Re-sent as edited to mailing list because the body was originally too long. Are you sure about “I actually found that 6.4 produced small, aliased images with both the GD and AGG drivers”. Originally the AGG library could only do anti-aliasing and that affected also Mapserver 5 https://li

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Rahkonen Jukka (MML)
Hi, I made a few tests with IrfanView and Gimp and it seems that the both images are antialized but the mapserv76 version is more fine-grained. The mapserv64 version has also less unique colors, 217 vs 250 colors. Saving the mapserv76 image with IrfanView or Gimp by using different settings doe

Re: [mapserver-users] Mapserver installation in cloud environments (kubernetes)

2021-04-28 Thread Rahkonen Jukka (MML)
Hi, Have you tried to find an explanation for the difference between Spatialite and geopackage? They are both SQLite databases and there is not much difference in how they store the geometries into BLOBs. Does direct SQL “select * from table” give similar results? I have not experienced such d

Re: [mapserver-users] Mapserver installation in cloud environments (kubernetes)

2021-04-23 Thread Rahkonen Jukka (MML)
Hi, I believe that not much that kind of studies about load balancing WMS servers have been done. If there is high load then people very soon place some tile cache into front line and use WMS only for seeding the cache. Sharing load between tile servers is rather simple because each tile is abo

Re: [mapserver-users] Missing Dynamic Charts

2021-04-15 Thread Rahkonen Jukka (MML)
Hi Sarah, The easiest way to get the BBOX from QGIS is to open the Debugging/Development tools with the function key F12 or through the View-Panels menu. Start recording and QGIS will capture the http requests including GetMaps for you. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä:

Re: [mapserver-users] Create a tileindex for WFS

2021-04-14 Thread Rahkonen Jukka (MML)
Hi, The results show that there is something wrong in your system but it is hard to say what. If Mapserver gets the 62584 features from the biggest table in 7 seconds it should not really need many seconds more to write everything out as GML. Unfortunately I can’t say what to debug next. -Jukk

Re: [mapserver-users] Create a tileindex for WFS

2021-04-12 Thread Rahkonen Jukka (MML)
Hi, You tables (what materialized views in fact are) are not big at all. There is something else wrong if your WFS is slow or fails totally. Looking at the tileindex is not the right thing to do. QGIS is a rather poor WFS client, I would not use that for testing. If you still use, debug the ht

Re: [mapserver-users] BINVALS is supported by PostGIS 1.5?

2021-03-26 Thread Rahkonen Jukka (MML)
Hi, Developers have paid attention to BINDVALS recently https://github.com/MapServer/MapServer/issues/6236 and they should work as in your mapfile. The usage example is about string "1" "Nova Scotia". I wonder how a numeric bindvalue should be expressed in mapfile. Could it be that in the "

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Rahkonen Jukka (MML)
Hi, Obviously you are playing with vector data, not rasters, and you are trying to make a ogrtileindex instead of gdaltindex. I know, technically there is no difference. I have used ogrtileindex with great success with shapefiles. I have never tried to do the same with PostGIS data and I can o

Re: [mapserver-users] Hello from Finland

2021-03-16 Thread Rahkonen Jukka (MML)
Hi, -Alkuperäinen viesti- Stefan Gofferje wrote: > Terve Jukka, > On 3/16/21 12:54 PM, Rahkonen Jukka (MML) wrote: >> When it comes to memory usage with raster files, Mapserver is reading >> rasters with GDAL so in this case with >> https://gdal.org/drivers/

Re: [mapserver-users] Hello from Finland

2021-03-16 Thread Rahkonen Jukka (MML)
Hi Stefan, When it comes to memory usage with raster files, Mapserver is reading rasters with GDAL so in this case with https://gdal.org/drivers/raster/grib.html. I have never been playing with GRIB files and I do not know how well the format is optimized for features that are needed for makin

Re: [mapserver-users] Fwd: MapServer PostGIS: WMS Layers Without Features

2021-03-02 Thread Rahkonen Jukka (MML)
Hi, First thing that comes into my mind is that for some reason Mapserver may believe that the request is outside the area where you have data. I would double check the projections and extents. -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Steve Lime Lähetetty: tiistai 2. maaliskuuta

Re: [mapserver-users] Basemap as merged and separate layers

2020-12-11 Thread Rahkonen Jukka (MML) via mapserver-users
Hi, I believe (hope) that it is possible, perhaps by leaving the names of the layers in the group empty, or with wms_enable_request metadata. Some links which seem relevant: https://mapserver.gis.umn.edu/development/rfc/ms-rfc-67.html https://github.com/mapserver/mapserver/issues/5404 https://

Re: [mapserver-users] OGR Geojson error

2020-09-29 Thread Rahkonen Jukka (MML)
Hi, I found couple of issues but can’t say how severe they are: http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson this returns HTTP 302, moved temporarily and it redirects to https port https://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson Tr

Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

2020-09-14 Thread Rahkonen Jukka (MML)
Hi, Doesn’t the named styles system https://mapserver.gis.umn.edu/ogc/sld.html#named-styles-support that was new in version 5.2 work as documented? -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] Lähetetty: maanantai

Re: [mapserver-users] Use Ground Control Points from GeoTIFF

2020-09-03 Thread Rahkonen Jukka (MML)
a 2020 15.18 Vastaanottaja: Rahkonen Jukka (MML) mailto:jukka.rahko...@maanmittauslaitos.fi>> Kopio: Jeff McKenna mailto:jmcke...@gatewaygeomatics.com>>; Mapserver mailto:mapserver-users@lists.osgeo.org>> Aihe: Re: [mapserver-users] Use Ground Control Points from GeoTIFF Hi Ju

Re: [mapserver-users] Use Ground Control Points from GeoTIFF

2020-09-03 Thread Rahkonen Jukka (MML)
Hi, I would appreciate if you could have a try with "gdalwarp -of vrt -t_srs "EPSG:3857" sat.tif sat_3857.vrt" -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Jesper Kempe Lähetetty: torstai 3. syyskuuta 2020 13.57 Vastaanottaja: Jeff McKenna Kopio: Mapserver Aihe: Re: [mapserver-users]

Re: [mapserver-users] Use Ground Control Points from GeoTIFF

2020-09-02 Thread Rahkonen Jukka (MML)
Try to warp into .VRT, that takes so little time and disk space that it could be a workaround if it works. -Jukka- Lähettäjä: Jesper Kempe Lähetetty: keskiviikko 2. syyskuuta 2020 11.40 Vastaanottaja: Rahkonen Jukka (MML) Kopio: Steve Lime ; Mapserver Aihe: Re: [mapserver-users] Use Ground

Re: [mapserver-users] Use Ground Control Points from GeoTIFF

2020-09-02 Thread Rahkonen Jukka (MML)
Hi, I am not suggesting this as a final solution yet, but gather some knowledge and try if image works when a) warped into GeoTIFF with gdalwarp b) warped into .vrt -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Jesper Kempe Lähetetty: keskiviikko 2. syyskuuta 2020 10.52 Vastaanottaja:

Re: [mapserver-users] SSL curl error when hitting HTTP WMS

2020-06-09 Thread Rahkonen Jukka (MML)
Hi, The service indeed seems to redirect into https address. GDAL has an "unsafeSSL" option but I believe that Mapserver does not http://osgeo-org.1560.x6.nabble.com/https-url-with-MapServer-as-WMS-client-td5332403.html. Perhaps you could bypass the certificate check by setting a general curl

[mapserver-users] KKJ images misaligned after update

2020-05-18 Thread Rahkonen Jukka (MML)
Hi, I got a report about a service that has been running fine for years but got broken now after following updates: sqlite 3.29 -> 3.31 proj 6.2.0 -> 6.3.0 geos 3.7.2 -> 3.8.0 gdal 2.4.2 -> 3.0.4 mapserver 7.4.2 -> 7.4.3 What breaks is an orthophoto layer that has source files in many CRSs. The

Re: [mapserver-users] WCS GetCoverage request one by one pixel

2020-05-11 Thread Rahkonen Jukka (MML)
Hi, I verified the error and I am pretty sure that subsetting with min=max has been working for me couple of years ago with some Mapserver version. This sends a GeoTIFF: http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w_data\raster_test.map&service=WCS&version=2.0.1&request=GetCoverage&Cover

Re: [mapserver-users] Data Stores for mapserver.

2020-05-07 Thread Rahkonen Jukka (MML)
Hi, Do you find anything suitable for you from this list https://gdal.org/drivers/vector/index.html? They are all available for you through OGR connection but it can well be that some formats do not work totally out-of-the-box. -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Atlanta Gee

Re: [mapserver-users] GetFeature WFS request with Spatial Filter DWITHIN

2020-04-27 Thread Rahkonen Jukka (MML)
antai 27. huhtikuuta 2020 21.42 Vastaanottaja: Rahkonen Jukka (MML) Kopio: Fran Acuña Parra ; mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] GetFeature WFS request with Spatial Filter DWITHIN To be clear, Fran - are you saying the issue isn't the result set rather the order? If so

Re: [mapserver-users] Make PROJECTION mandatory?

2020-04-27 Thread Rahkonen Jukka (MML)
yDH1b7WnS1Ln_b1a9kqHV0iwGwOUs3KazTLN-kMthOESPP3PB65XPBsYDNo99uct63RwastB0y4d0JpRk50,&typo=1 On 2020-04-27 10:36 a.m., Rahkonen Jukka (MML) wrote: > Hi, > > Recent Mapserver buids require PROJ and GDAL > https://mapserver.gis.umn.edu/ja/development/rfc/ms-rfc-127.html. That &g

Re: [mapserver-users] GetFeature WFS request with Spatial Filter DWITHIN

2020-04-27 Thread Rahkonen Jukka (MML)
Hi, The DWithin function in WFS is a true/false function just like the equivalent PostGIS function https://postgis.net/docs/ST_DWithin.html. You can’t find the nearest feature with DWithin. A not so good workaround is to increase the distance until the result is not empty. Mapserver does not h

[mapserver-users] Make PROJECTION mandatory?

2020-04-27 Thread Rahkonen Jukka (MML)
Hi, Recent Mapserver buids require PROJ and GDAL https://mapserver.gis.umn.edu/ja/development/rfc/ms-rfc-127.html. That means that every Mapserver can support PROJECTION blocks both at the MAP level and within LAYER. And because there are no more builds without Proj support there is no real ne

Re: [mapserver-users] mapserver creating layers group MS , that is displayed in GetCapabilities. how to get rid of it? what is the reason for it?

2020-04-16 Thread Rahkonen Jukka (MML)
s always name even if your MAP has an empty name (NAME "") or if you have set an empty name for it in MAP-METADATA (wms_rootlayer_name "")? -Jukka Rahkonen- Lähettäjä: Zmitser Kozhukh Lähetetty: torstai 16. huhtikuuta 2020 19.41 Vastaanottaja: Rahkonen Jukka (MML) Kopio: map

Re: [mapserver-users] mapserver creating layers group MS , that is displayed in GetCapabilities. how to get rid of it? what is the reason for it?

2020-04-16 Thread Rahkonen Jukka (MML)
WMS service does not actually need to have a root layer but usually it exists. Each layer must have a title but name in optional. If layer does not hava a name it cannot be accessed with GetMap so what you need to do is to get rid of the name of your root layer. How to do that is documented in

Re: [mapserver-users] WCS GetCoverage request one by one pixel

2020-04-07 Thread Rahkonen Jukka (MML)
also with Interpolation parameter. -Jukka- Lähettäjä: Bakker, Anton Lähetetty: tiistai 7. huhtikuuta 2020 18.40 Vastaanottaja: Rahkonen Jukka (MML) ; mapserver-users@lists.osgeo.org Aihe: RE: WCS GetCoverage request one by one pixel Hi Jukka, Thanks for your response; do you mean to set the default

Re: [mapserver-users] WCS GetCoverage request one by one pixel

2020-04-06 Thread Rahkonen Jukka (MML)
Hi, Could you have a try with the default resampling "nearest"? And then also with subset having lower limit equal to upper. Now it fails, I tried already. https://geodata.nationaalgeoregister.nl/ahn3/wcs?service=WCS&Request=GetCoverage&version=2.0.1&CoverageId=ahn3_05m_dsm&format=image/tiff&sub

Re: [mapserver-users] layer with "truncated" symbols 2

2020-03-27 Thread Rahkonen Jukka (MML)
Hi, Your problem is on the client side. OpenLayers is now requesting tiles with 256x256 pixels. The middle tile has not any point inside its bounding box and therefore no symbols are rendered. Configure OpenLayers to do single tile requests. http://dev.openlayers.org/examples/single-tile.html

Re: [mapserver-users] OUTPUTFORMAT png 16-bits

2020-02-05 Thread Rahkonen Jukka (MML)
: keskiviikko 5. helmikuuta 2020 13.05 Vastaanottaja: Johannes Paul ; Rahkonen Jukka (MML) Kopio: mapserver-users@lists.osgeo.org Aihe: AW: [mapserver-users] OUTPUTFORMAT png 16-bits Hello Johannes, 16bit-PNGs are IMHO not supported by MapServer. Although libPNG supports 16bit depth (see http

Re: [mapserver-users] OUTPUTFORMAT png 16-bits

2020-02-05 Thread Rahkonen Jukka (MML)
Hi, I would make a test by using some other mimetype, like image/png16, for eliminating the possibility that some internal png configuration drives over your own outputformat. I don’t know if it helps but it is cheap to test. -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Johannes Pa

Re: [mapserver-users] cgi-error: End of script output before headers mapserv

2020-01-24 Thread Rahkonen Jukka (MML)
sesPerClass need to be tweaked? If you do a google search on this error most of the responses says it is either due to a bad cgi script or bad file/dir permissions which in our case I doubt that is the reason. If you figure it out let me know. On Wed, Jan 22, 2020 at 12:31 PM Rahkonen

Re: [mapserver-users] cgi-error: End of script output before headers mapserv

2020-01-22 Thread Rahkonen Jukka (MML)
Hi, I would suspect data, especially because it seems to be OSM data. Perhaps some invalid polygon again. You use &layers=default and I suppose that it means all the layers from your mapfile together. In that case I would try to catch the failing layer by adding layers one by one and in groups

Re: [mapserver-users] Info Template

2019-11-20 Thread Rahkonen Jukka (MML)
Hi Markus, I am not sure if you'd prefer me to answer in Finnish but English is easier for the majority of readers. Certainly it is possible to use data from a database with templates yes but you did not tell the details about for what purpose you are trying to use the templates. The DATA (per

Re: [mapserver-users] Configuring a layer with one output with multiple input projections

2019-11-15 Thread Rahkonen Jukka (MML)
Hi, Please read https://mapserver.org/optimization/tileindex.html#tileindex-mixed-srs and https://mapserver.org/development/rfc/ms-rfc-100.html? -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Peter Schmitt Lähetetty: perjantai 15. marraskuuta 2019 21.02 Vastaanottaja: mapserver-users@l

Re: [mapserver-users] Mapserver bumped from 7.0.7 to 7.4.1 leads to wrong projection of features

2019-11-14 Thread Rahkonen Jukka (MML)
Hi, Please add relevant parts of your mapfile. Obviously all that relates to projections and an example of the client side requests as well if you are changing the coordinate system on the fly. -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Jaap Donker Lähetetty: torstai 14. marraskuut

Re: [mapserver-users] mapcache seed speed optimization

2019-11-08 Thread Rahkonen Jukka (MML)
faster. -Jukka- Lähettäjä: Sebastiano Laini Lähetetty: perjantai 8. marraskuuta 2019 16.30 Vastaanottaja: 'mapserver-users@lists.osgeo.org' Kopio: Rahkonen Jukka (MML) ; 'Yves Jacolin' Aihe: RE: mapcache seed speed optimization My MapServer is on the same server as MapCac

Re: [mapserver-users] mapcache seed speed optimization

2019-11-08 Thread Rahkonen Jukka (MML)
Hi, When you seed tiles from WMS the slowest component is usually the WMS server. And what the WMS server is spending its time is usually rendering. And what makes rendering slow is usually that you render too much, and sometimes that WMS server gets the vector data too slow because the backend

Re: [mapserver-users] Mapserver TabFile Error

2019-10-25 Thread Rahkonen Jukka (MML)
Hi, Please include the request that your application sends for Mapserver. You should find it from the access log of your Apache server if you cannot capture it from the client side. Somehow it feels like your client does not send the &map= parameter, or it you have tried to configure a default

Re: [mapserver-users] Doubling of labels on high resolution maps

2019-10-16 Thread Rahkonen Jukka (MML)
Hi, Print composer is probably making tiled requests from WMS. That is compulsory for any bigger maps because the default maxsize on the Mapserver side is 2048x2048 pixels https://mapserver.org/uk/mapfile/map.html. It is easy to increase the maxsize but I do not know if print composer as a clie

Re: [mapserver-users] Mapserver behind proxyserver

2019-10-09 Thread Rahkonen Jukka (MML)
Hi, See https://mapserver.org/ogc/wfs_server.html You should have full control on the service URL by having "wfs_service_onlineresource" set in the metadata section. -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Kler, Tijs de Lähetetty: keskiviikko 9. lokakuuta 2019 13.41 Vastaanotta

[mapserver-users] How does colorrange actually work with vector layers?

2019-09-19 Thread Rahkonen Jukka (MML)
Hi, Documentation of colorrange in https://www.mapserver.org/mapfile/style.html suggests to find details from https://www.mapserver.org/development/rfc/ms-rfc-6.html#rfc6 but the RFC does not really tell what was finally implemented. Is this what is documented for styles what we have now? STY

Re: [mapserver-users] Highly inefficient MakeValid statement in Mapserver-generated spatial queries

2019-09-09 Thread Rahkonen Jukka (MML)
Hi, Fortunately not the entire MS4W community is affected, just those who work with MS SQL server. When makevalid will be turned off MapServer admin will have another option to deal with invalid geometries: select data in mapfile with IsValid=true. Then the faulty geometries will not show on

Re: [mapserver-users] The GetFeature WFS Request fail if the layer is empty

2019-08-13 Thread Rahkonen Jukka (MML)
FS&version=2.0.0&request=DescribeFeatureType&typeName=topp%3Astates http://www.opengis.net/gml/3.2 https://demo.geo-solutions.it:443/geoserver/schemas/gml/3.2.1/gml.xsd"/> -Jukka- Lähettäjä: Andrea Peri Lähetetty: tiistai 13. elokuuta 2019 12.35 Vastaanottaja: Rahkonen J

Re: [mapserver-users] The GetFeature WFS Request fail if the layer is empty

2019-08-13 Thread Rahkonen Jukka (MML)
Hi, What kind of source dataset do you have, and do you mean that for example a PostGIS table exists but there are no rows in the table? -Jukka Rahkonen- Lähettäjä: mapserver-users Puolesta Andrea Peri Lähetetty: maanantai 12. elokuuta 2019 14.30 Vastaanottaja: mapserver-users@lists.osgeo.org

Re: [mapserver-users] WCS 2.0.1 not returning same image as WCS 1.0.0

2019-06-05 Thread Rahkonen Jukka (MML)
Hi, I recommend to read the WCS 2.0 core standard which does not support bbox, resx or resy anymore. Mapserver documentation shows also how to use SUBSET https://www.mapserver.org/ogc/wcs_server.html. If you need to change the pixel size then the document to read is the WCS Scaling extension st

Re: [mapserver-users] WCS 2.0.1 sends multipart response for ascii grid format

2019-05-09 Thread Rahkonen Jukka (MML)
Hi, I thought I could resolve the problem by setting CONFIG "GDAL_PAM_ENABLED" "NO" Unfortunately nothing changed. -Jukka Rahkonen- Lähettäjä: Rahkonen Jukka (MML) Lähetetty: keskiviikko 8. toukokuuta 2019 18.53 Vastaanottaja: Mapserver-Users (mapserver-users@lists.os

[mapserver-users] WCS 2.0.1 sends multipart response for ascii grid format

2019-05-08 Thread Rahkonen Jukka (MML)
Hi, I have Mapserver 7.2.1 and outputformat defined as OUTPUTFORMAT NAME AAIGRID DRIVER "GDAL/AAIGRID" MIMETYPE "application/x-ascii-grid" IMAGEMODE FLOAT32 EXTENSION "grd" FORMATOPTION "SIGNIFICANT_DIGITS=5" END The WCS 2.0.1 GetCoverage request is sending the response as multipart. The first

[mapserver-users] WCS 2.0.1 does not honour the list of crsSupported

2019-05-08 Thread Rahkonen Jukka (MML)
Hi, I have defined the CRS list for the WCS service with the "ows_srs" metadata and that reflects correctly to CRS list in GetCapabilities "". However, it seems that Mapserver accepts any CRS as SubsettingCRS and OutputCRS. According to the standard the service should give expections "Subsett

Re: [mapserver-users] Conditional BANDS directive based on underlying data

2019-04-30 Thread Rahkonen Jukka (MML)
Hi, As Even already answered, using vrt files over the BGRN originals will work. We had a need to use both grayscale originals and vrt-falsified RGB versions (the only band pointing to red, green, and blue in .vrt) in the same service. We have only one tileindex in PostGIS, made from the tiff i

  1   2   3   4   >