RE: [mapserver-users] WMS GetFeatureInfo beyond scale
Hi David, hi list, thank you very much for the reply. I already use scale-dependent layers. That's why I believe I can't organize my "data as scale-dependent classes within one layer instead of as various separate layers in a group" . But I'm not sure - so please have a look at my data structure below (or in the attached file - part of my mapfile): I have got a WMS displaying earthquake data for the last 12 month (GROUP A), last month (GROUP B), the last 7 days (GROUP C) and the actual (latest) earthquake (GROUP D). Each group has got a couple of scale-dependent layers (A_a, A_b, A_c; B_a, B_b ...). I've grouped the layers because all layers displaying earthquake events from e.g. the last 12 month should appear as just one layer. Each layer has got several magnitude-dependent classes, as the earthquake dots should increase when zooming into the application. LAYER NAME "A_a" GROUP "A" MAXSCALE 1000 MINSCALE 400 ... CLASS NAME "Magnitude > 3 - 3.499" EXPRESSION ([mag] > 3 AND [mag] < 3.499) STYLE SYMBOL "circle" SIZE 9 COLOR 255 165 0 OUTLINECOLOR 255 0 0 END END CLASS NAME "Magnitude > 3.5 - 3.999" EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) STYLE SYMBOL "circle" SIZE 10 COLOR 255 165 0 OUTLINECOLOR 255 0 0 END END ... LAYER NAME "A_b" GROUP "A" MAXSCALE 400 MINSCALE 100 ... CLASS ... END ... LAYER NAME "A_c" GROUP "A" MAXSCALE 100 MINSCALE ... ... CLASS ... END ... Thanks in advance! Regards, Nina > -Ursprüngliche Nachricht- > Von: "Fawcett, David" > Gesendet: 02.10.09 18:00:44 > An: > Betreff: RE: [mapserver-users] WMS GetFeatureInfo beyond scale > Is there a reason why you can't organize your data as scale-dependent classes > within one layer instead of as three separate layers in a group? > > David. > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of seis4...@web.de > Sent: Friday, October 02, 2009 10:45 AM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] WMS GetFeatureInfo beyond scale > > Hi list, > > I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the > following problem: > > For instance I am using a group of layers: > > LAYER > NAME "A_a" > GROUP "A" > ... > LAYER > NAME "A_b" > GROUP "A" > ... > LAYER > NAME "A_c" > GROUP "A" > ... > A_a, A_b and A_c are all the same data but represented at different scales. > So e.g. at 1:10 A_a becomes invisible and A_b becomes visible. > > But when I do a GetFeatureInfo request on UMN Mapserver in this case for > query_layers=A > I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 > response. > > It seem as if this is a well known problem > (http://trac.osgeo.org/mapserver/ticket/842) > > What can I do beside upgrading on version 6.0 as soon as it's available? > > Any advice is welcome! Thanks in advance, > Nina > > > Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate > für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > __ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ANGLE FOLLOW with MINFEATURESIZE AUTO
Raivo Alla wrote: Hello, is there any hope that mapserver will in the future support curved labels with MINFEATURESIZE AUTO settings? Would be nice to display street labels displayed only when they have enough space in the line segment... Raivo, We hit your same problem while testing for the FOSS4G2009 benchmarking exercise[1]. The change has been added[2] (curved labels with the minfeaturesize auto setting) and will be available in the next beta release. For those that are saying "what the heck does MINFEATURESIZE AUTO do?", like me recently, it will only show labels that are larger than the feature. You can see it in action with the benchmarking roads layer[3] [1] http://wiki.osgeo.org/wiki/Benchmarking_2009 [2] http://trac.osgeo.org/mapserver/ticket/3151 [3] http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver/vector-by-merged.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=roads-merged-labeled&STYLES=&SRS=EPSG:4269&WIDTH=950&HEIGHT=600&FORMAT=image/png&BBOX=-96.79344550384396,32.76888304968294,-96.78588564285151,32.77365769873079 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Generating a world file from extent and scale
Hello, sorry for not a very mapserver related question. I have a script that does the following: User inputs the extent and the scale, based on this data I compute the image width and height and pass this information to mapserver to generate the image. It all works fine with flat projections. The problem is I don't know how to generate the the images width and height using extent and scale then I have data in WGS84. My code atm is: http://pastie.org/642735 Could anyone point me in the right direction ? -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Cannot download mstutorial_data.zip ; Proxy error
Eugene Timmermans wrote: When I click on http://demo.mapserver.org/tutorial/mstutorial_data.zip on http://www.mapserver.org/tutorial/background.html#tutorial-data I get a : Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /tutorial/mstutorial_data.zip. Reason: Error reading from remote server Apache/2.0.54 (Fedora) Server at demo.mapserver.org Port 80 Eugene, I have restarted this server - hopefully it will work fine now. 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
Re: [mapserver-users] To compile module libmapsript.so for Java
Take a look at the README file in mapscript/java/ directory. Alan On October 4, 2009 01:09:15 am joel ml wrote: > hello to all, I have a question, I am making a program in Java and I want > to use the functionalities of Mapserver, specifically I want to know as I > compile libmapscript.so from the code source, on the platform Fedora 11. > > please any aid is welcome I need, it to migrate the program that I am doing > in Windows to Linux. > > * already it installs swig 1.3.4, fgs 5.4. > > > Yahoo! Cocina > > Encontra las mejores recetas con Yahoo! Cocina. > > > http://ar.mujer.yahoo.com/cocina/ > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo
Hi, X and y in GetFeatureInfo request are image pixel coordinates, not geographic ones. See how ESRI describes it http://webhelp.esri.com/arcims/9.2/general/mergedProjects/wms_connect/wms_connector/get_featureinfo.htm -Jukka Rahkonen- Iratxe Lejarreta wrote: Hi, When I execute the following command, Postfix return the correct result: select * from building where ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)'); But when I execute GetFeatureInfo request in MapServer with the same point(x,y), the response doesn't return any result: http://localhost/cgi- bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&QUERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS=EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512 My map file: MAP NAME "TEST" STATUS ON SIZE 400 300 SYMBOLSET symbols.sym EXTENT 53 474 61 482 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET fonts.txt WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" HEADER "../templates/test_header.html" FOOTER "../templates/test_footer.html" METADATA "wms_title" "Test" "wms_onlineresource""http://localhost/cgi-bin/test?"; "wms_srs" "EPSG:23030" "wms_feature_info_mime_type""text/html" END END PROJECTION "init=epsg:23030" END LAYER NAME mylayer PROJECTION "init=epsg:23030" END TYPE POLYGON STATUS ON DUMP TRUE UNITS METERS TEMPLATE "../templates/mylayer_body.html" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=mydb user=postgres password=**" DATA "the_geom from mylayer" METADATA "wms_title" "mylayer" "wms_srs" "EPSG:23030" "wms_extent""532666 4749720 603151 4805350" "wms_feature_info_mime_type""text/html" "wms_include_items" "all" END TOLERANCE 5 CLASS NAME "building" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END END I tried the same map configuration with another layer but with SRS:4326 and the result of GetFeatureInfo request is ok. If the difference is the projection and extent, where is the error? Thanks in advance! -- Iratxe Lejarreta www.axios.es ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetFeatureInfo
Hi, When I execute the following command, Postfix return the correct result: select * from building where ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)'); But when I execute GetFeatureInfo request in MapServer with the same point(x,y), the response doesn't return any result: http://localhost/cgi- bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&QUERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS=EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512 My map file: MAP NAME "TEST" STATUS ON SIZE 400 300 SYMBOLSET symbols.sym EXTENT 53 474 61 482 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET fonts.txt WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" HEADER "../templates/test_header.html" FOOTER "../templates/test_footer.html" METADATA "wms_title" "Test" "wms_onlineresource""http://localhost/cgi-bin/test?"; "wms_srs" "EPSG:23030" "wms_feature_info_mime_type""text/html" END END PROJECTION "init=epsg:23030" END LAYER NAME mylayer PROJECTION "init=epsg:23030" END TYPE POLYGON STATUS ON DUMP TRUE UNITS METERS TEMPLATE "../templates/mylayer_body.html" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=mydb user=postgres password=**" DATA "the_geom from mylayer" METADATA "wms_title" "mylayer" "wms_srs" "EPSG:23030" "wms_extent""532666 4749720 603151 4805350" "wms_feature_info_mime_type""text/html" "wms_include_items" "all" END TOLERANCE 5 CLASS NAME "building" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END END I tried the same map configuration with another layer but with SRS:4326 and the result of GetFeatureInfo request is ok. If the difference is the projection and extent, where is the error? Thanks in advance! -- Iratxe Lejarreta www.axios.es ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS Client Transparency
Do WMS clients support semi transparent images? -- Travis K. Toronto, Canada "She knows there's no success like failure and that failure's no success at all." -Bob Dylan- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Call layer
Thanks for the response. I am using openlayers and my map does not appear unless layer is STATUS DEFAULT. I call layer as follows layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://localhost/cgi-bin/mapserv.exe?";, { layers: "testlayer", map: '/ms4w/.../data/tr00.map', gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' }); map.addLayer(layer1); I only view pink tiles when STATUS ON? Thanks On 5 Oct 2009, at 14:40, "Fawcett, David" wrote: You don’t. That is how you tell MapServer that you want to view a p articular layer that doesn’t have a status of default. In many cases, if you are viewing your map using a client like OpenLayers, the client does this for you. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver- users-boun...@lists.osgeo.org] On Behalf Of jbloc1...@googlemail.com Sent: Monday, October 05, 2009 8:31 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Call layer Hi, If the status of my layer is set to ON how do I call the layer without adding '&layer=[layername]' on the end of the URL? I am viewing the map via localhost/cgi-bin/mapserv.exe? Cheers for any help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Call layer
You don’t. That is how you tell MapServer that you want to view a particular layer that doesn’t have a status of default. In many cases, if you are viewing your map using a client like OpenLayers, the client does this for you. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of jbloc1...@googlemail.com Sent: Monday, October 05, 2009 8:31 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Call layer Hi, If the status of my layer is set to ON how do I call the layer without adding '&layer=[layername]' on the end of the URL? I am viewing the map via localhost/cgi-bin/mapserv.exe? Cheers for any help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Call layer
Hi, If the status of my layer is set to ON how do I call the layer without adding '&layer=[layername]' on the end of the URL? I am viewing the map via localhost/cgi-bin/mapserv.exe? Cheers for any help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem w/ SLD Documentation
Yewondwossen Assefa wrote: Hi Bill, There was a server crash and sew things did not get trasferred properly on the new server. I will make sure that they are back in service early next week. FYI there is a doc ticket about this: https://trac.osgeo.org/mapserver/ticket/3104 Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users