Re: [mapserver-users] MapServer 7.4.3 - Poor projection from British National Grid (EPSG 27700) to WebMercator (EPSG 3857)
Ben Have you considered using PostGIS to do the transformation instead? Also, depending on the amount of data you could set up some material views building transformed data or similar which may make it more responsive, if that is needed. All the best Mike On Mon, 6 Sept 2021 at 11:52, wrote: > Reposted from > https://gis.stackexchange.com/questions/410874/mapserver-7-4-3-poor-projection-from-british-national-grid-epsg-27700-to-web > > We have PostGIS data in BNG and are displaying it over Google satellite > imagery. > > This worked fine previously - using a Ubuntu server running 18.04, with > MapServer 7.0.7, GDAL 2.2.3, proj 4.9.3. > > This server is long out of date and we have a new one running 20.02, with > MapServer 7.4.3, GDAL 3.0.4 and proj 6.3.1. However this is projecting the > BNG layers incorrectly (~200m ESE). > > This appears to be similar to the issue reported at > https://github.com/OSGeo/gdal/issues/3695 although that claims the > problem only arose after proj 7.2.1 > > I have installed the updated transform OSTN15_NTv2_OSGBtoETRS.gsb but this > had no effect. > > Is there a way to update the transforms used by MapServer or get MapServer > to pass the transformation to PostGIS ? > > Thanks > > Ben > ___ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapfile VS MapScript performance
As the cgi is robust and heavily tested I would think you would save massive amounts of developer time in not writing python wrapper code too! On Nov 7, 2012 8:42 AM, Umberto Nicoletti umberto.nicole...@gmail.com wrote: I have tested cgi against python mapscript (with mod_python) and the performance improvement, as expected, is massive. On Wed, Nov 7, 2012 at 8:53 AM, Spirifer ready...@gmail.com wrote: Hi, I would to use MapServer to create WMS/WFS services. I think to compare 2 systems to produce services: 1) Apache + MapServer CGI + static mapfile (.map) 2) Apache + MapScript PHP + map configuration in cache Somebody has tested the performance between the mapfile and MapScript ? Thanks. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map file keyword dictionary
Thanks Thomas On Oct 4, 2012 1:18 PM, thomas bonfort thomas.bonf...@gmail.com wrote: I've updated the vim syntax file for 6.2, which has no omissions as far as I can tell. You can extract the keywords from there: https://github.com/mapserver/docs/blob/dea01e46bf357d46e9cdc83c257c955c4bf7617e/_static/map.vim -- thomas On Wed, Oct 3, 2012 at 8:31 PM, Mike Saunt mikesa...@gmail.com wrote: Hi All Can anyone point me to a list of ALL keywords used within a mapfile? Looking at using this within a Rich Text Editor to color and identify. Much apprecaited Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Map file keyword dictionary
Hi All Can anyone point me to a list of ALL keywords used within a mapfile? Looking at using this within a Rich Text Editor to color and identify. Much apprecaited Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SDE Connection
I'm not aware of them being publicly available. They should be in the esri media pack that comes with arcsde On Sep 11, 2012 9:23 AM, Michele De Santis tap...@virgilio.it wrote: Dear list, I want to connect Mapserver 6.0.3 to SDE 9.2. MapServer is on a Linux Centos Machine while SDE is on Windows Machine. I have just read that I must have the SDE client librairies at my disposition, and have them installed on the machine running MapServer. Are this client librairies available for public download? Thanks to all ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] will Mapserver ever support SLD inside Mapfile?
Would it be difficult to be able to reference sld's locally too via external files path? currently I think they have to be url based On Jun 22, 2012 7:50 PM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote: Giovanni, I agree inline SLD would be very powerful for MapServer, and now that QGIS can import/export SLDs, it would be a great way to share styles between different projects. Like Steve said, I feel it just needs a champion - someone who really wants it to happen in MapServer, and that person doesn't need to be a coder/developer at all. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] show only classes in legend within current extent
Could be a nice feature say with mode=legendextent Steve, what time would it take to develop? On Jun 18, 2012 3:39 PM, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: Nope. It's not a very hard problem, but it's computationally expensive. My thought is that we'd have to add class counters to the legendObj and populate them during a map draw. That means for mode=legend you'd also have to draw a map or at least mimic it. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] On Behalf Of Richard Greenwood Sent: Sunday, June 17, 2012 10:49 PM To: mapserver Subject: [mapserver-users] show only classes in legend within current extent I'm pretty sure the answer to my question is No but just in case - is it possible to restrict the classes show in a simple legend (CGI mode=legend) to only those classes within the current extent? Thanks, Rich -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time
Not sure if this helps but often with IIS there is a lag at startup to load things up, plenty of microsoft doco out there regarding it... On Jun 9, 2012 4:13 PM, Donald Kerr donald.k...@dkerr.co.uk wrote: Jeff, Great tip! My deployment uses a full compressed build of the openlayers.js file with some changes to vml.js (uses vml textpath - for = IE8) and svg.js (uses text rotation - for Chrome and Firefox). This file comes in at 927 KB. I created a custom compressed build of the openlayers.js file, again including the vml and svg changes. The new file comes in at 443 KB; a very significant drop in size. Both files were built using the latest, hot off the press, OpenLayers-2.12-rc6. Prior to creating and using the new, smaller openlayers.js file, I tested the time to get the first raster image tile from boot up with the larger file which was 16 seconds. I did a one click zoom to the first layer that has PostGIS sitting behind it and that took a further 8 seconds. After that initial load of both layer types, everything is speedy with very little delay at all. I then substituted the new, smaller openlayers.js file and repeated the process from boot up. Low and behold, I get exactly the same results: 16 seconds then 8 seconds. Whilst there is probably a time saving in terms of milliseconds, the perceptional difference is nil. However, I do agree that the smaller openlayers.js file is the way to go in terms of reducing unnecessary initial traffic and also having less javascript in memory; something that will no doubt aid Internet Explorer speed-wise as that particular platform is chronic at best. Thanks again for the tip. Regards, Donald -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 08 June 2012 16:10 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time On 12-06-06 4:35 PM, Donald Kerr wrote: Basically my mapping setup is, from client to server, Openlayers WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or PostGIS (XP Pro SP3 - IIS FastCGI). From boot up, the initial, or first load of maps, takes up to 15 seconds. After that, it flies along fine. I've tried pre-loading in a hidden browser instance but that didn't work. I cannot get that initial load time down at all. Any tips to reduce the time taken for the first load of the software: Specifically Mapserver whether it's creating the map from PostGIS or the shapefile (Tiffs). I can give my experiences here. I have a very slow server that I use for client demos, and I very often hit this exact same issue (my OpenLayers/MapServer WMS/WFS application takes very long to load initially, then zooms along). In my case, the long initial load is always due to the large lib/OpenLayers.js file; I solve this by generating an 'OpenLayers-lite.js' file (through the instructions at http://docs.openlayers.org/library/deploying.html). I hope that helps someone along the way. Have a nice weekend all. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: MapServer WMS requests with SLD shows extra layers
Dear All Please ignore this question below it was a real PICNIC (Problem In Chair Not In Computer) - I had STATUS DEFAULT in my .map file so when those LAYERS were specified in the SLD they then got styled (they have no style in the .map) Although I've been using MapServer for over 6 years my only excuse could be the time of day i.e. late one evening. - just to CONFIRM - MapServer works as expected with SLD (and very nice too!) Thanks Mike On 30 May 2011 23:22, Mike Saunt mikesa...@gmail.com wrote: Hi All Wondering if anyone knows if this is correct or not. I'm using MapServer 5.6.6 on Windows. I have a WMS where I specify an SLD for a layer - say called A (the SLD has a NamedLayer entry for that layer A) - and in the URL I specify the SLD path and also the layers that I want - let's say A, B - everything is great. The issue (or feature!) that arises is that if I leave the SLD in the URL and DON'T specify layer A (but do specify say B) I still get A coming through on the Map - is it because it has a NamedLayer entry in the SLD file. This causes an issue for us as we're starting to use SLD's more and more and are trying to avoid rewrite the SLD on the server if we turn a layer on or off - I'd have thought the LAYERS parameter would handle this as it does for every other type of request to MapServer. Hopefully this makes sense - anyone have any clues? Thanks Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer WMS requests with SLD shows extra layers
Hi All Wondering if anyone knows if this is correct or not. I'm using MapServer 5.6.6 on Windows. I have a WMS where I specify an SLD for a layer - say called A (the SLD has a NamedLayer entry for that layer A) - and in the URL I specify the SLD path and also the layers that I want - let's say A, B - everything is great. The issue (or feature!) that arises is that if I leave the SLD in the URL and DON'T specify layer A (but do specify say B) I still get A coming through on the Map - is it because it has a NamedLayer entry in the SLD file. This causes an issue for us as we're starting to use SLD's more and more and are trying to avoid rewrite the SLD on the server if we turn a layer on or off - I'd have thought the LAYERS parameter would handle this as it does for every other type of request to MapServer. Hopefully this makes sense - anyone have any clues? Thanks Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] query mode, multiple selections
Hi We use the back end CGI extensively and it is extremely fast. It is simply a case of being able to define what type of constraint you want against each layer (tolerance etc) - I'm normally surprised if mapserver takes more than a second or two to query up to 20-30 individual layers... Hope this reassures! Mike 2009/9/1 Chris Kantarjiev c...@speedgauge.net Sure. The basic use case is: User navigates to a particular, known, lat/lon as starting point; this can be by entering the known lat/lon values, or by navigation around cities. User then selects one or more links and can inspect attributes associated with those links - in particular, link_id and direction. Initial selection could be by sweeping out an area, but should also provide a way of adding/removing specific links from the selection (control-select). Did that makes sense? chris Steve Lime wrote: You'd be surprised with what you can do with the CGI backend. It's certainly possible, with the right web client (e.g. something like GeoMoose or OpenLayers) to craft queries against the CGI to select one or many features from one or many layers using a point, box or arbitrary geometry. Perhaps if you could sketch out a use case or two... Steve On 9/1/2009 at 12:49 PM, in message 4a9d5e9d.9000...@speedgauge.net, Chris Kantarjiev c...@speedgauge.net wrote: I'm just starting to play with query mode and find it very useful. I have an interaction style in mind that would let me select and highlight several (possibly connected) links in a layer in a fairly interactive style (more like one would do with ArcGIS, I guess). I'm pretty sure that I won't be successful doing this with the basic CGI, and am overwhelmed by the number of Ajax layers that I might choose from. Are there documents/pages out there that might give me some guidance about what's possible with the various packages? Thanks, chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Sample Google Maps styled map file
Hi All Long time since I've posted! Does anyone know where I can get a sample MapServer map file with Google Maps style styling? Much appreciated Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] v5.0.0 - CLASSITEM has double quote in field value
Alexandre Excellent - that works! FYI - This is why I believe that Open Source can easily prevail even when people put down the 'many eyes see more bugs' notion. In another life I worked with / as a partner for a proprietary company (now you can buy franking machines from the same parent company wink wink nudge nudge) and you'd never get this response so quickly and also having 'had it from the horses mouth a.k.a. Developers' that there is an issue and this is the best way around it. Thanks so much Alexandre Kind regards Mike 2008/7/18 Alexandre Dube [EMAIL PROTECTED]: I've been told by developers that there seems to be a bug when using in the expression parser... You should use a regular expression instead like the following : EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road Closure$|^Stop\/Go Boards$|^Two-Way Signals$/ See at : http://mapserver.gis.umn.edu/docs/howto/msexpressions Mike Saunt wrote: thanks Alexandre but unfortunately it didn't work Do you know if there is a way of forcing MapServer to read out the literal string i.e. sort of like escaping it? in .NET you can say @stringvariable and it will ignore quotes inside etc? Cheers Mike 2008/7/18 Alexandre Dube [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Hi Mike, I'm not sure about that, but try eq instead of = EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... Best Regards, Alexandre Mike Saunt wrote: Hi All I've got a MapFile that used to work fine in v4.10 but now fails in v5.0 Basically the CLASSITEM field has double quote in field value and this is then returning an error - msEvalExpression: Expression parser error. Failed to parse expression The CLASS EXPRESSION looks like this CLASSITEM 'TRAFFIC_TYPE' CLASS EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR '[TRAFFIC_TYPE]' = 'Two-Way Signals') STYLE # Severe (RED) SYMBOL 'triangle' SIZE 9 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END I've tried double quote vs. single quotes in the map file but to no avail Anyone any thoughts? Kind regards Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users --Alexandre Dubé Mapgears www.mapgears.com http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dubé Mapgears www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer
Hi All We're trying to get an annotation layer from MapInfo format (text only now lines, points etc to follow) to render but to use the angle stored in the MapInfo feature (not from an attribute column) - we used to be able to use LABELANGLEITEM OGR:LabelAngle in v4 but v5 seems to have us stumped as the bindings seem to only work against fields names We also found the below in the OGR help but I can't seem to find the correct syntax Special OGR:Label* attributes Posted by Daniel Morissette at 2007-09-13 07:40 This should probably be added to the docs: When using CONNECTIONTYPE OGR, there are special attributes called OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as LABELITEM, ANGLE and SIZE in the label definition for your annotation layer. You can use that as an alternative to using STYLEITEM AUTO.H Anyone able to help us? Cheers Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Regular Expressions with PostGIS
Hi All We have an application that calls MapServer CGI from C# which creates regular expressions for qitem (itemnquery etc) - basically when calling a shape file all is good but not with PostGIS uniqueid~'(a|A)(b|B)(c|C)123' = good for postgis [uniqueid]=~/(a|A)(b|B)(c|C)123/ = bad for postgis (good for mapserver) Does anyone know a way around - the calling app doesn't necessarily know whether the base layer is PostGIS or OGR or Shape etc Cheers Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Regular Expressions with PostGIS
Thanks Paul - I'll have to create a switch to identify... Thanks for the prompt response... 2008/5/29 Paul Ramsey [EMAIL PROTECTED]: Hilarity ensues, same issue being debated in another thread. In your case, no, there's probably no way around it. query is implemented as a FILTER, and filter gets passed directly to the underlying data store as SQL. The syntax for FILTER in shape files is mapserver specific, the syntax for PostGIS filter is PostgreSQL specific. Store all your data in postgis :) Or, more hackily, name your layers based on their storage type. pg_layer1, shp_layer2, etc. Sorry! P On Thu, May 29, 2008 at 9:24 AM, Mike Saunt [EMAIL PROTECTED] wrote: Hi All We have an application that calls MapServer CGI from C# which creates regular expressions for qitem (itemnquery etc) - basically when calling a shape file all is good but not with PostGIS uniqueid~'(a|A)(b|B)(c|C)123' = good for postgis [uniqueid]=~/(a|A)(b|B)(c|C)123/ = bad for postgis (good for mapserver) Does anyone know a way around - the calling app doesn't necessarily know whether the base layer is PostGIS or OGR or Shape etc Cheers Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapext=shapes
Hi All Is there anyway specifying a buffer or factor to the mapext=shapes? Bascially I'm zooming to the extents of a poygon from an itemnquery but would like the map zoomed out slightly more... http://mswebdev:81/cgi-bin5.0/mapserv.exe?map=D:/Maps/SurreyHeath/_MapServerConfig/myareaquery.mapmode=itemnquerymapsize=200+150mapext=shapesqlayer=LandParcelsqitem=uprnqstring=100061560388map.layer[LandParcels]=TEMPLATE+globexml.xmlhttp://mswebdev:81/cgi-bin5.0/mapserv.exe?map=D:/Maps/SurreyHeath/_MapServerConfig/myareaquery.mapmode=itemnquerymapsize=200+150mapext=shapesqlayer=LandParcelsqitem=uprnqstring=100061560388map.layer%5BLandParcels%5D=TEMPLATE+globexml.xml Using standard CGI MapServer 5.0 Much appreciated Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users