Re: [MapServer-users] [EXTERNAL] Two regular expressions

2023-02-08 Thread Schylberg Lars
Hi, You need to use a CLASSITEM LAYER ... CLASSITEM "LANGUAGE" CLASS EXPRESSION /^GERMAN$/ ... EXPRESSION /^FRENCH$/ ... ... Have fun / Lars S. From: MapServer-users On Behalf Of Preuß, Sylvia Sent: den 8 februari 2023 08:24 To: 'mapserver-users@lists.osgeo.org'

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

2022-12-07 Thread Schylberg Lars
Hi, I remember that I did tileindexes for vector layers a couple of years ago. I can’t find my example right now, but I think I was following this example for raster. The important thing is to have a one layer for the actual tile index, that has status off and one layer that is using the tile

Re: [MapServer-users] [EXTERNAL] Re: WMS GetCapabilities map minx, miny etc transposed

2022-11-28 Thread Schylberg Lars
Hi, I guess it is the old problem with axis order between WMS 1.1.1 and WMS 1.3.0 Daniel Morissette wrote about the problem long time ago. http://dmorissette.blogspot.com/2012/12/dont-upgrade-to-wms-130-unless-you.html /Lars S. From: MapServer-users On Behalf Of Jody Klymak Sent: den 27

Re: [mapserver-users] How to make label background transparent?

2019-03-11 Thread Schylberg Lars
Hi again, What happens if You skip the IMAGECOLOR statement ? I did a project a year ago with a lot of transparent layers. But I can't see that I used any IMAGECOLOR statements in that case. I did however use predefined 256 color palettes for another reason. /Lars -Original Message-

Re: [mapserver-users] Polygons 3D effect

2016-03-18 Thread Schylberg Lars
Thomas B. described how to do it in this post: http://lists.osgeo.org/pipermail/mapserver-dev/2015-October/014614.html It is just available today if You compile master branch yourself, since it was developed after the 7.0 release. /Lars Schylberg == Hi, Draw a shadow below the polygon with

Re: [mapserver-users] Mapcache - optimum format for orthophotos?

2015-10-14 Thread Schylberg Lars
There is even more details how to optimize the data if You read the blog entry from Paul R. http://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html /Lars S. From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Travis Kirstine Sent: den 14

Re: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ?

2015-06-09 Thread Schylberg Lars
It seems like You have a typing error. FILTER ([CODICE[ = 107) Should be: FILTER ([CODICE] = 107) /Lars -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri Sent: den 9 juni 2015 11:34 To:

Re: [mapserver-users] KML Multigeometry

2015-04-27 Thread Schylberg Lars
The linestrings and point are inside a geometrycollection. There is no FID that You can use to make the selection. I would suggest that You experiment with ogrinfo first to see that You can extract what You want. I guess that You have to make a more advanced sql query to break the

Re: [mapserver-users] polygon fill

2015-03-18 Thread Schylberg Lars
Hi, Without looking at the your details I remember one blog entry that might help. http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/ another relevant link seems to be http://trac.osgeo.org/openlayers/wiki/Highlighting /Lars From:

Re: [mapserver-users] How use a spatialite as tileindex for raster

2015-03-18 Thread Schylberg Lars
Hi Looking at your old example I became curious. Did You use gdaltindex to create the indexfile in spatialite or did You do in some other way? The -f option in gdaltindex seems like a rather recent addition that I haven't tried. /Lars -Original Message- From:

Re: [mapserver-users] Calculate length!

2015-03-16 Thread Schylberg Lars
I guess this must be a version problem. That same command runs fine on my osgeolive8 machine. ogrinfo --version GDAL 1.10.1, released 2013/08/26 /Lars From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of alok mathur Sent: den 16 mars

Re: [mapserver-users] Calculate length!

2015-03-15 Thread Schylberg Lars
Hi Jukka, You were right about that is possible to calculate length of a line in a KML file in Mapserver via ogr and sqlite. It is possible with a VRT file. I had some weekend fun learning. This will be useful in another project I am doing! The only trouble I found, was that I could not get

Re: [mapserver-users] Calculate length!

2015-03-13 Thread Schylberg Lars
As far as I know there is no length function in Mapserver. The only geometry function to use in Expressions is area(shape). OGR sql doesn’t provide that either as far as I can see in the documentation. So the solutions might be to convert your KML data to sqlite or postgis where such functions

Re: [mapserver-users] Calculate length!

2015-03-13 Thread Schylberg Lars
To: Schylberg Lars; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Calculate length! Hi Lars, You should not underestimate GDAL. Read http://www.gdal.org/ogr_sql_sqlite.html and look at this: ogrinfo -dialect sqlite -sql select st_length(geometry) from line_demo limit 5

Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread Schylberg Lars
The OGR style is the variable that is returned in the variable that is casted. Please look at the Layer definitions that I sent yesterday in the mapfile example. DATA SELECT Name as NAME, CAST(OGR_STYLE AS character(32)) AS STYLE FROM 'Fibertech solution' WHERE OGR_GEOMETRY='LINESTRING'

Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread Schylberg Lars
From: alok mathur [mailto:mathuralok...@gmail.com] Sent: den 12 mars 2015 10:57 To: Schylberg Lars Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] KML reading through OGR You have to create symbol definitions to use in the mapfile: Plenty of examples on this page: http

Re: [mapserver-users] KML in mapserver

2015-03-10 Thread Schylberg Lars
This was a good exercise to handle KML files. To get this to work You have to cast the Style value to a string also. DATA SELECT Name as NAME, CAST(OGR_STYLE AS character(32)) AS STYLE FROM 'Fibertech solution' WHERE OGR_GEOMETRY='LINESTRING' The Mapfile should something like this: # Start of

Re: [mapserver-users] Best Practice

2015-03-10 Thread Schylberg Lars
I would write a bash script that starts with using ogrinfo. Extract all relevant information from ogrinfo with sed, awk and similar tools. Print the mapfile content of the fly from the bash script with a lot of printf commands Quick method in my opinion! Here is a small extract from an example I

[mapserver-users] layer handling in Mapserver WMS clients

2015-02-10 Thread Schylberg Lars
Hi, I have a follow up question on my question yesterday. I would like to have the layers in the main called mapfile to be set layers in the client WMS calls. The WMS client documentation says, http://mapserver.org/ogc/wms_client.html : wms_name metadata - comma-separated list of layers to be

Re: [mapserver-users] [EXTERNAL] WMS SRS as variable

2015-02-09 Thread Schylberg Lars
# Map From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] Sent: den 6 februari 2015 16:31 To: Schylberg Lars; mapserver-users@lists.osgeo.org Subject: Re: [EXTERNAL] [mapserver-users] WMS SRS as variable Lars, A WMS map can support multiple SRS's. Just list all the ones

Re: [mapserver-users] [EXTERNAL] WMS SRS as variable

2015-02-09 Thread Schylberg Lars
. /Lars From: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi] Sent: den 9 februari 2015 12:03 To: Schylberg Lars; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] [EXTERNAL] WMS SRS as variable Hi, Ok, I start to understand little by little. It is not about making

[mapserver-users] WMS SRS as variable

2015-02-06 Thread Schylberg Lars
Hello, I wonder if there is a way to set SRS as a variable in a map file. I have one map file that uses several other WMS clients that also are mapfiles. I would like to use the SRS as variable to make the WMS service more flexible. I have tried to do VALIDATION on SRS variable, but that only

[mapserver-users] anchor label positions

2013-09-12 Thread Schylberg Lars
Hello, I have read the following discussion below but have not found out if anything has happened since then. http://lists.osgeo.org/pipermail/mapserver-users/2008-December/059123.html http://lists.osgeo.org/pipermail/mapserver-users/2010-November/067312.html I have shape files with anchor point