[mapserver-users] symbol position moving when using angle
Hi list, hopefully someone can explain the following issue to me. I am using a vector symbol (ttf), and when using no angle, it is positioned correctly. However, when I use ANGLE on the STYLE (using an attribute in the dataset), things get weird and the symbol position changes. Image brous4.png (no rotation in Mapserver, red exclamation marks are Mapserver, black exclamation marks are ArcMap, blue dot is the same Mapserver layer using a circle symbol to display the location): http://www.osgis.nl/download/mapserver/brous4.png Image brous3.png, now we rotate the symbols in Mapserver, but their location is moving (a simple OFFSET does not seem to be a possible solution however): http://www.osgis.nl/download/mapserver/brous3.png TIA for any guidance. Best regards, Bart ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: symbol position moving when using angle
Hi Robert, thanks for your answer, indeed that must be the explanation. However, the ESRI software (ArcMap in this case) is doing what we expect with the same true type font. Best regards, Bart > looks to me like the 'base point' around which the symbol is defined in > terms > of x-y position, and therefore around which the thing will rotate -- is to > the lower-left of the visible exclamation mark: > > # > # > # > > # > x << rotates around this > > while you really want something like: > > # > # > # << rotates around this point > > # > > I'm guessing this is the normal case for most ttf's? Can you find or > create a ttf char that is defined like the second case? Otherwise > probably need to use a bitmap or just block out what you need with > mapserver vector symbology > > Robert > == > original msg > == > Hi list, > > hopefully someone can explain the following issue to me. > > I am using a vector symbol (ttf), and when using no angle, it is > positioned correctly. > > However, when I use ANGLE on the STYLE (using an attribute in the > dataset), things get weird and the symbol position changes. > > Image brous4.png (no rotation in Mapserver, red exclamation marks are > Mapserver, black exclamation marks are ArcMap, blue dot is the same > Mapserver layer using a circle symbol to display the location): > > http://www.osgis.nl/download/mapserver/brous4.png > > Image brous3.png, now we rotate the symbols in Mapserver, but their > location is moving (a simple OFFSET does not seem to be a possible > solution however): > > http://www.osgis.nl/download/mapserver/brous3.png > > TIA for any guidance. > > Best regards, > Bart > ___ > 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: AW: [mapserver-users] Re: symbol position moving when using angle
Hi Andreas, I am not drawing labels in this particular case, I am drawing points with a ttf symbol. CLASS STYLE ANGLE [GRADENHOEK] SYMBOL "foo" SIZE 50 COLOR 255 0 0 END END SYMBOL NAME "foo" TYPE TRUETYPE FONT "arial" CHARACTER "!" ANTIALIAS TRUE END Best regards, Bart > Hi Bart, > may be this is what you are looking for: > From the map file documentation: > > LABEL > ... > POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto] > Position of the label relative to the labeling point (layers only). > First letter is "Y" position, second letter is "X" position. "Auto" > tells MapServer to calculate a label position that will not interfere > with other labels. With points, MapServer selects from the 8 outer > positions (i.e. excluding cc). With polygons, MapServer selects from > cc (added in MapServer 5.4), uc, lc, cl and cr as possible positions. > With lines, it only uses lc or uc, until it finds a position that > doesn't collide with labels that have already been drawn. If all > positions cause a conflict, then the label is not drawn (Unless the > label's FORCE a parameter is set to "true"). "Auto" placement is only > available with cached labels. > > Regards, > Andreas > > -----Ursprüngliche Nachricht- > Von: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bart van > den Eijnden (OSGIS) > Gesendet: Dienstag, 21. Juni 2011 15:55 > An: Robert Hollingsworth > Cc: mapserver-users@lists.osgeo.org > Betreff: Re: [mapserver-users] Re: symbol position moving when using angle > > Hi Robert, > > thanks for your answer, indeed that must be the explanation. > > However, the ESRI software (ArcMap in this case) is doing what we expect > with the same true type font. > > Best regards, > Bart > >> looks to me like the 'base point' around which the symbol is defined in >> terms >> of x-y position, and therefore around which the thing will rotate -- is >> to >> the lower-left of the visible exclamation mark: >> >> # >> # >> # >> >> # >> x << rotates around this >> >> while you really want something like: >> >> # >> # >> # << rotates around this point >> >> # >> >> I'm guessing this is the normal case for most ttf's? Can you find or >> create a ttf char that is defined like the second case? Otherwise >> probably need to use a bitmap or just block out what you need with >> mapserver vector symbology >> >> Robert >> == >> original msg >> == >> Hi list, >> >> hopefully someone can explain the following issue to me. >> >> I am using a vector symbol (ttf), and when using no angle, it is >> positioned correctly. >> >> However, when I use ANGLE on the STYLE (using an attribute in the >> dataset), things get weird and the symbol position changes. >> >> Image brous4.png (no rotation in Mapserver, red exclamation marks are >> Mapserver, black exclamation marks are ArcMap, blue dot is the same >> Mapserver layer using a circle symbol to display the location): >> >> http://www.osgis.nl/download/mapserver/brous4.png >> >> Image brous3.png, now we rotate the symbols in Mapserver, but their >> location is moving (a simple OFFSET does not seem to be a possible >> solution however): >> >> http://www.osgis.nl/download/mapserver/brous3.png >> >> TIA for any guidance. >> >> Best regards, >> Bart >> ___ >> 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] NAME limit of 20 characters
Hi list, I am bit confused about the 20 character limit for LAYER->NAME that the MAP file documentation suggests. NAME [string] Short name for this layer. Limit is 20 characters. This name is the link between the mapfile and web interfaces that refer to this name. They must be identical. The name should be unique, unless one layer replaces another at different scales. Use the GROUP option to associate layers with each other. Is this limit really true? If I read Steve Lime's reply here this should not be the case: http://osgeo-org.1803224.n2.nabble.com/Character-Limit-for-NAME-and-GROUP-td5922135.html TIA for any clarification. Best regards, Bart ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] did something change in reading in empty TAB files?
Hi list, at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a problem with reading empty MapInfo TAB files, whereas in the past (4.6 for sure) this used to work. Is this issue known to someone? The error I get is: 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 expected 2 in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php on line 533 An example TAB file can be found here: www.osgis.nl/download/mapserver/gemgrens.zip Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ogrinfo failure.
Open up a dos prompt and first run ms4w\setenv.bat, after that you can use ogrinfo. Best regards, Bart Νίκος Παπαδάκης wrote: Hi list. I have a problem running ogrinfo.exe. When i press enter i get the following message: "This application has failed to start because gdal15.dll was not found.Re-installing the application may fix this problem". Well,i re-installed ms4w but the problem remains. Does anyone know where the error might be? Thank you in advance...! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver WMS client without SERVICE parameter
Hi, this was fixed in Mapserver 5.2.1. So please upgrade. Best regards, Bart Ivan Mincik wrote: Dear users, We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. It was already submitted. No response since now .) If mapserver will receive request without SERVICE parameter, it will process it as WFS request. We want WMS response. Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present ? Thanks Ivan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem with loading map file using C# map script
I just allowed your message on the list so I am sure Tamas will get it. Best regards, Bart Murty Maganti wrote: Sorry, it may be coming from our SMTP server. I will verify. *From:* Tamas Szekeres [mailto:szeker...@gmail.com] *Sent:* Wednesday, February 18, 2009 2:03 PM *To:* Murty Maganti *Cc:* mapserver-users@lists.osgeo.org *Subject:* Re: [mapserver-users] Problem with loading map file using C# map script Would you send me the files privately for the meantime? Tamas 2009/2/18 Murty Maganti <mailto:mmaga...@oriongis.com>> Hi I have posted the test application. But the email is waiting for approval of moderator (as the attachment size is 75 KB and I think allowed is only 40 KB). Thanks Murty *From:* Tamas Szekeres [mailto:szeker...@gmail.com <mailto:szeker...@gmail.com>] *Sent:* Tuesday, February 17, 2009 6:33 PM *To:* Murty Maganti *Cc:* mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org> *Subject:* Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti <mailto:mmaga...@oriongis.com>> Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty ___ mapserver-users mailing list mapserver-users@lists.osgeo.org <mailto: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 -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] copyright
Use {singleTile: true} on your layer options. Best regards, Bart Valeria Muñoz wrote: HI Bart yes i use openlayer 2009/2/23 Bart van den Eijnden (OSGIS) <mailto:bart...@osgis.nl>> Are you using a tiled client like OpenLayers? Bart Valeria Muñoz wrote: Hi david, I check this example, but in my map the copyright multiply by 4, should be a problem of point? RG 2009/2/23 Fawcett, David mailto:david.fawc...@state.mn.us> <mailto:david.fawc...@state.mn.us <mailto:david.fawc...@state.mn.us>>> This might help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map -Original Message- *From:* mapserver-users-boun...@lists.osgeo.org <mailto:mapserver-users-boun...@lists.osgeo.org> <mailto:mapserver-users-boun...@lists.osgeo.org <mailto:mapserver-users-boun...@lists.osgeo.org>> [mailto:mapserver-users-boun...@lists.osgeo.org <mailto:mapserver-users-boun...@lists.osgeo.org> <mailto:mapserver-users-boun...@lists.osgeo.org <mailto:mapserver-users-boun...@lists.osgeo.org>>] *On Behalf Of *Valeria Muñoz *Sent:* Monday, February 23, 2009 12:54 PM *To:* mapserver-users *Subject:* [mapserver-users] copyright Hi do you know how can i put copyright in my map?, like google :) thanks,RG ___ mapserver-users mailing list mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl <mailto:bart...@osgis.nl> http://www.osgis.nl <http://www.osgis.nl/> -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] copyright
Are you using a tiled client like OpenLayers? Bart Valeria Muñoz wrote: Hi david, I check this example, but in my map the copyright multiply by 4, should be a problem of point? RG 2009/2/23 Fawcett, David <mailto:david.fawc...@state.mn.us>> This might help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map -Original Message- *From:* mapserver-users-boun...@lists.osgeo.org <mailto:mapserver-users-boun...@lists.osgeo.org> [mailto:mapserver-users-boun...@lists.osgeo.org <mailto:mapserver-users-boun...@lists.osgeo.org>] *On Behalf Of *Valeria Muñoz *Sent:* Monday, February 23, 2009 12:54 PM *To:* mapserver-users *Subject:* [mapserver-users] copyright Hi do you know how can i put copyright in my map?, like google :) thanks,RG ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Oracle virtual private database and ArcSDE
Sorry for the off-topic question, but is there anybody out here that has experience with the combination of Oracle Virtual Private Database and ArcSDE. In other words, Oracle's row level security in combination with ESRI's ArcSDE. If so, please contact me off-list. TIA. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] out of scale layers and WMS GetFeatureInfo
Hi list, currently, if a layer is out of scale and someone issues a WMS GetFeatureInfo request, Mapserver will return feature info anyway. To me this seemed like a bug (unwanted behaviour), but I just wanted to check whether anyone is using this as a feature. Is anyone using this behaviour of Mapserver in ways that I can't think of right now? If so, please speak up. TIA. See also [1] for more info. Best regards, Bart [1] http://trac.osgeo.org/mapserver/ticket/842 -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server - arcgis 9.3 Service Error Code:service
Which version of Mapserver are you running? This was fixed in 5.2.1. Best regards, Bart Travis Kirstine wrote: I have been attempting to test a wms service with arcgis and am having difficulties. ArcGIS keeps generating the following error: "One or more layers failed to draw: test_wms: WMS service exceptions:-Service Error Code:service Service Error Description: msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing -Service Error Code:service" I looked at my log file and there is no service parameter specified in the getmap request GET /cgi-bin/test_wms?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-124.450428062007,47.8643742706868,-122.17631873153,49.8854889381483&WIDTH=799&HEIGHT=711&LAYERS=ORTHOPHOTO&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFF&TRANSPARENT=TRUE HTTP/1.0" 200 479 "http://www.esri.com/7B099B36-70DF-4D0C-9803-12574249D3CE"; "ArcGIS Client Using WinInet" I added the &SERVICE=WMS to the request and tested it in the browser and it returned the image. Is there a parameter that I am missing in my mapfile or is this just a bad request from arcgis?. -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] avl files
Hi, you can try Avein: http://sourceforge.net/projects/avein/ Best regards, Bart Paul Alarcon wrote: Hello forum does anyone know if there is a way to export the avl files from arcview to map files? thanks a lot Paul -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getfeatureinfo problems
ment: tc_vlak_geometry from "NL.IMRO.0026.SVBBU-0001" using unique geoidn using srid=28992 [Fri Jun 26 13:21:11 2009].538914 MSPOSTGISLayerOpen -- shared connection not available. [Fri Jun 26 13:21:11 2009].543298 msConnPoolRegister(geoidNL.IMRO.0026.SVBBU-0001_vlak,host=localhost user=tc_check dbname=80.101.100.35,0x9457b38) [Fri Jun 26 13:21:11 2009].543314 msPOSTGISLayerFreeItemInfo called [Fri Jun 26 13:21:11 2009].543319 in msPOSTGISLayerGetItems (find column names) [Fri Jun 26 13:21:11 2009].543329 msPOSTGISLayerParseData: unique column = geoidn, srid='28992', geom_column_name = tc_vlak_geometry, table_name="NL.IMRO.0026.SVBBU-0001" [Fri Jun 26 13:21:11 2009].545217 msPOSTGISLayerInitItemInfo called [Fri Jun 26 13:21:11 2009].545230 msPOSTGISLayerGetShape called for record = 0 [Fri Jun 26 13:21:11 2009].545239 msPOSTGISLayerParseData: unique column = geoidn, srid='28992', geom_column_name = tc_vlak_geometry, table_name="NL.IMRO.0026.SVBBU-0001" [Fri Jun 26 13:21:11 2009].545253 msPOSTGISLayerGetShape: DECLARE mycursor2 BINARY CURSOR FOR SELECT "geoidn"::text,"idealisatie"::text,"tc_multi_geometry"::text,"tc_lijn_geometry"::text,"tc_punt_geometry"::text,asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR') from "NL.IMRO.0026.SVBBU-0001" WHERE geoidn = 0 [Fri Jun 26 13:21:11 2009].547105 msFreeMap(): freeing map at 0x943d518. [Fri Jun 26 13:21:11 2009].547114 msPOSTGISLayerClose datastatement: tc_vlak_geometry from "NL.IMRO.0026.SVBBU-0001" using unique geoidn using srid=28992 [Fri Jun 26 13:21:11 2009].547119 msPOSTGISLayerClose -- query_result is NULL [Fri Jun 26 13:21:11 2009].547124 msConnPoolRelease(geoidNL.IMRO.0026.SVBBU-0001_vlak,host=localhost user=tc_check dbname=80.101.100.35,0x9457b38) Just as with the WFS problem, there is no data returning. The WFS does show the exposed columns, never any data in. I've not a clue of how to proceed, or how to get extra debug info. Please help ! MArco [Fri Jun 26 13:21:11 2009].547132 msConnPoolClose(host=localhost user=tc_check dbname=80.101.100.35,0x9457b38) ___ 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 -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer Oracle performance
Hi, I think you're right. Do you have any idea of the possible performance impact? For a workaround, how is your knowledge of the C language, maybe you can write a patch to maporaclespatial.c? Best regards, Bart micklesh wrote: Hi everyone. I did some research and found a strange thing. Hope I'm wrong, but... It seems to me that when mapserver fetches data from the database, all parameters for "where" clause of the query string (for example coordinates for MDSYS.SDO_ORDINATE_ARRAY() procedure) are string literals and not oracle's bind variables. This forces the DB to "hard parse" every query from mapserver. But hard parse of the query is very CPU intensive process, so data fetching is slower than it could be. Can anyone confirm this, and if so, is there a workaround of such a problem? Regards, Michael -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with WMS GetFeatureInfo and GML
Hi Steve, there is no way to output a geometry with WMS GetFeatureInfo right now, see also: http://trac.osgeo.org/mapserver/ticket/2989 You would better use a WFS GetFeature request. Best regards, Bart steve.tout...@inspq.qc.ca wrote: Hello, Via openlayers I launch an url to mapserver (v5.2.1) which returns a GML. See the URL and the response below. I put the layer definition of the mapfile as well. I'm not sure if my problem is on mapserver or on openlayers side. The problem is I can't add the geometry to the openlayers vector layer for some reasons. As if the geometry was null. If someone could confirm that everything is ok or not on mapserver side would help me. thanks in advance for your help, Steve * LAYER NAME "national_2006" GROUP "Vulnerabilite" CONNECTIONTYPE postgis CONNECTION "host=10.2.192.247 dbname=geo user=dbaInspq password=!dbaInspq! port=5432" DATA "geom900913 FROM lim_admin.inddef_2006 using unique gid" TYPE POLYGON STATUS off PROJECTION "init=epsg:900913" END PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_title" "Indice de défavorisation national 2006" "wms_group_title" "Vulnérabilité" 'wms_srs' 'EPSG:4326 EPSG:32198 EPSG:900913' "wms_include_items" "all" "gml_include_items" "ad,quintmat,quintsoc" 'gml_featureid' 'gid' END DUMP TRUE TOLERANCE 0 TEMPLATE '../template/query_indiceDef.html' HEADER '../template/query_header.html' FOOTER '../template/query_footer.html' INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map" END ** http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=national_2006&query_layers=national_2006&styles=&bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&srs=EPSG%3A900913&feature_count=10&x=425&y=500&height=608&width=1008&info_format=application%2Fvnd.ogc.gml *** And the response is this: http://www.opengis.net/gml"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> -8212506.502737,5697097.841728 -8204853.558950,5702856.964043 24662464 1 2 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fwd: World Wind and Map Server
urrence of an optional part; {} denotes 0 or more occurrences. name=value& One or more standard request parameter name/value pairs as defined for each operation by this International Standard. On Nov 8, 2009, at 12:29 PM, Roger André wrote: Hi Tom, Problem is pretty simple to describe actually. One of the executives at my company found this page, http://worldwind.arc.nasa.gov/java/demos/ <http://worldwind.arc.nasa.gov/java/demos/>, and decided to try out the WMS Layer manager example, WMSLayerManager.jnlp <http://worldwind.arc.nasa.gov/java/demos/WMSLayerManager.jnlp>. He liked the various layers that were available, and asked me if it would be possible to view some of our MapServer WMS layers that I publish internally. We spent a couple hours trying to figure out what URL WWJ needed, and finally determined that it needed a full GetCapabilities URL. This URL for MapServer look like this: "http://10.10.10.143/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&; <http://10.10.10.143/cgi-bin/mapserv?map=/var/www/mapfiles/precip/precip.map&REQUEST=GetCapabilities&SERVICE=WMS&;>". However, this URL does not work in WWJ. When I checked the server logs to see whether WWJ was actually trying to connect to my WMS, I found that the request it sends is truncated, and looks like this: 10.10.10.143 - - [05/Nov/2009:09:51:37 -0800] "GET /cgi-bin/mapserv?EXCEPTIONS=application/vnd.ogc.se_xml&REQUEST=GetCapabilities&SERVICE=WMS& HTTP/1.1" 200 539 "-" "Java/1.6.0_07". As you can see, the "map" parameter, which is crucial for MapServer, has been completely stripped out of the request. Without this, "map=/var/www/mapfiles/precip/precip.map" paremeter, there is no way for MapServer to determine which map to serve. Hope that helps, Roger -- On Sat, Nov 7, 2009 at 10:17 AM, Tom Gaskins <mailto:t...@tomgaskins.com>> wrote: Roger, I was sent a copy of your mapserver-list message describing a problem you're having connecting to map server from WWJ. But the message seems to be saying that you're entering a GetCapabilities URL and expecting that to generate a GetMap request to the server. Would you please tell me what the situation is and what you're trying to do. We almost never have problems connecting to conforming WMS servers. Thanks Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Filtering GetFeatureInfo requests
Not possible using WMS GetFeatureInfo, the SLD parameter will be ignored, it's not part of the GetFeatureInfo request at all. Alternatively, you can create a WFS GetFeature request with the same filter as in the SLD. Best regards, Bart > Hi list, > > At the moment I am trying to figure out how to include a filter > statement in a GetFeatureInfo request. I already tested this using a > SLD-filter which works fine with a GetMap request. However, when > combining this with a GetFeatureInfo request, I get all the features at > that point. There is no filter being applied. > > I'm puzzled. > > First of all this is the SLD filter I am using: > > > > xmlns="http://www.opengis.net/sld"; > xmlns:ogc="http://www.opengis.net/ogc"; > xmlns:xlink="http://www.w3.org/1999/xlink"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";> > > > sdo_ldw_ccw_vlk > > nvt > nvt > > > > > LOC_ZK > *WERELD* > > > > > > > > > > I use this GetMap request (works fine): > > http:///cgi-bin/mapserv.exe?map=\ldw_bsb_sdo.map&LAYERS=sd > o_ldw_ccw_vlk&STYLES=&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:28992&BBOX=9 > 1000,435250,94000,438250&WIDTH=750&HEIGHT=750&FORMAT=image/png&TRANSPARE > NT=FALSE&BGCOLOR=0xFF&SERVICE=WMS&SLD=http:///db_vla_str.xml > > > I use this GetFeatureInfo request (sadly doesn't work): > > http:///cgi-bin/mapserv.exe?map=\ldw_bsb_sdo.map&LAYERS=sd > o_ldw_ccw_vlk&STYLES=&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG:2899 > 2&BBOX=91000,435250,94000,438250&WIDTH=750&HEIGHT=750&QUERY_LAYERS=sdo_l > dw_ccw_vlk&X=325&Y=662&SERVICE=WMS&FEATURE_COUNT=25&INFO_FORMAT=applicat > ion/vnd.ogc.gml&SLD=http:///db_vla_str.xml > > I have tested this on Mapserver 5.2.1 and 5.6.3 without success. > > Has anyone got an idea how to solve this? Any help would be much > appreciated! Thanks in advance. > > Geert > > > > ___ > 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] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
Hi Geert, as you can read in the bug report it was fixed in trunk as part of ticket 2720, so it should be working on trunk (since 6 months already). Which platform are you on? What type of binaries are you using? Best regards, Bart > hi list, > > As a Mapserver user I noticed that Mapserver does not accept a filter > query where PropertyIsLike and AND are combined. In the issue tracker I > read that this is a known issue (#3064). In the issue tracker I saw that > there is a patch available, but that still some testing needs to be done > on this patch. As I'm no programmer, unfortunately I can not perform the > tests myself. > > Has anyone any knowledge if and when this patch will be available in > Mapserver? > > Cheers, > > Geert > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
Hi Geert, true, it was not fixed in the 5.6 branch, so the only way to get this fix is to use trunk (also known as Mapserver 5.7 unstable). Gateway Geomatics provides customized Windows builds as a (paid) service, so maybe they can help you to either get a patched 5.6 binary or a current trunk binary (I would advise the last option since after 5.6 a lot of things were still fixed wrt SLD and Filter support). http://www.gatewaygeomatics.com/ Best regards, Bart > Hi Bart, > > Thanks for the quick reply. We're working on Windows Server 2003 and are > using the ms4w binaries (with Mapserver 5.6.4). > > When I look through the ticket I can find that it was fixed in the trunk > with ticket 2720, but that it wasn't fixed in the 5.6 branch (that whole > trunk and branch work is a bit hazy to me). > > My tests suggests that the problem is still there in my version of > Mapserver. For example: > > This is the filter portion of the SLD: > > > > > LOC_ZK > *WERELD* > > > LOC_ZK > *DAGEN* > > > > > And here's class part from the mapfile created by mapserver: > > CLASS > NAME "class1" > EXPRESSION /.*DAGEN.*/ > STYLE > ANGLE 360 > COLOR 0 0 255 > SYMBOL 0 > WIDTH 1 > END > STYLE > ANGLE 360 > OUTLINECOLOR 255 0 0 > SYMBOL 0 > WIDTH 1 > END > END > > Any help would be appreciated. > > Cheers, > > Geert > > > -Oorspronkelijk bericht- > Van: Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] > Verzonden: woensdag 4 augustus 2010 11:07 > Aan: Huizer, G.J. > CC: mapserver-users@lists.osgeo.org > Onderwerp: Re: [mapserver-users] PropertyIsLike in combination with AND > doesn't work (progress issue 3064) > > > Hi Geert, > > as you can read in the bug report it was fixed in trunk as part of > ticket 2720, so it should be working on trunk (since 6 months already). > > Which platform are you on? What type of binaries are you using? > > Best regards, > Bart > >> hi list, >> >> As a Mapserver user I noticed that Mapserver does not accept a filter >> query where PropertyIsLike and AND are combined. In the issue tracker >> I read that this is a known issue (#3064). In the issue tracker I saw >> that there is a patch available, but that still some testing needs to >> be done on this patch. As I'm no programmer, unfortunately I can not >> perform the tests myself. >> >> Has anyone any knowledge if and when this patch will be available in >> Mapserver? >> >> Cheers, >> >> Geert >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Looking for flexible support on OpenLayers or GeoExt? Please check out > http://www.osgis.nl/support.html > > Bart van den Eijnden > OSGIS > bart...@osgis.nl > > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] draw polygons ordered by field ? (from File System)
The only way I know of is to use the sortshp utility. http://mapserver.org/utilities/sortshp.html Best regards, Bart > Hi All, > > Reading a shapefile (ESRI/MapInfo) from FS with polygons overlapping. Each > polygon is drawn with a different color based on a field called RISK. > > Is it possible define an order on how the polygons are drawn ? Say for > example to draw the polygons with field "RISK" 0 first, then with "RISK" > =1 > and so on... > > I know that using PG we can use "Select * from XXX order by RISK" > > Is there any way to do that using ESRI/MapInfo files ? > > Thanks > > -- > Sebastian E. Ovide > ___ > 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] WMS 1.3.0 questions
Yves, this is only true for the GetCapabilities operation. Not for operations such as GetMap. Best regards, Bart > Yves, > > About the version parameter value: it only says which version you want to, > not > the one the WMS serveur **should** use. If WMS server can't serve this > version, it will try the higher it can if client version > server version > or > the lower it can if client version < server version. The client version is > the > version value in the url, asked by the client. > > Regards, > > Y. > Le mercredi 10 novembre 2010 03:48:56, Jeff McKenna a écrit : >> Hello Yves, >> >> Some related thoughts: >> >> - related ticket for configuring default WMS version: >> http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to >> the CC list of that ticket and join in the discussions and testing and >> feedback, thanks >> - doc pointers: >> http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support >> ...specifically see the 2 working 1.3.0 example requests there >> >> -jeff >> >> > Hi All, >> > >> > I tried to look for an answer to the question "what do I have to do to >> > get MapServer to serve a 1.3.0 WMS by default" and I haven't found >> yet. >> > Is there anything to do in the mapfile per se or is it just by the >> > virtue of having a version >= 5.4 ? I thought the latter but then I >> > tried things like : >> > >> > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304&BBO >> > X=-5175875.27581...&WIDTH=1605&HEIGHT=316 >> > >> > >> > and >> > >> > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304&BBO >> > X=-5175875.27581...&WIDTH=1605&HEIGHT=316 >> > >> > >> > and wondered if I'm getting back the response from a 1.3.0 in the >> first >> > case and a 1.1.1 in the second case. Both images were the same, so I >> > thought everything was fine until I tried an unexisting version number >> > (e.g. 1.1.122) and still got back an image ! >> > >> > The only error message that made me think MS was indeed looking at the >> > version number is when I submitted VERSION=abc. then MS complained it >> > wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my >> > specified version number instead of what appears to be a default one ? >> > >> > Doc pointers appreciated. >> >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel (France) : +33 4 79 26 57 98 > Tel (Suisse) : +41 21 619 1031 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > Mail : yves.jaco...@camptocamp.com > http://www.camptocamp.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] BBOX Problem
Hi, please ask this question on the openlayers-users mailing list. Best regards, Bart > Hello List > > i have a problem with the bbox in openlayers. I use EPSG 4326 for my > Layers and use the openlayers options > var options = { > restrictedExtent: new OpenLayers.Bounds(-180, -60, 180, > 90), > numZoomLevels: 5, > minResolution: "auto", > minExtent: new OpenLayers.Bounds(-5, -5, 5, 5), > maxResolution: "auto", > maxExtent: new OpenLayers.Bounds(-180, -60, 180, 90) > > But everytime i load the website the request got the BBOX > -270,-120,270,150 > http://***?LAYERS=bpb_milex&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326&BBOX=-270,-120,270,150&WIDTH=930&HEIGHT=465 > > Has anybody an idea? > > Thank you > > Alex > > -- > Internationales Konversionszentrum Bonn > Bonn International Center for Conversion (BICC) GmbH > Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY > Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 > Internet: www.bicc.de, E-mail: b...@bicc.de > > Firmensitz/ Office: Bonn > Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 > Gesch?ftsf?hrer/ Director: Peter Johannes Croll > Prokurist/ Authorized Signatory: Michael Dedek > Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: > Staatssekret?r/ Deputy Minister Helmut Dockter > ___ > 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] crash on SYMBOL
Hi list, we have some faulty MAP files, which did not crash MS 5.2, however they do seem to crash MS trunk. It results in a segfault (e.g. in a WMS GetCapabilities request) when we use e.g. SYMBOL 604310017 Any idea what has changed in the meantime to cause this to segfault? TIA. Best regards, Bart ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] strange raster problem
Hi list, we have a strange problem with an ArcSDE raster layer. At certain zoom levels the pixels are very coarse. Zooming out one level the pixels are okay, however the colour is not. You can see this in the following images, the first one is zoomed out and everything is okay (except the colours since the image should be mostly black): http://www.osgis.nl/download/mapserver/rws1.png However when zooming in one level, we obtain the following situation: http://www.osgis.nl/download/mapserver/rws2.png Does anyone have an explanation for this? Using Mapserver trunk from about 3 months back and GDAL 1.7.2. This is the info from ArcCatalog about the raster layer: BODEM.DNZ_GRINDPERCENTAGE_TOT_15CMSDE Rastergeodatabase.ad.rws.nlRWS_LEZEN5151\tcpSDE.DEFAULT1161, 20211250.11, 2508.95 MBSDRcontinuousfloating point32 Bit-3.402823E+38absentlevel: 4, resampling: Nearest NeighborLZ776199911.5560208503459782.82782689098750032.827826891095694661.5560208503ETRS_1989_UTM_Zone_31NMeter (1.00)Degree (0.017453292519943299)50030.99960D_ETRS_1989skipped columns:1, rows:1, ignored value: 0.559.808799743652340.8319692929200052.8258454488402290 The LAYER definition is: LAYER CONNECTIONTYPE SDE DATA "SDE:x.ad.rws.nl,port:5151,5151,RWS_LEZEN,XX,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM,RASTER" DUMP TRUE EXTENT 459782.827826891 5694661.55602085 750032.827826891 6199911.55602085 NAME "BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925" PROCESSING 'CLOSE_CONNECTION=DEFER' PROCESSING 'DITHER=NO' PROCESSING 'NODATA=NODATA' PROCESSING 'SCALE_1=0.5,59.8087997436523' PROCESSING 'BANDS=1' PROCESSING 'LOAD_FULL_RES_IMAGE=NO' PROCESSING 'LOAD_WHOLE_IMAGE=NO' SIZEUNITS PIXELS UNITS METERS STATUS ON TEMPLATE 'blank.html' TOLERANCE 5 TOLERANCEUNITS PIXELS TYPE RASTER PROJECTION 'init=epsg:25831' END METADATA 'wms_title' 'Grindpercentage, stretched' 'wms_layer_group' '/Grindpercentage_ NCP' 'wms_metadataurl_format' 'text/xml' 'wms_metadataurl_href' 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' 'wms_metadataurl_type' 'TC211' 'wcs_abstract' 'noordzee grind en zand raster' 'wcs_bandcount' '1' # 'wcs_description' 'noordzee grind en zand raster' # Optional 'wcs_extent' '459782.827826891,5694661.55602085,750032.827826891,6199911.55602085' 'wcs_formats' 'GTiff,MrSID,ECW' 'wcs_keywords' 'RWS,Rijkswaterstaat,noordzee grind en zand raster,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' 'wcs_label' 'Grindpercentage, stretched' # Required 'wcs_metadatalink_format' 'text/xml' 'wcs_metadatalink_href' 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' 'wcs_metadatalink_type' 'TC211' 'wcs_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' # 'wcs_nativeformat' 'Raster' # Optional 'wcs_rangeset_label' 'Grindpercentage, stretched' 'wcs_rangeset_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' END PROCESSING 'SCALE_BUCKETS=256' CLASS STYLE COLORRANGE 0 0 0 255 255 255 DATARANGE -4.81972160476045 6.48366019060046 RANGEITEM "pixel" END END END TIA. Best regards, Bart ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: strange raster problem
We finally identified this issue, it seems that the SCALE_1 processing directive does not work in case of 1 band images? Using SCALE instead of SCALE_1 did the trick. Is this a known issue/limitation? Best regards, Bart > Hi list, > > we have a strange problem with an ArcSDE raster layer. At certain zoom > levels the pixels are very coarse. Zooming out one level the pixels are > okay, however the colour is not. > > You can see this in the following images, the first one is zoomed out and > everything is okay (except the colours since the image should be mostly > black): > > http://www.osgis.nl/download/mapserver/rws1.png > > However when zooming in one level, we obtain the following situation: > > http://www.osgis.nl/download/mapserver/rws2.png > > Does anyone have an explanation for this? Using Mapserver trunk from about > 3 months back and GDAL 1.7.2. > > This is the info from ArcCatalog about the raster layer: > > BODEM.DNZ_GRINDPERCENTAGE_TOT_15CMSDE > Rastergeodatabase.ad.rws.nlRWS_LEZEN5151\tcpSDE.DEFAULT1161, > 20211250.11, > 2508.95 > MBSDRcontinuousfloating > point32 > Bit-3.402823E+38absentlevel: > 4, resampling: Nearest > NeighborLZ776199911.5560208503459782.82782689098750032.827826891095694661.5560208503ETRS_1989_UTM_Zone_31NMeter > (1.00)Degree > (0.017453292519943299)50030.99960D_ETRS_1989skipped > columns:1, rows:1, ignored value: > 0.559.808799743652340.8319692929200052.8258454488402290 > > The LAYER definition is: > > LAYER > CONNECTIONTYPE SDE > DATA > "SDE:x.ad.rws.nl,port:5151,5151,RWS_LEZEN,XX,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM,RASTER" > DUMP TRUE > EXTENT 459782.827826891 5694661.55602085 750032.827826891 > 6199911.55602085 > NAME "BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925" > PROCESSING 'CLOSE_CONNECTION=DEFER' > PROCESSING 'DITHER=NO' > PROCESSING 'NODATA=NODATA' > PROCESSING 'SCALE_1=0.5,59.8087997436523' > PROCESSING 'BANDS=1' > PROCESSING 'LOAD_FULL_RES_IMAGE=NO' > PROCESSING 'LOAD_WHOLE_IMAGE=NO' > SIZEUNITS PIXELS > UNITS METERS > STATUS ON > TEMPLATE 'blank.html' > TOLERANCE 5 > TOLERANCEUNITS PIXELS > TYPE RASTER > PROJECTION > 'init=epsg:25831' > END > METADATA > 'wms_title' 'Grindpercentage, stretched' > 'wms_layer_group' '/Grindpercentage_ NCP' > 'wms_metadataurl_format' 'text/xml' > 'wms_metadataurl_href' > 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' > 'wms_metadataurl_type' 'TC211' > 'wcs_abstract' 'noordzee grind en zand raster' > 'wcs_bandcount' '1' > # 'wcs_description' 'noordzee grind en zand raster' # Optional > 'wcs_extent' > '459782.827826891,5694661.55602085,750032.827826891,6199911.55602085' > 'wcs_formats' 'GTiff,MrSID,ECW' > 'wcs_keywords' 'RWS,Rijkswaterstaat,noordzee grind en zand > raster,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' > 'wcs_label' 'Grindpercentage, stretched' # Required > 'wcs_metadatalink_format' 'text/xml' > 'wcs_metadatalink_href' > 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' > 'wcs_metadatalink_type' 'TC211' > 'wcs_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' > # 'wcs_nativeformat' 'Raster' # Optional > 'wcs_rangeset_label' 'Grindpercentage, stretched' > 'wcs_rangeset_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' > END > PROCESSING 'SCALE_BUCKETS=256' > CLASS > STYLE > COLORRANGE 0 0 0 255 255 255 > DATARANGE -4.81972160476045 6.48366019060046 > RANGEITEM "pixel" > END > END > END > > TIA. > > Best regards, > Bart > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] question on layer projection and WMS
Hi Reinoud, I do have a PROJECTION block at the MAP object, as well as WMS_SRS METADATA in my LAYERs. So I am quite sure the warning is about the missing LAYER PROJECTION block. But as you said, this should not be needed anymore, and the warning should be updated to reflect this. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: Reinoud Bokhorst <[EMAIL PROTECTED]> Naar: Bart van den Eijnden <[EMAIL PROTECTED]> Cc: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] question on layer projection and WMS Datum: 11/02/08 06:03 > Hi Bart, > By default, layers inherit the projection of its parent object. Usually the projection of the MAP object. (don't know since when it is like this but I have not known it differently...). > > The warning indicates that you have not specified at least one of the named projection parameters in your mapfile that Mapserver needs to generate the information in the capabilities. Have you? > > Regards, > Reinoud > > > Bart van den Eijnden wrote: > > Hi list, > > > > I've always thought it was mandatory to have a LAYER PROJECTION block > > for a layer in a WMS service. > > > > Did something change with respect to this requirement, since it seems > > you can leave out the LAYER PROJECTION (at least since 4.10) and it will > > still work (even reprojection), and you'll even get a performance > > increase since there are less PROJ lookups. Does it default now to the > > MAP's projection? Or what's happening? > > > > If so, should the WARNING in the capabilities not be changed/removed? > > > > <!-- WARNING: Mandatory mapfile parameter '(at least one of) > > MAP.PROJECTION, LAYER.PROJECTION or wms_srs metadata' was missing in > > this context. --> > > > > Best regards, > > Bart > > > > > > > > > > ___ > > 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] SLD not working
Don't use quotes around the SLD URL. &SLD=http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: Paul McCullough <[EMAIL PROTECTED]> Naar: mapserver-users@lists.osgeo.org Onderwerp: [MAPSERVER-USERS] SLD not working Datum: 13/02/08 23:16 > > All, > > I am new to map server and I cannot get an SLD to work. > I found posts similar to mine - none helped. > The SLD works fine in geoserver so I suspect my mapserver config (3 days > old). > > Here is my URL on one line: > http://10.1.15.68/cgi-bin/mapserv.exe?map=/ms4w/maps/map.map&LAYERS=shore_extent&UNITS=dd&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-122.4269998083,37.752500096,-122.3644997124,37.815000192&WIDTH=256&HEIGHT=256&PROJECTION=EPSG%3A4326&SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml"&; > > Here is my URL formatted nicely for your inspection: > http://10.1.15.68/cgi-bin/mapserv.exe > ?map=/ms4w/maps/map.map > &LAYERS=shore_extent > &UNITS=dd > &SERVICE=WMS > &VERSION=1.1.1 > &REQUEST=GetMap > &STYLES= > &FORMAT=image%2Fjpeg > &SRS=EPSG%3A4326 > &BBOX=-122.4269998083,37.752500096,-122.3644997124,37.815000192 > &WIDTH=256 > &HEIGHT=256 > &PROJECTION=EPSG%3A4326 > &SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml"; > & > > Here is my map file: > MAP > IMAGECOLOR 180 180 250 > IMAGETYPE PNG24 > UNITS DD > WEB > IMAGEPATH "/tmp/" > IMAGEURL "tmp/" > METADATA > "wms_title" "a wms title" > "wms_srs" "EPSG:4326" > END > END > PROJECTION > "init=EPSG:4326" > END > LAYER > NAME "shore_extent" > DEBUG ON > GROUP "Selected" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=postgres dbname=postgis host=localhost > port=5432" > DATA "the_geom from shoreext" > TYPE POLYGON > STATUS DEFAULT > PROJECTION > "init=EPSG:102643" > END > CLASS > NAME 'Shore Extent' > METADATA > "wms_sld_body" "AUTO" > END > # I have tried this style section commented in and out > STYLE > OUTLINECOLOR 100 100 100 > COLOR 200 200 200 > END > END > END > END > > Here is the SLD > <?xml version="1.0" encoding="UTF-8"?> > <sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld"; > xmlns:ogc="http://www.opengis.net/ogc"; > xmlns:gml="http://www.opengis.net/gml"; version="1.0.0"> > <sld:UserLayer> > <sld:LayerFeatureConstraints> > <sld:FeatureTypeConstraint/> > </sld:LayerFeatureConstraints> > <sld:UserStyle> > <sld:Name>Default Styler</sld:Name> > <sld:Title>Default Styler</sld:Title> > <sld:Abstract/> > <sld:FeatureTypeStyle> > <sld:Name>simple</sld:Name> > <sld:Title>title</sld:Title> > <sld:Abstract>abstract</sld:Abstract> > <sld:FeatureTypeName>shoreext</sld:FeatureTypeName> > > <sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier> > <sld:Rule> > <sld:Name>name</sld:Name> > <sld:Title>title</sld:Title> > <sld:Abstract>Abstract</sld:Abstract> > <sld:PolygonSymbolizer> > <sld:Fill> > <sld:CssParameter name="fill"> > <ogc:Literal>#EBE6DC</ogc:Literal> > </sld:CssParameter> > <sld:CssParameter name="fill-opacity"> > <ogc:Literal>1.0</ogc:Literal> > </sld:CssParameter> > </sld:Fill> > </sld:PolygonSymbolizer> > </sld:Rule> > </sld:FeatureTypeStyle> >
Re: [mapserver-users] WFS gml:null
What happens if you add a BBOX filter to your request? You probably need to specify the coordinates in the SRS of your LAYER. The BBOX filter defaults to the Map's Extent which could be why it's returning 0 features since of the projection difference. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: Milo van der Linden <[EMAIL PROTECTED]> Naar: mapserver-users Onderwerp: [mapserver-users] WFS gml:null Datum: 18/02/08 10:39 > Hello list! > > I have been surfing the list all morning looking for a solution on why > my mapserver is returning a gml:null. > > Couldn't find any documentation. > > The problem: > > I do a WFS request on a mapfile that contains a esri shapefile. The > layer I request has a different SRS than the main map. > > http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen > > it returns > > <?xml version='1.0' encoding="ISO-8859-1" ?> > <wfs:FeatureCollection >xmlns:ms="http://mapserver.gis.umn.edu/mapserver"; >xmlns:wfs="http://www.opengis.net/wfs"; >xmlns:gml="http://www.opengis.net/gml"; >xmlns:ogc="http://www.opengis.net/ogc"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >http://mapserver.gis.umn.edu/mapserver http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=percelen&OUTPUTFORMAT=XMLSCHEMA">; ><gml:boundedBy> > <gml:null>missing</gml:null> ></gml:boundedBy> > </wfs:FeatureCollection> > > > > Here is my layer definition. > > The problem is whatever I do, whether I set wfs_extent or not, it keeps > returning gml:null > > LAYER > NAME 'percelen' > TYPE POLYGON > DEBUG ON > TOLERANCE 1 > DUMP TRUE > TEMPLATE 'ttt' > DATA '..mapdatardapercelen_laag_poly_merged.shp' > METADATA > "ows_title" "percelen" > "ows_srs" "EPSG:28992" > "gml_featureid" "id" ##REQUIRED > "wms_feature_info_mime_type" "text/html" > "ows_feature_info_mime_type" "text/html" > "wms_include_items" > "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" > "gml_include_items" > "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" > "gml_NEWFIELD2_alias" "Kadastraleaanduiding" > "gml_NEWFIELD3_alias" "Adres" > "gml_NEWFIELD1_alias" "Eigenaar" > "gml_HECTARES_alias" "Oppervlakte(Ha)" > "gml_AREA_alias" "Oppervlakte(m)" > "gml_PERIMETER_alias" "Omtrek(m)" > END > STATUS ON > #TRANSPARENCY 100 > PROJECTION > "init=epsg:28992" > END > CLASS >NAME '' >STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 180 208 208 > #COLOR 180 208 208 >END > END > END > > ___ > 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 consuming 100% CPU
It is because Mapserver cannot use any attribute indexes on the DBF. Put your shapefile in a spatial database like PostGIS I would suggest and create attribute indexes. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: Paul Spencer <[EMAIL PROTECTED]> Naar: Desarrollo Desarrollo <[EMAIL PROTECTED]> Cc: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU Datum: 21/02/08 11:09 > See: > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > http://mapserver.gis.umn.edu/docs/howto/optimizevector > http://mapserver.gis.umn.edu/docs/howto/tileindex > > Cheers > > Paul > > On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote: > > > Hi, > > > >I am developing an application with MapServer v2.2.7 with > > Apache on Windows XP, but I have a serious problem, below I > > describe it: > > > > Using Navteq demo maps from Paris, the Streets.shp have around > > 50 line strings features, when mapserver renders the layer > > without using DBF data (only draw lines) everything is OK and fast, > > but when mapserver needs to access to the DBF to render labels or > > use expressions to filter data, mapserver starts to consuming 100% > > CPU and nothing is rendered after to spends a long time. > > > > Using Teleatlas demo maps for a medium city of Spain, the Street.shp > > with around 11000 line strings features doesn't show any trouble and > > mapserver renders the images OK and fast even accessing to DBF to > > render labels > > > > Could somebody help me with this problem? Why does it happen? How do > > I solve it? > > > > > > Thank you very much. > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > ___ > 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] combine many georeferenced tifs in one layer
You need to create a tileindex using gdaltindex, and then reference that tileindex in your layer. See the RASTER HOWTO for details, chapter 4: http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: mapserver-users@lists.osgeo.org Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 08:45 > Hello everyone! > > I'm just getting started with Mapserver and have worked my way through > the tutorial made by Pericles S. Nacionales. Now I have started to work > on my own mapserver application but am experiencing some problems. > > I have a shapefile of my hometown which I use as the background layer. > Now I want to add Raster Data, I have 50 georeferenced tif tiles of the > area. I could add them in an own layer each but I would rather like all > these tiffs to be in one layer. Is there a way to tell mapserver to use > all tiffs in a folder for a layer? If not, what would be the best way to > combine these tiffs into one big image? > > I hope you can help me out :) > > Best Regards > Janosch > > > > Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist über diese > E-Mail-Adresse derzeit noch nicht möglich. > > > > ___ > 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] combine many georeferenced tifs in one layer
You can do the following things to speed up performance: * create a spatial index on your tileindex shapefile with shptree (also make sure you reference your TILEINDEX in the MAP file without the .shp suffix) * create overviews in the tiff files using gdaladdo Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: mapserver-users@lists.osgeo.org Onderwerp: RE: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 10:51 > Thanks a lot Bart and you too Till! > > I had some troubles with the wildcards (*.tif) since the gdaltindex binary from gdal.org doesn't seem to support them - although it says so in the manual. I googled a bit and found fwtools which have gdaltindex implemented as well and here the wildcards work. > > But just as I thought I get follow-up problems :) > 1) gdaltindex puts out a warning when processing my tiffs: > Warning 1:TIFFFetNormalTag:ASCII value for tag "copyright" contains null byte in value; value incorrectly truncated during reading due to implementation limitations > > But luckily that doesn't seem to influence the result. Still I would like to know what it is trying to tell me and google doesn't know :) > > 2) when loading the layer it takes at least 20seconds for mapserver to show it. I understand it is because of big amount of data? (50files, all in all 40MB) Is there any way to speed this up? > > Thank you very much for your help! > > Janosch > > > > -Ursprüngliche Nachricht- > Von: Bart van den Eijnden (OSGIS) [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 10. März 2008 11:49 > An: Skrobek, Janosch; mapserver-users@lists.osgeo.org > Betreff: Re: [mapserver-users] combine many georeferenced tifs in one layer > > You need to create a tileindex using gdaltindex, and then reference that > tileindex in your layer. > > See the RASTER HOWTO for details, chapter 4: > > http://mapserver.gis.umn.edu/docs/howto/raster_data > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > - Oorspronkelijk bericht > Van: [EMAIL PROTECTED] > Naar: mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org> > Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer > Datum: 10/03/08 08:45 > > > Hello everyone! > > > > I'm just getting started with Mapserver and have worked my way through > > the tutorial made by Pericles S. Nacionales. Now I have started to work > > on my own mapserver application but am experiencing some problems. > > > > I have a shapefile of my hometown which I use as the background layer. > > Now I want to add Raster Data, I have 50 georeferenced tif tiles of the > > area. I could add them in an own layer each but I would rather like all > > these tiffs to be in one layer. Is there a way to tell mapserver to use > > all tiffs in a folder for a layer? If not, what would be the best way to > > combine these tiffs into one big image? > > > > I hope you can help me out :) > > > > Best Regards > > Janosch > > > > > > > > > Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen > enthalten. > > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich > erhalten haben, > > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. > Das unerlaubte > > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. > Der > > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist > über diese > > E-Mail-Adresse derzeit noch nicht möglich. > > > > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist übe
Re: [mapserver-users] WMS getFields ?
Try and send an e-mail to: To remove your address from the list, send a message to: <[EMAIL PROTECTED]> If that does not work then contact the list administrator: [EMAIL PROTECTED] Best regards, Bart Marcelo Mendoza wrote: Thnx for the reply Guillaume... the clue was very clear I would do what you suggest, but the button does not work! I've been trying to unsuscribe since july-2006, but that maybe dont f*ck*ng now or care... I've sent emails everywere and got nothing else but more mails from the list. If you dont have the solution please keep yourself away form the "reply" button -if you know where is it (I can point to you if you need it), and would appreciate if you can be more original when trying to insult me... Anyway... thnx Guillaume... btw: Unsuscribe me please thnx > Date: Tue, 11 Mar 2008 21:00:46 +0100 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] WMS getFields ? > > I can't make my text bigger than yours as I don't send HTML emails, but : > > go to http://lists.osgeo.org/mailman/listinfo/mapserver-users > try to understand what's up in there (clue : unsubscribe is the last > item on the page) > > and then go to hell > > Guillaume > > Marcelo Mendoza a écrit : > > > > Unsuscribe me please... thnx > > > Todo ruedas: información práctica y todo el glamour del mundo del motor. MSN Estilo y Tendencias <http://estilo.es.msn.com/> ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS - DescribeFeatureType
Hi Guillaume, yes there is: "GML_GEOMETRY_TYPE" "multipolygon" "GML_GEOMETRIES""geometry" Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: mapserver-users@lists.osgeo.org Onderwerp: [mapserver-users] WFS - DescribeFeatureType Datum: 12/03/08 07:06 > Hi again, > > I'm trying to use describeFeatureType to retrieve type and fields of a > given layer. > While it looks right for attibute data, the GeomType is not precise : > <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" > maxOccurs="1"/> > > The only piece of information I get in there is that the Geometry is of > GeometryType, which I don't need any WFS request for ! > > Is there a specific METADATA item to add or use to be able to have the > precise type (PolygonPropertyType for instance) ? > > Thanks, > -- > Guillaume SUEUR > > > ___ > 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] WFS - DescribeFeatureType
It's because Mapserver can't know, without scanning the whole dataset, if it is multipolygon or polygon for instance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]> Cc: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] WFS - DescribeFeatureType Datum: 12/03/08 07:23 > Thanks Bart ! > As I can see, I need to set myself the geometry type, as I do it already > in the TYPE attribute of the LAYER. > > Do you know why ? > > Thanks, > > Bart van den Eijnden (OSGIS) a écrit : > > Hi Guillaume, > > > > yes there is: > > > > "GML_GEOMETRY_TYPE" "multipolygon" > > "GML_GEOMETRIES""geometry" > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > - Oorspronkelijk bericht > > Van: [EMAIL PROTECTED] > > Naar: mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org> > > Onderwerp: [mapserver-users] WFS - DescribeFeatureType > > Datum: 12/03/08 07:06 > > > >> Hi again, > >> > >> I'm trying to use describeFeatureType to retrieve type and fields of a > >> given layer. > >> While it looks right for attibute data, the GeomType is not precise : > >> <element name="msGeometry" > > type="gml:GeometryPropertyType" minOccurs="0" > >> maxOccurs="1"/> > >> > >> The only piece of information I get in there is that the Geometry is of > >> GeometryType, which I don't need any WFS request for ! > >> > >> Is there a specific METADATA item to add or use to be able to have the > >> precise type (PolygonPropertyType for instance) ? > >> > >> Thanks, > >> -- > >> Guillaume SUEUR > >> > >> > >> ___ > >> mapserver-users mailing list > >> mapserver-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > > > > > > > > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ?
See: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38 It is implemented, but directly in Mapserver, not in OGR. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: [EMAIL PROTECTED] Naar: MAPSERVER-L Onderwerp: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ? Datum: 13/03/08 07:46 > Is support for MS/SQL 2008 Spatial in Mapserver, or rather GDAL/OGR, > already implemented, or if not, scheduled to be in the near future ? > > From what I can read, MS/SQL2008 supports importing WKB, and maybe WKT, > and stores it natively. > > Furthermore, MS/SQL 2008 supports two different spatial datatypes, > GEOMETRY and GEOGRAPHY. Will possible support only be for GEOMETRY, or > for both ? > > And no, neither PostGIS nor MySQL are unfortunately options for me :-) > > -- > > Best regards / Med venlig hilsen > Lars I. Nielsen > GIS & DB Integrator > GisPro > > ___ > 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] WMS and IWS
Maybe Mapserver is encoding the , in the BBOX? See: http://trac.osgeo.org/mapserver/ticket/1296 Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: Jeppe Lund Andersen <[EMAIL PROTECTED]> Naar: Kralidis,Tom [Burlington] <[EMAIL PROTECTED]>, mapserver-users@lists.osgeo.org Onderwerp: RE: [mapserver-users] WMS and IWS Datum: 14/03/08 10:21 > the request look fine and works if I use it from the browser > > wms?request=GetMap&LAYERS=DDOLAND2004-25CM_DDOLAND2004-KORTAL_VEST_25CM& > REQUEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=&HEIGHT=300&QUERY_LA > YERS=DDOLAND2004-25CM_DDOLAND2004-KORTAL_VEST_25CM&VERSION=1.1.1&SRS=EPS > G:25832&WIDTH=400&BBOX=478800,6327725,479800,6328475&TRANSPARENT=TRUE&EX > CEPTIONS=application/vnd.ogc.se_inimage > > > > > > -Original Message- > > From: Kralidis,Tom [Burlington] [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 14, 2008 1:10 PM > > To: Jeppe Lund Andersen; mapserver-users@lists.osgeo.org > > Subject: RE: [mapserver-users] WMS and IWS > > > > > > What does your WMS GetMap request look like? Can you check > > your web server logfiles (I'm guessing you have access to > > these, as you have access to the IWS logfile). > > > > ..Tom > > > > > > > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Jeppe Lund Andersen > > Sent: 14 March, 2008 8:05 AM > > To: mapserver-users@lists.osgeo.org > > Subject: [mapserver-users] WMS and IWS > > > > > > > > Hello all > > > > iam trying to get a map from a WMS server that is > > runned by a Image Web Server (IWS) > > but when I try I dont get any image > > and if I look in the IWS log file it say > > etError() Invalid bounding box > > > > when I use it against another wms that is not an WMS on > > a IWS server it works fine > > > > anyone who have tryid it and knows how to fix it > > > > Med venlig hilsen > > > > Jeppe Lund Andersen > > > > > > > ___ > 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] WG: To get WFS data for more than one SRS
The WFS 1.0 spec that Mapserver implements only deals with the use-case of delivering data in the native SRS. IIRC WFS 1.1 introduced reprojection of data. Best regards, Bart Arnd Wippermann wrote: Hi, Looking in the documentation, it should be possible to declare in the WEB META Block 'wfs_srs' for more than one SRS to deliver the WFS data for these projections. But when I use this feature, I get no data at all. It works only with one SRS. That means, that I must have one mapfile for each projection I want to deliver. I'm using Mapserver 4.10 and in my mapfile I have one projection in the WEB META Block 'wfs_srs' and one in the LAYER PROJECTION Block declared. That's the only way to get the data. Is this a known behaviour or make I something wrong? Mit freundlichen Grüssen Arnd Wippermann http://gis.ibbeck.de/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] First Steps in mapserver
Use (double) quotes around your HEADER and TEMPLATES values. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: deegree deegree <[EMAIL PROTECTED]> Naar: mapserver-users@lists.osgeo.org Onderwerp: [mapserver-users] First Steps in mapserver Datum: 01/04/08 06:51 > Hi!!! > > I'm starting to work with mapserver in Windows. And I find the next error: > > > loadWeb(): Unknown identifier. Parsing error near (C):(line 1) > > I don't find the answer for this mistake. > > I enclose below the code, that I think it doesn't work > > WEB > HEADER ms4w/apps/siglibre/templates/header.html > TEMPLATE ms4w/apps/siglibre/index.html > FOOTER 'ms4w/apps/siglibre/templates/footer_querymap.html' > MINSCALE 1000 > MAXSCALE 400 > IMAGEPATH "/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > > Thanks > > > > > > ___ > 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] How do I make a shapefile polygon thicker within UMN Mapserver
See the FAQ under section How do I set line width in my maps? http://mapserver.gis.umn.edu/docs/faq Best regards, Bart John Mitchell wrote: Hi, How do I make a shapefile polygon thicker within UMN Mapserver? I have listed below the layer that correctly displays the outlines contained within the shapefile, but I can't figure out how to make the polygon outlines thicker. LAYER # name of layer NAME stlouisxdrive GROUP "gv:stlouisxdrive" PROJECTION "init=epsg:26915" END # what type of data is this? TYPE POLYGON DATA "C:/TEMP/64Resolution" # always returned with interface STATUS ON CLASS OUTLINECOLOR 255 0 0 END END -- John J. Mitchell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] To WFS, WMS or to WCS
Hi Sarel, I can probably explain it in a few sentences. WMS is a web mapping service, so it is meant to render an image of data, be it vector or raster data. It only gives you back an image representation of your data. WFS is a web feature service, it is meant to deliver the features (in vector format) to the client, so the "raw" data. The vector format is mostly GML (Geography Markup Language). WCS is a web coverage service, it is the raster version of WFS, so to deliver raster coverages in a "raw" format to the client. If you only need images and a query on a point click, stick with WMS. If you need your users to actually download data, you will need WFS + WCS. There is also a thing called SLD WMS (Styled Layer Descriptor), where the WMS client can change the symbology of the map, and get an image back in different colors/patterns etc. than the default one advertized by the service. Hope this helps. If you have further specific questions, don't hesitate to ask. Best regards, Bart Sarel Coetzer wrote: Hi Is there anywhere a brief explanation of the deferent types of map services such as WFS, WMS and WCS. What each service does differently then the other and how to identify which one would be the correct service to use for a specific application. I have read the various how to's on the wiki but I am trying to find a one page comparison of capabilities/advantages or disadvantages of these various services. Regards Sarel Regards Sarel -- "http://sarelgis.blogspot.com/"; ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] To WFS, WMS or to WCS
Hi Sarel, please cc the list since it might be useful for other people searching the archives one day. 1) AFAIK WMS server does not generate any images in the temp dir when using Mapserver in CGI mode. The WMS client in Mapserver does (so if you use remote WMS layers). I don't think WFS and WCS server store temporary images, but WFS client will store the file. 2) yes, you can use the same MAP file, see the OGC web services workshop. 3) it is not different, it just means the output format differs (so GML for WFS instead of e.g. image/png for WMS), the source data can be the same. 4) I am unaware of any KML support in Mapserver at the moment. Best regards, Bart Sarel Coetzer wrote: Thanks for the help Bart Yes, I do have some questions. - WMS creates a lot of images in my temp folder (I have a batch files cleaning this out regularly ), does WCS/WFS create any temp images? - Would one mapfile be able to host all tree services? - For my MS WMS am thinking about using the FWTools to export my postGIS layers from server to client (clients format choice shpfile,mapinfo or kml), how would WCS or WFS handle this differently? - Last one (sorry!) What type of service does KMLMapsever require, I have tried spitting out KML but I get an error in Google earth saying it has lost the network connection. Many thanks Regards Sarel On Tue, May 13, 2008 at 10:27 AM, Bart van den Eijnden (OSGIS) <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi Sarel, I can probably explain it in a few sentences. WMS is a web mapping service, so it is meant to render an image of data, be it vector or raster data. It only gives you back an image representation of your data. WFS is a web feature service, it is meant to deliver the features (in vector format) to the client, so the "raw" data. The vector format is mostly GML (Geography Markup Language). WCS is a web coverage service, it is the raster version of WFS, so to deliver raster coverages in a "raw" format to the client. If you only need images and a query on a point click, stick with WMS. If you need your users to actually download data, you will need WFS + WCS. There is also a thing called SLD WMS (Styled Layer Descriptor), where the WMS client can change the symbology of the map, and get an image back in different colors/patterns etc. than the default one advertized by the service. Hope this helps. If you have further specific questions, don't hesitate to ask. Best regards, Bart Sarel Coetzer wrote: Hi Is there anywhere a brief explanation of the deferent types of map services such as WFS, WMS and WCS. What each service does differently then the other and how to identify which one would be the correct service to use for a specific application. I have read the various how to's on the wiki but I am trying to find a one page comparison of capabilities/advantages or disadvantages of these various services. Regards Sarel Regards Sarel -- "http://sarelgis.blogspot.com/"; ___ mapserver-users mailing list mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> http://www.osgis.nl -- "http://sarelgis.blogspot.com/"; -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getCapabilities problems
That's logical, since OGC did not define the mime-type as text/xml, but as application/vnd.ogc.wms_xml instead, so browsers have no clue what to do with it, so present the download dialog. You can probably configure your browser to display it as XML though. Best regards, Bart Stefan Schwarzer wrote: my getCapabilities request seems to have a problem... But I have no idea why. I've reduced the whole thing on a couple of lines (see below), but still it doesn't work. Can anyone give me a hint why that would be? so, it seems to be correct; it just doesn't display the XML file in my browser(s) (Safari, Firefox)... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] testing mapserver large files rendering improvements
Want to toss in my 2 cents as well. I really find it a PITA what can happen if your qix file is out of sync with your shapefile. Very unpredictable things can happen, so I even find this a bigger problem than no qix file at all to be honest. A msDebug for this would be very much welcome. TatukGIS does the same when it opens up a shapefile, it checks if the spatial index is up to date and existing, if not it will update/create it. I think this makes sense, and a compile option would be a reasonable way to control this. A few questions though: 1) how will Mapserver know by default which depth to use for the index? On large point shapefiles the default depth can result in negative performance. 2) currently shp2img does not report any error when it does not have write permission on Linux, but I guess the new approach will first check write permission before doing any analytics? So it might make sense to have a layer setting to overrule the default depth? Or to overrule automatic creation at all for a specific layer? Best regards, Bart Stephen Woodbridge wrote: Paul, I think this is the best option because it gives control to the package builders and anyone that is a power user. I would also like to see msdebug report missing qix files. This is a valuable tuning tools for power users. Thanks, -Steve Paul Ramsey wrote: I have another "third way" option, which would be a compile-time directive (--with-auto-qix) so that packagers can make dummy-friendly builds if they so desire. ?? P On Thu, May 15, 2008 at 9:25 AM, Jeff McKenna <[EMAIL PROTECTED]> wrote: My vote is for Paul's default qix creation option, by MapServer. Let's make life easy for those beginner Windows users. -jeff On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: Daniel Morissette wrote: Guillaume Sueur wrote: In my mind, we should do the right thing by default, and give the power users the option to opt out, rather than forcing everyone to become a power user to achieve something as basic as indexed file access. +1 for this approach The right thing to do is not the same in everyone's eyes. Folks, I'm also against mapserver automatically creating .qix files, for the reasons Daniel and others have given. I'd add that current shapefile update tools (including he mapscript shapefile writing code, Shapelib and OGR) do *not* update .qix files. If secretly create a .qix file for a shapefile that is being periodically updated all hell is likely to break out. BTW, .qix files can be *relatively* large. For a shapefile of points, the .qix can easily be bigger than the .shx file. Best regards, -- ___ 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 -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo from PostGis database
You shouldn't use the geometry column as the unique column (USING UNIQUE X). Try an integer type column for that. Best regards, Bart SAEZ Laurent - CETE Méditerr./DI/ETER wrote: Hi list, I'm trying to access data fields using getfeatureinfo from a PostGIS database. I've read some articles about it, but it seems that I'm a newbie. I've no problem with data access when I do some getmap requests. Here is a part of my mapfile : LAYER NAME"bdparcellaire_numero" TYPEannotation STATUS ON DUMP TRUE TEMPLATE "blank.html" MINSCALE 100 MAXSCALE 1 CONNECTIONTYPEpostgis CONNECTION"user=toto password=toto dbname=bdparcellaire_2007 host=172.23.208.134 port=5432" DATA"the_geom FROM (select numero, feuille, the_geom FROM localisant) as foo USING UNIQUE the_geom USING SRID=27582" LABELITEM"numero" CLASS LABEL TYPE TRUETYPE WRAP "#" COLOR 0 0 0 OUTLINECOLOR 254 254 254 FONT arial SIZE 9 POSITION CC FORCE false PARTIALS false END END METADATA WMS_TITLE "Numéros de parcelle (Données BD Parcellaire® - Copyright IGN)" wms_abstract "Visible entre les échelles 1/100 et 1/10 000"wms_srs "EPSG:27582 EPSG:27581 EPSG:27583 EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 EPSG:4326" wms_extent "47650 1620400 1197850 2677450" WMS_ENCODING "UTF-8" GML_INCLUDE_ITEMS "all" END END When I try this getfeatureinfo request, the XML returned is not complete : The request : http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A27582&WIDTH=600&HEIGHT=400&BBOX=643470,1743572,643590,1743652&LAYERS=bdparcellaire_numero&STYLES=&FORMAT=image%2Fpng&QUERY_LAYERS=bdparcellaire_numero&X=167&Y=175&INFO_FORMAT=application%2Fvnd.ogc.gml&FEATURE_COUNT=999 The entire XML : http://www.opengis.net/gml"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> Why it doesn't work ? I know that it should be in my DATA object in my mapfile, but I don't know what exactly... Thanks a lot... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users