Re: [MapServer-users] WMS GetFeatureInfo default FEATURE COUNT

2024-05-03 Thread Rahkonen Jukka via MapServer-users
Hi, In the WMS standard the FeatureCount parameter is defined to be optional, and the default is one. "Number of features about which to return information (default=1)" What you ask would be against the standard. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: MapServer-users

Re: [MapServer-users] From OpenLayers to Mapfile

2024-04-04 Thread Rahkonen Jukka via MapServer-users
Hi, See https://mapserver.org/cgi/runsub.html#basic-example. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta gorouter via MapServer-users Lähetetty: torstai 4. huhtikuuta 2024 1.57 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [MapServer-users] From OpenLayers to Mapfile Hi. Is

Re: [MapServer-users] CGI variable "map" fails to validate

2024-02-07 Thread Rahkonen Jukka via MapServer-users
Hi, "." works for me. I have a Windows env set first as set MAPSERVER_CONFIG_FILE=\ms4w\ms4w.conf These are the meaningful lines in the "ms4w.conf" file. CONFIG ENV MS_MAP_PATTERN "." END END Test proves that validation is successful

Re: [MapServer-users] Why is Mapserver slower in Postgres 13 than in Postgres 11?

2024-02-06 Thread Rahkonen Jukka via MapServer-users
Hi, If spatial index is needed depends on the data. It is certainly needed when the table is large (million features or so) and requests typically cover a small area. If for example 1000 features gets selected it means that the spatial index can filter out 999 thousand features. If the table

Re: [MapServer-users] CGI variable "map" fails to validate

2024-02-06 Thread Rahkonen Jukka via MapServer-users
Hi, This one that is slightly edited from the MS4W config file works for me MS_MAP_PATTERN "^(C:)?\/ms4w_data\/((?!\.{2})[_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$" I am not a regexp expert but it seems like a slash must be escaped with a backslash. -Jukka Rahkonen- Lähettäjä:

Re: [MapServer-users] Why is Mapserver slower in Postgres 13 than in Postgres 11?

2024-02-06 Thread Rahkonen Jukka via MapServer-users
Hi, I made a test with a PostGIS on my own laptop. My versions are: "POSTGIS=""3.4.1 3.4.1"" [EXTENSION] PGSQL=""160"" GEOS=""3.12.1-CAPI-1.18.1"" SFCGAL=""SFCGAL 1.5.0, CGAL 5.6, BOOST 1.78.0"" PROJ=""8.2.1 The polygon layer has 215000 lake polygons. My BBOX select 73 polygons. It takes 66

Re: [MapServer-users] Why is Mapserver slower in Postgres 13 than in Postgres 11?

2024-02-04 Thread Rahkonen Jukka via MapServer-users
Hi, See https://mapserver.org/input/vector/postgis.html, there is an example about how to define the SRID on the DATA line: DATA "the_geom from the_database using unique gid using srid=4326" The SRID value to use is the native SRID of the PostGIS table. What Mapserver does here is that with

Re: [MapServer-users] getting incomplete parts of a geometry

2024-01-31 Thread Rahkonen Jukka via MapServer-users
/ and the Basemap and the layer is Food_Forest. Eloi On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka mailto:jukka.rahko...@maanmittauslaitos.fi>> wrote: Hi, How about the client, what is the BBOX that it is using in the WMS GetMap request that it creates? -Jukka Rahkonen- Läh

Re: [MapServer-users] getting incomplete parts of a geometry

2024-01-31 Thread Rahkonen Jukka via MapServer-users
x user=px' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.00, 420110.00) - (195152.00, 420307.00) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka mailto:j

Re: [MapServer-users] getting incomplete parts of a geometry

2024-01-31 Thread Rahkonen Jukka via MapServer-users
Hi, Does the rendered part perhaps match with the extent that you have configured for the layer "EXTENT 194914 420110 195152 420307"? -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja:

Re: [MapServer-users] Speeding up msDrawMap() for shapefiles

2023-12-08 Thread Rahkonen Jukka via MapServer-users
Hi, You should test the same shapefiles locally for understanding where the time gets spent. Normal time with simple styles is perhaps up to 300 ms. The optimization hints were written long before there were S3 or Amazon (the company). Unfortunately I don't know how to optimize access to S3.

Re: [MapServer-users] multiple shapepaths

2023-12-06 Thread Rahkonen Jukka via MapServer-users
Hi, Or write the DATA with full-path into an INCLUDE file if there are loads of mapfiles using the same paths. Then there would be much less editing when the paths change. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Lime, Steve D (MNIT) via MapServer-users Lähetetty: keskiviikko 6.

Re: [MapServer-users] Variables in mapfile

2023-11-17 Thread Rahkonen Jukka via MapServer-users
Hi, That is an old but still relevant idea https://github.com/MapServer/MapServer/issues/408. For your use case it could be enough to store the connection into a text file and read it with INCLUDE https://mapserver.org/mapfile/include.html. -Jukka Rahkonen- -Alkuperäinen viesti-

[MapServer-users] Who remembers the truth about antialiasing?

2023-11-15 Thread Rahkonen Jukka via MapServer-users
Hi, When Mapserver started to use AGG renderer everybody thought that antialiasing is not only the strength of the library but also the only way AGG can render. See https://mapserver.org/output/agg.html and https://lists.osgeo.org/pipermail/mapserver-users/2007-September/025467.html. But then

Re: [MapServer-users] Well-know SLD symbols

2023-11-15 Thread Rahkonen Jukka via MapServer-users
Rahkonen- Lähettäjä: TC Haddad Lähetetty: keskiviikko 15. marraskuuta 2023 13.40 Vastaanottaja: Rahkonen Jukka Kopio: Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [MapServer-users] Well-know SLD symbols Hi Jukka, Here are some that I have, hopefully they work for what you

[MapServer-users] Well-know SLD symbols

2023-11-15 Thread Rahkonen Jukka via MapServer-users
Hi, The SDL standard defines some well-known symbols: circle, square, triangle, arrow, cross, star, and x. Can I find somewhere the mapfile versions of these symbols? I found circle and star from GitHub

Re: [MapServer-users] How to cascade data from OGC API Features service?

2023-11-14 Thread Rahkonen Jukka via MapServer-users
Rahkonen Jukka via MapServer-users Lähetetty: tiistai 14. marraskuuta 2023 10.09 Vastaanottaja: Richard Greenwood Kopio: Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [MapServer-users] How to cascade data from OGC API Features service? Hi, Oh yes, it was a typo. As a user who tries

Re: [MapServer-users] How to cascade data from OGC API Features service?

2023-11-14 Thread Rahkonen Jukka via MapServer-users
connection. Thanks to you and TC Haddad who also found the typo. -Jukka Rahkonen- Lähettäjä: Richard Greenwood Lähetetty: tiistai 14. marraskuuta 2023 5.38 Vastaanottaja: Rahkonen Jukka Kopio: Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [MapServer-users] How to cascade data from OGC

[MapServer-users] How to cascade data from OGC API Features service?

2023-11-13 Thread Rahkonen Jukka via MapServer-users
Hi, I tried to make a WMS layer from OGC API Features service but I did not success. This is my best trial so far: I am using Mapserver from MS4W 5.0.0 RC1 I wrote this ORG VRT file (ogcfeat.vrt) OAPIF:https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/

Re: [MapServer-users] WMS with Raster Images and time Dimension

2023-11-09 Thread Rahkonen Jukka via MapServer-users
Hi, I would read first this https://www.mapserver.org/ogc/wms_time.html. But if you have only two alternatives midday/tomorrow then simply having two layers could be an option. Or use runtime substitution https://mapserver.org/cgi/runsub.html. Define LAYER – DATA like DATA "%img_time%.tif "

Re: [MapServer-users] Google maps XYZ service as a layer data source?

2023-10-16 Thread Rahkonen Jukka via MapServer-users
Hi, The XYZ part of your question is relevant and I think that the answer is yes. At least I am remembering that I have cascaded some WMTS service by using a GDAL xml definition file https://gdal.org/drivers/raster/wms.html as a source for Mapserver. I believe that the question about the

Re: [MapServer-users] Cluster with Oracle Spatial data

2023-10-16 Thread Rahkonen Jukka via MapServer-users
the other connection methods no data is being read. Regards -Ursprüngliche Nachricht- Von: Rahkonen Jukka Gesendet: Freitag, 13. Oktober 2023 16:42 An: Yankov, Ivan ; mapserver-users@lists.osgeo.org Betreff: Re: [MapServer-users] Cluster with Oracle Spatial data Hi, Please test if usin

Re: [MapServer-users] Cluster with Oracle Spatial data

2023-10-13 Thread Rahkonen Jukka via MapServer-users
rds -Ursprüngliche Nachricht- Von: MapServer-users Im Auftrag von Rahkonen Jukka via MapServer-users Gesendet: Donnerstag, 12. Oktober 2023 20:27 An: Holger Schiebold ; mapserver-users@lists.osgeo.org Betreff: Re: [MapServer-users] Cluster with Oracle Spatial data Hi, Could you please me

Re: [MapServer-users] Cluster with Oracle Spatial data

2023-10-12 Thread Rahkonen Jukka via MapServer-users
Hi, Could you please mention always when you speak about Oracle Spatial data also which connection type you are using: CONNECTIONTYPE oraclespatial or CONNECTIONTYPE OGR -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: MapServer-users Puolesta Holger Schiebold via MapServer-users

Re: [MapServer-users] How to get a WMS GetFeatureInfo response with MapServer in JSON format ?

2023-09-14 Thread Rahkonen Jukka
Hi, To those who try to help, please have a look at the same question in gis.stackexchange https://gis.stackexchange.com/questions/466896/how-to-get-a-wms-getfeatureinfo-response-with-mapserver-in-json-format/466920? There is an answer that gives half an answer, but a remaining problem is how

Re: [MapServer-users] Speed of WMS vs Speed of WCS; How to speed up WCS service?

2023-07-27 Thread Rahkonen Jukka
helped a lot, Marcin ____ From: Rahkonen Jukka mailto:jukka.rahko...@maanmittauslaitos.fi>> Sent: Thursday, July 27, 2023 12:05 AM To: Marcin Niemyjski mailto:mniemyj...@cloudferro.com>>; MapServer Users mailto:mapserver-users@lists.osgeo.org>> Subj

Re: [MapServer-users] Speed of WMS vs Speed of WCS; How to speed up WCS service?

2023-07-26 Thread Rahkonen Jukka
Hi, Does the tileindex query " DATA 'geometry from (select * from plua order by "maxCC" desc) " return several images from the requested BBOX? I know that MapServer WCS can be fast and we have also a demo at

Re: [MapServer-users] Suppress queryable=1 for wms_layer_group [SEC=OFFICIAL]

2023-07-06 Thread Rahkonen Jukka
Hi, Do you use the same mapfile? There is a difference in GetCapabilities Radar Radar If layer has just a title but no name it is not queryable, nor does it support GetMaps. This applies to group layers as well. But it may be that since version 7.2 it is not possible to configure a WMS group

Re: [MapServer-users] FlatGeobuf as output format

2023-06-22 Thread Rahkonen Jukka
Hi, GDAL gives typically that kind of multipolygon error when the driver tries to insert a multipolygon into a layer that is created to accept only polygons. In that case casting all geometries into multipolygons really helps: the layer gets created to accept multipolygons, simple polygons are

Re: [MapServer-users] mapserver 5 installation

2023-06-20 Thread Rahkonen Jukka
Hi, A clarification about the version numbers. I believe that the writers in this thread are aware of them but all the readers necessarily not: the discussion is about MS4W version 5 beta that contains MapServer 8 and that lives in https://ms4w.com/release/experimental/. -Jukka Rahkonen-

Re: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0

2023-05-30 Thread Rahkonen Jukka
Lähetetty: tiistai 30. toukokuuta 2023 15.21 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0 before that commit, the following code was working: STYLE COLOR 255

Re: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0

2023-05-30 Thread Rahkonen Jukka
Hi, Maybe the commit could be adjusted in Mapserver 7. Out of curiosity, what is the use case for zero sized labels and symbols? To disable them, or? About the angle, by the Mapserver 7.0 documentation, doesn't it feel like negative angles were not thought to work ever? "Angle, given in

Re: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them?

2023-05-26 Thread Rahkonen Jukka
ature> ____ From: Rahkonen Jukka mailto:jukka.rahko...@maanmittauslaitos.fi>> Sent: Thursday, May 25, 2023 6:27 PM To: Marcin Niemyjski mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski via MapServer-users mailto:mapserver-users@lists.osgeo.org&g

Re: [MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them?

2023-05-25 Thread Rahkonen Jukka
Hi, Read the whole documentation page. Mapserver is implementing the WMS-T standard and in the standard the time parameter is named “TIME”. See examples https://mapserver.org/ogc/wms_time.html#supported-time-requests. So even the timeitem in your tileindex is “timestamp”, the parameter to use

Re: [MapServer-users] Layer is opaque

2023-04-20 Thread Rahkonen Jukka
Hi, Work for me in two different ways with this test layer LAYER NAME "layername" TYPE POLYGON FEATURE POINTS 10 5 15 10 5 10 10 5 END END #feature # opacity defined with COMPOSITE COMPOSITE OPACITY 70 END # COMPOSITE METADATA

Re: [MapServer-users] Is it possible to pass variables to a mapfile DATA parameter?

2023-03-08 Thread Rahkonen Jukka
Hi, I think that your question belongs rather to OpenLayers forums. On the Mapserver side you can use run-time substitution in LAYER-DATA https://mapserver.org/cgi/runsub.html#parameters-supported. DATA "geom FROM %table% USING srid=32636 USING UNIQUE fid" What OpenLayers need to do is to add

Re: [MapServer-users] Changing opacity of one layer in a multilayer WMS request URL with MapServer 8

2023-02-22 Thread Rahkonen Jukka
Hi, About the SLD, opacity appears in stroke, fill, graphic, and raster in SLD 1.0. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Steve Lime Lähetetty: keskiviikko 22. helmikuuta 2023 17.47 Vastaanottaja: Matthew Graber Kopio: mapserver-users@lists.osgeo.org Aihe: Re:

Re: [MapServer-users] MapServer-users Digest, Vol 180, Issue 14

2023-01-24 Thread Rahkonen Jukka
Hi, Read the JMeter section from this tutorial and consider if you are interested or not https://cs-geonode.readthedocs.io/en/2.8_a/tutorials/advanced/geonode_production/adv_gsconfig/jmeter/index.html BTW the mailing list prevents direct reply because the body of the message is too long.

Re: [MapServer-users] GetMap request inside python script; measuring speed of WMS?

2023-01-24 Thread Rahkonen Jukka
Hi, If you want to use less time for programming, then JMeter is widely used for that kind of testing and it was also used in the FOSS4G benchmarks https://wiki.osgeo.org/wiki/FOSS4G_Benchmark. Maybe you can get some inspiration from the wiki. The subversion repository is also alive and I

Re: [MapServer-users] accessing mapfiles that are not directly on host server via apache2 aliases?

2023-01-09 Thread Rahkonen Jukka
Hi, I have not been thinking about your use case, it may be reasonable and safe, but generally speaking we have just added more control to the access to mapfiles due to security issues. See https://www.mapserver.org/optimization/limit_mapfile_access.html#limit-mapfile-access. -Jukka Rahkonen-

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Rahkonen Jukka
Hi, The time is not a constant (number of layers * x milliseconds). For example, it is faster to generate the layer BoundingBox into GetCapabilities if the wms_extent metadata is set for the layer https://www.mapserver.org/ogc/wms_server.html but how much faster it is depends on the data

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Rahkonen Jukka
Hi, With that information we cannot really say. Can you get the GetCapabilities document by making the request with a browser or with curl? Is QGIS happy with 500 layers? I suppose that the default request timeout of Apache http server (do you use it?) is 60 seconds, have you tried to increase

Re: [MapServer-users] Tileindex in format different than SHP?

2022-12-14 Thread Rahkonen Jukka
Hi, You are wrong, a GeoPackage layer as a tileindex is about as fast as a shapefile in common bbox filtering that WMS is, and faster than shapefile index if you want to filter or sort the data by other attributes. That is based on my measurements from some years ago with an orthophoto layer

Re: [MapServer-users] Tileindex in format different than SHP?

2022-12-14 Thread Rahkonen Jukka
Hi, We should improve our documentation about tileindexes and differences between raster tileindex and OGR tileindex, and shapefile index and indexes using other formats. At least I do not find correct information easily even after using tileindexes for 15 years or more. For rasters, if the

Re: [MapServer-users] Slow Point Cluster Loading

2022-12-09 Thread Rahkonen Jukka
Hi, Of course you get that message from Mapserver because that is just the WMS base url. You or rather your WMS client like QGIS must add some WMS parameters to the request.

Re: [MapServer-users] Mapcache s3 - server replied: Not Found

2022-12-09 Thread Rahkonen Jukka
Hi, It seems that you have tried to make a new WMS connection but you do not run any WMS server in s3. Instead, you have there tiles. Try this XYZ approach https://silverspringenergy.com/adding-xyz-tiles-to-a-qgis-project/. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin

Re: [MapServer-users] [EXTERNAL] Vector tileindex with connectiontype OGR

2022-12-07 Thread Rahkonen Jukka
ld be nice if you could make a test and compare OGR vs POSTGIS connection types. -Jukka Rahkonen- Lähettäjä: Peter Schmitt Lähetetty: torstai 8. joulukuuta 2022 2.32 Vastaanottaja: Even Rouault Kopio: Rahkonen Jukka ; Mapserver-Users (mapserver-users@lists.osgeo.org) Aihe: Re: [MapServer

Re: [MapServer-users] [EXTERNAL] Vector tileindex with connectiontype OGR

2022-12-07 Thread Rahkonen Jukka
Hi, I made some tests and noticed that the OGR tileindex does not need to be a shapefile but GeoPackage worked as well. Actully what did not work was to make a vector layer from tileindex that was saved into GeoPackage and to use that layer in TILEINDEX. And then I noticed that this behavior

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Rahkonen Jukka
END CLASS NAME "AED" STYLE COLOR 0 0 255 SYMBOL "circlef" SIZE 10

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Rahkonen Jukka
Hi, Can you share also the shapefile? -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: tiistai 29. marraskuuta 2022 18.10 Vastaanottaja: Jörg Thomsen (WhereGroup) ; Marcin Niemyjski via MapServer-users Aihe: Re: [MapServer-users] Shapefile

Re: [MapServer-users] Shapefile data source doesn't work

2022-11-29 Thread Rahkonen Jukka
Hi, Please show the extent of the shapefile as ogrinfo shows it. Verify that EPSG:3857 is correct for the data. And capture the GetMap request that QGIS is sending. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: tiistai 29. marraskuuta

Re: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels

2022-11-28 Thread Rahkonen Jukka
- Lähettäjä: Mallinger, Bernhard Lähetetty: maanantai 28. marraskuuta 2022 16.53 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels Thank you for the suggestion, I have tried it now

Re: [MapServer-users] Distinguish between pixels outside of SCALE range and nodata pixels

2022-11-28 Thread Rahkonen Jukka
Hi, Have you tried the LUT processing option https://mapserver.org/input/raster.html? -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Mallinger, Bernhard Lähetetty: maanantai 28. marraskuuta 2022 15.35 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [MapServer-users] Distinguish

Re: [MapServer-users] Redirecting to s3 via apache2 redirect/alias/proxy

2022-10-24 Thread Rahkonen Jukka
Hi, I am not sure how well redirect plays together with MS_MAP_PATTERN https://www.mapserver.org/optimization/limit_mapfile_access.html#limit-mapfile-access but maybe you could test it by redirecting locally and trying to access a mapfile from a directory that does not match with

Re: [MapServer-users] Projection confusion and output image format

2022-10-13 Thread Rahkonen Jukka
Hi, You will see the srs metadata in GetCapabilities, WMS clients can build a menu according to the list, and Mapserver will reproject the maps. At least if you make a list that makes sense, it is not possible to transform EPSG:3067 into all coordinate systems of the World. -Jukka-

Re: [MapServer-users] Projection confusion and output image format

2022-10-13 Thread Rahkonen Jukka
Hi, About adding new SRS into WMS give a list like here for the Web Mercator and the Finnish GK zones "wms_srs""EPSG:3067 EPSG:3857 EPSG:3873 EPSG:3874 EPSG:3875 EPSG:3876 EPSG:3877 EPSG:3878 EPSG:3879 EPSG:3880 EPSG:3881 EPSG:3882 EPSG:3883 EPSG:3884 EPSG:3885 EPSG:4326 EPSG:3045"

Re: [MapServer-users] WCS 2.0.1 GetCoverage request results in corrupted geotiff

2022-08-26 Thread Rahkonen Jukka
Hi, Your question is exceptionally detailed but because the issue happens only with a certain Docker image maybe you should contact the authors of the image https://github.com/PDOK/mapserver-docker/. But you seem to be one of the contributors yourself

Re: [MapServer-users] Content of WMS based on attribute

2022-08-19 Thread Rahkonen Jukka
Hi, The standard WMS way would be to use SLD or SLD_BODY with a filter https://mapserver.org/ogc/sld.html. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: perjantai 19. elokuuta 2022 15.31 Vastaanottaja: mapserver-users@lists.osgeo.org

Re: [mapserver-users] Fwd: MapServer 7 arithmetic expressions do not work on STYLE attributes?

2022-06-16 Thread Rahkonen Jukka
Hi, Adding a link to the same question asked earlier in gis.stackexchange: https://gis.stackexchange.com/questions/433659/mapserver-7-arithmetic-expressions-do-not-work-on-style-attributes/433664#433664. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Andi p3 Domi Lähetetty: torstai 16.

Re: [mapserver-users] Same database connection across multiple layers

2022-05-13 Thread Rahkonen Jukka
Hi, Write the connection into a separate file that you can INCLUDE into the main mapfile https://mapserver.org/mapfile/include.html -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Atlanta Geek Lähetetty: perjantai 13. toukokuuta 2022 16.14 Vastaanottaja: mapserver-users@lists.osgeo.org

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

2022-05-02 Thread Rahkonen Jukka (MML)
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-users

[mapserver-users] Any trick to buffer labelpoly?

2022-04-29 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

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

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:

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-

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://github.com

[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

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)
an" which appears nowhere in my map file so I wonder if it's some sort of default baked into the code or something. (I had seen that before but hadn't bothered to try to figure out what it was until just now. That's weird.) Thanks for your help, carl On Tue, Jan 11, 2022 a

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=2.0.1=DescribeCoverage=ortokuva_vari The units can be configured in the mapfile with “wcs_band_uom”. I do not know if it is possible to

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://mapserver.org/ogc

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?

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)
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 (MML) wrote: >> Hi

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

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ä:

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:

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

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

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:

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

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

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

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-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=1.0.0=DescribeCoverage=modis WCS

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://w

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

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

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]

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: =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: sunnuntai

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,

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

[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

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

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

  1   2   3   4   5   6   7   8   9   10   >