[mapserver-users] different maps
I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as layers in the same image (overlapped). I need that the page manage different zones, each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one map variable global to the web page. I developed a page with multiple image tags, but all of them are associated with the same map variable, so they move altogether in the same map. Thanks in advance, Leticia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] different maps
I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as layers in the same image (overlapped). I need that the page manage different zones, each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one map variable global to the web page. I developed a page with multiple image tags, but all of them are associated with the same map variable, so they move altogether in the same map. Thanks in advance, Leticia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] different maps
Leticia, If each one is a separate map and handled differently, just create N separate calls to mapserver. You could do this with OpenLayers and create multiple map instances each calling mapserver with different map attributes (mapfile, zoom, layers). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/9/11 5:46 AM, Leticia Gomez lgo...@itba.edu.ar wrote: I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as ³layers² in the same image (overlapped). I need that the page manage different ³zones², each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one ³map variable² global to the web page. I developed a page with multiple image tags, but all of them are associated with the same ³map variable², so they move altogether in the same map. Thanks in advance, Leticia ___ 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] different maps
Thanks Michael, so it might be implemented with Mapscript (no strictly cgi). Is this right? Leticia From: Smith, Michael ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: jueves, 09 de junio de 2011 7:51 To: Leticia Gomez; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] different maps Leticia, If each one is a separate map and handled differently, just create N separate calls to mapserver. You could do this with OpenLayers and create multiple map instances each calling mapserver with different map attributes (mapfile, zoom, layers). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/9/11 5:46 AM, Leticia Gomez lgo...@itba.edu.ar wrote: I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as layers in the same image (overlapped). I need that the page manage different zones, each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one map variable global to the web page. I developed a page with multiple image tags, but all of them are associated with the same map variable, so they move altogether in the same map. Thanks in advance, Leticia _ ___ 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] ENC: Openlayers Identify Problem
Hello all, I´m from Brasil and i have a problem with the openlayers identify my query its perfect in the mapfile and the layer file but the query result :msQueryByPoint(): Search returned no results. No matching record(s) found.My url is : http://localhost/cgi-bin/mapserv.exe?img.x=762 http://localhost/cgi-bin/mapserv.exe?img.x=762img.y=433mode=querylayer=g tile_topodatamap=C:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-m ap_004.mapimgext=-104.42206737491+-39.398253504337+-2.9560446250874+11.3982 53504337 img.y=433mode=querylayer=gtile_topodatamap=C:/var/webmapit/mapserver.d/m apfiles/users/sntgeo/sntgeo-map_004.mapimgext=-104.42206737491+-39.39825350 4337+-2.9560446250874+11.398253504337 Part of my map file : NAME sntgeo-map_004_ EXTENT -95.883434 -35.000146 -11.494678 7.000146 FONTSET /var/webmapit/mapserver.d/fonts/wmi_defaultFontSet.cfg CONFIG MS_ERRORFILE c:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.errors.log DEBUG5 IMAGETYPE AGGPNG24 MAXSIZE4096 #-- Larg/Alt maxima da imagem de saida 2384 = A0 SHAPEPATH /var/webmapit/mapserver.d/mapfiles/users SYMBOLSET /var/webmapit/mapserver.d/symbols/wmi_defaultSymbolSet.sym UNITS DD INCLUDE /var/webmapit/mapserver.d/mapfiles/include/wmi_map_outputformats.map INCLUDE /var/webmapit/mapserver.d/mapfiles/include/wmi_projection_4326.map WEB IMAGEPATH /var/www/html/tmp/ #--alterar no servidor IMAGEURL /tmp/ #--alterar no servidor HEADER topodata_web_header.html FOOTER topodata_web_footer.html Layer file: ... HEADER C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_header.html TEMPLATE C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_temp.html FOOTER C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_footer.html END Índex: // INI: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick }, this.handlerOptions ); }, onClick: function(evt) { var tempXY = explodeArray(evt.xy,','); var aX = explodeArray(tempXY[0],'='); var aY = explodeArray(tempXY[1],'='); var tmpPixel = new OpenLayers.Pixel(); tmpPixel.x = aX[1]; tmpPixel.y = aY[1]; var aLonLat = map.getLonLatFromViewPortPx(tmpPixel); doIdentify(aLonLat.lon,aLonLat.lat, aX[1], aY[1] ); //alert('X=' + aLonLat.lon + ' Y=' + aLonLat.lat); } }); var controls; controls = { single: new OpenLayers.Control.Click({ handlerOptions: { single: true } }) }; var props = document.getElementById(props); // FIM: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml . // INI - do identify... var control; for(var key in controls) { control = controls[key]; // only to route output here control.key = key; map.addControl(control); } ...
[mapserver-users] SLD behaviour changed after upgrade to Mapserver 6.0
Hi, The following part of SLD document, passed to Mapserver inside SLD_BODY, used to produce a two-part label KOODI, NIMI_FI (with comma and space between the parts). It worked with Mapserver 5.2.1 and 5.6.5. Now after upgrading into version 6.0 the result is an error: [Thu Jun 09 14:26:09 2011].652000 msShapeGetAnnotation: Expression parser error. Failed to process text expression: [KOODI], [NIMI_FI] The relevant part of SLD is this sld:TextSymbolizer sld:Label ogc:PropertyNameKOODI/ogc:PropertyName, ogc:PropertyNameNIMI_FI/ogc:PropertyName /sld:Label sld:Font sld:CssParameter name=font-familyArial/sld:CssParameter sld:CssParameter name=font-size10/sld:CssParameter /sld:Font sld:Fill sld:CssParameter name=fill#FF9900/sld:CssParameter /sld:Fill sld:Halo sld:Radius ogc:Literal3/ogc:Literal /sld:Radiussld:Fill sld:CssParameter name=fill#FF/sld:CssParameter sld:CssParameter name=fill-opacity1/sld:CssParameter /sld:Fill/sld:Halo /sld:TextSymbolizer The layer is very basic shapefile layer LAYER NAME f_areas STATUS ON DATA D:\Data\f_areas TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 3 TEMPLATE d:/program files/ms4w/apps/template.html TOLERANCEUNITS PIXELS METADATA wms_titlef_area wms_srs EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913 END CLASS NAME f_areas STYLE OUTLINECOLOR 0 50 255 WIDTH 2 END END PROJECTION init=epsg:2393 END END The SLD_BODY is still working if only one ogc:PropertyName is used for sld:Label -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] ENC: Openlayers Identify Problem
Looking at the URL it seems to be operating in image coordinates which is fine but there's no image size passed (nor one defined in the mapfile) so my guess is that MapServer can't turn that click into a real map coordinate. Try adding the imgsize variable to your query call. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Matheus Lacarini [matheus.lacar...@sntgeo.com.br] Sent: Thursday, June 09, 2011 7:02 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] ENC: Openlayers Identify Problem Hello all, I´m from Brasil and i have a problem with the openlayers identify my query its perfect in the mapfile and the layer file but the query result :msQueryByPoint(): Search returned no results. No matching record(s) found.My url is : http://localhost/cgi-bin/mapserv.exe?img.x=762img.y=433mode=querylayer=gtile_topodatamap=C:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.mapimgext=-104.42206737491+-39.398253504337+-2.9560446250874+11.398253504337 Part of my map file : NAME sntgeo-map_004_ EXTENT -95.883434 -35.000146 -11.494678 7.000146 FONTSET /var/webmapit/mapserver.d/fonts/wmi_defaultFontSet.cfg CONFIG MS_ERRORFILE c:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.errors.log DEBUG5 IMAGETYPE AGGPNG24 MAXSIZE4096 #-- Larg/Alt maxima da imagem de saida 2384 = A0 SHAPEPATH /var/webmapit/mapserver.d/mapfiles/users SYMBOLSET /var/webmapit/mapserver.d/symbols/wmi_defaultSymbolSet.sym UNITS DD INCLUDE /var/webmapit/mapserver.d/mapfiles/include/wmi_map_outputformats.map INCLUDE /var/webmapit/mapserver.d/mapfiles/include/wmi_projection_4326.map WEB IMAGEPATH /var/www/html/tmp/ #--alterar no servidor IMAGEURL /tmp/ #--alterar no servidor HEADER topodata_web_header.html FOOTER topodata_web_footer.html Layer file: ... HEADER C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_header.html TEMPLATE C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_temp.html FOOTER C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_footer.html END Índex: // INI: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.html OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick }, this.handlerOptions ); }, onClick: function(evt) { var tempXY = explodeArray(evt.xy,','); var aX = explodeArray(tempXY[0],'='); var aY = explodeArray(tempXY[1],'='); var tmpPixel = new OpenLayers.Pixel(); tmpPixel.x = aX[1]; tmpPixel.y = aY[1]; var aLonLat = map.getLonLatFromViewPortPx(tmpPixel); doIdentify(aLonLat.lon,aLonLat.lat, aX[1], aY[1] );
[mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Simple mapserver HTML template file?
I've been away from Mapserver for awhile and I'm having trouble wrapping my head, quickly, around a template file for a simple application that requires panning and zooming but no queries. Can anyone help a guy out on short notice? I can likely flesh a an example out but I'm really having trouble getting started. Thanks, Gerry -- Gerry Creager -- gerry.crea...@tamu.edu Texas Mesonet -- AATLT, Texas AM University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don’t fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Fwd: Tile of tiles with tif images
Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-02-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fwd: Tile of tiles with tif images
tile4ms only works with shapefiles as input. gdaltindex is probably what you want for TIF images. -Steve W On 6/9/2011 10:47 AM, Juan Carlos Fuchs wrote: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-02-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ 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] Problem in extent using openlayers withMapserver
Very very thanks. It worked fine. but one strange point: Why they don't easily compute this maxRsolution in their lib using with of map element (instead of supposing all map elements to be in 256*256 size)? Anyway, your helpful point is totally appreciated. From: Arnd Wippermann arnd.wipperm...@web.de To: Saka Royban sakaroy...@yahoo.com Cc: us...@openlayers.org Sent: Thu, June 9, 2011 1:59:10 AM Subject: AW: [mapserver-users] Problem in extent using openlayers withMapserver when you request MapServer via Url, then Mapserver delivers the image as defined by the mapfile (extent, imagesize) = resolution = 0.45. If you request MapServer via OpenLayers.WMS, then the mapoptions are the point. By default is the maxResolution = 1.40625 and the other resolutions are maxResolution/2^zoom. (1.40625 , 0.703125, 0.3515625, ...) map.zoomToMaxExtent() uses the resolution = 0.703125, because that is the best resolution to display maxExtent (-180,-90,180,90). For the next resolution the map would not display in whole. You can set maxResolution=0.45 in the mapoptions. Then the layer should fill the whole map. Arnd Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Saka Royban Gesendet: Mittwoch, 8. Juni 2011 15:10 An: MapServer Betreff: Re: [mapserver-users] Problem in extent using openlayers withMapserver - Forwarded Message From: Saka Royban sakaroy...@yahoo.com To: Stephen Woodbridge wood...@swoodbridge.com Sent: Wed, June 8, 2011 5:38:17 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver Thanks stephen for ur help (and sorry for bit abit latency in reply) I've already tried that, i.e. constructing map object without any argument but no result. In fact, in first step i created map without any extra argument and faced that problem and after that i added some arguments to maybe solve the problem. Any idea now? From: Stephen Woodbridge wood...@swoodbridge.com To: mapserver-users@lists.osgeo.org Sent: Sat, June 4, 2011 10:04:29 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver try just using: map = new OpenLayers.Map( 'map' ); -Steve On 6/4/2011 1:21 PM, Saka Royban wrote: Hi all. I've really got stuck in this problem and need some help as i'm a newbie using openlayers with mapserver. In mapfile i've set output to be: EXTENT -180 -90 180 90 # Geographic SIZE 800 400 IMAGECOLOR 128 128 255 when i request mapserver through URL, i recieve a complete 800*400 image, but when i use openlayers i get a 800*400 image which original map fills 512*256 of the center and other pixels are filled with IMAGECOLOR. this is my code: map = new OpenLayers.Map( 'map',{'tileSize': new OpenLayers.Size(400,400)} ); layer = new OpenLayers.Layer.MapServer( World Map, http://localhost/cgi-bin/mapserv.exe;, {map: '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, width: 800}, {singleTile: true} ); map.addLayer(layer); map.zoomToMaxExtent(); I asked this question in openlayers mailing list with no success. It sounds it is related to mapserver. Any help would be greatly appreciated Regards (also sorry if my english is not very good) ___ 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] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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] Fwd: Tile of tiles with tif images
As Steve noted, if the input is TIF, then you prob want to be using gdaltindex rather than tile4ms. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when re-tile.py does it's work it knows nothing about what province some TIF is in. For you to be able to calculate all the tiles that are in the .dbf that are in some province, and I assume you are talking about the shapefile index produced when using retile.py, you would need to do a spatial query against that dbf using some political boundary polygon. Still, I am not sure what the goal here is. are you trying to re-tile a set of TIFs to create a new group of tiles per province? On Thu, Jun 9, 2011 at 9:47 AM, Juan Carlos Fuchs fuchs.juancar...@gmail.com wrote: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-02-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ 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] upgrade Mapserver 5.4 to 6.0 (gulp!)
Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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] upgrade Mapserver 5.4 to 6.0 (gulp!)
Hi Michael I'm using Fedora 7. My main problem is the totally daunting list of libraries and other packages like GD and GDAL which have to be available or pre-compiled before you can even start compiling Mapserver 6.0. But it seems to me that most if not all of the required libraries must already be in place for Mapserver 5.4 to run (which it does), so I was hoping that someone could say don't worry, just do this Chris -Original Message- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: 09 June 2011 16:31 To: Chris Green; 'Stephen Woodbridge'; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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] upgrade Mapserver 5.4 to 6.0 (gulp!)
Chris, The packages will handle the dependencies. Install via Yum and point to the Enterprise Linux repo and it should do all the installing for you (except put the mapserv binary in your cgi-bin dir, I don't think they do that). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 6/9/11 11:38 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Hi Michael I'm using Fedora 7. My main problem is the totally daunting list of libraries and other packages like GD and GDAL which have to be available or pre-compiled before you can even start compiling Mapserver 6.0. But it seems to me that most if not all of the required libraries must already be in place for Mapserver 5.4 to run (which it does), so I was hoping that someone could say don't worry, just do this Chris -Original Message- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: 09 June 2011 16:31 To: Chris Green; 'Stephen Woodbridge'; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote: Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W ___ 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] Simple mapserver HTML template file?
I'm looking at that now. I need to understand the TEMPLATE element in the LAYER section, though. I created the basic mapfile using Qgis, and it's got a dummy value there. gc Fawcett, David (MPCA) wrote: Gerry, I would really look at OpenLayers on the client side and MapServer WMS on the server side. You could probably tweak one of the basic examples and have it up and running in about 15 minutes. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Gerry Creager Sent: Thursday, June 09, 2011 9:38 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Simple mapserver HTML template file? I've been away from Mapserver for awhile and I'm having trouble wrapping my head, quickly, around a template file for a simple application that requires panning and zooming but no queries. Can anyone help a guy out on short notice? I can likely flesh a an example out but I'm really having trouble getting started. Thanks, Gerry -- Gerry Creager -- gerry.crea...@tamu.edu Texas Mesonet -- AATLT, Texas AM University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Fwd: Tile of tiles with tif images
Hi Mark, Our Goal is to get an image catalog with auto zoom´s in a fast delivery via a web browser with the tile aproach we deliver fast images with low resolution and only the pertinent pieces in an higher resolution... Thanks for asking, any ideas? -JC -Mensaje original- De: Mark Korver [mailto:mwkor...@gmail.com] Enviado el: Jueves, 09 de Junio de 2011 12:10 p.m. Para: Juan Carlos Fuchs CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images As Steve noted, if the input is TIF, then you prob want to be using gdaltindex rather than tile4ms. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when re-tile.py does it's work it knows nothing about what province some TIF is in. For you to be able to calculate all the tiles that are in the .dbf that are in some province, and I assume you are talking about the shapefile index produced when using retile.py, you would need to do a spatial query against that dbf using some political boundary polygon. Still, I am not sure what the goal here is. are you trying to re-tile a set of TIFs to create a new group of tiles per province? On Thu, Jun 9, 2011 at 9:47 AM, Juan Carlos Fuchs fuchs.juancar...@gmail.com wrote: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 2-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ 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] Fwd: Tile of tiles with tif images
Hi Steve, Yes, that´s the point! We are traying to tile a set of tiles that refer each to a diferent Tif image We first tile each image with re-tile.py we obtain a shp file with a dbf with field LOCATION pointing to a piece of the Tif image Next we use tile4ms to put those first tiles (shp´s) in a only one tile, obtaining a new shp why will this not work? after all, we are puting a group of shp´s in a tile. _JC -Mensaje original- De: Stephen Woodbridge [mailto:wood...@swoodbridge.com] Enviado el: Jueves, 09 de Junio de 2011 11:47 a.m. Para: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images tile4ms only works with shapefiles as input. gdaltindex is probably what you want for TIF images. -Steve W On 6/9/2011 10:47 AM, Juan Carlos Fuchs wrote: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 2-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ 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] WFS intersect request
I have the following WFS intersect request that if working with GeoServer, and I'm trying to run this app with MapServer. The error I'm getting is: ows:ExceptionTextmsWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature ... I've dome some reading but not sure exactly what's supported. I have used both INTERSECT and INTERSECTS, both return the same error. Should I skip these and go with BBOX? If so, I assume I would need to get rid of the lowerCorner/upperCorner items and just list the coordinates separated by commas. Or could there be a problem with the PropertyName = SHAPE? I couldn't find doc on what this value should be. My data are either shapefiles or postgis layers. The POST request is: wfs:GetFeature resultType=hits xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; wfs:Query typeName=Municipal_Boundaries srsName=EPSG:26957 xmlns:massgis=http://massgis.state.ma.us/featuretype; ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:Intersects ogc:PropertyNameSHAPE/ogc:PropertyName gml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:26957 gml:lowerCorner149081.76574899518 163078.62572595105/gml:lowerCorner gml:upperCorner205627.85303800018 194899.95291598293/gml:upperCorner /gml:Envelope /ogc:Intersects /ogc:Filter /wfs:Query /wfs:GetFeature Thanks for any help you can provide. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Simple mapserver HTML template file?
If you aren't querying, you shouldn't need a template. All that you should need is a map/layer that can be served as a WMS. OpenLayers and the HTML page that you create to contain the OpenLayers map handle the layout. You could start with a really simple example like this and point it at your WMS. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/lite.html David. -Original Message- From: Gerry Creager [mailto:gerry.crea...@tamu.edu] Sent: Thursday, June 09, 2011 10:50 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Simple mapserver HTML template file? I'm looking at that now. I need to understand the TEMPLATE element in the LAYER section, though. I created the basic mapfile using Qgis, and it's got a dummy value there. gc Fawcett, David (MPCA) wrote: Gerry, I would really look at OpenLayers on the client side and MapServer WMS on the server side. You could probably tweak one of the basic examples and have it up and running in about 15 minutes. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Gerry Creager Sent: Thursday, June 09, 2011 9:38 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Simple mapserver HTML template file? I've been away from Mapserver for awhile and I'm having trouble wrapping my head, quickly, around a template file for a simple application that requires panning and zooming but no queries. Can anyone help a guy out on short notice? I can likely flesh a an example out but I'm really having trouble getting started. Thanks, Gerry -- Gerry Creager -- gerry.crea...@tamu.edu Texas Mesonet -- AATLT, Texas AM University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS intersect request
Hello, If you run a WFS GetCapabilities request on your server, it should tell which filters it supports, see : http://mapserver.org/ogc/filter_encoding.html#server-side Someone correct me if I'm wrong, but I think MapServer needs to be compiled with GEOS in order to do intersect filters. HTH, Alexandre On 11-06-09 12:09 PM, John Callahan wrote: I have the following WFS intersect request that if working with GeoServer, and I'm trying to run this app with MapServer. The error I'm getting is: ows:ExceptionTextmsWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature ... I've dome some reading but not sure exactly what's supported. I have used both INTERSECT and INTERSECTS, both return the same error. Should I skip these and go with BBOX? If so, I assume I would need to get rid of the lowerCorner/upperCorner items and just list the coordinates separated by commas. Or could there be a problem with the PropertyName = SHAPE? I couldn't find doc on what this value should be. My data are either shapefiles or postgis layers. The POST request is: wfs:GetFeature resultType=hits xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; wfs:Query typeName=Municipal_Boundaries srsName=EPSG:26957 xmlns:massgis=http://massgis.state.ma.us/featuretype; ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:Intersects ogc:PropertyNameSHAPE/ogc:PropertyName gml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:26957 gml:lowerCorner149081.76574899518 163078.62572595105/gml:lowerCorner gml:upperCorner205627.85303800018 194899.95291598293/gml:upperCorner /gml:Envelope /ogc:Intersects /ogc:Filter /wfs:Query /wfs:GetFeature Thanks for any help you can provide. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ 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] Re: WFS intersect request
Thanks. Yes, my server does support Intersect filter, according to the WFS GetCaps file. I'm using the latest MS4W install with MS 6. John On Thursday, June 9, 2011, Alexandre Dube ad...@mapgears.com wrote: Hello, If you run a WFS GetCapabilities request on your server, it should tell which filters it supports, see : http://mapserver.org/ogc/filter_encoding.html#server-side Someone correct me if I'm wrong, but I think MapServer needs to be compiled with GEOS in order to do intersect filters. HTH, Alexandre On 11-06-09 12:09 PM, John Callahan wrote: I have the following WFS intersect request that if working with GeoServer, and I'm trying to run this app with MapServer. The error I'm getting is: ows:ExceptionTextmsWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature ... I've dome some reading but not sure exactly what's supported. I have used both INTERSECT and INTERSECTS, both return the same error. Should I skip these and go with BBOX? If so, I assume I would need to get rid of the lowerCorner/upperCorner items and just list the coordinates separated by commas. Or could there be a problem with the PropertyName = SHAPE? I couldn't find doc on what this value should be. My data are either shapefiles or postgis layers. The POST request is: wfs:GetFeature resultType=hits xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; wfs:Query typeName=Municipal_Boundaries srsName=EPSG:26957 xmlns:massgis=http://massgis.state.ma.us/featuretype; ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:Intersects ogc:PropertyNameSHAPE/ogc:PropertyName gml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:26957 gml:lowerCorner149081.76574899518 163078.62572595105/gml:lowerCorner gml:upperCorner205627.85303800018 194899.95291598293/gml:upperCorner /gml:Envelope /ogc:Intersects /ogc:Filter /wfs:Query /wfs:GetFeature Thanks for any help you can provide. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dubé Mapgears www.mapgears.com -- *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fwd: Tile of tiles with tif images
Ok, I think there is a misunderstanding on how the commands work: [set of shapefiles] - tile4ms - one shapefile with pointers to the set [set of images] - gdaltindex - one shapefile with pointers to the set What you are trying to do is: multiple [sets of images] - to multiple shapefiles then concatentate your multiple shapefiles into a single index. Mapserver does not support indexes of indexes of files. tile4ms does not concatenate the files into a single file it creates a tileindex. You can take your multiple tif tileindexes and create a tile index for that and it can be used to display the bbox for each of the images by specifying the LAYER TYPE POLYGON in the mapfile. BUT you can not use it to display the TIF images. If you want to create one large tileindex of all your TIF files the just process them all through gdaltindex into a new tile index that contains all the original images. -Steve On 6/9/2011 11:58 AM, Fuchs Juan Carlos wrote: Hi Steve, Yes, that´s the point! We are traying to tile a set of tiles that refer each to a diferent Tif image We first tile each image with re-tile.py we obtain a shp file with a dbf with field LOCATION pointing to a piece of the Tif image Next we use tile4ms to put those first tiles (shp´s) in a only one tile, obtaining a new shp why will this not work? after all, we are puting a group of shp´s in a tile. _JC -Mensaje original- De: Stephen Woodbridge [mailto:wood...@swoodbridge.com] Enviado el: Jueves, 09 de Junio de 2011 11:47 a.m. Para: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images tile4ms only works with shapefiles as input. gdaltindex is probably what you want for TIF images. -Steve W On 6/9/2011 10:47 AM, Juan Carlos Fuchs wrote: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 2-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ 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] Fwd: Tile of tiles with tif images
Probably the part of confusion here is that there are several strategies for increasing speed with raster base-layers. One is to optimize the TIFS for use with standard WMS queries, the other is to create a TMS pyramid, which essentially amounts to pre-generating all the raster tiles before hand. optimizing WMS with a set of large TIFs involves work with the TIFS that may include changing the size by cutting them down to a small er size, changing their internal structure ( internally tiling them ) adding overviews etc. I don't use it myself, but retile.py is normally used to create a TMS pyramid, or so I thought. That means that when you serve these files you are using just HTTP to access TMSed data, not MapServer. Because you are not using MapServer to process anything this is the quickest way to serve rasters to a browser, same as Google maps etc. with openlayers client the diff is var layerName = new OpenLayers.Layer.TMS() vs var layerName = new OpenLayers.Layer.WMS() On Thu, Jun 9, 2011 at 11:04 AM, Fuchs Juan Carlos jf...@indec.mecon.gov.ar wrote: Hi Mark, Our Goal is to get an image catalog with auto zoom´s in a fast delivery via a web browser with the tile aproach we deliver fast images with low resolution and only the pertinent pieces in an higher resolution... Thanks for asking, any ideas? -JC -Mensaje original- De: Mark Korver [mailto:mwkor...@gmail.com] Enviado el: Jueves, 09 de Junio de 2011 12:10 p.m. Para: Juan Carlos Fuchs CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images As Steve noted, if the input is TIF, then you prob want to be using gdaltindex rather than tile4ms. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when re-tile.py does it's work it knows nothing about what province some TIF is in. For you to be able to calculate all the tiles that are in the .dbf that are in some province, and I assume you are talking about the shapefile index produced when using retile.py, you would need to do a spatial query against that dbf using some political boundary polygon. Still, I am not sure what the goal here is. are you trying to re-tile a set of TIFs to create a new group of tiles per province? On Thu, Jun 9, 2011 at 9:47 AM, Juan Carlos Fuchs fuchs.juancar...@gmail.com wrote: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 2-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn´t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto mgtr. -- Juan Carlos Fuchs, arqto mgtr. ___ 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] purchasing satellite imagery
Hi all. We're in process of developing robust eGov solution including GIS (using mapserver/postgis/pgrouting :) ). This municipality has 1.059 km2. Do you have any recommendation on where to purchase satellite imagery, and which scale/resolution do you recommend. Basic GIS usage is TAX calculation based on more than 70 parameters (mostly including distances to important institutions and road types etc...). This is based on vector data, but great imagery is also in client's interest. Some estimated prices per km2 would be nice, too, 'cause I need to give some numbers to the client. I've googled around, but would like some info from firsthand users. Quickbird has a resolution of 0,6 meter, but I guess that would be overkill (and overpriced for client) Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver can't write on a directory it should can
Hello, I'm executing Mapserver 5.6.4 under Apache2 in a Ubuntu 10.04 machine. I'm having problems writing log file. In the mapfile, I have: # Logging CONFIG MS_ERRORFILE /var/www/mapserver/log/mylogfile.log DEBUG 5 Any request I make gets the same answer msSetErrorFile(): General error message. Failed to open MS_ERRORFILE /var/www/mapserver/log/mylogfile.log If I change the path to /tmp/mylogfile.log it works, but then I have a similar problem with SLD: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed connect to mymachine:80; Operation now in progress) for http://mymachine/sld/polygon_simplepolygon.sld msSLDApplySLDURL: WMS server error. Could not open SLD http://mymachine/sld/polygon_simplepolygon.sld and save it in temporary file /var/www/mapfiles/4df0f886_22dd_0.sld.xml. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file IMAGEPATH and IMAGEURL are properly set in Mapfile (a writable directory and a correct url). The log directory belongs to www-data, and the SLD directory too. I made a test executing, with the www-data user, a python script that creates a file in those directories and it works. Why mapserv process can't do it? Even when I change the permissions of log directory or SLD directory to 777, mapserv can't write on them, but it can it /tmp. Why? Many thanks in advance, and best regards, -- Jorge Arévalo Internet Mobilty Division, DEIMOS jorge.arev...@deimos-space.com http://es.linkedin.com/in/jorgearevalo80 http://mobility.grupodeimos.com/ http://gis4free.wordpress.com http://geohash.org/ezjqgrgzz0g ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] purchasing satellite imagery
Where on the globe is this municipality? That may determine the availability, resolution, cost of the imagery. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Esmin Gracic Sent: Thursday, June 09, 2011 12:35 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] purchasing satellite imagery Hi all. We're in process of developing robust eGov solution including GIS (using mapserver/postgis/pgrouting :) ). This municipality has 1.059 km2. Do you have any recommendation on where to purchase satellite imagery, and which scale/resolution do you recommend. Basic GIS usage is TAX calculation based on more than 70 parameters (mostly including distances to important institutions and road types etc...). This is based on vector data, but great imagery is also in client's interest. Some estimated prices per km2 would be nice, too, 'cause I need to give some numbers to the client. I've googled around, but would like some info from firsthand users. Quickbird has a resolution of 0,6 meter, but I guess that would be overkill (and overpriced for client) Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] purchasing satellite imagery
sjenica http://en.wikipedia.org/wiki/Sjenicamunicipality, south serbia ( 43°16′N 20°00′E). On Thu, Jun 9, 2011 at 8:30 PM, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Where on the globe is this municipality? That may determine the availability, resolution, cost of the imagery. ** ** *From:* mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Esmin Gracic *Sent:* Thursday, June 09, 2011 12:35 PM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] purchasing satellite imagery ** ** Hi all. We're in process of developing robust eGov solution including GIS (using mapserver/postgis/pgrouting :) ). This municipality has 1.059 km2. Do you have any recommendation on where to purchase satellite imagery, and which scale/resolution do you recommend. Basic GIS usage is TAX calculation based on more than 70 parameters (mostly including distances to important institutions and road types etc...). This is based on vector data, but great imagery is also in client's interest. Some estimated prices per km2 would be nice, too, 'cause I need to give some numbers to the client. I've googled around, but would like some info from firsthand users. Quickbird has a resolution of 0,6 meter, but I guess that would be overkill (and overpriced for client) Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] purchasing satellite imagery
Spot Image has some cost effective imagery (up to 2.5 meter resolution), or have a look at Ikonos imagery(from SpaceTurk) at 1.0 meter. But there are other satellites (with lots of options) available, so you may want to contact a imagery reseller. Best Regards, Brent Fraser On 6/9/2011 11:34 AM, Esmin Gracic wrote: Hi all. We're in process of developing robust eGov solution including GIS (using mapserver/postgis/pgrouting :) ). This municipality has 1.059 km2. Do you have any recommendation on where to purchase satellite imagery, and which scale/resolution do you recommend. Basic GIS usage is TAX calculation based on more than 70 parameters (mostly including distances to important institutions and road types etc...). This is based on vector data, but great imagery is also in client's interest. Some estimated prices per km2 would be nice, too, 'cause I need to give some numbers to the client. I've googled around, but would like some info from firsthand users. Quickbird has a resolution of 0,6 meter, but I guess that would be overkill (and overpriced for client) 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] Problem using mapserver with WCS
Thanks Frank, i dropped the map= from the url but now it throws an error that i dont understand: msWCSGetCoverageMetadata(): WCS server error. Unable to determine the SRS for this layer, no projection defined and no metadata available. Do you have any idea whats the problem i'm having? the mapfile is the same one. Virginia On Wed, Jun 8, 2011 at 11:04 PM, Frank Warmerdam warmer...@pobox.comwrote: On 11-06-08 07:54 PM, Virginia Maffei wrote: Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but it's not working. The url that i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=localidadesmode=mapSERVICE=WCSVERSION=1.0.0REQUEST=GetCapabilities http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=localidadesmode=mapSERVICE=WCSVERSION=1.0.0REQUEST=GetCapabilities but i cant see the xml it just stil shows the tiff image. I attached the mapfile so it can help to check which is the problem. Virginia, I suspect the mode=map is interfering - try dropping it out of the request. It is not a proper WCS keyword. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ 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