From bpicinbono at worldonline.fr Mon Dec 1 09:00:52 2014 From: bpicinbono at worldonline.fr (bpicinbono at worldonline.fr) Date: Mon, 01 Dec 2014 18:00:52 +0100 Subject: [mapserver-users] maxscale (denom) with gml ? Message-ID: <1417453252.547c9ec4f28aa@webmail.aliceadsl.fr> Dear list, I have a mapfile that control the display of some numerous data depending on the scale: - dezooming max: not displaying the shapes; - at a particular zooming-in level: displaying the shapes; This is done with: MAXSCALE 200000000 in the WEB section of the mapfile and with: MAXSCALEDENOM 20000000 in the layer section of the mapfile This works fine rendering images with a basic cgi mapserver application or in an opelayers 3 application. I am now trying to get the same behaviour in an openlayers 3 application but rendering the shapes on client side through gml instead of server side image rendering. Gml rendering works fine, but it seems that the MAXSCALE (DENOM) directive is omitted: the shapes display is no more turned off when dezooming a lot. Any clue to have this MAXSCALE ( DENOM ) working with gml display ? Thanks in advance From Steve.Lime at state.mn.us Mon Dec 1 11:50:15 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 1 Dec 2014 19:50:15 +0000 Subject: [mapserver-users] maxscale (denom) with gml ? In-Reply-To: <1417453252.547c9ec4f28aa@webmail.aliceadsl.fr> References: <1417453252.547c9ec4f28aa@webmail.aliceadsl.fr> Message-ID: How are you triggering the GML production in MapServer? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr Sent: Monday, December 01, 2014 11:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] maxscale (denom) with gml ? Dear list, I have a mapfile that control the display of some numerous data depending on the scale: - dezooming max: not displaying the shapes; - at a particular zooming-in level: displaying the shapes; This is done with: MAXSCALE 200000000 in the WEB section of the mapfile and with: MAXSCALEDENOM 20000000 in the layer section of the mapfile This works fine rendering images with a basic cgi mapserver application or in an opelayers 3 application. I am now trying to get the same behaviour in an openlayers 3 application but rendering the shapes on client side through gml instead of server side image rendering. Gml rendering works fine, but it seems that the MAXSCALE (DENOM) directive is omitted: the shapes display is no more turned off when dezooming a lot. Any clue to have this MAXSCALE ( DENOM ) working with gml display ? Thanks in advance _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From earevaloch at gmail.com Mon Dec 1 12:44:00 2014 From: earevaloch at gmail.com (=?UTF-8?Q?Eduardo_Ar=C3=A9valo?=) Date: Mon, 1 Dec 2014 15:44:00 -0500 Subject: [mapserver-users] erros llamar mapinfo Message-ID: hola a todos me podr?an dar algunas pistas para resolver este error: mapserv(): Web application error. No template provided. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at worldonline.fr Mon Dec 1 13:05:49 2014 From: bpicinbono at worldonline.fr (bpicinbono at worldonline.fr) Date: Mon, 01 Dec 2014 22:05:49 +0100 Subject: [mapserver-users] maxscale (denom) with gml ? Message-ID: <1417467949.547cd82d8fc2a@webmail.aliceadsl.fr> Many thanks for investigating; please check below the relevant parts of the mapfile, as well as the openlayers related code; (the purpose is to display nooa gfs winds forecasts, "vents" means "winds" in french); some stuff like the SYMBOL part and the layer's STYLE part should not be necessary anymore with gml output, as well as few other directives, clean up job ahead..., but working, minus the maxscale (denom) directive which is not working in this configuration; I could manage the scale display control on the openlayers 3 side with an if case based on the zoom level, but I would prefer mapserver mapfile to drive it; Thanks again Blaise - - - - - - - - - - --- mapfile --- (called rg_noaa_vents_gml.map, called on the ol3 side) MAP NAME rg_noaa STATUS ON SIZE 600 600 EXTENT -180 -90 180 90 FONTSET "fonts/fonts.list" UNITS DD SHAPEPATH "data" IMAGECOLOR 230 230 255 TEMPLATEPATTERN "rg_noaa" IMAGETYPE PNG24 OUTPUTFORMAT # image mapfile # #TRANSPARENT ON #IMAGEMODE RGB #DRIVER GD/PNG # gml mapfile # NAME "gml" DRIVER "TEMPLATE" FORMATOPTION "FILE=rg_noaa_vent_gml.map" END PROJECTION "init=epsg:4326" END WEB HEADER templates/header_ol.html TEMPLATE "set in index.html" FOOTER templates/footer.html MAXSCALE 200000000 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_TITLE" "vrrroum_noaa" "WMS_ONLINERESOURCE" "http://localhost/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map" "WMS_SRS" "EPSG:4326" "WMS_ENABLE_REQUEST" "*" #"WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_feature_info_mime_type" "text/gml" "WFS_ONLINERESOURCE" "http://ip-adress/cgi-bin/mapserv?map=/var/www/rg/blabla_02/noaa/rg_noaa_vents_gml.map&" "WFS_ENABLE_REQUEST" "*" "wfs_feature_info_mime_type" "text/gml" END END SYMBOL NAME "arrowfilled" TYPE vector FILLED true #FILLED false POINTS 1 0 -1 0 -1 7 -3 7 0 10 3 7 1 7 1 0 -1 0 END # POINTS END # SYMBOL LAYER ##### ##### ##### fv_168 NAME fv_168 GROUP v_168 TYPE POINT STATUS ON DATA fv_168 MAXSCALEDENOM 20000000 SIZEUNITS kilometers METADATA "WMS_TITLE" "v_168" "WMS_SRS" "epsg:4326" "wms_include_items" "all" "gml_include_items" "all" "WMS_ENABLE_REQUEST" "*" "wfs_title" "v_168" "wfs:srs" "EPSG:4326" "gml_include_items" "all" "gml_featureid" "ID" "wfs_enable_request" "*" END CLASS TEMPLATE "templates/vents.html" STYLE OPACITY 50 SYMBOL "arrowfilled" SIZE [VITREP] ANGLE [ANGLE] WIDTH 2 COLOR 100 100 150 END END DUMP TRUE HEADER "templates/vents_header_ol.html" FOOTER "templates/vents_footer_ol.html" TOLERANCE 20 END END # Map File - - - - - - - - - - - - - - --- openlayers 3 --- (extracts of the layer description) var gmlSourceV_168 = new ol.source.ServerVector({ layer: 'v_168gml', format: new ol.format.WFS({ featureNS: "http://mapserver.gis.umn.edu/mapserver", featureType: 'fv_168' }), projection: 'EPSG:4326', loader: function(extent, resolution, projection) { $.ajax({ url: 'http://ip-adress/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map&service=WFS&' + 'version=1.1.0&request=GetFeature&typename=fv_168&outputFormat=text/xml; subtype=gml/3.1.1&' + '&srsname=EPSG:4326&bbox=' + extent.join(',') }).done( function(response) { gmlSourceV_168.addFeatures(gmlSourceV_168.readFeatures(response)); }); }, strategy: ol.loadingstrategy.bbox }); var gmlLayerV_168 = new ol.layer.Vector({ title: '168gml', type: 'base', visible: false, source: gmlSourceV_168, style: (function() { function ruleStyle(vitrep, angle, lon, lat) { var ruleStyle = [new ol.style.Style({ image: new ol.style.Icon({ src: 'images/windarrow_42.png', rotation: angle * 3.141592654 / 180 }), })]; return ruleStyle; } return function(feature, resolution) { var vitrep = feature.get('VITREP'); var angle = - feature.get('ANGLE'); var lon = feature.getX; var lat = feature.Y; return ruleStyle(vitrep, angle, lon, lat); }; })() }); On 12/01/2014 08:50 PM, Lime, Steve D (MNIT) wrote: > How are you triggering the GML production in MapServer? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr > Sent: Monday, December 01, 2014 11:01 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] maxscale (denom) with gml ? > > Dear list, > > I have a mapfile that control the display of some numerous data depending on the > scale: > - dezooming max: not displaying the shapes; > - at a particular zooming-in level: displaying the shapes; > > This is done with: > MAXSCALE 200000000 > in the WEB section of the mapfile > > and with: > MAXSCALEDENOM 20000000 > in the layer section of the mapfile > > This works fine rendering images with a basic cgi mapserver application or in an opelayers 3 application. > > I am now trying to get the same behaviour in an openlayers 3 application but rendering the shapes on client side through gml instead of server side image rendering. > Gml rendering works fine, but it seems that the MAXSCALE (DENOM) directive is > omitted: the shapes display is no more turned off when dezooming a lot. > > Any clue to have this MAXSCALE ( DENOM ) working with gml display ? > Thanks in advance > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at state.mn.us Mon Dec 1 13:12:29 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 1 Dec 2014 21:12:29 +0000 Subject: [mapserver-users] maxscale (denom) with gml ? In-Reply-To: <1417467949.547cd82d8fc2a@webmail.aliceadsl.fr> References: <1417467949.547cd82d8fc2a@webmail.aliceadsl.fr> Message-ID: I meant what so the calls to MapServer from OpenLayers look like? Are you using WFS, custom MapServer queries or perhaps OGR output formats? Doesn't look like the latter from your mapfile. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr Sent: Monday, December 01, 2014 3:06 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] maxscale (denom) with gml ? Many thanks for investigating; please check below the relevant parts of the mapfile, as well as the openlayers related code; (the purpose is to display nooa gfs winds forecasts, "vents" means "winds" in french); some stuff like the SYMBOL part and the layer's STYLE part should not be necessary anymore with gml output, as well as few other directives, clean up job ahead..., but working, minus the maxscale (denom) directive which is not working in this configuration; I could manage the scale display control on the openlayers 3 side with an if case based on the zoom level, but I would prefer mapserver mapfile to drive it; Thanks again Blaise - - - - - - - - - - --- mapfile --- (called rg_noaa_vents_gml.map, called on the ol3 side) MAP NAME rg_noaa STATUS ON SIZE 600 600 EXTENT -180 -90 180 90 FONTSET "fonts/fonts.list" UNITS DD SHAPEPATH "data" IMAGECOLOR 230 230 255 TEMPLATEPATTERN "rg_noaa" IMAGETYPE PNG24 OUTPUTFORMAT # image mapfile # #TRANSPARENT ON #IMAGEMODE RGB #DRIVER GD/PNG # gml mapfile # NAME "gml" DRIVER "TEMPLATE" FORMATOPTION "FILE=rg_noaa_vent_gml.map" END PROJECTION "init=epsg:4326" END WEB HEADER templates/header_ol.html TEMPLATE "set in index.html" FOOTER templates/footer.html MAXSCALE 200000000 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_TITLE" "vrrroum_noaa" "WMS_ONLINERESOURCE" "http://localhost/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map" "WMS_SRS" "EPSG:4326" "WMS_ENABLE_REQUEST" "*" #"WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_feature_info_mime_type" "text/gml" "WFS_ONLINERESOURCE" "http://ip-adress/cgi-bin/mapserv?map=/var/www/rg/blabla_02/noaa/rg_noaa_vents_gml.map&" "WFS_ENABLE_REQUEST" "*" "wfs_feature_info_mime_type" "text/gml" END END SYMBOL NAME "arrowfilled" TYPE vector FILLED true #FILLED false POINTS 1 0 -1 0 -1 7 -3 7 0 10 3 7 1 7 1 0 -1 0 END # POINTS END # SYMBOL LAYER ##### ##### ##### fv_168 NAME fv_168 GROUP v_168 TYPE POINT STATUS ON DATA fv_168 MAXSCALEDENOM 20000000 SIZEUNITS kilometers METADATA "WMS_TITLE" "v_168" "WMS_SRS" "epsg:4326" "wms_include_items" "all" "gml_include_items" "all" "WMS_ENABLE_REQUEST" "*" "wfs_title" "v_168" "wfs:srs" "EPSG:4326" "gml_include_items" "all" "gml_featureid" "ID" "wfs_enable_request" "*" END CLASS TEMPLATE "templates/vents.html" STYLE OPACITY 50 SYMBOL "arrowfilled" SIZE [VITREP] ANGLE [ANGLE] WIDTH 2 COLOR 100 100 150 END END DUMP TRUE HEADER "templates/vents_header_ol.html" FOOTER "templates/vents_footer_ol.html" TOLERANCE 20 END END # Map File - - - - - - - - - - - - - - --- openlayers 3 --- (extracts of the layer description) var gmlSourceV_168 = new ol.source.ServerVector({ layer: 'v_168gml', format: new ol.format.WFS({ featureNS: "http://mapserver.gis.umn.edu/mapserver", featureType: 'fv_168' }), projection: 'EPSG:4326', loader: function(extent, resolution, projection) { $.ajax({ url: 'http://ip-adress/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map&service=WFS&' + 'version=1.1.0&request=GetFeature&typename=fv_168&outputFormat=text/xml; subtype=gml/3.1.1&' + '&srsname=EPSG:4326&bbox=' + extent.join(',') }).done( function(response) { gmlSourceV_168.addFeatures(gmlSourceV_168.readFeatures(response)); }); }, strategy: ol.loadingstrategy.bbox }); var gmlLayerV_168 = new ol.layer.Vector({ title: '168gml', type: 'base', visible: false, source: gmlSourceV_168, style: (function() { function ruleStyle(vitrep, angle, lon, lat) { var ruleStyle = [new ol.style.Style({ image: new ol.style.Icon({ src: 'images/windarrow_42.png', rotation: angle * 3.141592654 / 180 }), })]; return ruleStyle; } return function(feature, resolution) { var vitrep = feature.get('VITREP'); var angle = - feature.get('ANGLE'); var lon = feature.getX; var lat = feature.Y; return ruleStyle(vitrep, angle, lon, lat); }; })() }); On 12/01/2014 08:50 PM, Lime, Steve D (MNIT) wrote: > How are you triggering the GML production in MapServer? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr > Sent: Monday, December 01, 2014 11:01 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] maxscale (denom) with gml ? > > Dear list, > > I have a mapfile that control the display of some numerous data > depending on the > scale: > - dezooming max: not displaying the shapes; > - at a particular zooming-in level: displaying the shapes; > > This is done with: > MAXSCALE 200000000 > in the WEB section of the mapfile > > and with: > MAXSCALEDENOM 20000000 > in the layer section of the mapfile > > This works fine rendering images with a basic cgi mapserver > application or in an opelayers 3 application. > > I am now trying to get the same behaviour in an openlayers 3 > application but rendering the shapes on client side through gml instead of server side image rendering. > Gml rendering works fine, but it seems that the MAXSCALE (DENOM) > directive is > omitted: the shapes display is no more turned off when dezooming a lot. > > Any clue to have this MAXSCALE ( DENOM ) working with gml display ? > Thanks in advance > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bpicinbono at worldonline.fr Mon Dec 1 14:05:13 2014 From: bpicinbono at worldonline.fr (bpicinbono at worldonline.fr) Date: Mon, 01 Dec 2014 23:05:13 +0100 Subject: [mapserver-users] maxscale (denom) with gml ? Message-ID: <1417471513.547ce619e8ba8@webmail.aliceadsl.fr> from the ol3 extract of my last post (below), it's WFS as I see: format: new ol.format.WFS({ ... regards On 12/01/2014 10:12 PM, Lime, Steve D (MNIT) wrote: > I meant what so the calls to MapServer from OpenLayers look like? Are you using WFS, custom MapServer queries or perhaps OGR output formats? Doesn't look like the latter from your mapfile. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr > Sent: Monday, December 01, 2014 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] maxscale (denom) with gml ? > > > > Many thanks for investigating; > please check below the relevant parts of the mapfile, as well as the openlayers related code; (the purpose is to display nooa gfs winds forecasts, "vents" means "winds" in french); > > some stuff like the SYMBOL part and the layer's STYLE part should not be necessary anymore with gml output, as well as few other directives, clean up job ahead..., but working, minus the maxscale (denom) directive which is not working in this configuration; > > I could manage the scale display control on the openlayers 3 side with an if case based on the zoom level, but I would prefer mapserver mapfile to drive it; > > Thanks again > Blaise > > > - - - - - - - - - - > --- mapfile --- > (called rg_noaa_vents_gml.map, called on the ol3 side) > > MAP > NAME rg_noaa > STATUS ON > SIZE 600 600 > > EXTENT -180 -90 180 90 > > FONTSET "fonts/fonts.list" > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 230 230 255 > TEMPLATEPATTERN "rg_noaa" > IMAGETYPE PNG24 > OUTPUTFORMAT > > # image mapfile # > #TRANSPARENT ON > #IMAGEMODE RGB > #DRIVER GD/PNG > > # gml mapfile # > NAME "gml" > DRIVER "TEMPLATE" > FORMATOPTION "FILE=rg_noaa_vent_gml.map" > > END > PROJECTION > "init=epsg:4326" > END > > WEB > HEADER templates/header_ol.html > TEMPLATE "set in index.html" > FOOTER templates/footer.html > MAXSCALE 200000000 > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "WMS_TITLE" "vrrroum_noaa" > > "WMS_ONLINERESOURCE" > "http://localhost/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map" > > "WMS_SRS" "EPSG:4326" > "WMS_ENABLE_REQUEST" "*" > #"WMS_FEATURE_INFO_MIME_TYPE" "text/html" > "wms_feature_info_mime_type" "text/gml" > > "WFS_ONLINERESOURCE" > "http://ip-adress/cgi-bin/mapserv?map=/var/www/rg/blabla_02/noaa/rg_noaa_vents_gml.map&" > > "WFS_ENABLE_REQUEST" "*" > "wfs_feature_info_mime_type" "text/gml" > > END > END > > SYMBOL > NAME "arrowfilled" > TYPE vector > FILLED true > #FILLED false > POINTS > 1 0 > -1 0 > -1 7 > -3 7 > 0 10 > 3 7 > 1 7 > 1 0 > -1 0 > END # POINTS > END # SYMBOL > > > LAYER ##### ##### ##### fv_168 > NAME fv_168 > GROUP v_168 > TYPE POINT > STATUS ON > DATA fv_168 > MAXSCALEDENOM 20000000 > SIZEUNITS kilometers > > METADATA > "WMS_TITLE" "v_168" > "WMS_SRS" "epsg:4326" > "wms_include_items" "all" > "gml_include_items" "all" > "WMS_ENABLE_REQUEST" "*" > > "wfs_title" "v_168" > "wfs:srs" "EPSG:4326" > "gml_include_items" "all" > "gml_featureid" "ID" > "wfs_enable_request" "*" > END > > CLASS > TEMPLATE "templates/vents.html" > STYLE > OPACITY 50 > SYMBOL "arrowfilled" > SIZE [VITREP] > ANGLE [ANGLE] > WIDTH 2 > COLOR 100 100 150 > END > END > DUMP TRUE > HEADER "templates/vents_header_ol.html" > FOOTER "templates/vents_footer_ol.html" > TOLERANCE 20 > END > > END # Map File > > > > > - - - - - - - - - - - - - - > --- openlayers 3 --- > (extracts of the layer description) > > var gmlSourceV_168 = new ol.source.ServerVector({ > layer: 'v_168gml', > format: new ol.format.WFS({ > featureNS: "http://mapserver.gis.umn.edu/mapserver", > featureType: 'fv_168' > }), > projection: 'EPSG:4326', > loader: function(extent, resolution, projection) { > $.ajax({ > url: > 'http://ip-adress/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map&service=WFS&' > + > > 'version=1.1.0&request=GetFeature&typename=fv_168&outputFormat=text/xml; > subtype=gml/3.1.1&' + > '&srsname=EPSG:4326&bbox=' + extent.join(',') > }).done( > function(response) { > > gmlSourceV_168.addFeatures(gmlSourceV_168.readFeatures(response)); > }); > }, > strategy: ol.loadingstrategy.bbox > }); > > var gmlLayerV_168 = new ol.layer.Vector({ > title: '168gml', > type: 'base', > visible: false, > source: gmlSourceV_168, > style: (function() { > function ruleStyle(vitrep, angle, lon, lat) { > var ruleStyle = [new ol.style.Style({ > image: new ol.style.Icon({ > src: 'images/windarrow_42.png', > rotation: angle * 3.141592654 / 180 > }), > })]; > return ruleStyle; > } > return function(feature, resolution) { > var vitrep = feature.get('VITREP'); > var angle = - feature.get('ANGLE'); > var lon = feature.getX; > var lat = feature.Y; > return ruleStyle(vitrep, angle, lon, lat); > }; > })() > }); > > > > > > > > On 12/01/2014 08:50 PM, Lime, Steve D (MNIT) wrote: >> How are you triggering the GML production in MapServer? >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr >> Sent: Monday, December 01, 2014 11:01 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] maxscale (denom) with gml ? >> >> Dear list, >> >> I have a mapfile that control the display of some numerous data >> depending on > the >> scale: >> - dezooming max: not displaying the shapes; >> - at a particular zooming-in level: displaying the shapes; >> >> This is done with: >> MAXSCALE 200000000 >> in the WEB section of the mapfile >> >> and with: >> MAXSCALEDENOM 20000000 >> in the layer section of the mapfile >> >> This works fine rendering images with a basic cgi mapserver >> application or in > an opelayers 3 application. >> >> I am now trying to get the same behaviour in an openlayers 3 >> application but > rendering the shapes on client side through gml instead of server side image rendering. >> Gml rendering works fine, but it seems that the MAXSCALE (DENOM) >> directive is >> omitted: the shapes display is no more turned off when dezooming a lot. >> >> Any clue to have this MAXSCALE ( DENOM ) working with gml display ? >> Thanks in advance >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at state.mn.us Mon Dec 1 15:24:38 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 1 Dec 2014 23:24:38 +0000 Subject: [mapserver-users] maxscale (denom) with gml ? In-Reply-To: <1417471513.547ce619e8ba8@webmail.aliceadsl.fr> References: <1417471513.547ce619e8ba8@webmail.aliceadsl.fr> Message-ID: WFS runs through the MapServer query pipeline. Queries are generally scale independent except for cases where you are interacting with a source map (e.g. clicking on things), I mean, a scale computation requires both a map extent and a resulting image size. From that you can compute a cellsize and scale. I don't know if it's possible to force a scale computation somehow by passing a map size (in pixels) along with a map extent. or perhaps by passing the desired scale value directly (map.scaledenom?). Anyone have other ideas? I believe the query functions do respect min/maxscale (denom) values if the map scale is not set to -1. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of bpicinbono at worldonline.fr [bpicinbono at worldonline.fr] Sent: Monday, December 01, 2014 4:05 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] maxscale (denom) with gml ? from the ol3 extract of my last post (below), it's WFS as I see: format: new ol.format.WFS({ ... regards On 12/01/2014 10:12 PM, Lime, Steve D (MNIT) wrote: > I meant what so the calls to MapServer from OpenLayers look like? Are you using WFS, custom MapServer queries or perhaps OGR output formats? Doesn't look like the latter from your mapfile. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr > Sent: Monday, December 01, 2014 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] maxscale (denom) with gml ? > > > > Many thanks for investigating; > please check below the relevant parts of the mapfile, as well as the openlayers related code; (the purpose is to display nooa gfs winds forecasts, "vents" means "winds" in french); > > some stuff like the SYMBOL part and the layer's STYLE part should not be necessary anymore with gml output, as well as few other directives, clean up job ahead..., but working, minus the maxscale (denom) directive which is not working in this configuration; > > I could manage the scale display control on the openlayers 3 side with an if case based on the zoom level, but I would prefer mapserver mapfile to drive it; > > Thanks again > Blaise > > > - - - - - - - - - - > --- mapfile --- > (called rg_noaa_vents_gml.map, called on the ol3 side) > > MAP > NAME rg_noaa > STATUS ON > SIZE 600 600 > > EXTENT -180 -90 180 90 > > FONTSET "fonts/fonts.list" > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 230 230 255 > TEMPLATEPATTERN "rg_noaa" > IMAGETYPE PNG24 > OUTPUTFORMAT > > # image mapfile # > #TRANSPARENT ON > #IMAGEMODE RGB > #DRIVER GD/PNG > > # gml mapfile # > NAME "gml" > DRIVER "TEMPLATE" > FORMATOPTION "FILE=rg_noaa_vent_gml.map" > > END > PROJECTION > "init=epsg:4326" > END > > WEB > HEADER templates/header_ol.html > TEMPLATE "set in index.html" > FOOTER templates/footer.html > MAXSCALE 200000000 > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "WMS_TITLE" "vrrroum_noaa" > > "WMS_ONLINERESOURCE" > "http://localhost/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map" > > "WMS_SRS" "EPSG:4326" > "WMS_ENABLE_REQUEST" "*" > #"WMS_FEATURE_INFO_MIME_TYPE" "text/html" > "wms_feature_info_mime_type" "text/gml" > > "WFS_ONLINERESOURCE" > "http://ip-adress/cgi-bin/mapserv?map=/var/www/rg/blabla_02/noaa/rg_noaa_vents_gml.map&" > > "WFS_ENABLE_REQUEST" "*" > "wfs_feature_info_mime_type" "text/gml" > > END > END > > SYMBOL > NAME "arrowfilled" > TYPE vector > FILLED true > #FILLED false > POINTS > 1 0 > -1 0 > -1 7 > -3 7 > 0 10 > 3 7 > 1 7 > 1 0 > -1 0 > END # POINTS > END # SYMBOL > > > LAYER ##### ##### ##### fv_168 > NAME fv_168 > GROUP v_168 > TYPE POINT > STATUS ON > DATA fv_168 > MAXSCALEDENOM 20000000 > SIZEUNITS kilometers > > METADATA > "WMS_TITLE" "v_168" > "WMS_SRS" "epsg:4326" > "wms_include_items" "all" > "gml_include_items" "all" > "WMS_ENABLE_REQUEST" "*" > > "wfs_title" "v_168" > "wfs:srs" "EPSG:4326" > "gml_include_items" "all" > "gml_featureid" "ID" > "wfs_enable_request" "*" > END > > CLASS > TEMPLATE "templates/vents.html" > STYLE > OPACITY 50 > SYMBOL "arrowfilled" > SIZE [VITREP] > ANGLE [ANGLE] > WIDTH 2 > COLOR 100 100 150 > END > END > DUMP TRUE > HEADER "templates/vents_header_ol.html" > FOOTER "templates/vents_footer_ol.html" > TOLERANCE 20 > END > > END # Map File > > > > > - - - - - - - - - - - - - - > --- openlayers 3 --- > (extracts of the layer description) > > var gmlSourceV_168 = new ol.source.ServerVector({ > layer: 'v_168gml', > format: new ol.format.WFS({ > featureNS: "http://mapserver.gis.umn.edu/mapserver", > featureType: 'fv_168' > }), > projection: 'EPSG:4326', > loader: function(extent, resolution, projection) { > $.ajax({ > url: > 'http://ip-adress/cgi-bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map&service=WFS&' > + > > 'version=1.1.0&request=GetFeature&typename=fv_168&outputFormat=text/xml; > subtype=gml/3.1.1&' + > '&srsname=EPSG:4326&bbox=' + extent.join(',') > }).done( > function(response) { > > gmlSourceV_168.addFeatures(gmlSourceV_168.readFeatures(response)); > }); > }, > strategy: ol.loadingstrategy.bbox > }); > > var gmlLayerV_168 = new ol.layer.Vector({ > title: '168gml', > type: 'base', > visible: false, > source: gmlSourceV_168, > style: (function() { > function ruleStyle(vitrep, angle, lon, lat) { > var ruleStyle = [new ol.style.Style({ > image: new ol.style.Icon({ > src: 'images/windarrow_42.png', > rotation: angle * 3.141592654 / 180 > }), > })]; > return ruleStyle; > } > return function(feature, resolution) { > var vitrep = feature.get('VITREP'); > var angle = - feature.get('ANGLE'); > var lon = feature.getX; > var lat = feature.Y; > return ruleStyle(vitrep, angle, lon, lat); > }; > })() > }); > > > > > > > > On 12/01/2014 08:50 PM, Lime, Steve D (MNIT) wrote: >> How are you triggering the GML production in MapServer? >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bpicinbono at worldonline.fr >> Sent: Monday, December 01, 2014 11:01 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] maxscale (denom) with gml ? >> >> Dear list, >> >> I have a mapfile that control the display of some numerous data >> depending on > the >> scale: >> - dezooming max: not displaying the shapes; >> - at a particular zooming-in level: displaying the shapes; >> >> This is done with: >> MAXSCALE 200000000 >> in the WEB section of the mapfile >> >> and with: >> MAXSCALEDENOM 20000000 >> in the layer section of the mapfile >> >> This works fine rendering images with a basic cgi mapserver >> application or in > an opelayers 3 application. >> >> I am now trying to get the same behaviour in an openlayers 3 >> application but > rendering the shapes on client side through gml instead of server side image rendering. >> Gml rendering works fine, but it seems that the MAXSCALE (DENOM) >> directive is >> omitted: the shapes display is no more turned off when dezooming a lot. >> >> Any clue to have this MAXSCALE ( DENOM ) working with gml display ? >> Thanks in advance >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Tue Dec 2 01:17:57 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 2 Dec 2014 09:17:57 +0000 Subject: [mapserver-users] maxscale (denom) with gml ? In-Reply-To: References: <1417471513.547ce619e8ba8@webmail.aliceadsl.fr> Message-ID: <6F331135492B944D90731CE93743D5680E4544@FS-EX-DB101.fs.sachsen.de> WFS is meant to query raw feature data. Scale dependent rendering must be controlled within the renderer itself - in this case using minResolution/maxResolution options as described in http://openlayers.org/en/v3.0.0/apidoc/ol.layer.Layer.html. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (MNIT) > Gesendet: Dienstag, 2. Dezember 2014 00:25 > An: bpicinbono at worldonline.fr; mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] maxscale (denom) with gml ? > > WFS runs through the MapServer query pipeline. Queries are generally scale > independent except for cases where you are interacting with a source map > (e.g. clicking on things), I mean, a scale computation requires both a map > extent and a resulting image size. From that you can compute a cellsize > and scale. I don't know if it's possible to force a scale computation > somehow by passing a map size (in pixels) along with a map extent. or > perhaps by passing the desired scale value directly (map.scaledenom?). > Anyone have other ideas? > > I believe the query functions do respect min/maxscale (denom) values if > the map scale is not set to -1. > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users- > bounces at lists.osgeo.org] on behalf of bpicinbono at worldonline.fr > [bpicinbono at worldonline.fr] > Sent: Monday, December 01, 2014 4:05 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] maxscale (denom) with gml ? > > from the ol3 extract of my last post (below), it's WFS as I see: > > format: new ol.format.WFS({ > ... > > regards > > > > > On 12/01/2014 10:12 PM, Lime, Steve D (MNIT) wrote: > > I meant what so the calls to MapServer from OpenLayers look like? Are > you > using WFS, custom MapServer queries or perhaps OGR output formats? Doesn't > look > like the latter from your mapfile. > > > > Steve > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > bpicinbono at worldonline.fr > > Sent: Monday, December 01, 2014 3:06 PM > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] maxscale (denom) with gml ? > > > > > > > > Many thanks for investigating; > > please check below the relevant parts of the mapfile, as well as the > openlayers related code; (the purpose is to display nooa gfs winds > forecasts, > "vents" means "winds" in french); > > > > some stuff like the SYMBOL part and the layer's STYLE part should not be > necessary anymore with gml output, as well as few other directives, clean > up job > ahead..., but working, minus the maxscale (denom) directive which is not > working > in this configuration; > > > > I could manage the scale display control on the openlayers 3 side with > an if > case based on the zoom level, but I would prefer mapserver mapfile to > drive it; > > > > Thanks again > > Blaise > > > > > > - - - - - - - - - - > > --- mapfile --- > > (called rg_noaa_vents_gml.map, called on the ol3 side) > > > > MAP > > NAME rg_noaa > > STATUS ON > > SIZE 600 600 > > > > EXTENT -180 -90 180 90 > > > > FONTSET "fonts/fonts.list" > > UNITS DD > > SHAPEPATH "data" > > IMAGECOLOR 230 230 255 > > TEMPLATEPATTERN "rg_noaa" > > IMAGETYPE PNG24 > > OUTPUTFORMAT > > > > # image mapfile # > > #TRANSPARENT ON > > #IMAGEMODE RGB > > #DRIVER GD/PNG > > > > # gml mapfile # > > NAME "gml" > > DRIVER "TEMPLATE" > > FORMATOPTION "FILE=rg_noaa_vent_gml.map" > > > > END > > PROJECTION > > "init=epsg:4326" > > END > > > > WEB > > HEADER templates/header_ol.html > > TEMPLATE "set in index.html" > > FOOTER templates/footer.html > > MAXSCALE 200000000 > > IMAGEPATH "/tmp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > > METADATA > > "WMS_TITLE" "vrrroum_noaa" > > > > "WMS_ONLINERESOURCE" > > > "http://localhost/cgi- > bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map" > > > > "WMS_SRS" "EPSG:4326" > > "WMS_ENABLE_REQUEST" "*" > > #"WMS_FEATURE_INFO_MIME_TYPE" "text/html" > > "wms_feature_info_mime_type" "text/gml" > > > > "WFS_ONLINERESOURCE" > > > "http://ip-adress/cgi- > bin/mapserv?map=/var/www/rg/blabla_02/noaa/rg_noaa_vents_gml.map&" > > > > "WFS_ENABLE_REQUEST" "*" > > "wfs_feature_info_mime_type" "text/gml" > > > > END > > END > > > > SYMBOL > > NAME "arrowfilled" > > TYPE vector > > FILLED true > > #FILLED false > > POINTS > > 1 0 > > -1 0 > > -1 7 > > -3 7 > > 0 10 > > 3 7 > > 1 7 > > 1 0 > > -1 0 > > END # POINTS > > END # SYMBOL > > > > > > LAYER ##### ##### ##### fv_168 > > NAME fv_168 > > GROUP v_168 > > TYPE POINT > > STATUS ON > > DATA fv_168 > > MAXSCALEDENOM 20000000 > > SIZEUNITS kilometers > > > > METADATA > > "WMS_TITLE" "v_168" > > "WMS_SRS" "epsg:4326" > > "wms_include_items" "all" > > "gml_include_items" "all" > > "WMS_ENABLE_REQUEST" "*" > > > > "wfs_title" "v_168" > > "wfs:srs" "EPSG:4326" > > "gml_include_items" "all" > > "gml_featureid" "ID" > > "wfs_enable_request" "*" > > END > > > > CLASS > > TEMPLATE "templates/vents.html" > > STYLE > > OPACITY 50 > > SYMBOL "arrowfilled" > > SIZE [VITREP] > > ANGLE [ANGLE] > > WIDTH 2 > > COLOR 100 100 150 > > END > > END > > DUMP TRUE > > HEADER "templates/vents_header_ol.html" > > FOOTER "templates/vents_footer_ol.html" > > TOLERANCE 20 > > END > > > > END # Map File > > > > > > > > > > - - - - - - - - - - - - - - > > --- openlayers 3 --- > > (extracts of the layer description) > > > > var gmlSourceV_168 = new ol.source.ServerVector({ > > layer: 'v_168gml', > > format: new ol.format.WFS({ > > featureNS: "http://mapserver.gis.umn.edu/mapserver", > > featureType: 'fv_168' > > }), > > projection: 'EPSG:4326', > > loader: function(extent, resolution, projection) { > > $.ajax({ > > url: > > > 'http://ip-adress/cgi- > bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map&serv > ice=WFS&' > > + > > > > 'version=1.1.0&request=GetFeature&typename=fv_168&outputFormat=text/xml; > > subtype=gml/3.1.1&' + > > '&srsname=EPSG:4326&bbox=' + extent.join(',') > > }).done( > > function(response) { > > > > gmlSourceV_168.addFeatures(gmlSourceV_168.readFeatures(response)); > > }); > > }, > > strategy: ol.loadingstrategy.bbox > > }); > > > > var gmlLayerV_168 = new ol.layer.Vector({ > > title: '168gml', > > type: 'base', > > visible: false, > > source: gmlSourceV_168, > > style: (function() { > > function ruleStyle(vitrep, angle, lon, lat) { > > var ruleStyle = [new ol.style.Style({ > > image: new ol.style.Icon({ > > src: 'images/windarrow_42.png', > > rotation: angle * 3.141592654 / 180 > > }), > > })]; > > return ruleStyle; > > } > > return function(feature, resolution) { > > var vitrep = feature.get('VITREP'); > > var angle = - feature.get('ANGLE'); > > var lon = feature.getX; > > var lat = feature.Y; > > return ruleStyle(vitrep, angle, lon, lat); > > }; > > })() > > }); > > > > > > > > > > > > > > > > On 12/01/2014 08:50 PM, Lime, Steve D (MNIT) wrote: > >> How are you triggering the GML production in MapServer? > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > bpicinbono at worldonline.fr > >> Sent: Monday, December 01, 2014 11:01 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] maxscale (denom) with gml ? > >> > >> Dear list, > >> > >> I have a mapfile that control the display of some numerous data > >> depending on > > the > >> scale: > >> - dezooming max: not displaying the shapes; > >> - at a particular zooming-in level: displaying the shapes; > >> > >> This is done with: > >> MAXSCALE 200000000 > >> in the WEB section of the mapfile > >> > >> and with: > >> MAXSCALEDENOM 20000000 > >> in the layer section of the mapfile > >> > >> This works fine rendering images with a basic cgi mapserver > >> application or in > > an opelayers 3 application. > >> > >> I am now trying to get the same behaviour in an openlayers 3 > >> application but > > rendering the shapes on client side through gml instead of server side > image > rendering. > >> Gml rendering works fine, but it seems that the MAXSCALE (DENOM) > >> directive is > >> omitted: the shapes display is no more turned off when dezooming a lot. > >> > >> Any clue to have this MAXSCALE ( DENOM ) working with gml display ? > >> Thanks in advance > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bpicinbono at worldonline.fr Tue Dec 2 06:15:39 2014 From: bpicinbono at worldonline.fr (bpicinbono at worldonline.fr) Date: Tue, 02 Dec 2014 15:15:39 +0100 Subject: [mapserver-users] maxscale (denom) with gml ? Message-ID: <1417529739.547dc98b0abba@webmail.aliceadsl.fr> Thanks for the explanations and the ol3 solution, it's working perfectly. Thanks again Blaise WFS is meant to query raw feature data. Scale dependent rendering must be controlled within the renderer itself - in this case using minResolution/maxResolution options as described in http://openlayers.org/en/v3.0.0/apidoc/ol.layer.Layer.html. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (MNIT) > Gesendet: Dienstag, 2. Dezember 2014 00:25 > An: bpicinbono at worldonline.fr; mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] maxscale (denom) with gml ? > > WFS runs through the MapServer query pipeline. Queries are generally scale > independent except for cases where you are interacting with a source map > (e.g. clicking on things), I mean, a scale computation requires both a map > extent and a resulting image size. From that you can compute a cellsize > and scale. I don't know if it's possible to force a scale computation > somehow by passing a map size (in pixels) along with a map extent. or > perhaps by passing the desired scale value directly (map.scaledenom?). > Anyone have other ideas? > > I believe the query functions do respect min/maxscale (denom) values if > the map scale is not set to -1. > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users- > bounces at lists.osgeo.org] on behalf of bpicinbono at worldonline.fr > [bpicinbono at worldonline.fr] > Sent: Monday, December 01, 2014 4:05 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] maxscale (denom) with gml ? > > from the ol3 extract of my last post (below), it's WFS as I see: > > format: new ol.format.WFS({ > ... > > regards > > > > > On 12/01/2014 10:12 PM, Lime, Steve D (MNIT) wrote: >> I meant what so the calls to MapServer from OpenLayers look like? Are > you > using WFS, custom MapServer queries or perhaps OGR output formats? Doesn't > look > like the latter from your mapfile. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > bpicinbono at worldonline.fr >> Sent: Monday, December 01, 2014 3:06 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] maxscale (denom) with gml ? >> >> >> >> Many thanks for investigating; >> please check below the relevant parts of the mapfile, as well as the > openlayers related code; (the purpose is to display nooa gfs winds > forecasts, > "vents" means "winds" in french); >> >> some stuff like the SYMBOL part and the layer's STYLE part should not be > necessary anymore with gml output, as well as few other directives, clean > up job > ahead..., but working, minus the maxscale (denom) directive which is not > working > in this configuration; >> >> I could manage the scale display control on the openlayers 3 side with > an if > case based on the zoom level, but I would prefer mapserver mapfile to > drive it; >> >> Thanks again >> Blaise >> >> >> - - - - - - - - - - >> --- mapfile --- >> (called rg_noaa_vents_gml.map, called on the ol3 side) >> >> MAP >> NAME rg_noaa >> STATUS ON >> SIZE 600 600 >> >> EXTENT -180 -90 180 90 >> >> FONTSET "fonts/fonts.list" >> UNITS DD >> SHAPEPATH "data" >> IMAGECOLOR 230 230 255 >> TEMPLATEPATTERN "rg_noaa" >> IMAGETYPE PNG24 >> OUTPUTFORMAT >> >> # image mapfile # >> #TRANSPARENT ON >> #IMAGEMODE RGB >> #DRIVER GD/PNG >> >> # gml mapfile # >> NAME "gml" >> DRIVER "TEMPLATE" >> FORMATOPTION "FILE=rg_noaa_vent_gml.map" >> >> END >> PROJECTION >> "init=epsg:4326" >> END >> >> WEB >> HEADER templates/header_ol.html >> TEMPLATE "set in index.html" >> FOOTER templates/footer.html >> MAXSCALE 200000000 >> IMAGEPATH "/tmp/ms_tmp/" >> IMAGEURL "/ms_tmp/" >> METADATA >> "WMS_TITLE" "vrrroum_noaa" >> >> "WMS_ONLINERESOURCE" >> > "http://localhost/cgi- > bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map" >> >> "WMS_SRS" "EPSG:4326" >> "WMS_ENABLE_REQUEST" "*" >> #"WMS_FEATURE_INFO_MIME_TYPE" "text/html" >> "wms_feature_info_mime_type" "text/gml" >> >> "WFS_ONLINERESOURCE" >> > "http://ip-adress/cgi- > bin/mapserv?map=/var/www/rg/blabla_02/noaa/rg_noaa_vents_gml.map&" >> >> "WFS_ENABLE_REQUEST" "*" >> "wfs_feature_info_mime_type" "text/gml" >> >> END >> END >> >> SYMBOL >> NAME "arrowfilled" >> TYPE vector >> FILLED true >> #FILLED false >> POINTS >> 1 0 >> -1 0 >> -1 7 >> -3 7 >> 0 10 >> 3 7 >> 1 7 >> 1 0 >> -1 0 >> END # POINTS >> END # SYMBOL >> >> >> LAYER ##### ##### ##### fv_168 >> NAME fv_168 >> GROUP v_168 >> TYPE POINT >> STATUS ON >> DATA fv_168 >> MAXSCALEDENOM 20000000 >> SIZEUNITS kilometers >> >> METADATA >> "WMS_TITLE" "v_168" >> "WMS_SRS" "epsg:4326" >> "wms_include_items" "all" >> "gml_include_items" "all" >> "WMS_ENABLE_REQUEST" "*" >> >> "wfs_title" "v_168" >> "wfs:srs" "EPSG:4326" >> "gml_include_items" "all" >> "gml_featureid" "ID" >> "wfs_enable_request" "*" >> END >> >> CLASS >> TEMPLATE "templates/vents.html" >> STYLE >> OPACITY 50 >> SYMBOL "arrowfilled" >> SIZE [VITREP] >> ANGLE [ANGLE] >> WIDTH 2 >> COLOR 100 100 150 >> END >> END >> DUMP TRUE >> HEADER "templates/vents_header_ol.html" >> FOOTER "templates/vents_footer_ol.html" >> TOLERANCE 20 >> END >> >> END # Map File >> >> >> >> >> - - - - - - - - - - - - - - >> --- openlayers 3 --- >> (extracts of the layer description) >> >> var gmlSourceV_168 = new ol.source.ServerVector({ >> layer: 'v_168gml', >> format: new ol.format.WFS({ >> featureNS: "http://mapserver.gis.umn.edu/mapserver", >> featureType: 'fv_168' >> }), >> projection: 'EPSG:4326', >> loader: function(extent, resolution, projection) { >> $.ajax({ >> url: >> > 'http://ip-adress/cgi- > bin/mapserv?map=/var/www/html/rg/blabla_02/noaa/rg_noaa_vents_gml.map&serv > ice=WFS&' >> + >> >> 'version=1.1.0&request=GetFeature&typename=fv_168&outputFormat=text/xml; >> subtype=gml/3.1.1&' + >> '&srsname=EPSG:4326&bbox=' + extent.join(',') >> }).done( >> function(response) { >> >> gmlSourceV_168.addFeatures(gmlSourceV_168.readFeatures(response)); >> }); >> }, >> strategy: ol.loadingstrategy.bbox >> }); >> >> var gmlLayerV_168 = new ol.layer.Vector({ >> title: '168gml', >> type: 'base', >> visible: false, >> source: gmlSourceV_168, >> style: (function() { >> function ruleStyle(vitrep, angle, lon, lat) { >> var ruleStyle = [new ol.style.Style({ >> image: new ol.style.Icon({ >> src: 'images/windarrow_42.png', >> rotation: angle * 3.141592654 / 180 >> }), >> })]; >> return ruleStyle; >> } >> return function(feature, resolution) { >> var vitrep = feature.get('VITREP'); >> var angle = - feature.get('ANGLE'); >> var lon = feature.getX; >> var lat = feature.Y; >> return ruleStyle(vitrep, angle, lon, lat); >> }; >> })() >> }); >> >> >> >> >> >> >> >> On 12/01/2014 08:50 PM, Lime, Steve D (MNIT) wrote: >>> How are you triggering the GML production in MapServer? >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > bpicinbono at worldonline.fr >>> Sent: Monday, December 01, 2014 11:01 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] maxscale (denom) with gml ? >>> >>> Dear list, >>> >>> I have a mapfile that control the display of some numerous data >>> depending on >> the >>> scale: >>> - dezooming max: not displaying the shapes; >>> - at a particular zooming-in level: displaying the shapes; >>> >>> This is done with: >>> MAXSCALE 200000000 >>> in the WEB section of the mapfile >>> >>> and with: >>> MAXSCALEDENOM 20000000 >>> in the layer section of the mapfile >>> >>> This works fine rendering images with a basic cgi mapserver >>> application or in >> an opelayers 3 application. >>> >>> I am now trying to get the same behaviour in an openlayers 3 >>> application but >> rendering the shapes on client side through gml instead of server side > image > rendering. >>> Gml rendering works fine, but it seems that the MAXSCALE (DENOM) >>> directive is >>> omitted: the shapes display is no more turned off when dezooming a lot. >>> >>> Any clue to have this MAXSCALE ( DENOM ) working with gml display ? >>> Thanks in advance >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From luca76 at gmail.com Tue Dec 2 07:17:56 2014 From: luca76 at gmail.com (Luca Manganelli) Date: Tue, 2 Dec 2014 16:17:56 +0100 Subject: [mapserver-users] Is RFC 101 in Mapserver 6.4.1? Message-ID: As stated in this document: http://mapserver.org/development/rfc/ms-rfc-101.html the Content Dependent Legend Response should be integrated into MapServer. GetLegendGraphics is fully working now; but now I tried to use HTML legend templates. The RFC describes the CGI mode MAPLEGEND (that's not documented, but LEGEND is). I am trying to have a html legend based on the contents with this command: http://local/cgi-bin/mapserv?map=map.map&mode=maplegend&MAPEXT=X1 Y1 X2 Y2&SRS=EPSG:25832 am I doing some error in this request? Note that if I use mode=LEGEND, it returns all the legend. Thank you in advance :-) Luca From ila.engg at gmail.com Tue Dec 2 09:03:51 2014 From: ila.engg at gmail.com (ila pathak) Date: Tue, 2 Dec 2014 12:03:51 -0500 Subject: [mapserver-users] Unscubscribe from Mapserver mailing list Message-ID: Please could you please unsubscribe me from mapserver mailing list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Tue Dec 2 11:53:03 2014 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 2 Dec 2014 19:53:03 +0000 (UTC) Subject: [mapserver-users] erros llamar mapinfo In-Reply-To: References: Message-ID: <214587001.933789.1417549983644.JavaMail.yahoo@jws10747.mail.gq1.yahoo.com> Eduardo, You don't provide more information about what are you trying to do, but I can suggest the following. In the LAYER section you must have a TEMPLATE label which must refer to a HTML file. No tengo informaci?n sobre lo que intentas hacer, pero puedo sugerir lo siguiente. En la secci?n LAYER debes de tener una etiqueta TEMPLATE, la cual debe hacer referencia a un archivo HTML. LAYER ... TEMPLATE "FOO.HTML"... END ?Mtro. Carlos Ruiz From: Eduardo Ar?valo To: mapserver-users at lists.osgeo.org Sent: Monday, December 1, 2014 2:44 PM Subject: [mapserver-users] erros llamar mapinfo hola ?a todos me podr?an dar algunas pistas para resolver este error:mapserv(): Web application error. No template provided. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Tue Dec 2 11:56:44 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 2 Dec 2014 19:56:44 +0000 Subject: [mapserver-users] An interesting SQL linestring building problem from postgres. Message-ID: All, I have a bunch of individual LINE segments in Postgres and want to display them via MapServer like so: First: * Get a chunk of them based on a set of IDs (a set of three for example) and a begin/end timestamp (got this figured out already) * Take the result and combine up the separate line strings into multi-segment (grouped) lines ordered by ID, timestamp (got this figured out for individual IDs) * Add a random number to each grouping of multi-line string rows for dynamic color-coding of each group. (got this figured out for individual IDs) * Have results output as three rows, one for each multi-segment line. I'm lost on the method to do the last piece. Mostly it relates about how to approach which piece first. Seems like a straightforward SQL, but I've tried a few different things, and it falls part each time for me. Anyone have examples of something like this to start from? The pertinent Mapfile fragment, I know this only color codes each individual segment at the moment. VEH_IDs are passed into the MapFile from CGI (vname=veh_id in DB): DATA "the_line FROM (select the_line, vname, acqtime, trunc(random() * 4 + 1) rnum from loc) as foo USING unique vname using SRID=4326" FILTER " vname in (%veh_id%) AND acqtime > '%time_idx1%' AND acqtime <'%time_idx2%' " VALIDATION 'time_idx1' '.*' 'time_idx2' '.*' 'veh_id' '.*' ## veh_id='100','200','300' . . . END CLASSITEM "rnum" CLASS ## Use the RNUM value to color code the line strings randomly. STYLE COLOR 255 0 0 WIDTH 5 END EXPRESSION '1' END CLASS STYLE COLOR 0 255 0 WIDTH 5 END EXPRESSION '2' END CLASS STYLE COLOR 0 0 255 WIDTH 5 END EXPRESSION '3' END CLASS STYLE COLOR 255 255 0 WIDTH 5 END EXPRESSION '4' END CLASS NAME "Segments" STYLE COLOR 0 255 0 WIDTH 5 END END Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Dec 2 13:07:45 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 02 Dec 2014 16:07:45 -0500 Subject: [mapserver-users] An interesting SQL linestring building problem from postgres. In-Reply-To: References: Message-ID: <547E2A21.80001@swoodbridge.com> On 12/2/2014 2:56 PM, Basques, Bob (CI-StPaul) wrote: > All, > > I have a bunch of individual LINE segments in Postgres and want to > display them via MapServer like so: > > First: > > ?Get a chunk of them based on a set of IDs (a set of three for example) > and a begin/end timestamp (got this figured out already) > > ?Take the result and combine up the separate line strings into > multi-segment (grouped) lines ordered by ID, timestamp (got this figured > out for individual IDs) > > ?Add a random number to each grouping of multi-line string rows for > dynamic color-coding of each group. (got this figured out for individual > IDs) > > ?Have results output as three rows, one for each multi-segment line. If the goal is to just display them, then you do not need to create a multi-segment line, just display them as individual lines with the color attribute. I you need them 'glued together' as a multilines for some other reason. then union should work. select color, union(geom) from lines group by color order by timestamp; > I?m lost on the method to do the last piece. Mostly it relates about > how to approach which piece first. Seems like a straightforward SQL, > but I?ve tried a few different things, and it falls part each time for me. > > Anyone have examples of something like this to start from? > > The pertinent Mapfile fragment, I know this only color codes each > individual segment at the moment. VEH_IDs are passed into the MapFile > from CGI (vname=veh_id in DB): > > DATA "the_line FROM (select the_line, vname, acqtime, trunc(random() * 4 > + 1) rnum from loc) as foo USING unique vname using SRID=4326" > > FILTER " vname in (%veh_id%) AND acqtime > > '%time_idx1%' AND acqtime <'%time_idx2%' " > > VALIDATION > 'time_idx1' '.*' > 'time_idx2' '.*' > 'veh_id' '.*' ## veh_id=?100?,?200?,?300? . . . > END > > CLASSITEM "rnum" > > CLASS ## Use the RNUM value to color code the line > strings randomly. > STYLE > COLOR 255 0 0 > WIDTH 5 > END > EXPRESSION '1' > END > CLASS > STYLE > COLOR 0 255 0 > WIDTH 5 > END > EXPRESSION '2' > END > CLASS > STYLE > COLOR 0 0 255 > WIDTH 5 > END > EXPRESSION '3' > END > CLASS > STYLE > COLOR 255 255 0 > WIDTH 5 > END > EXPRESSION '4' > END > CLASS > NAME "Segments" > STYLE > COLOR 0 255 0 > WIDTH 5 > END > END > > Thanks > > Bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From wal3 at mindspring.com Tue Dec 2 14:00:08 2014 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 02 Dec 2014 17:00:08 -0500 Subject: [mapserver-users] An interesting SQL linestring building problem from postgres. In-Reply-To: References: Message-ID: <547E3668.9050803@mindspring.com> I've done something similar. I don't have it in front of me at the moment but a postgres select can do this. Look in Postgres for "window" and "row_number". You use the postgres "OVER" clause to group the items and then row_number to get a key for color. SELECT a, b, c, row_number() OVER (PARTITION BY d) AS color_key FROM table The partition is your grouping of three. row_number would be your color_key. Use a modulus to limit the number of colors. here is a link which might get you started http://www.codeproject.com/articles/308281/How-to-Use-ROW-NUMBER-to-Enumerate-and-Partition-R Note the final SQL statement which shows multiple items inside the "OVER" clause. I hope this helps point you in the right direction. If I can find a second, I'll look at your problem a little harder. *Worth Lutz* ------------------ On 12/02/2014 02:56 PM, Basques, Bob (CI-StPaul) wrote: > > All, > > I have a bunch of individual LINE segments in Postgres and want to > display them via MapServer like so: > > First: > > ?Get a chunk of them based on a set of IDs (a set of three for > example) and a begin/end timestamp (got this figured out already) > > ?Take the result and combine up the separate line strings into > multi-segment (grouped) lines ordered by ID, timestamp (got this > figured out for individual IDs) > > ?Add a random number to each grouping of multi-line string rows for > dynamic color-coding of each group. (got this figured out for > individual IDs) > > ?Have results output as three rows, one for each multi-segment line. > > I?m lost on the method to do the last piece. Mostly it relates about > how to approach which piece first. Seems like a straightforward SQL, > but I?ve tried a few different things, and it falls part each time for me. > > Anyone have examples of something like this to start from? > > The pertinent Mapfile fragment, I know this only color codes each > individual segment at the moment. VEH_IDs are passed into the MapFile > from CGI (vname=veh_id in DB): > > DATA "the_line FROM (select the_line, vname, acqtime, trunc(random() * > 4 + 1) rnum from loc) as foo USING unique vname using SRID=4326" > > FILTER " vname in (%veh_id%) AND acqtime > > '%time_idx1%' AND acqtime <'%time_idx2%' " > > VALIDATION > 'time_idx1' '.*' > 'time_idx2' '.*' > 'veh_id' '.*' ## veh_id=?100?,?200?,?300? > . . . > END > > CLASSITEM "rnum" > > CLASS ## Use the RNUM value to color code the line > strings randomly. > STYLE > COLOR 255 0 0 > WIDTH 5 > END > EXPRESSION '1' > END > CLASS > STYLE > COLOR 0 255 0 > WIDTH 5 > END > EXPRESSION '2' > END > CLASS > STYLE > COLOR 0 0 255 > WIDTH 5 > END > EXPRESSION '3' > END > CLASS > STYLE > COLOR 255 255 0 > WIDTH 5 > END > EXPRESSION '4' > END > CLASS > NAME "Segments" > STYLE > COLOR 0 255 0 > WIDTH 5 > END > END > > Thanks > > Bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Dec 3 20:21:22 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 4 Dec 2014 04:21:22 +0000 Subject: [mapserver-users] An interesting SQL linestring building problem from postgres. In-Reply-To: References: , <547E3668.9050803@mindspring.com>, Message-ID: This is a lot faster!! select row_number() over () as rnum, vname, st_multi(st_union(the_line)) as the_line, acqtime from loc where vname in ('463','462') and acqtime > '2014-12-01 08:00' and acqtime <= '2014-12-01 10:00' group by vname, acqtime order by acqtime ________________________________ From: Basques, Bob (CI-StPaul) Sent: Wednesday, December 03, 2014 10:06 PM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] An interesting SQL linestring building problem from postgres. All, Made some progress: select row_number() over () as rnum, vname, st_multi(st_union(the_line)) as the_line from loc where vname in ('463','462') and acqtime > '2014-12-01 08:00' and acqtime <= '2014-12-01 10:00' group by vname But it's a lot slower than the original query for some reason. A couple of line strings at a 1000 or so segments take almost a minute. Still working it . . . I wonder if making the groups into something other than a multi would be better? bobb ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Worth Lutz [wal3 at mindspring.com] Sent: Tuesday, December 02, 2014 4:00 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] An interesting SQL linestring building problem from postgres. I've done something similar. I don't have it in front of me at the moment but a postgres select can do this. Look in Postgres for "window" and "row_number". You use the postgres "OVER" clause to group the items and then row_number to get a key for color. SELECT a, b, c, row_number() OVER (PARTITION BY d) AS color_key FROM table The partition is your grouping of three. row_number would be your color_key. Use a modulus to limit the number of colors. here is a link which might get you started http://www.codeproject.com/articles/308281/How-to-Use-ROW-NUMBER-to-Enumerate-and-Partition-R Note the final SQL statement which shows multiple items inside the "OVER" clause. I hope this helps point you in the right direction. If I can find a second, I'll look at your problem a little harder. Worth Lutz ------------------ On 12/02/2014 02:56 PM, Basques, Bob (CI-StPaul) wrote: All, I have a bunch of individual LINE segments in Postgres and want to display them via MapServer like so: First: ? Get a chunk of them based on a set of IDs (a set of three for example) and a begin/end timestamp (got this figured out already) ? Take the result and combine up the separate line strings into multi-segment (grouped) lines ordered by ID, timestamp (got this figured out for individual IDs) ? Add a random number to each grouping of multi-line string rows for dynamic color-coding of each group. (got this figured out for individual IDs) ? Have results output as three rows, one for each multi-segment line. I?m lost on the method to do the last piece. Mostly it relates about how to approach which piece first. Seems like a straightforward SQL, but I?ve tried a few different things, and it falls part each time for me. Anyone have examples of something like this to start from? The pertinent Mapfile fragment, I know this only color codes each individual segment at the moment. VEH_IDs are passed into the MapFile from CGI (vname=veh_id in DB): DATA "the_line FROM (select the_line, vname, acqtime, trunc(random() * 4 + 1) rnum from loc) as foo USING unique vname using SRID=4326" FILTER " vname in (%veh_id%) AND acqtime > '%time_idx1%' AND acqtime <'%time_idx2%' " VALIDATION 'time_idx1' '.*' 'time_idx2' '.*' 'veh_id' '.*' ## veh_id=?100?,?200?,?300? . . . END CLASSITEM "rnum" CLASS ## Use the RNUM value to color code the line strings randomly. STYLE COLOR 255 0 0 WIDTH 5 END EXPRESSION '1' END CLASS STYLE COLOR 0 255 0 WIDTH 5 END EXPRESSION '2' END CLASS STYLE COLOR 0 0 255 WIDTH 5 END EXPRESSION '3' END CLASS STYLE COLOR 255 255 0 WIDTH 5 END EXPRESSION '4' END CLASS NAME "Segments" STYLE COLOR 0 255 0 WIDTH 5 END END Thanks Bobb _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Dec 3 20:06:12 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 4 Dec 2014 04:06:12 +0000 Subject: [mapserver-users] An interesting SQL linestring building problem from postgres. In-Reply-To: <547E3668.9050803@mindspring.com> References: , <547E3668.9050803@mindspring.com> Message-ID: All, Made some progress: select row_number() over () as rnum, vname, st_multi(st_union(the_line)) as the_line from loc where vname in ('463','462') and acqtime > '2014-12-01 08:00' and acqtime <= '2014-12-01 10:00' group by vname But it's a lot slower than the original query for some reason. A couple of line strings at a 1000 or so segments take almost a minute. Still working it . . . I wonder if making the groups into something other than a multi would be better? bobb ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Worth Lutz [wal3 at mindspring.com] Sent: Tuesday, December 02, 2014 4:00 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] An interesting SQL linestring building problem from postgres. I've done something similar. I don't have it in front of me at the moment but a postgres select can do this. Look in Postgres for "window" and "row_number". You use the postgres "OVER" clause to group the items and then row_number to get a key for color. SELECT a, b, c, row_number() OVER (PARTITION BY d) AS color_key FROM table The partition is your grouping of three. row_number would be your color_key. Use a modulus to limit the number of colors. here is a link which might get you started http://www.codeproject.com/articles/308281/How-to-Use-ROW-NUMBER-to-Enumerate-and-Partition-R Note the final SQL statement which shows multiple items inside the "OVER" clause. I hope this helps point you in the right direction. If I can find a second, I'll look at your problem a little harder. Worth Lutz ------------------ On 12/02/2014 02:56 PM, Basques, Bob (CI-StPaul) wrote: All, I have a bunch of individual LINE segments in Postgres and want to display them via MapServer like so: First: ? Get a chunk of them based on a set of IDs (a set of three for example) and a begin/end timestamp (got this figured out already) ? Take the result and combine up the separate line strings into multi-segment (grouped) lines ordered by ID, timestamp (got this figured out for individual IDs) ? Add a random number to each grouping of multi-line string rows for dynamic color-coding of each group. (got this figured out for individual IDs) ? Have results output as three rows, one for each multi-segment line. I?m lost on the method to do the last piece. Mostly it relates about how to approach which piece first. Seems like a straightforward SQL, but I?ve tried a few different things, and it falls part each time for me. Anyone have examples of something like this to start from? The pertinent Mapfile fragment, I know this only color codes each individual segment at the moment. VEH_IDs are passed into the MapFile from CGI (vname=veh_id in DB): DATA "the_line FROM (select the_line, vname, acqtime, trunc(random() * 4 + 1) rnum from loc) as foo USING unique vname using SRID=4326" FILTER " vname in (%veh_id%) AND acqtime > '%time_idx1%' AND acqtime <'%time_idx2%' " VALIDATION 'time_idx1' '.*' 'time_idx2' '.*' 'veh_id' '.*' ## veh_id=?100?,?200?,?300? . . . END CLASSITEM "rnum" CLASS ## Use the RNUM value to color code the line strings randomly. STYLE COLOR 255 0 0 WIDTH 5 END EXPRESSION '1' END CLASS STYLE COLOR 0 255 0 WIDTH 5 END EXPRESSION '2' END CLASS STYLE COLOR 0 0 255 WIDTH 5 END EXPRESSION '3' END CLASS STYLE COLOR 255 255 0 WIDTH 5 END EXPRESSION '4' END CLASS NAME "Segments" STYLE COLOR 0 255 0 WIDTH 5 END END Thanks Bobb _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Dec 4 01:18:52 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 4 Dec 2014 10:18:52 +0100 Subject: [mapserver-users] Is RFC 101 in Mapserver 6.4.1? In-Reply-To: References: Message-ID: Luca, RFC101 only treats image legends, it is not implemented for HTML ones. -- thomas On 2 December 2014 at 16:17, Luca Manganelli wrote: > As stated in this document: > http://mapserver.org/development/rfc/ms-rfc-101.html > the Content Dependent Legend Response should be integrated into MapServer. > > GetLegendGraphics is fully working now; but now I tried to use HTML > legend templates. The RFC describes the CGI mode MAPLEGEND (that's not > documented, but LEGEND is). I am trying to have a html legend based on > the contents with this command: > > http://local/cgi-bin/mapserv?map=map.map&mode=maplegend&MAPEXT=X1 Y1 > X2 Y2&SRS=EPSG:25832 > > am I doing some error in this request? > > Note that if I use mode=LEGEND, it returns all the legend. > > Thank you in advance :-) > Luca > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From luca76 at gmail.com Thu Dec 4 01:27:08 2014 From: luca76 at gmail.com (Luca Manganelli) Date: Thu, 4 Dec 2014 10:27:08 +0100 Subject: [mapserver-users] Is RFC 101 in Mapserver 6.4.1? In-Reply-To: References: Message-ID: On Thu, Dec 4, 2014 at 10:18 AM, thomas bonfort wrote: > Luca, > RFC101 only treats image legends, it is not implemented for HTML ones. That RFC101 states: * mode=maplegend and mode=maplegendicon are added to the traditional mapserver cgi. The mapserverObj struct gets an added map_hittest member that is used by the legend templating code to produce content dependant html legends. I can invoke Mapserver CGI with these parameters, and if I don't pass the map extent, the legend is empty (that's right behaviour). I am searching the name of that parameter so I could do that... From thomas.bonfort at gmail.com Thu Dec 4 01:35:56 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 4 Dec 2014 10:35:56 +0100 Subject: [mapserver-users] Is RFC 101 in Mapserver 6.4.1? In-Reply-To: References: Message-ID: there are some tests in https://github.com/mapserver/msautotest/blob/master/wxs/wms_legend.map On 4 December 2014 at 10:27, Luca Manganelli wrote: > On Thu, Dec 4, 2014 at 10:18 AM, thomas bonfort > wrote: >> Luca, >> RFC101 only treats image legends, it is not implemented for HTML ones. > > That RFC101 states: > > * mode=maplegend and mode=maplegendicon are added to the traditional > mapserver cgi. The mapserverObj struct gets an added map_hittest > member that is used by the legend templating code to produce content > dependant html legends. > > I can invoke Mapserver CGI with these parameters, and if I don't pass > the map extent, the legend is empty (that's right behaviour). I am > searching the name of that parameter so I could do that... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From luca76 at gmail.com Thu Dec 4 01:41:27 2014 From: luca76 at gmail.com (Luca Manganelli) Date: Thu, 4 Dec 2014 10:41:27 +0100 Subject: [mapserver-users] Is RFC 101 in Mapserver 6.4.1? In-Reply-To: References: Message-ID: On Thu, Dec 4, 2014 at 10:35 AM, thomas bonfort wrote: > there are some tests in > https://github.com/mapserver/msautotest/blob/master/wxs/wms_legend.map MARVELLOUS! I had to add &layer=NAME, not only &mapext= parameter! Thank you very much :-) Now I'm happy! From no-reply at neogeo-online.net Fri Dec 5 02:29:35 2014 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 05 Dec 2014 11:29:35 +0100 Subject: [mapserver-users] MapCache and S3 cache Message-ID: <5481890F.4070403@neogeo-online.net> Hi, Have you ever experienced the SignatureDoesNotMatch error when using MapCache with a S3 storage backend ? I have checked my credentials many times, picked new ones, changed their level of privileges, no matter what I can do, I still have 403 errors with SignatureDoesNotMatch error. I thought it could come from bad encoding of special characters in the secret key, but it doesn't really seem to be that, since simple secret key fails too. Any help appreciated Thanks Guillaume From Gregor.Karzelek at heller-ig.com Tue Dec 9 06:57:22 2014 From: Gregor.Karzelek at heller-ig.com (Gregor Karzelek) Date: Tue, 9 Dec 2014 14:57:22 +0000 Subject: [mapserver-users] RoadMap for MapServer Message-ID: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> HI, Is there somewhere a roadmap for MapServer available? The last stable version released is 6.4.1 from January this year and since then a feature was implemented we would really like to use. But, as it is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. Best regards Gregor Karzelek ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at edac.unm.edu Tue Dec 9 10:15:02 2014 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Tue, 09 Dec 2014 11:15:02 -0700 Subject: [mapserver-users] Extract raster point values with mapserver Message-ID: <54873C26.9020504@edac.unm.edu> Hello, I am running Mapserver 6.4.1, and am using Postgres/Postgis to display a time series of geotiff images. I would like to know the best way for a user to submit a given x,y coordinate pair and return the pixel value for a given image. Is this possible using only the mapserver api? or must I absolutely use mapscript? Suggestions and examples welcome, Thanks much From Steve.Lime at state.mn.us Tue Dec 9 10:52:51 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 9 Dec 2014 18:52:51 +0000 Subject: [mapserver-users] Extract raster point values with mapserver In-Reply-To: <54873C26.9020504@edac.unm.edu> References: <54873C26.9020504@edac.unm.edu> Message-ID: Depends on how Postgres/PostGIS makes the data available. It's definitely possible via GDAL - is that the interface to the rasters? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of William Hudspeth Sent: Tuesday, December 09, 2014 12:15 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Extract raster point values with mapserver Hello, I am running Mapserver 6.4.1, and am using Postgres/Postgis to display a time series of geotiff images. I would like to know the best way for a user to submit a given x,y coordinate pair and return the pixel value for a given image. Is this possible using only the mapserver api? or must I absolutely use mapscript? Suggestions and examples welcome, Thanks much _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Dec 9 11:51:18 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 9 Dec 2014 19:51:18 +0000 Subject: [mapserver-users] RoadMap for MapServer In-Reply-To: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> References: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> Message-ID: The 7.0 release documents are pretty thin. The plan was to release this past summer but it?s dragged on much longer than I?d hoped (my fault). I?m still hoping you?ll see a beta in the next couple of weeks. What feature in particular are you waiting on? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor Karzelek Sent: Tuesday, December 09, 2014 8:57 AM To: Mapserver-users Subject: [mapserver-users] RoadMap for MapServer HI, Is there somewhere a roadmap for MapServer available? The last stable version released is 6.4.1 from January this year and since then a feature was implemented we would really like to use. But, as it is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. Best regards Gregor Karzelek ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gregor.Karzelek at heller-ig.com Wed Dec 10 00:29:56 2014 From: Gregor.Karzelek at heller-ig.com (Gregor Karzelek) Date: Wed, 10 Dec 2014 08:29:56 +0000 Subject: [mapserver-users] RoadMap for MapServer In-Reply-To: References: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> Message-ID: <581F980A-7E34-4402-9219-96D59616F547@heller-ig.de> Hi Steve, Thanks for the info. The feature we would like to use most is: https://github.com/mapserver/mapserver/pull/4877 so that we can use runtime substitution in WEB->METADATA. Gregor ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 09.12.2014 um 20:51 schrieb Lime, Steve D (MNIT) >: The 7.0 release documents are pretty thin. The plan was to release this past summer but it?s dragged on much longer than I?d hoped (my fault). I?m still hoping you?ll see a beta in the next couple of weeks. What feature in particular are you waiting on? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor Karzelek Sent: Tuesday, December 09, 2014 8:57 AM To: Mapserver-users Subject: [mapserver-users] RoadMap for MapServer HI, Is there somewhere a roadmap for MapServer available? The last stable version released is 6.4.1 from January this year and since then a feature was implemented we would really like to use. But, as it is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. Best regards Gregor Karzelek ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pasquale.Maiorano at ssi.it Wed Dec 10 08:49:04 2014 From: Pasquale.Maiorano at ssi.it (Maiorano Pasquale) Date: Wed, 10 Dec 2014 17:49:04 +0100 Subject: [mapserver-users] Interface between QGIS2.4 and MapServer Message-ID: <909214C1813780458B3E4EABE7D1568301D3140A@ssi-mail.ssi.it> Dear Sirs, I am trying to export my QGIS project to MapServer without success. I found several tutorials on Youtube that speak about a pluging named RT Mapserver Export . It seam does not exist anymore. Can You help me giving some advice in how to export my project in order to expose it on the WEB via Mapserver? The mentioned plugin seems disappeared starting from the QGIS version 1.8 on. Please take into account that my job is locked due to this issue. Many thanks in advance. Pasquale Maiorano -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed Dec 10 08:55:02 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 10 Dec 2014 16:55:02 +0000 Subject: [mapserver-users] Interface between QGIS2.4 and MapServer In-Reply-To: <909214C1813780458B3E4EABE7D1568301D3140A@ssi-mail.ssi.it> References: <909214C1813780458B3E4EABE7D1568301D3140A@ssi-mail.ssi.it> Message-ID: <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> Hi, I believe you can install the plugin still from the experimental QGIS plugins. At least I seem to have it installed on QGIS 2.0.1. I warn you that the plugin creates mapfiles which are about 80% correct. For fixing them to work properly you should know relatively well how to write good mapfiles by hand. -Jukka Rahkonen- Maiorano Pasquale wrote: Dear Sirs, I am trying to export my QGIS project to MapServer without success. I found several tutorials on Youtube that speak about a pluging named RT Mapserver Export . It seam does not exist anymore. Can You help me giving some advice in how to export my project in order to expose it on the WEB via Mapserver? The mentioned plugin seems disappeared starting from the QGIS version 1.8 on. Please take into account that my job is locked due to this issue. Many thanks in advance. Pasquale Maiorano -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Wed Dec 10 09:01:27 2014 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 10 Dec 2014 18:01:27 +0100 Subject: [mapserver-users] Interface between QGIS2.4 and MapServer In-Reply-To: <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> References: <909214C1813780458B3E4EABE7D1568301D3140A@ssi-mail.ssi.it> <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> Message-ID: I do not know if you are on windows or linux, but if your goal is to host maps and you have no knowledge of mapserver perse, you might try qgis-server too. http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial 2014-12-10 17:55 GMT+01:00 Rahkonen Jukka (Tike) : > Hi, > > > I believe you can install the plugin still from the experimental QGIS > plugins. At least I seem to have it installed on QGIS 2.0.1. > > > I warn you that the plugin creates mapfiles which are about 80% correct. > For fixing them to work properly you should know relatively well how to > write good mapfiles by hand. > > > -Jukka Rahkonen- > > > Maiorano Pasquale wrote: > > > Dear Sirs, > > > > I am trying to export my QGIS project to MapServer without success. I > found several tutorials on Youtube that speak about a pluging named *RT > Mapserver Export* . It seam does not exist anymore. Can You help me > giving some advice in how to export my project in order to expose it on the > WEB via Mapserver? > > > > The mentioned plugin seems disappeared starting from the QGIS version 1.8 > on. > > > > Please take into account that my job is locked due to this issue. Many > thanks in advance. > > > > Pasquale Maiorano > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Wed Dec 10 17:54:21 2014 From: tchaddad at gmail.com (TC Haddad) Date: Wed, 10 Dec 2014 17:54:21 -0800 Subject: [mapserver-users] Interface between QGIS2.4 and MapServer In-Reply-To: <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> References: <909214C1813780458B3E4EABE7D1568301D3140A@ssi-mail.ssi.it> <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> Message-ID: I can confirm that the plugin works with QGIS 2.4 at least, and it is available under "experimental plugins". It is very handy for quickly generating nicely classed data. Regarding Jukka's comment, I personally always chose the option "export layers only" and I find with that option, the results are more like 95% correct map files - I just need to include those exported layer definitions in a skeleton map file that already contains my relevant map and web metadata information. Tanya On Wed, Dec 10, 2014 at 8:55 AM, Rahkonen Jukka (Tike) < jukka.rahkonen at mmmtike.fi> wrote: > Hi, > > > I believe you can install the plugin still from the experimental QGIS > plugins. At least I seem to have it installed on QGIS 2.0.1. > > > I warn you that the plugin creates mapfiles which are about 80% correct. > For fixing them to work properly you should know relatively well how to > write good mapfiles by hand. > > > -Jukka Rahkonen- > > > Maiorano Pasquale wrote: > > > Dear Sirs, > > > > I am trying to export my QGIS project to MapServer without success. I > found several tutorials on Youtube that speak about a pluging named *RT > Mapserver Export* . It seam does not exist anymore. Can You help me > giving some advice in how to export my project in order to expose it on the > WEB via Mapserver? > > > > The mentioned plugin seems disappeared starting from the QGIS version 1.8 > on. > > > > Please take into account that my job is locked due to this issue. Many > thanks in advance. > > > > Pasquale Maiorano > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Wed Dec 10 23:56:49 2014 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Thu, 11 Dec 2014 08:56:49 +0100 Subject: [mapserver-users] Interface between QGIS2.4 and MapServer In-Reply-To: <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> References: <909214C1813780458B3E4EABE7D1568301D3140A@ssi-mail.ssi.it> <794b8e29a7e446218703c25b271e8303@C119S212VM022.msvyvi.vaha.local> Message-ID: <20141211075646.GA1563@gmail.com> On 10/12/14 at 04:55pm, Rahkonen Jukka (Tike) wrote: > I warn you that the plugin creates mapfiles which are about 80% correct. For fixing them to work properly you should know relatively well how to write good mapfiles by hand. > > > -Jukka Rahkonen- +1 I've ended up in writing a small php class and some template (eg layer.inc.php) files to write mapfiles stored in postgis, writes classes according to some attribute and assings a color ramp. -- ?My mama said to get things done You'd better not mess with Major Tom? D.Bowie From fl_v at inbox.ru Thu Dec 11 02:07:38 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Thu, 11 Dec 2014 13:07:38 +0300 Subject: [mapserver-users] =?utf-8?q?MapCache=3A_substitution_in_GetMap?= In-Reply-To: References: <1417177862.973821653@f435.i.mail.ru> Message-ID: <1418292458.35736109@f360.i.mail.ru> Thomas.?Thank you very much. Sorry for the late response.? There is question about type. Performs "intervals" the validation or "regex" should be used? Best regards. Fri, 28 Nov 2014 14:07:10 +0100 ?? thomas bonfort : >You need to add ZOOM as a dimension at the tileset level. It will be >validated in incoming requests and propagated to the WMS server. > >-- >thomas > >On 28 November 2014 at 13:31, Vladimir < fl_v at inbox.ru > wrote: >> Hi All! >> >> I have getMap request to MapCache from OL3 with additional dynamic ZOOM >> parameter. >> >> >> http://myhost/mapcache/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test&WIDTH=384&HEIGHT=384&CRS=EPSG%3A3857&STYLES=&MAP_RESOLUTION=135&BBOX=8520588.417005166%2C5338362.055436708%2C8521811.40945773%2C5339585.047889271&ZOOM=15 >> >> Further MapCache send request to my WMS service accordingly the >> configuration: >> >> >> >> >> image/png >> mylayer >> >> >> >> http://myhost/wms >> >> >> >> But the additional ZOOM parameter is lost at this stage. >> Adding in adds empty key without value. >> How can I substitute this parameter to final request ? >> >> Thanks & best regards >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ???????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at edac.unm.edu Sat Dec 13 12:14:39 2014 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Sat, 13 Dec 2014 13:14:39 -0700 Subject: [mapserver-users] Extract raster point values with mapserver Message-ID: <548C9E2F.6010809@edac.unm.edu> Hello, This is how Postgresql makes the data available. PostgresQL stores the information about the location of the geotiffs and the timestamp associated with them: pm25_monthly=# \d pm25_monthly_global Table "public.pm25_monthly_global" Column | Type | Modifiers ----------+-----------------------------+----------------------------------------------- oid | integer | default nextval('pm25_monthly_seq'::regclass) rundate | timestamp with time zone | datetime | timestamp with time zone | location | text | timezone | timestamp without time zone | the_geom | geometry(MultiPolygon,4326) | Indexes: "pm25_monthly_global_oid_key" UNIQUE CONSTRAINT, btree (oid) The 'location' field simply gives the full path to the relevant geotiff on the file system. And, I define the index in the mapfile: #*********************************************LAYER - TILE INDEX FOR PM2.5 RASTERS (Time sensitive) ********************************** LAYER STATUS ON NAME "pm25_time_index" TYPE POLYGON DATA "the_geom from pm25_monthly_global using unique oid using SRID=4326" METADATA "ows_title" "PM25 TIME INDEX" "ows_srs" "EPSG:4326" "ows_extent" "-180 -90 180 90" #[minx][miny][maxx][maxy] "wms_timeformat" "YYYY-MM-DDTHH:MM:SS" "wms_timeextent" "2011-01-01T00:00:00/2012-12-01T00:00:00" "wms_timeitem" "timezone" "wms_timedefault" "2011-01-01T00:00:00" wcs_resolution '0:10 0:10' # wcs_resolution '0.10 0.10' END #CONNECTION "user=wilbur dbname=pm25_monthly host=localhost password=iiiiiiiiii" #CONNECTIONTYPE postgis CONNECTIONTYPE POSTGIS CONNECTION "host=127.0.0.1 dbname=pm25_monthly user=wilbur password=EUR2_live port=5432" DATA "the_geom from pm25_monthly_global using unique oid using srid=4326" END #*********************************************LAYER - MONTHLY PM2.5 (Time Sensitive)********************************* #http://localhost/cgi-bin/mapserv?map=/var/www/pm25_mapserver/public_html/pm25_ogc_services.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=pm25_monthly&STYLES=&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=1600&HEIGHT=800&FORMAT=image/png&SLD=http://localhost/pm25_mapserver/public_html/pm25_sld.xml&TIME=2011-09-01T00:00:00Z LAYER NAME 'pm25_monthly' TYPE RASTER STATUS ON DEBUG OFF DUMP TRUE #TRANSPARENCY 50 #FILTER "" METADATA "ows_keywordlist" 'PM2.5 (ug/m3), Global' #wms_keywordlist (Keywordlist) "ows_description" "Global monthly mean PM 2.5 (ug/m3)concentration" "ows_name" "Global monthly mean PM2.5 - Concentration Values (ug/m3)" "ows_label" "Global PM 2.5 (ug/m3)" "ows_srs" "EPSG:4326 EPSG:900913" "ows_extent" "-180 -90 180 90" #[minx][miny][maxx][maxy] "ows_formats" "GEOTIFF" "ows_nativeformat" "8-bit GeoTIF" "ows_timeitem" "timezone" "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=/var/www/pm25_mapserver/public_html/pm25_ogc_services.map" "wms_abstract" 'Global monthly mean PM 2.5 (ug/m3)concentration' #wms_abstract(Abstract) "wms_opaque" '0' #wms_opaque(layer) "wms_title" "Global monthly mean PM 2.5 (ug/m3)concentration" "ows_timeformat" "YYYY-MM-DDTHH:MM:SSZ" "ows_timeextent" "2011-01-01T00:00:00Z/2012-12-01T00:00:00Z" "ows_timedefault" "2011-01-01T00:00:00Z" "wms_enable_request" "*" "wcs_resolution" "0:10 0:10" #"wcs_resolution" "0.10 0.10" "wcs_bandcount" "1" "wcs_size" "3600 1800" layer_name pm25_monthly END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION TILEITEM "location" TILEINDEX "pm25_time_index" END #LAYER Thanks From bob.basques at ci.stpaul.mn.us Sat Dec 13 19:34:39 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Sun, 14 Dec 2014 03:34:39 +0000 Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile Message-ID: All, Using this CGI fragment: . . .?map_layer[Points].class[0].LABEL[0].STYLE[0]=color+0+255+0& . . . and I'm trying to set the color in this mapfile fragment inside of the STYLE (inside of the LABEL bloc): NAME "GPS History" TEXT "[seq]" LABEL # OUTLINECOLOR 255 255 255 COLOR 255 255 254 FONT "arial-bold" TYPE truetype SIZE 9 POSITION cc #PARTIALS false FORCE true STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 #OUTLINECOLOR 0 0 0 OUTLINECOLOR 0 0 0 WIDTH 1 END END The change is occurring however at the COLOR value in the LABEL (text-color), not at the STYLE level (background polygon color). I assume this is something that hasn't been run into by anyone since the background label polys were implemented, and there being two different levels where the COLOR value can be set inside a single code block, or am I missing something? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Dec 15 08:49:34 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 15 Dec 2014 16:49:34 +0000 Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile In-Reply-To: References: Message-ID: Which version are you running? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Saturday, December 13, 2014 9:35 PM To: mapserver-users at osgeo.org Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile All, Using this CGI fragment: . . .?map_layer[Points].class[0].LABEL[0].STYLE[0]=color+0+255+0& . . . and I'm trying to set the color in this mapfile fragment inside of the STYLE (inside of the LABEL bloc): NAME "GPS History" TEXT "[seq]" LABEL # OUTLINECOLOR 255 255 255 COLOR 255 255 254 FONT "arial-bold" TYPE truetype SIZE 9 POSITION cc #PARTIALS false FORCE true STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 #OUTLINECOLOR 0 0 0 OUTLINECOLOR 0 0 0 WIDTH 1 END END The change is occurring however at the COLOR value in the LABEL (text-color), not at the STYLE level (background polygon color). I assume this is something that hasn't been run into by anyone since the background label polys were implemented, and there being two different levels where the COLOR value can be set inside a single code block, or am I missing something? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Dec 15 11:58:29 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 15 Dec 2014 19:58:29 +0000 Subject: [mapserver-users] RoadMap for MapServer In-Reply-To: <581F980A-7E34-4402-9219-96D59616F547@heller-ig.de> References: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> <581F980A-7E34-4402-9219-96D59616F547@heller-ig.de> Message-ID: The changes for that pull request look to be pretty modest. Have you tried creating a patch and applying to the 6.4 branch? From: Gregor Karzelek [mailto:Gregor.Karzelek at heller-ig.com] Sent: Wednesday, December 10, 2014 2:30 AM To: Lime, Steve D (MNIT); Mapserver-users Subject: Re: RoadMap for MapServer Hi Steve, Thanks for the info. The feature we would like to use most is: https://github.com/mapserver/mapserver/pull/4877 so that we can use runtime substitution in WEB->METADATA. Gregor ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 09.12.2014 um 20:51 schrieb Lime, Steve D (MNIT) >: The 7.0 release documents are pretty thin. The plan was to release this past summer but it?s dragged on much longer than I?d hoped (my fault). I?m still hoping you?ll see a beta in the next couple of weeks. What feature in particular are you waiting on? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor Karzelek Sent: Tuesday, December 09, 2014 8:57 AM To: Mapserver-users Subject: [mapserver-users] RoadMap for MapServer HI, Is there somewhere a roadmap for MapServer available? The last stable version released is 6.4.1 from January this year and since then a feature was implemented we would really like to use. But, as it is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. Best regards Gregor Karzelek ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Dec 15 13:47:49 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 15 Dec 2014 21:47:49 +0000 Subject: [mapserver-users] Postgres SQL oddity . . . Message-ID: I'm trying to display a set of GPS points from a layer in Postrgres . . . Getting this error however: msDrawMap(): Image handling error. Failed to draw layer named 'AVL_Plot_00to96'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column reference "vname" is ambiguous LINE 1: select "elapsed_min","vname",encode(ST_AsBinary(ST_Force2D("... from this Call: DATA "the_geom from ( select distinct on (vname) vname, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min, -- Compiled minutes since last major move of asset. * from loc where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" What I don't understand is how VNAME can be ambiguous when calling only one table (loc)?? The SQL works fine in PGADMIN. Does the using unique vname have something to do with the problem, which seems to be required. Help?? Thanks. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Dec 15 14:00:41 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 15 Dec 2014 22:00:41 +0000 Subject: [mapserver-users] Postgres SQL oddity . . . In-Reply-To: References: Message-ID: Hi, If vname is unique in your table, why do you need to do "select distinct" on it? I would make a blind guess with an alias name select distinct on (vname) vname_distinct Usually it is not as easy, though -Jukka Rahkonen- ________________________________ Basques, Bob wrote: > I'm trying to display a set of GPS points from a layer in Postrgres . . . > Getting this error however: msDrawMap(): Image handling error. Failed to draw layer named 'AVL_Plot_00to96'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column reference "vname" is ambiguous LINE 1: select "elapsed_min","vname",encode(ST_AsBinary(ST_Force2D("... from this Call: DATA "the_geom from ( select distinct on (vname) vname, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min, -- Compiled minutes since last major move of asset. * from loc where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" What I don't understand is how VNAME can be ambiguous when calling only one table (loc)?? The SQL works fine in PGADMIN. Does the using unique vname have something to do with the problem, which seems to be required. Help?? Thanks. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Dec 15 14:07:31 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 15 Dec 2014 22:07:31 +0000 Subject: [mapserver-users] Postgres SQL oddity . . . In-Reply-To: References: Message-ID: Vname is NOT distinct in the data table. I got the SQL to pass by dropping the " * " from the SQL, but ran into a different problem, how to run a logical expression against a POSTGRES call, looks like it only works with SHP files. Crap!! Bobb From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sent: Monday, December 15, 2014 4:01 PM To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org Subject: Re: Postgres SQL oddity . . . Hi, If vname is unique in your table, why do you need to do "select distinct" on it? I would make a blind guess with an alias name select distinct on (vname) vname_distinct Usually it is not as easy, though -Jukka Rahkonen- ________________________________ Basques, Bob wrote: > I'm trying to display a set of GPS points from a layer in Postrgres . . . > Getting this error however: msDrawMap(): Image handling error. Failed to draw layer named 'AVL_Plot_00to96'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column reference "vname" is ambiguous LINE 1: select "elapsed_min","vname",encode(ST_AsBinary(ST_Force2D("... from this Call: DATA "the_geom from ( select distinct on (vname) vname, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min, -- Compiled minutes since last major move of asset. * from loc where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" What I don't understand is how VNAME can be ambiguous when calling only one table (loc)?? The SQL works fine in PGADMIN. Does the using unique vname have something to do with the problem, which seems to be required. Help?? Thanks. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Dec 15 14:08:41 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 15 Dec 2014 22:08:41 +0000 Subject: [mapserver-users] Postgres SQL oddity . . . In-Reply-To: References: Message-ID: Ahh, fixed it. Mapserver doesn't like the ' * ' in the SQL , at least not on the end . . . hmm, I wonder if it needs (should be) to be escaped in a subquery?? I took that out and added in a couple of key columns I needed . . . This works now: DATA "the_geom from ( select distinct on (vname) vname, the_line as the_geom, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min -- Compiled minutes since last major move of asset. from loc where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, December 15, 2014 3:48 PM To: mapserver-users at osgeo.org Subject: [mapserver-users] Postgres SQL oddity . . . I'm trying to display a set of GPS points from a layer in Postrgres . . . Getting this error however: msDrawMap(): Image handling error. Failed to draw layer named 'AVL_Plot_00to96'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column reference "vname" is ambiguous LINE 1: select "elapsed_min","vname",encode(ST_AsBinary(ST_Force2D("... from this Call: DATA "the_geom from ( select distinct on (vname) vname, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min, -- Compiled minutes since last major move of asset. * from loc where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" What I don't understand is how VNAME can be ambiguous when calling only one table (loc)?? The SQL works fine in PGADMIN. Does the using unique vname have something to do with the problem, which seems to be required. Help?? Thanks. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Dec 15 14:09:11 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 15 Dec 2014 22:09:11 +0000 Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile In-Reply-To: References: Message-ID: Looking at the code it's definitely a bug. The configuration updater doesn't take into account styles within a label so it applies the snippet you send to the label object. If your snippet contained reference to an attribute a label doesn't support then you'd get a parsing error. Because 'color' is supported by both it happily changes the wrong color. Can you file a ticket? Steve From: Basques, Bob (CI-StPaul) Sent: Monday, December 15, 2014 10:53 AM To: Lime, Steve D (MNIT) Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile V6.4.1 From: Lime, Steve D (MNIT) Sent: Monday, December 15, 2014 10:50 AM To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile Which version are you running? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Saturday, December 13, 2014 9:35 PM To: mapserver-users at osgeo.org Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile All, Using this CGI fragment: . . .?map_layer[Points].class[0].LABEL[0].STYLE[0]=color+0+255+0& . . . and I'm trying to set the color in this mapfile fragment inside of the STYLE (inside of the LABEL bloc): NAME "GPS History" TEXT "[seq]" LABEL # OUTLINECOLOR 255 255 255 COLOR 255 255 254 FONT "arial-bold" TYPE truetype SIZE 9 POSITION cc #PARTIALS false FORCE true STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 #OUTLINECOLOR 0 0 0 OUTLINECOLOR 0 0 0 WIDTH 1 END END The change is occurring however at the COLOR value in the LABEL (text-color), not at the STYLE level (background polygon color). I assume this is something that hasn't been run into by anyone since the background label polys were implemented, and there being two different levels where the COLOR value can be set inside a single code block, or am I missing something? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Dec 15 14:12:34 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 15 Dec 2014 22:12:34 +0000 Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile In-Reply-To: References: Message-ID: Will do. bobb From: Lime, Steve D (MNIT) Sent: Monday, December 15, 2014 4:09 PM To: Basques, Bob (CI-StPaul) Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile Looking at the code it's definitely a bug. The configuration updater doesn't take into account styles within a label so it applies the snippet you send to the label object. If your snippet contained reference to an attribute a label doesn't support then you'd get a parsing error. Because 'color' is supported by both it happily changes the wrong color. Can you file a ticket? Steve From: Basques, Bob (CI-StPaul) Sent: Monday, December 15, 2014 10:53 AM To: Lime, Steve D (MNIT) Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile V6.4.1 From: Lime, Steve D (MNIT) Sent: Monday, December 15, 2014 10:50 AM To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile Which version are you running? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Saturday, December 13, 2014 9:35 PM To: mapserver-users at osgeo.org Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile All, Using this CGI fragment: . . .?map_layer[Points].class[0].LABEL[0].STYLE[0]=color+0+255+0& . . . and I'm trying to set the color in this mapfile fragment inside of the STYLE (inside of the LABEL bloc): NAME "GPS History" TEXT "[seq]" LABEL # OUTLINECOLOR 255 255 255 COLOR 255 255 254 FONT "arial-bold" TYPE truetype SIZE 9 POSITION cc #PARTIALS false FORCE true STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 #OUTLINECOLOR 0 0 0 OUTLINECOLOR 0 0 0 WIDTH 1 END END The change is occurring however at the COLOR value in the LABEL (text-color), not at the STYLE level (background polygon color). I assume this is something that hasn't been run into by anyone since the background label polys were implemented, and there being two different levels where the COLOR value can be set inside a single code block, or am I missing something? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Mon Dec 15 14:32:12 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Mon, 15 Dec 2014 22:32:12 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Postgres SQL oddity . . . Message-ID: Bob, If you want to keep * in the select, you have to alias the table name and add that to the *. Eg, DATA "the_geom from ( select distinct on (vname) vname, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min, -- Compiled minutes since last major move of asset. L.* from Loc l where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" From: , "Bob (CI-StPaul)" > Date: Monday, December 15, 2014 at 5:07 PM To: "Rahkonen Jukka (Tike)" >, "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] Re: [mapserver-users] Postgres SQL oddity . . . Resent-From: Michael Smith > Vname is NOT distinct in the data table. I got the SQL to pass by dropping the ? * ? from the SQL, but ran into a different problem, how to run a logical expression against a POSTGRES call, looks like it only works with SHP files. Crap!! Bobb From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sent: Monday, December 15, 2014 4:01 PM To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org Subject: Re: Postgres SQL oddity . . . Hi, If vname is unique in your table, why do you need to do "select distinct" on it? I would make a blind guess with an alias name select distinct on (vname) vname_distinct Usually it is not as easy, though -Jukka Rahkonen- ________________________________ Basques, Bob wrote: > I'm trying to display a set of GPS points from a layer in Postrgres . . . > Getting this error however: msDrawMap(): Image handling error. Failed to draw layer named 'AVL_Plot_00to96'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column reference "vname" is ambiguous LINE 1: select "elapsed_min","vname",encode(ST_AsBinary(ST_Force2D("... from this Call: DATA "the_geom from ( select distinct on (vname) vname, st_length(st_transform(the_line, 26993)) as feet, (DATE_PART('day', now() - acqtime) * 24 + DATE_PART('hour', now() - acqtime) * 60 + DATE_PART('minute', now() - acqtime) ) as elapsed_min, -- Compiled minutes since last major move of asset. * from loc where st_length(st_transform(the_line, 26993)) > 30 -- GPS error order by vname desc ) as subquery using unique vname using srid=200068" What I don't understand is how VNAME can be ambiguous when calling only one table (loc)?? The SQL works fine in PGADMIN. Does the using unique vname have something to do with the problem, which seems to be required. Help?? Thanks. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Dec 15 14:53:48 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 15 Dec 2014 22:53:48 +0000 Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile In-Reply-To: References: Message-ID: New issue added. Bobb From: Lime, Steve D (MNIT) Sent: Monday, December 15, 2014 4:09 PM To: Basques, Bob (CI-StPaul) Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile Looking at the code it's definitely a bug. The configuration updater doesn't take into account styles within a label so it applies the snippet you send to the label object. If your snippet contained reference to an attribute a label doesn't support then you'd get a parsing error. Because 'color' is supported by both it happily changes the wrong color. Can you file a ticket? Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gregor.Karzelek at heller-ig.com Tue Dec 16 02:55:25 2014 From: Gregor.Karzelek at heller-ig.com (Gregor Karzelek) Date: Tue, 16 Dec 2014 10:55:25 +0000 Subject: [mapserver-users] RoadMap for MapServer In-Reply-To: References: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> <581F980A-7E34-4402-9219-96D59616F547@heller-ig.de> Message-ID: <5F390D65-A28F-4E4D-850C-E6D8BAC5190C@heller-ig.de> No, I haven?t yet. As I written: It is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. That?s why I asked for the RoadMap of the next official release. If it would take quarter of a year or less we would wait. If more then we would re-think about a self-compiled MapServer with that patch applied. Gregor ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 15.12.2014 um 20:58 schrieb Lime, Steve D (MNIT) >: The changes for that pull request look to be pretty modest. Have you tried creating a patch and applying to the 6.4 branch? From: Gregor Karzelek [mailto:Gregor.Karzelek at heller-ig.com] Sent: Wednesday, December 10, 2014 2:30 AM To: Lime, Steve D (MNIT); Mapserver-users Subject: Re: RoadMap for MapServer Hi Steve, Thanks for the info. The feature we would like to use most is: https://github.com/mapserver/mapserver/pull/4877 so that we can use runtime substitution in WEB->METADATA. Gregor ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 09.12.2014 um 20:51 schrieb Lime, Steve D (MNIT) >: The 7.0 release documents are pretty thin. The plan was to release this past summer but it?s dragged on much longer than I?d hoped (my fault). I?m still hoping you?ll see a beta in the next couple of weeks. What feature in particular are you waiting on? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor Karzelek Sent: Tuesday, December 09, 2014 8:57 AM To: Mapserver-users Subject: [mapserver-users] RoadMap for MapServer HI, Is there somewhere a roadmap for MapServer available? The last stable version released is 6.4.1 from January this year and since then a feature was implemented we would really like to use. But, as it is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. Best regards Gregor Karzelek ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Tue Dec 16 05:03:25 2014 From: geographika at gmail.com (geographika) Date: Tue, 16 Dec 2014 14:03:25 +0100 Subject: [mapserver-users] browse mode no longer saves images? Message-ID: <54902D9D.8070508@gmail.com> Hi list, Until now I have been using MapServer as a WMS server. I've only recently been trying out the CGI controls, which would be very handy for a reporting application. The MapServer tutorials refer several times to saving temporary images using the mode=browse. At http://demo.mapserver.org/tutorial/section3.html the map images generated in these tutorials refer to image files on the web server (so are not generated dynamically). E.g. http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png I've tried to set this up in MapServer 6.4 without success. I've set up parameters in the WEB section as follows: WEB IMAGEPATH "C:/Mapserver/apps/pms/tmp" # Also tried "tmp/" IMAGEURL "tmp/" TEMPLATE "reports/test.html" However no images are ever created in this folder when using a request such as http://localhost/mapserver/?LAYERS=mylayer&mode=browse The template contains file names such as tmp/MyMap14187343292752.png but these never seem to be written to disk. How can these images be persisted? I know I could use mode=map to generate an image, but I want to create legends etc. all with a single request. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Tue Dec 16 05:28:15 2014 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Tue, 16 Dec 2014 14:28:15 +0100 Subject: [mapserver-users] browse mode no longer saves images? In-Reply-To: <54902D9D.8070508@gmail.com> References: <54902D9D.8070508@gmail.com> Message-ID: <5490336F.3020303@mapmedia.de> Hi Seth, are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please check. Also you can use debug-mode to see where mapserver wants to write the image and perhaps cannot. the directory has to be writable, but with windows this should not be a problem. And you have to define the alias in apache for the tmp-directory like ALIAS /tmp C:/Mapserver/apps/pms/tmp .... J?rg Am 16.12.2014 um 14:03 schrieb geographika: > Hi list, > > Until now I have been using MapServer as a WMS server. I've only > recently been trying out the CGI controls, which would be very handy for > a reporting application. > > The MapServer tutorials refer several times to saving temporary images > using the mode=browse. At > http://demo.mapserver.org/tutorial/section3.html the map images > generated in these tutorials refer to image files on the web server (so > are not generated dynamically). E.g. > http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png > > I've tried to set this up in MapServer 6.4 without success. I've set up > parameters in the WEB section as follows: > > WEB > IMAGEPATH "C:/Mapserver/apps/pms/tmp" > # Also tried "tmp/" > IMAGEURL "tmp/" > TEMPLATE "reports/test.html" > > However no images are ever created in this folder when using a request > such as http://localhost/mapserver/?LAYERS=mylayer&mode=browse > > The template contains file names such as tmp/MyMap14187343292752.png but > these never seem to be written to disk. How can these images be persisted? > I know I could use mode=map to generate an image, but I want to create > legends etc. all with a single request. > > Regards, > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From geographika at gmail.com Tue Dec 16 06:01:46 2014 From: geographika at gmail.com (geographika) Date: Tue, 16 Dec 2014 15:01:46 +0100 Subject: [mapserver-users] browse mode no longer saves images? In-Reply-To: <5490336F.3020303@mapmedia.de> References: <54902D9D.8070508@gmail.com> <5490336F.3020303@mapmedia.de> Message-ID: <54903B4A.80501@gmail.com> Hi J?rg, Thanks for your reply. The path definitely exists, and if I set the WEB > TEMPPATH to this folder MapServer can create the temporary .MAP files here for certain requests. I'm using IIS not Apache, but I have the /tmp directory set up as a virtual directory so it accessible by the browser (I've tested a test image can be accessed). There are no errors in the logs (on DEBUG 5) and no mention of saving to any output file. Is it certain MapServer writes image files to disk still? Regards, Seth On 16/12/2014 14:28, J?rg Thomsen wrote: > Hi Seth, > > are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please > check. Also you can use debug-mode to see where mapserver wants to write > the image and perhaps cannot. > the directory has to be writable, but with windows this should not be a > problem. > > And you have to define the alias in apache for the tmp-directory like > ALIAS /tmp C:/Mapserver/apps/pms/tmp > > .... > > > J?rg > > Am 16.12.2014 um 14:03 schrieb geographika: >> Hi list, >> >> Until now I have been using MapServer as a WMS server. I've only >> recently been trying out the CGI controls, which would be very handy for >> a reporting application. >> >> The MapServer tutorials refer several times to saving temporary images >> using the mode=browse. At >> http://demo.mapserver.org/tutorial/section3.html the map images >> generated in these tutorials refer to image files on the web server (so >> are not generated dynamically). E.g. >> http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png >> >> I've tried to set this up in MapServer 6.4 without success. I've set up >> parameters in the WEB section as follows: >> >> WEB >> IMAGEPATH "C:/Mapserver/apps/pms/tmp" >> # Also tried "tmp/" >> IMAGEURL "tmp/" >> TEMPLATE "reports/test.html" >> >> However no images are ever created in this folder when using a request >> such as http://localhost/mapserver/?LAYERS=mylayer&mode=browse >> >> The template contains file names such as tmp/MyMap14187343292752.png but >> these never seem to be written to disk. How can these images be persisted? >> I know I could use mode=map to generate an image, but I want to create >> legends etc. all with a single request. >> >> Regards, >> >> Seth >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Tue Dec 16 08:59:44 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 16 Dec 2014 16:59:44 +0000 Subject: [mapserver-users] RoadMap for MapServer In-Reply-To: <5F390D65-A28F-4E4D-850C-E6D8BAC5190C@heller-ig.de> References: <3ACFD662-4F5F-4477-8059-07CC56E3F79C@heller-ig.de> <581F980A-7E34-4402-9219-96D59616F547@heller-ig.de> <5F390D65-A28F-4E4D-850C-E6D8BAC5190C@heller-ig.de> Message-ID: It will take less than 2.5 months... Steve From: Gregor Karzelek [mailto:Gregor.Karzelek at heller-ig.com] Sent: Tuesday, December 16, 2014 4:55 AM To: Lime, Steve D (MNIT) Cc: Mapserver-users Subject: Re: RoadMap for MapServer No, I haven?t yet. As I written: It is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. That?s why I asked for the RoadMap of the next official release. If it would take quarter of a year or less we would wait. If more then we would re-think about a self-compiled MapServer with that patch applied. Gregor ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 15.12.2014 um 20:58 schrieb Lime, Steve D (MNIT) >: The changes for that pull request look to be pretty modest. Have you tried creating a patch and applying to the 6.4 branch? From: Gregor Karzelek [mailto:Gregor.Karzelek at heller-ig.com] Sent: Wednesday, December 10, 2014 2:30 AM To: Lime, Steve D (MNIT); Mapserver-users Subject: Re: RoadMap for MapServer Hi Steve, Thanks for the info. The feature we would like to use most is: https://github.com/mapserver/mapserver/pull/4877 so that we can use runtime substitution in WEB->METADATA. Gregor ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 09.12.2014 um 20:51 schrieb Lime, Steve D (MNIT) >: The 7.0 release documents are pretty thin. The plan was to release this past summer but it?s dragged on much longer than I?d hoped (my fault). I?m still hoping you?ll see a beta in the next couple of weeks. What feature in particular are you waiting on? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor Karzelek Sent: Tuesday, December 09, 2014 8:57 AM To: Mapserver-users Subject: [mapserver-users] RoadMap for MapServer HI, Is there somewhere a roadmap for MapServer available? The last stable version released is 6.4.1 from January this year and since then a feature was implemented we would really like to use. But, as it is a ?live? system, we would like to use a stable, officially released version of MapServer and no self-compiled. Best regards Gregor Karzelek ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T9 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at markus-spring.de Tue Dec 16 15:14:14 2014 From: mapserver at markus-spring.de (mapserver) Date: Wed, 17 Dec 2014 00:14:14 +0100 Subject: [mapserver-users] WFS: How to suppress coordinate output Message-ID: <5490BCC6.1000402@markus-spring.de> Hi list, I use WFS with filters to query the non-geometry data of my geographical data sets, like specific IDs of polygons. As I want to use this mechanism in a service available to the public, but do not have the clearance to publish all the coordinate data, I am looking for a way to suppress the dump of all the coordinates in the getfeature-result, leaving only the attribute data that I have specified in "gml_include_items". Is this possible at all, and if so, how can I accomplish this? Thanks - Markus From bpicinbono at worldonline.fr Tue Dec 16 18:35:28 2014 From: bpicinbono at worldonline.fr (Blaise) Date: Wed, 17 Dec 2014 03:35:28 +0100 Subject: [mapserver-users] WFS: How to suppress coordinate output In-Reply-To: <5490BCC6.1000402@markus-spring.de> References: <5490BCC6.1000402@markus-spring.de> Message-ID: <5490EBF0.2060004@worldonline.fr> Hi, Have you tried "wfs_enable_request" in the METADATA block of a layer ? Should work. Regards Blaise On 12/17/2014 12:14 AM, mapserver wrote: > Hi list, > > I use WFS with filters to query the non-geometry data of my > geographical data sets, like specific IDs of polygons. > > As I want to use this mechanism in a service available to the public, > but do not have the clearance to publish all the coordinate data, I am > looking for a way to suppress the dump of all the coordinates in the > getfeature-result, leaving only the attribute data that I have > specified in "gml_include_items". > > Is this possible at all, and if so, how can I accomplish this? > > Thanks - Markus > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From aperi2007 at gmail.com Tue Dec 16 23:04:19 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 17 Dec 2014 08:04:19 +0100 Subject: [mapserver-users] WFS: How to suppress coordinate output In-Reply-To: <5490BCC6.1000402@markus-spring.de> References: <5490BCC6.1000402@markus-spring.de> Message-ID: you can suppress the geometry using the request parameter "propertyName=" adding it tho the request GetFeature you can list all the field you want in output. So you simply dont list the Geometry field. A. 2014-12-17 0:14 GMT+01:00 mapserver : > Hi list, > > I use WFS with filters to query the non-geometry data of my geographical > data sets, like specific IDs of polygons. > > As I want to use this mechanism in a service available to the public, but do > not have the clearance to publish all the coordinate data, I am looking for > a way to suppress the dump of all the coordinates in the getfeature-result, > leaving only the attribute data that I have specified in > "gml_include_items". > > Is this possible at all, and if so, how can I accomplish this? > > Thanks - Markus > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From liuxiaoer at live.cn Wed Dec 17 01:17:46 2014 From: liuxiaoer at live.cn (=?gb2312?B?wfXQobb+?=) Date: Wed, 17 Dec 2014 09:17:46 +0000 Subject: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile Message-ID: Hi, is there a way to avoid clipping the symbols on the edge of a tile, so all symbols would be fully displayed? The second house symbol is clipped. Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: QQ??20141217163135.png Type: image/png Size: 5973 bytes Desc: not available URL: From geographika at gmail.com Wed Dec 17 04:08:04 2014 From: geographika at gmail.com (geographika) Date: Wed, 17 Dec 2014 13:08:04 +0100 Subject: [mapserver-users] browse mode no longer saves images? In-Reply-To: <5490336F.3020303@mapmedia.de> References: <54902D9D.8070508@gmail.com> <5490336F.3020303@mapmedia.de> Message-ID: <54917224.6020802@gmail.com> Hello again, A few more tests with no luck in saving the images to disk on the server. Does anyone save images to the server using 6.4? It works fine on the examples at http://demo.mapserver.org/cgi-bin/mapserv? but these use MapServer 5.6.5 This applies to [img], [scalebar], [legend] even though unique filenames are generated in the template output e.g. I've tried running from the command line to rule out the web server: mapserv -nh "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Test&mode=browse" I also tried to create a new OUTPUTFORMAT to use, setting it explicitly to use the filesystem (although I'm not sure if this only applies to OGR formats): OUTPUTFORMAT NAME 'png2' DRIVER "GDAL/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGBA #All features are rendered against an initially transparent background. FORMATOPTION "STORAGE=filesystem" END And then from the command line: mapserv -nh "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Bridges&mode=browse&QFORMAT=png2&SAVEQUERY=true" The logs show the following (with debug set to 5) with no errors: [Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272 [Wed Dec 17 11:55:42 2014].382000 mapserv request processing time (msLoadMap not incl.): 0.015s [Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 0000000002A3A870 Regards, Seth On 16/12/2014 14:28, J?rg Thomsen wrote: > Hi Seth, > > are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please > check. Also you can use debug-mode to see where mapserver wants to write > the image and perhaps cannot. > the directory has to be writable, but with windows this should not be a > problem. > > And you have to define the alias in apache for the tmp-directory like > ALIAS /tmp C:/Mapserver/apps/pms/tmp > > .... > > > J?rg > > Am 16.12.2014 um 14:03 schrieb geographika: >> Hi list, >> >> Until now I have been using MapServer as a WMS server. I've only >> recently been trying out the CGI controls, which would be very handy for >> a reporting application. >> >> The MapServer tutorials refer several times to saving temporary images >> using the mode=browse. At >> http://demo.mapserver.org/tutorial/section3.html the map images >> generated in these tutorials refer to image files on the web server (so >> are not generated dynamically). E.g. >> http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png >> >> I've tried to set this up in MapServer 6.4 without success. I've set up >> parameters in the WEB section as follows: >> >> WEB >> IMAGEPATH "C:/Mapserver/apps/pms/tmp" >> # Also tried "tmp/" >> IMAGEURL "tmp/" >> TEMPLATE "reports/test.html" >> >> However no images are ever created in this folder when using a request >> such as http://localhost/mapserver/?LAYERS=mylayer&mode=browse >> >> The template contains file names such as tmp/MyMap14187343292752.png but >> these never seem to be written to disk. How can these images be persisted? >> I know I could use mode=map to generate an image, but I want to create >> legends etc. all with a single request. >> >> Regards, >> >> Seth >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Dec 17 08:22:38 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 17 Dec 2014 16:22:38 +0000 Subject: [mapserver-users] browse mode no longer saves images? In-Reply-To: <54917224.6020802@gmail.com> References: <54902D9D.8070508@gmail.com> <5490336F.3020303@mapmedia.de> <54917224.6020802@gmail.com> Message-ID: I'm able to save images using 6.4.1. Just tested it with a template that uses [img] and [ref]... This is on a Linux server. --Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of geographika Sent: Wednesday, December 17, 2014 6:08 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] browse mode no longer saves images? Hello again, A few more tests with no luck in saving the images to disk on the server. Does anyone save images to the server using 6.4? It works fine on the examples at http://demo.mapserver.org/cgi-bin/mapserv? but these use MapServer 5.6.5 This applies to [img], [scalebar], [legend] even though unique filenames are generated in the template output e.g. I've tried running from the command line to rule out the web server: mapserv -nh "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Test&mode=browse" I also tried to create a new OUTPUTFORMAT to use, setting it explicitly to use the filesystem (although I'm not sure if this only applies to OGR formats): OUTPUTFORMAT NAME 'png2' DRIVER "GDAL/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGBA #All features are rendered against an initially transparent background. FORMATOPTION "STORAGE=filesystem" END And then from the command line: mapserv -nh "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Bridges&mode=browse&QFORMAT=png2&SAVEQUERY=true" The logs show the following (with debug set to 5) with no errors: [Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272 [Wed Dec 17 11:55:42 2014].382000 mapserv request processing time (msLoadMap not incl.): 0.015s [Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 0000000002A3A870 Regards, Seth On 16/12/2014 14:28, J?rg Thomsen wrote: Hi Seth, are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please check. Also you can use debug-mode to see where mapserver wants to write the image and perhaps cannot. the directory has to be writable, but with windows this should not be a problem. And you have to define the alias in apache for the tmp-directory like ALIAS /tmp C:/Mapserver/apps/pms/tmp .... J?rg Am 16.12.2014 um 14:03 schrieb geographika: Hi list, Until now I have been using MapServer as a WMS server. I've only recently been trying out the CGI controls, which would be very handy for a reporting application. The MapServer tutorials refer several times to saving temporary images using the mode=browse. At http://demo.mapserver.org/tutorial/section3.html the map images generated in these tutorials refer to image files on the web server (so are not generated dynamically). E.g. http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png I've tried to set this up in MapServer 6.4 without success. I've set up parameters in the WEB section as follows: WEB IMAGEPATH "C:/Mapserver/apps/pms/tmp" # Also tried "tmp/" IMAGEURL "tmp/" TEMPLATE "reports/test.html" However no images are ever created in this folder when using a request such as http://localhost/mapserver/?LAYERS=mylayer&mode=browse The template contains file names such as tmp/MyMap14187343292752.png but these never seem to be written to disk. How can these images be persisted? I know I could use mode=map to generate an image, but I want to create legends etc. all with a single request. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Wed Dec 17 12:34:38 2014 From: geographika at gmail.com (geographika) Date: Wed, 17 Dec 2014 21:34:38 +0100 Subject: [mapserver-users] browse mode no longer saves images? In-Reply-To: References: <54902D9D.8070508@gmail.com> <5490336F.3020303@mapmedia.de> <54917224.6020802@gmail.com> Message-ID: <5491E8DE.20506@gmail.com> Thanks Steve. I persevered knowing it was still a valid use case. Turns out it was a simple error / misunderstanding on my part. I've had the MAP STATUS set to OFF for years, and always accessed layers using WMS/WFS/GeoJSON. It seems in CGI mode this means no map image is ever created (even when specifying layers to show). The map did appear in mode=map however, just not mode=browse. Seth On 17/12/2014 17:22, Lime, Steve D (MNIT) wrote: > > I'm able to save images using 6.4.1. Just tested it with a template > that uses [img] and [ref]... This is on a Linux server. --Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *geographika > *Sent:* Wednesday, December 17, 2014 6:08 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] browse mode no longer saves images? > > Hello again, > > A few more tests with no luck in saving the images to disk on the server. > Does anyone save images to the server using 6.4? It works fine on the > examples at http://demo.mapserver.org/cgi-bin/mapserv? but these use > MapServer 5.6.5 > > This applies to [img], [scalebar], [legend] even though unique > filenames are generated in the template output e.g. > > > > > > I've tried running from the command line to rule out the web server: > > mapserv -nh > "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Test&mode=browse" > > I also tried to create a new OUTPUTFORMAT to use, setting it > explicitly to use the filesystem (although I'm not sure if this only > applies to OGR formats): > > OUTPUTFORMAT > NAME 'png2' > DRIVER "GDAL/PNG" > MIMETYPE "image/png" > EXTENSION "png" > IMAGEMODE RGBA #All features are rendered against an initially > transparent background. > FORMATOPTION "STORAGE=filesystem" > END > > And then from the command line: > > mapserv -nh > "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Bridges&mode=browse&QFORMAT=png2&SAVEQUERY=true" > > > The logs show the following (with debug set to 5) with no errors: > > [Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272 > [Wed Dec 17 11:55:42 2014].382000 mapserv request processing time > (msLoadMap not incl.): 0.015s > [Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at > 0000000002A3A870 > > Regards, > > Seth > > On 16/12/2014 14:28, J?rg Thomsen wrote: > > Hi Seth, > > > > are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please > > check. Also you can use debug-mode to see where mapserver wants to write > > the image and perhaps cannot. > > the directory has to be writable, but with windows this should not be a > > problem. > > > > And you have to define the alias in apache for the tmp-directory like > > ALIAS /tmp C:/Mapserver/apps/pms/tmp > > > > .... > > > > > > J?rg > > > > Am 16.12.2014 um 14:03 schrieb geographika: > > Hi list, > > > > Until now I have been using MapServer as a WMS server. I've only > > recently been trying out the CGI controls, which would be very handy for > > a reporting application. > > > > The MapServer tutorials refer several times to saving temporary images > > using the mode=browse. At > > http://demo.mapserver.org/tutorial/section3.html the map images > > generated in these tutorials refer to image files on the web server (so > > are not generated dynamically). E.g. > > http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png > > > > I've tried to set this up in MapServer 6.4 without success. I've set up > > parameters in the WEB section as follows: > > > > WEB > > IMAGEPATH "C:/Mapserver/apps/pms/tmp" > > # Also tried "tmp/" > > IMAGEURL "tmp/" > > TEMPLATE "reports/test.html" > > > > However no images are ever created in this folder when using a request > > such ashttp://localhost/mapserver/?LAYERS=mylayer&mode=browse > > > > The template contains file names such as tmp/MyMap14187343292752.png but > > these never seem to be written to disk. How can these images be persisted? > > I know I could use mode=map to generate an image, but I want to create > > legends etc. all with a single request. > > > > Regards, > > > > Seth > > > > -- > > web:http://geographika.co.uk > > twitter: @geographika > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Dec 17 12:43:19 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 17 Dec 2014 20:43:19 +0000 Subject: [mapserver-users] browse mode no longer saves images? In-Reply-To: <5491E8DE.20506@gmail.com> References: <54902D9D.8070508@gmail.com> <5490336F.3020303@mapmedia.de> <54917224.6020802@gmail.com> <5491E8DE.20506@gmail.com> Message-ID: Years ago I had apps where a map came from another service but I wanted to frame that map with MapServer-generate elements such as a scalebar and reference map. Hence the ability to set STATUS OFF. Steve From: geographika [mailto:geographika at gmail.com] Sent: Wednesday, December 17, 2014 2:35 PM To: Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] browse mode no longer saves images? Thanks Steve. I persevered knowing it was still a valid use case. Turns out it was a simple error / misunderstanding on my part. I've had the MAP STATUS set to OFF for years, and always accessed layers using WMS/WFS/GeoJSON. It seems in CGI mode this means no map image is ever created (even when specifying layers to show). The map did appear in mode=map however, just not mode=browse. Seth On 17/12/2014 17:22, Lime, Steve D (MNIT) wrote: I'm able to save images using 6.4.1. Just tested it with a template that uses [img] and [ref]... This is on a Linux server. --Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of geographika Sent: Wednesday, December 17, 2014 6:08 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] browse mode no longer saves images? Hello again, A few more tests with no luck in saving the images to disk on the server. Does anyone save images to the server using 6.4? It works fine on the examples at http://demo.mapserver.org/cgi-bin/mapserv? but these use MapServer 5.6.5 This applies to [img], [scalebar], [legend] even though unique filenames are generated in the template output e.g. I've tried running from the command line to rule out the web server: mapserv -nh "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Test&mode=browse" I also tried to create a new OUTPUTFORMAT to use, setting it explicitly to use the filesystem (although I'm not sure if this only applies to OGR formats): OUTPUTFORMAT NAME 'png2' DRIVER "GDAL/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGBA #All features are rendered against an initially transparent background. FORMATOPTION "STORAGE=filesystem" END And then from the command line: mapserv -nh "QUERY_STRING=map=C:/MapServer/apps/pms/mymap.map&LAYERS=Bridges&mode=browse&QFORMAT=png2&SAVEQUERY=true" The logs show the following (with debug set to 5) with no errors: [Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272 [Wed Dec 17 11:55:42 2014].382000 mapserv request processing time (msLoadMap not incl.): 0.015s [Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 0000000002A3A870 Regards, Seth On 16/12/2014 14:28, J?rg Thomsen wrote: Hi Seth, are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please check. Also you can use debug-mode to see where mapserver wants to write the image and perhaps cannot. the directory has to be writable, but with windows this should not be a problem. And you have to define the alias in apache for the tmp-directory like ALIAS /tmp C:/Mapserver/apps/pms/tmp .... J?rg Am 16.12.2014 um 14:03 schrieb geographika: Hi list, Until now I have been using MapServer as a WMS server. I've only recently been trying out the CGI controls, which would be very handy for a reporting application. The MapServer tutorials refer several times to saving temporary images using the mode=browse. At http://demo.mapserver.org/tutorial/section3.html the map images generated in these tutorials refer to image files on the web server (so are not generated dynamically). E.g. http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png I've tried to set this up in MapServer 6.4 without success. I've set up parameters in the WEB section as follows: WEB IMAGEPATH "C:/Mapserver/apps/pms/tmp" # Also tried "tmp/" IMAGEURL "tmp/" TEMPLATE "reports/test.html" However no images are ever created in this folder when using a request such as http://localhost/mapserver/?LAYERS=mylayer&mode=browse The template contains file names such as tmp/MyMap14187343292752.png but these never seem to be written to disk. How can these images be persisted? I know I could use mode=map to generate an image, but I want to create legends etc. all with a single request. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdavies at sdc.com.au Wed Dec 17 18:32:44 2014 From: sdavies at sdc.com.au (Stephen Davies) Date: Thu, 18 Dec 2014 13:02:44 +1030 Subject: [mapserver-users] Left click loses CGI variables Message-ID: <54923CCC.1010208@sdc.com.au> When sending output to PDA devices, I use a direct call to mapserv with several run-time substitution variables to set filters. This works perfectly for the initial display but if the user clicks the resulting map, the redisplay loses all of the variables. This led to errors in the redisplay because %foo% was no longer replaced so I added default_foo entries to the mapfile. This prevents the errors but means that nothing matches the default filter. How can I tell mapserv to retain the original variables? Cheers and thanks, Stephen -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From lars.fricke at skendata.de Wed Dec 17 23:29:19 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Thu, 18 Dec 2014 08:29:19 +0100 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client Message-ID: <5492824F.5030003@skendata.de> Hello, I am trying to access an external WFS with MapServer as client to cascade it. I get the following error message: msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). Indeed the external server only sends version 1.1.0 and my mapfile has: ... METADATA "wfs_version" "1.1.0" ... Now when I search on the net, I find bug reports about WMS 1.1.0 and MapServer but no information if I can use it as a 1.1.0 client at all. And if so, do I need to use something specific to activate it? I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for looking into this. Best Lars From zachc1980 at gmail.com Thu Dec 18 07:18:20 2014 From: zachc1980 at gmail.com (zach cruise) Date: Thu, 18 Dec 2014 10:18:20 -0500 Subject: [mapserver-users] need help with outputformat=kml for wfs Message-ID: using- * MapServer version 6.4.0 ... OUTPUT=KML ... SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT ... * httpd file- ... AddType application/vnd.google-earth.kml+xml .kml ... * map file- MAP ... IMAGETYPE kml ... WEB ... METADATA ... "wfs_getfeature_formatlist" "kml" ... END END OUTPUTFORMAT NAME "kml" DRIVER KML MIMETYPE "application/vnd.google-earth.kml.xml" IMAGEMODE RGB IMAGEMODE FEATURE EXTENSION "kml" FORMATOPTION "ATTACHMENT=doc.kml" END LAYER ... END END * url- ../cgi-bin/mapserv?SERVICE=wfs&REQUEST=getfeature&TYPENAME=shoppinglist&VERSION=1.0.0&OUTPUTFORMAT=kml (with or without "MODE=map") but all i get is (no placemarks for points?)- shoppingmap shoppinglist 1 #LayerFolder_check From Steve.Lime at state.mn.us Thu Dec 18 08:10:36 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 18 Dec 2014 16:10:36 +0000 Subject: [mapserver-users] Left click loses CGI variables In-Reply-To: <54923CCC.1010208@sdc.com.au> References: <54923CCC.1010208@sdc.com.au> Message-ID: What sort of a client environment are you working in? This doesn't sound like a MapServer problem unless you're using mode=browse. I'd think you'd manage those variables within OL, Leaflet or whatever and just keep attaching values to calls back to the server. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Davies Sent: Wednesday, December 17, 2014 8:33 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Left click loses CGI variables When sending output to PDA devices, I use a direct call to mapserv with several run-time substitution variables to set filters. This works perfectly for the initial display but if the user clicks the resulting map, the redisplay loses all of the variables. This led to errors in the redisplay because %foo% was no longer replaced so I added default_foo entries to the mapfile. This prevents the errors but means that nothing matches the default filter. How can I tell mapserv to retain the original variables? Cheers and thanks, Stephen -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Dec 18 14:30:20 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 18 Dec 2014 22:30:20 +0000 Subject: [mapserver-users] [mapserver-dev] need help with outputformat=kml for wfs In-Reply-To: References: Message-ID: Can you get at the layer GML without the output layer parameter? -----Original Message----- From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of zach cruise Sent: Thursday, December 18, 2014 9:18 AM To: mapserver-users Cc: mapserver-dev at lists.osgeo.org Subject: [mapserver-dev] need help with outputformat=kml for wfs using- * MapServer version 6.4.0 ... OUTPUT=KML ... SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT ... * httpd file- ... AddType application/vnd.google-earth.kml+xml .kml ... * map file- MAP ... IMAGETYPE kml ... WEB ... METADATA ... "wfs_getfeature_formatlist" "kml" ... END END OUTPUTFORMAT NAME "kml" DRIVER KML MIMETYPE "application/vnd.google-earth.kml.xml" IMAGEMODE RGB IMAGEMODE FEATURE EXTENSION "kml" FORMATOPTION "ATTACHMENT=doc.kml" END LAYER ... END END * url- ../cgi-bin/mapserv?SERVICE=wfs&REQUEST=getfeature&TYPENAME=shoppinglist&VERSION=1.0.0&OUTPUTFORMAT=kml (with or without "MODE=map") but all i get is (no placemarks for points?)- shoppingmap shoppinglist 1 #LayerFolder_check _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev From Steve.Lime at state.mn.us Thu Dec 18 14:40:50 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 18 Dec 2014 22:40:50 +0000 Subject: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile In-Reply-To: References: Message-ID: Check out the "labelcache_map_edge_buffer" and ?tile_map_edge_buffer? metadata settings (in the WEB metadata section), or using metatiles. It depends on how you?re generating tiles (mode=tile or MapCache/TileCache). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ??? Sent: Wednesday, December 17, 2014 3:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile Hi, is there a way to avoid clipping the symbols on the edge of a tile, so all symbols would be fully displayed? [cid:image001.png at 01D01AE1.60C6A7E0] The second house symbol is clipped. Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 5973 bytes Desc: image001.png URL: From sdavies at sdc.com.au Thu Dec 18 15:29:14 2014 From: sdavies at sdc.com.au (Stephen Davies) Date: Fri, 19 Dec 2014 09:59:14 +1030 Subject: [mapserver-users] Left click loses CGI variables In-Reply-To: References: <54923CCC.1010208@sdc.com.au> Message-ID: <5493634A.5040403@sdc.com.au> I have MapServer 6.4.1 running on a CentOS 7 server with clients scattered all over the country with a variety of devices from full-blown PCs to iPhones and various Android devices all using a variety of browsers to view maps. Users with PDA devices (anything too small to be able to handle legends etc) are served with a direct call to mapserv (Generated from a menu selection after login). eg: http://www.agua.com.au/cgi-bin/mapserv?map=/tmp/11_63.map&client=63&dpi=96&LOC=&mapext=138.5417058+-35.2605136+138.5435908+-35.2562368&mre=-1074567.04+-4230140.65+284643.94+-2872042.86&pfilter=logger_id+in+%28select+id+from+logger+where+63=any%28client_id%29%29&bfilter=id+in+%280%29&wfilter=id+in+%280%29&ufilter=probe_id+in+%28451%29&MB=M&PID=&ET=D&sdt=18/12/2014&envfilter= The *filter variables are all used for run-time substitution. The above produces the correct result as each filter variable has a value. However, if the user then clicks the map, the *filter variables are lost. I don't necessarily see this as a MapServer problem; rather as something I am doing - or not doing. Cheers and thanks, Stephen On 19/12/14 02:40, Lime, Steve D (MNIT) wrote: > What sort of a client environment are you working in? This doesn't sound like a MapServer problem unless you're using mode=browse. I'd think you'd manage those variables within OL, Leaflet or whatever and just keep attaching values to calls back to the server. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Davies > Sent: Wednesday, December 17, 2014 8:33 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Left click loses CGI variables > > When sending output to PDA devices, I use a direct call to mapserv with several run-time substitution variables to set filters. > > This works perfectly for the initial display but if the user clicks the resulting map, the redisplay loses all of the variables. > > This led to errors in the redisplay because %foo% was no longer replaced so I added default_foo entries to the mapfile. > > This prevents the errors but means that nothing matches the default filter. > > How can I tell mapserv to retain the original variables? > > Cheers and thanks, > Stephen > -- > ============================================================================= > Stephen Davies Consulting P/L Phone: 08-8177 1595 > Adelaide, South Australia. Mobile:040 304 0583 > Records & Collections Management. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From Steve.Lime at state.mn.us Thu Dec 18 18:21:51 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 19 Dec 2014 02:21:51 +0000 Subject: [mapserver-users] Left click loses CGI variables In-Reply-To: <5493634A.5040403@sdc.com.au> References: <54923CCC.1010208@sdc.com.au> , <5493634A.5040403@sdc.com.au> Message-ID: So this is mode=browse. MapServer templates are able to output anything passed in. If the variable passed in is called 'foo' then you can use the template tag [foo] to get at that value. Does that help? --Steve ________________________________________ From: Stephen Davies [sdavies at sdc.com.au] Sent: Thursday, December 18, 2014 5:29 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Left click loses CGI variables I have MapServer 6.4.1 running on a CentOS 7 server with clients scattered all over the country with a variety of devices from full-blown PCs to iPhones and various Android devices all using a variety of browsers to view maps. Users with PDA devices (anything too small to be able to handle legends etc) are served with a direct call to mapserv (Generated from a menu selection after login). eg: http://www.agua.com.au/cgi-bin/mapserv?map=/tmp/11_63.map&client=63&dpi=96&LOC=&mapext=138.5417058+-35.2605136+138.5435908+-35.2562368&mre=-1074567.04+-4230140.65+284643.94+-2872042.86&pfilter=logger_id+in+%28select+id+from+logger+where+63=any%28client_id%29%29&bfilter=id+in+%280%29&wfilter=id+in+%280%29&ufilter=probe_id+in+%28451%29&MB=M&PID=&ET=D&sdt=18/12/2014&envfilter= The *filter variables are all used for run-time substitution. The above produces the correct result as each filter variable has a value. However, if the user then clicks the map, the *filter variables are lost. I don't necessarily see this as a MapServer problem; rather as something I am doing - or not doing. Cheers and thanks, Stephen On 19/12/14 02:40, Lime, Steve D (MNIT) wrote: > What sort of a client environment are you working in? This doesn't sound like a MapServer problem unless you're using mode=browse. I'd think you'd manage those variables within OL, Leaflet or whatever and just keep attaching values to calls back to the server. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Davies > Sent: Wednesday, December 17, 2014 8:33 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Left click loses CGI variables > > When sending output to PDA devices, I use a direct call to mapserv with several run-time substitution variables to set filters. > > This works perfectly for the initial display but if the user clicks the resulting map, the redisplay loses all of the variables. > > This led to errors in the redisplay because %foo% was no longer replaced so I added default_foo entries to the mapfile. > > This prevents the errors but means that nothing matches the default filter. > > How can I tell mapserv to retain the original variables? > > Cheers and thanks, > Stephen > -- > ============================================================================= > Stephen Davies Consulting P/L Phone: 08-8177 1595 > Adelaide, South Australia. Mobile:040 304 0583 > Records & Collections Management. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From sdavies at sdc.com.au Thu Dec 18 22:04:35 2014 From: sdavies at sdc.com.au (Stephen Davies) Date: Fri, 19 Dec 2014 16:34:35 +1030 Subject: [mapserver-users] Left click loses CGI variables (resolved) In-Reply-To: References: <54923CCC.1010208@sdc.com.au> , <5493634A.5040403@sdc.com.au> Message-ID: <5493BFF3.5030001@sdc.com.au> Thanks very much Steve. That is what I had forgotten. On 19/12/14 12:51, Lime, Steve D (MNIT) wrote: > So this is mode=browse. MapServer templates are able to output anything passed in. If the variable passed in is called 'foo' then you can use the template tag [foo] to get at that value. Does that help? --Steve > ________________________________________ > From: Stephen Davies [sdavies at sdc.com.au] > Sent: Thursday, December 18, 2014 5:29 PM > To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Left click loses CGI variables > > I have MapServer 6.4.1 running on a CentOS 7 server with clients scattered all > over the country with a variety of devices from full-blown PCs to iPhones and > various Android devices all using a variety of browsers to view maps. > > Users with PDA devices (anything too small to be able to handle legends etc) > are served with a direct call to mapserv (Generated from a menu selection > after login). > > eg: > http://www.agua.com.au/cgi-bin/mapserv?map=/tmp/11_63.map&client=63&dpi=96&LOC=&mapext=138.5417058+-35.2605136+138.5435908+-35.2562368&mre=-1074567.04+-4230140.65+284643.94+-2872042.86&pfilter=logger_id+in+%28select+id+from+logger+where+63=any%28client_id%29%29&bfilter=id+in+%280%29&wfilter=id+in+%280%29&ufilter=probe_id+in+%28451%29&MB=M&PID=&ET=D&sdt=18/12/2014&envfilter= > > The *filter variables are all used for run-time substitution. > > The above produces the correct result as each filter variable has a value. > > However, if the user then clicks the map, the *filter variables are lost. > > I don't necessarily see this as a MapServer problem; rather as something I am > doing - or not doing. > > Cheers and thanks, > Stephen > > On 19/12/14 02:40, Lime, Steve D (MNIT) wrote: >> What sort of a client environment are you working in? This doesn't sound like a MapServer problem unless you're using mode=browse. I'd think you'd manage those variables within OL, Leaflet or whatever and just keep attaching values to calls back to the server. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Davies >> Sent: Wednesday, December 17, 2014 8:33 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Left click loses CGI variables >> >> When sending output to PDA devices, I use a direct call to mapserv with several run-time substitution variables to set filters. >> >> This works perfectly for the initial display but if the user clicks the resulting map, the redisplay loses all of the variables. >> >> This led to errors in the redisplay because %foo% was no longer replaced so I added default_foo entries to the mapfile. >> >> This prevents the errors but means that nothing matches the default filter. >> >> How can I tell mapserv to retain the original variables? >> >> Cheers and thanks, >> Stephen >> -- >> ============================================================================= >> Stephen Davies Consulting P/L Phone: 08-8177 1595 >> Adelaide, South Australia. Mobile:040 304 0583 >> Records & Collections Management. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > ============================================================================= > Stephen Davies Consulting P/L Phone: 08-8177 1595 > Adelaide, South Australia. Mobile:040 304 0583 > Records & Collections Management. > -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From zachc1980 at gmail.com Fri Dec 19 07:26:32 2014 From: zachc1980 at gmail.com (zach cruise) Date: Fri, 19 Dec 2014 10:26:32 -0500 Subject: [mapserver-users] [mapserver-dev] need help with outputformat=kml for wfs In-Reply-To: References: Message-ID: yes On 12/18/14, Lime, Steve D (MNIT) wrote: > Can you get at the layer GML without the output layer parameter? > > -----Original Message----- > From: mapserver-dev-bounces at lists.osgeo.org > [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of zach cruise > Sent: Thursday, December 18, 2014 9:18 AM > To: mapserver-users > Cc: mapserver-dev at lists.osgeo.org > Subject: [mapserver-dev] need help with outputformat=kml for wfs > > using- > * MapServer version 6.4.0 ... OUTPUT=KML ... SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT ... > > * httpd file- > > ... > AddType application/vnd.google-earth.kml+xml .kml > ... > > > * map file- > MAP > ... > IMAGETYPE kml > ... > WEB > ... > METADATA > ... > "wfs_getfeature_formatlist" "kml" > ... > END > END > OUTPUTFORMAT > NAME "kml" > DRIVER KML > MIMETYPE "application/vnd.google-earth.kml.xml" > IMAGEMODE RGB > IMAGEMODE FEATURE > EXTENSION "kml" > FORMATOPTION "ATTACHMENT=doc.kml" > END > LAYER > ... > END > END > > * url- > ../cgi-bin/mapserv?SERVICE=wfs&REQUEST=getfeature&TYPENAME=shoppinglist&VERSION=1.0.0&OUTPUTFORMAT=kml > (with or without "MODE=map") > > but all i get is (no placemarks for points?)- encoding="UTF-8"?> > > > > > > shoppingmap > > shoppinglist > 1 > #LayerFolder_check > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From Steve.Lime at state.mn.us Fri Dec 19 07:32:30 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 19 Dec 2014 15:32:30 +0000 Subject: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile In-Reply-To: References: , , , Message-ID: You?re not using mode=tile? The regular CGI map (e.g. mode=map) creation knows nothing about tiles so there?s no way to avoid edge effects. There are specialized tools like MapCache that take MapServer maps and create tiles from them. Those tools use techniques like meta-tiling, no label buffers and map edge buffers to avoid edge effects. MapServer also has a built-in tile mode (mode=tile) that can do edge buffering but you?re limited to (I think) known tiling schemes (like Google Maps). Steve From: ??? [mailto:liuxiaoer at live.cn] Sent: Thursday, December 18, 2014 8:47 PM To: Lime, Steve D (MNIT) Subject: RE: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile I create tiles use mapserver and layer.map like this /cgi-bin/mapserver?map=/var/www/wms/layer.map. > From: Steve.Lime at state.mn.us > To: liuxiaoer at live.cn > Subject: RE: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile > Date: Fri, 19 Dec 2014 02:43:01 +0000 > > How are you creating the tiles? > ________________________________________ > From: ??? [liuxiaoer at live.cn] > Sent: Thursday, December 18, 2014 8:23 PM > To: Lime, Steve D (MNIT) > Subject: RE: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile > > Hi,Steve > > thank you again for your answer. > > But it don't work. The problem is still exists. > > What should I do to solve this question? > > This is my Mapfile below. > > MAP > NAME "map" > PROJECTION > "init=epsg:4326" > END > WEB > METADATA > wms_enable_request "*" > wms_srs "EPSG:4326 EPSG:900913" > labelcache_map_edge_buffer "10" > tile_map_edge_buffer "10" > END > END > SYMBOL > NAME 'hospital' > TYPE pixmap > IMAGE '/mnt/mapserver/img/hospital.png' > END > > LAYER > NAME Layer_1400668502611 > TYPE point > data '/mnt/mapserver/vector/Layer_1400668502611.shp' > CLASS > STYLE > SYMBOL 'hospital' > SIZE 15 > END > END > END > END > > > > I shall appreciate a reply from you in regard to my question. > > Thanks. > > > liuxiaoer > > ________________________________ > From: Steve.Lime at state.mn.us > To: liuxiaoer at live.cn; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile > Date: Thu, 18 Dec 2014 22:40:50 +0000 > > > Check out the "labelcache_map_edge_buffer" and ?tile_map_edge_buffer? metadata settings (in the WEB metadata section), or using metatiles. It depends on how you?re generating tiles (mode=tile or MapCache/TileCache). > > > > Steve > > > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ??? > Sent: Wednesday, December 17, 2014 3:18 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] is there a way to avoid clipping the symbols on the edge of a tile > > > > Hi, is there a way to avoid clipping the symbols on the edge of a tile, so all symbols would be fully displayed? > > > > > > [cid:image001.png at 01D01AE1.60C6A7E0] > > > > > > > The second house symbol is clipped. > > Thank you very much! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Dec 19 07:48:02 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 19 Dec 2014 15:48:02 +0000 Subject: [mapserver-users] [mapserver-dev] need help with outputformat=kml for wfs In-Reply-To: References: Message-ID: Ok, let's try this outside of WFS context. You should be able to do something like: /cgi-bin/mapserv?map=...&mode=map&mapext=...&map.imagetype=kml Does that work? Steve -----Original Message----- From: zach cruise [mailto:zachc1980 at gmail.com] Sent: Friday, December 19, 2014 9:27 AM To: Lime, Steve D (MNIT) Cc: mapserver-users; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-dev] need help with outputformat=kml for wfs yes On 12/18/14, Lime, Steve D (MNIT) wrote: > Can you get at the layer GML without the output layer parameter? > > -----Original Message----- > From: mapserver-dev-bounces at lists.osgeo.org > [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of zach > cruise > Sent: Thursday, December 18, 2014 9:18 AM > To: mapserver-users > Cc: mapserver-dev at lists.osgeo.org > Subject: [mapserver-dev] need help with outputformat=kml for wfs > > using- > * MapServer version 6.4.0 ... OUTPUT=KML ... SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT ... > > * httpd file- > > ... > AddType application/vnd.google-earth.kml+xml .kml > ... > > > * map file- > MAP > ... > IMAGETYPE kml > ... > WEB > ... > METADATA > ... > "wfs_getfeature_formatlist" "kml" > ... > END > END > OUTPUTFORMAT > NAME "kml" > DRIVER KML > MIMETYPE "application/vnd.google-earth.kml.xml" > IMAGEMODE RGB > IMAGEMODE FEATURE > EXTENSION "kml" > FORMATOPTION "ATTACHMENT=doc.kml" > END > LAYER > ... > END > END > > * url- > ../cgi-bin/mapserv?SERVICE=wfs&REQUEST=getfeature&TYPENAME=shoppinglis > t&VERSION=1.0.0&OUTPUTFORMAT=kml > (with or without "MODE=map") > > but all i get is (no placemarks for points?)- encoding="UTF-8"?> > > > > > > shoppingmap > > shoppinglist > 1 > #LayerFolder_check > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From bob.basques at ci.stpaul.mn.us Fri Dec 19 07:46:01 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 19 Dec 2014 15:46:01 +0000 Subject: [mapserver-users] Map collaring techniques. Message-ID: All, Anyone have any insights into using/modifying MapServer to label maps collar wise (along the edges)?? I'm interested in applying USNG collaring to maps in general as a grid overlay. I'm pretty sure I ca do this with PERL, but all the re-projection capabilities in MapServer make it much more attractive. There are also quite a fe desires finishing options that I would like to include related to rotation and alignment. I'm open to applying the collar on or off (outside of ) the map itself. I've worked with both the ESRI and AutoDesk tools for accomplishing the same results as well. AutoDesk has a fairly well thought out XML file format for defining the grid labeling, it's almost SLD-ish as a matter of fact. I've also been involved in a couple of Javascript mashups to provide USNG overlays to maps, but they aren't hardcopy centric, which is what I need to focus on. Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Dec 19 08:57:57 2014 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 19 Dec 2014 09:57:57 -0700 Subject: [mapserver-users] Map collaring techniques. In-Reply-To: References: Message-ID: <54945915.4080602@geoanalytic.com> Bob, In the past I've dabbled with having layers to " erase"the map data around the perimeter: LAYER NAME "Margin" TRANSFORM FALSE STATUS DEFAULT TYPE POLYGON CLASS COLOR 255 255 255 END FEATURE POINTS 0 0 0 600 70 600 70 0 0 0 END POINTS 70 0 70 70 800 70 800 0 70 0 END POINTS 70 600 800 600 800 530 70 530 70 600 END POINTS 730 70 730 530 800 530 800 70 730 70 END END END #----------------------------------------------------------- LAYER NAME "NeatLine" TRANSFORM FALSE STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 0 END FEATURE POINTS 70 70 70 530 730 530 730 70 70 70 END END END Also I've experimented with adding FORMATOPTIONs to OUTPUTFORMAT code (see http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008050.html) How big do you plan to make your maps? Will they include imagery? Best Regards, Brent Fraser On 12/19/2014 8:46 AM, Basques, Bob (CI-StPaul) wrote: > > All, > > Anyone have any insights into using/modifying MapServer to label maps > collar wise (along the edges)?? > > I?m interested in applying USNG collaring to maps in general as a grid > overlay. I?m pretty sure I ca do this with PERL, but all the > re-projection capabilities in MapServer make it much more attractive. > There are also quite a fe desires finishing options that I would like > to include related to rotation and alignment. I?m open to applying the > collar on or off (outside of ) the map itself. > > I?ve worked with both the ESRI and AutoDesk tools for accomplishing > the same results as well. AutoDesk has a fairly well thought out XML > file format for defining the grid labeling, it?s almost SLD-ish as a > matter of fact. I?ve also been involved in a couple of Javascript > mashups to provide USNG overlays to maps, but they aren?t hardcopy > centric, which is what I need to focus on. > > Thanks > > Bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Dec 19 11:43:06 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 19 Dec 2014 19:43:06 +0000 Subject: [mapserver-users] Map collaring techniques. In-Reply-To: <54945915.4080602@geoanalytic.com> References: <54945915.4080602@geoanalytic.com> Message-ID: Hi Brent, Neat trick there, and straightforward too. I had thought about doing some sort of pipeline for drawing with MapServer, by simply drawing different grid areas at each step in the pipeline. One step for each side of the map for example. I know I can do it with MapSCRIPT, but being able to pass in a image to MapServer would be the cool way. Bobb From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Friday, December 19, 2014 10:58 AM To: Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Map collaring techniques. Bob, In the past I've dabbled with having layers to " erase"the map data around the perimeter: LAYER NAME "Margin" TRANSFORM FALSE STATUS DEFAULT TYPE POLYGON CLASS COLOR 255 255 255 END FEATURE POINTS 0 0 0 600 70 600 70 0 0 0 END POINTS 70 0 70 70 800 70 800 0 70 0 END POINTS 70 600 800 600 800 530 70 530 70 600 END POINTS 730 70 730 530 800 530 800 70 730 70 END END END #----------------------------------------------------------- LAYER NAME "NeatLine" TRANSFORM FALSE STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 0 END FEATURE POINTS 70 70 70 530 730 530 730 70 70 70 END END END Also I've experimented with adding FORMATOPTIONs to OUTPUTFORMAT code (see http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008050.html) How big do you plan to make your maps? Will they include imagery? Best Regards, Brent Fraser On 12/19/2014 8:46 AM, Basques, Bob (CI-StPaul) wrote: All, Anyone have any insights into using/modifying MapServer to label maps collar wise (along the edges)?? I'm interested in applying USNG collaring to maps in general as a grid overlay. I'm pretty sure I ca do this with PERL, but all the re-projection capabilities in MapServer make it much more attractive. There are also quite a fe desires finishing options that I would like to include related to rotation and alignment. I'm open to applying the collar on or off (outside of ) the map itself. I've worked with both the ESRI and AutoDesk tools for accomplishing the same results as well. AutoDesk has a fairly well thought out XML file format for defining the grid labeling, it's almost SLD-ish as a matter of fact. I've also been involved in a couple of Javascript mashups to provide USNG overlays to maps, but they aren't hardcopy centric, which is what I need to focus on. Thanks Bobb _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachc1980 at gmail.com Fri Dec 19 18:26:49 2014 From: zachc1980 at gmail.com (zach cruise) Date: Fri, 19 Dec 2014 21:26:49 -0500 Subject: [mapserver-users] [mapserver-dev] need help with outputformat=kml for wfs In-Reply-To: References: Message-ID: i got it. works with "DRIVER OGR/KML" (not "DRIVER KML"). On 12/19/14, Lime, Steve D (MNIT) wrote: > Ok, let's try this outside of WFS context. You should be able to do > something like: > > /cgi-bin/mapserv?map=...&mode=map&mapext=...&map.imagetype=kml > > Does that work? > > Steve > > -----Original Message----- > From: zach cruise [mailto:zachc1980 at gmail.com] > Sent: Friday, December 19, 2014 9:27 AM > To: Lime, Steve D (MNIT) > Cc: mapserver-users; mapserver-dev at lists.osgeo.org > Subject: Re: [mapserver-dev] need help with outputformat=kml for wfs > > yes > > > On 12/18/14, Lime, Steve D (MNIT) wrote: >> Can you get at the layer GML without the output layer parameter? >> >> -----Original Message----- >> From: mapserver-dev-bounces at lists.osgeo.org >> [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of zach >> cruise >> Sent: Thursday, December 18, 2014 9:18 AM >> To: mapserver-users >> Cc: mapserver-dev at lists.osgeo.org >> Subject: [mapserver-dev] need help with outputformat=kml for wfs >> >> using- >> * MapServer version 6.4.0 ... OUTPUT=KML ... SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT ... >> >> * httpd file- >> >> ... >> AddType application/vnd.google-earth.kml+xml .kml >> ... >> >> >> * map file- >> MAP >> ... >> IMAGETYPE kml >> ... >> WEB >> ... >> METADATA >> ... >> "wfs_getfeature_formatlist" "kml" >> ... >> END >> END >> OUTPUTFORMAT >> NAME "kml" >> DRIVER KML >> MIMETYPE "application/vnd.google-earth.kml.xml" >> IMAGEMODE RGB >> IMAGEMODE FEATURE >> EXTENSION "kml" >> FORMATOPTION "ATTACHMENT=doc.kml" >> END >> LAYER >> ... >> END >> END >> >> * url- >> ../cgi-bin/mapserv?SERVICE=wfs&REQUEST=getfeature&TYPENAME=shoppinglis >> t&VERSION=1.0.0&OUTPUTFORMAT=kml >> (with or without "MODE=map") >> >> but all i get is (no placemarks for points?)- > encoding="UTF-8"?> >> >> >> >> >> >> shoppingmap >> >> shoppinglist >> 1 >> #LayerFolder_check >> >> >> >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > From Michael.Smith at erdc.dren.mil Sat Dec 20 05:25:11 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Sat, 20 Dec 2014 13:25:11 +0000 Subject: [mapserver-users] Is there a way to use REMOTE_USER environment variable in RunTime Substitution? Message-ID: I'm using apache basic auth to filter results. I have been able to use mod_rewrite to create a cookie with the authenticated username and use that in runtime subst but it would be much simpler and cleaner to just do it reading the environment variable. So far, I haven't found a way to do this in current master. Any ideas? -- Michael Smith US Army Corps Remote Sensing GIS/Center -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sat Dec 20 07:48:22 2014 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sat, 20 Dec 2014 08:48:22 -0700 Subject: [mapserver-users] Map collaring techniques. In-Reply-To: References: <54945915.4080602@geoanalytic.com> Message-ID: <54959A46.40504@geoanalytic.com> Bob, Years ago we had experimented with using Mapserver to do automated mapping (to produce printed maps 34 x 46 inches). The maps were of pipeline alignments and needed to be rotated so the pipeline was roughly parallel to the X axis of the paper. And they required imagery as a backdrop. And they required a [rotated] labelled graticule. In the end we had to use a combination of Mapserver, Arcview, and custom s/w. Let me know how your efforts turn out... Best Regards, Brent Fraser On 12/19/2014 12:43 PM, Basques, Bob (CI-StPaul) wrote: > > Hi Brent, > > Neat trick there, and straightforward too. > > I had thought about doing some sort of pipeline for drawing with > MapServer, by simply drawing different grid areas at each step in the > pipeline. One step for each side of the map for example. I know I > can do it with MapSCRIPT, but being able to pass in a image to > MapServer would be the cool way. > > Bobb > > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* Friday, December 19, 2014 10:58 AM > *To:* Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Map collaring techniques. > > Bob, > > In the past I've dabbled with having layers to " erase"the map data > around the perimeter: > > LAYER > NAME "Margin" > TRANSFORM FALSE > STATUS DEFAULT > TYPE POLYGON > CLASS > COLOR 255 255 255 > END > FEATURE > POINTS 0 0 0 600 70 600 70 0 0 0 END > POINTS 70 0 70 70 800 70 800 0 70 0 END > POINTS 70 600 800 600 800 530 70 530 70 600 END > POINTS 730 70 730 530 800 530 800 70 730 70 END > END > END > > #----------------------------------------------------------- > LAYER > NAME "NeatLine" > TRANSFORM FALSE > STATUS DEFAULT > TYPE LINE > CLASS > COLOR 0 0 0 > END > FEATURE > POINTS 70 70 70 530 730 530 730 70 70 70 END > END > END > > > Also I've experimented with adding FORMATOPTIONs to OUTPUTFORMAT code > (see > http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008050.html) > > How big do you plan to make your maps? Will they include imagery? > > > Best Regards, > Brent Fraser > > On 12/19/2014 8:46 AM, Basques, Bob (CI-StPaul) wrote: > > All, > > Anyone have any insights into using/modifying MapServer to label > maps collar wise (along the edges)?? > > I?m interested in applying USNG collaring to maps in general as a > grid overlay. I?m pretty sure I ca do this with PERL, but all the > re-projection capabilities in MapServer make it much more > attractive. There are also quite a fe desires finishing options > that I would like to include related to rotation and alignment. > I?m open to applying the collar on or off (outside of ) the map > itself. > > I?ve worked with both the ESRI and AutoDesk tools for > accomplishing the same results as well. AutoDesk has a fairly > well thought out XML file format for defining the grid labeling, > it?s almost SLD-ish as a matter of fact. I?ve also been involved > in a couple of Javascript mashups to provide USNG overlays to > maps, but they aren?t hardcopy centric, which is what I need to > focus on. > > Thanks > > Bobb > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Dec 20 08:00:13 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 20 Dec 2014 12:00:13 -0400 Subject: [mapserver-users] Map collaring techniques. In-Reply-To: <54959A46.40504@geoanalytic.com> References: <54945915.4080602@geoanalytic.com> <54959A46.40504@geoanalytic.com> Message-ID: <54959D0D.1050407@gatewaygeomatics.com> Bob or Brent, it would be great if you can record this trick on the MapServer wiki (https://github.com/mapserver/mapserver/wiki); as this thread will be long lost shortly. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-12-20 11:48 AM, Brent Fraser wrote: > Bob, > > Years ago we had experimented with using Mapserver to do automated > mapping (to produce printed maps 34 x 46 inches). The maps were of > pipeline alignments and needed to be rotated so the pipeline was roughly > parallel to the X axis of the paper. And they required imagery as a > backdrop. And they required a [rotated] labelled graticule. In the end > we had to use a combination of Mapserver, Arcview, and custom s/w. > > Let me know how your efforts turn out... > > Best Regards, > Brent Fraser > > On 12/19/2014 12:43 PM, Basques, Bob (CI-StPaul) wrote: >> >> Hi Brent, >> >> Neat trick there, and straightforward too. >> >> I had thought about doing some sort of pipeline for drawing with >> MapServer, by simply drawing different grid areas at each step in the >> pipeline. One step for each side of the map for example. I know I >> can do it with MapSCRIPT, but being able to pass in a image to >> MapServer would be the cool way. >> >> Bobb >> >> *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] >> *Sent:* Friday, December 19, 2014 10:58 AM >> *To:* Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] Map collaring techniques. >> >> Bob, >> >> In the past I've dabbled with having layers to " erase"the map data >> around the perimeter: >> >> LAYER >> NAME "Margin" >> TRANSFORM FALSE >> STATUS DEFAULT >> TYPE POLYGON >> CLASS >> COLOR 255 255 255 >> END >> FEATURE >> POINTS 0 0 0 600 70 600 70 0 0 0 END >> POINTS 70 0 70 70 800 70 800 0 70 0 END >> POINTS 70 600 800 600 800 530 70 530 70 600 END >> POINTS 730 70 730 530 800 530 800 70 730 70 END >> END >> END >> >> #----------------------------------------------------------- >> LAYER >> NAME "NeatLine" >> TRANSFORM FALSE >> STATUS DEFAULT >> TYPE LINE >> CLASS >> COLOR 0 0 0 >> END >> FEATURE >> POINTS 70 70 70 530 730 530 730 70 70 70 END >> END >> END >> >> >> Also I've experimented with adding FORMATOPTIONs to OUTPUTFORMAT code >> (see >> http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008050.html) >> >> How big do you plan to make your maps? Will they include imagery? >> >> >> Best Regards, >> Brent Fraser >> >> On 12/19/2014 8:46 AM, Basques, Bob (CI-StPaul) wrote: >> >> All, >> >> Anyone have any insights into using/modifying MapServer to label >> maps collar wise (along the edges)?? >> >> I?m interested in applying USNG collaring to maps in general as a >> grid overlay. I?m pretty sure I ca do this with PERL, but all the >> re-projection capabilities in MapServer make it much more >> attractive. There are also quite a fe desires finishing options >> that I would like to include related to rotation and alignment. >> I?m open to applying the collar on or off (outside of ) the map >> itself. >> >> I?ve worked with both the ESRI and AutoDesk tools for >> accomplishing the same results as well. AutoDesk has a fairly >> well thought out XML file format for defining the grid labeling, >> it?s almost SLD-ish as a matter of fact. I?ve also been involved >> in a couple of Javascript mashups to provide USNG overlays to >> maps, but they aren?t hardcopy centric, which is what I need to >> focus on. >> >> Thanks >> >> Bobb >> >> From lars.fricke at skendata.de Sun Dec 21 22:58:27 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Mon, 22 Dec 2014 07:58:27 +0100 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client In-Reply-To: <5492824F.5030003@skendata.de> References: <5492824F.5030003@skendata.de> Message-ID: <5497C113.2010300@skendata.de> Hello List, can you please give me a quick feedback on which version WFS MapServer supports as CLIENT (see below)? I can't really find it in the docs. Thank you. Lars Fricke Am 18.12.2014 um 08:29 schrieb Lars Fricke: > Hello, > > I am trying to access an external WFS with MapServer as client to > cascade it. I get the following error message: > msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports > only WFS 1.0.0 or 0.0.14 (please verify the version metadata > wfs_version). > > Indeed the external server only sends version 1.1.0 and my mapfile has: > ... > METADATA > "wfs_version" "1.1.0" > ... > > Now when I search on the net, I find bug reports about WMS 1.1.0 and > MapServer but no information if I can use it as a 1.1.0 client at all. > And if so, do I need to use something specific to activate it? > > I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Thanks for looking into this. > > Best > > Lars > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Andreas.Eichner at sid.sachsen.de Mon Dec 22 06:42:41 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 22 Dec 2014 14:42:41 +0000 Subject: [mapserver-users] [mapserver-dev] Is there a way to use REMOTE_USER environment variable in RunTime Substitution? In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5681AFD30@FS-EX-DB101.fs.sachsen.de> Since you store the username in the cookie you are probably not concerned about security. In this case it might be sufficient to append the username by rewriting the query string: RewriteRule ^/my/map /my/map?user=%{REMOTE_USER} [QSA,PT] The loadParams() in cgiutil.c only works on the QUERY_STRING and COOKIE. If you like you can insert at line 267: if ((s = getenv2("REMOTE_USER", thread_context)) != NULL) { if(m >= maxParams) { maxParams *= 2; request->ParamNames = (char **) msSmallRealloc(request->ParamNames,sizeof(char *) * maxParams); request->ParamValues = (char **) msSmallRealloc(request->ParamValues,sizeof(char *) * maxParams); } request->ParamNames[m] = msStrdup("remote_user"); request->ParamValues[m] = msStrdup(s); m++; } I haven't tested this but since it's pretty straight forward it should work. But that's not very generic. Probably the MAP.WEB.METADATA could be used to define a "import_env_vars"-key with a list of names to be imported from the environment... HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev- > bounces at lists.osgeo.org] Im Auftrag von Smith, Michael ERDC-RDE-CRREL-NH > Gesendet: Samstag, 20. Dezember 2014 14:25 > An: mapserver-users at lists.osgeo.org > Cc: mapserver-dev at lists.osgeo.org > Betreff: [mapserver-dev] Is there a way to use REMOTE_USER environment > variable in RunTime Substitution? > > I'm using apache basic auth to filter results. I have been able to use > mod_rewrite to create a cookie with the authenticated username and use > that in runtime subst but it would be much simpler and cleaner to just do > it reading the environment variable. So far, I haven't found a way to do > this in current master. Any ideas? > > -- > Michael Smith > US Army Corps > Remote Sensing GIS/Center From Steve.Lime at state.mn.us Mon Dec 22 07:09:50 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 22 Dec 2014 15:09:50 +0000 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client In-Reply-To: <5497C113.2010300@skendata.de> References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> Message-ID: Looking at the mapwfslayer.c code it's a little confusing. I see references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 and 1.1 for GET requests. You can try setting: "wfs_request_method" "GET" In the layer metadata and see if that works for you. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars Fricke Sent: Monday, December 22, 2014 12:58 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello List, can you please give me a quick feedback on which version WFS MapServer supports as CLIENT (see below)? I can't really find it in the docs. Thank you. Lars Fricke Am 18.12.2014 um 08:29 schrieb Lars Fricke: > Hello, > > I am trying to access an external WFS with MapServer as client to > cascade it. I get the following error message: > msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports > only WFS 1.0.0 or 0.0.14 (please verify the version metadata > wfs_version). > > Indeed the external server only sends version 1.1.0 and my mapfile has: > ... > METADATA > "wfs_version" "1.1.0" > ... > > Now when I search on the net, I find bug reports about WMS 1.1.0 and > MapServer but no information if I can use it as a 1.1.0 client at all. > And if so, do I need to use something specific to activate it? > > I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Thanks for looking into this. > > Best > > Lars > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Mon Dec 22 07:09:29 2014 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 22 Dec 2014 10:09:29 -0500 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client In-Reply-To: <5497C113.2010300@skendata.de> References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> Message-ID: <54983429.3010007@mapgears.com> As the error message says, MapServer doesn't support WFS 1.1.0 in CLIENT mode. I see that someone added some code in mapwfslayer.c to support WFS 1.1 axis order handling, but the rest of the code has not been upgraded to 1.1 so that code is of little/no use. Daniel On 14-12-22 1:58 AM, Lars Fricke wrote: > Hello List, > > can you please give me a quick feedback on which version WFS MapServer > supports as CLIENT (see below)? I can't really find it in the docs. > Thank you. > > Lars Fricke > > > Am 18.12.2014 um 08:29 schrieb Lars Fricke: >> Hello, >> >> I am trying to access an external WFS with MapServer as client to >> cascade it. I get the following error message: >> msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports >> only WFS 1.0.0 or 0.0.14 (please verify the version metadata >> wfs_version). >> >> Indeed the external server only sends version 1.1.0 and my mapfile has: >> ... >> METADATA >> "wfs_version" "1.1.0" >> ... >> >> Now when I search on the net, I find bug reports about WMS 1.1.0 and >> MapServer but no information if I can use it as a 1.1.0 client at all. >> And if so, do I need to use something specific to activate it? >> >> I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: >> >> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks for looking into this. >> >> Best >> >> Lars >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From lars.fricke at skendata.de Tue Dec 23 08:58:26 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 23 Dec 2014 17:58:26 +0100 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client In-Reply-To: References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> Message-ID: <54999F32.7070100@skendata.de> Hello Steve, Thank you for your answer. I tried setting to GET and this is what i got: "msWFSGetFeature(): WFS server error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer HK." The message about the wrong version is not showing up. Maybe I'm doing something wrong? Here's my layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION "http://localhost:8081/geoserver/wfs?" CONNECTIONTYPE WFS #EXTENT 618740 5962679 1737924 7376186 does not seem to matter STATUS ON METADATA "wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" "wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" "GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" "gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" END # STYLE END # CLASS END # LAYER" The request is: "http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeature&TYPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): > Looking at the mapwfslayer.c code it's a little confusing. I see references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 and 1.1 for GET requests. You can try setting: > > "wfs_request_method" "GET" > > In the layer metadata and see if that works for you. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars Fricke > Sent: Monday, December 22, 2014 12:58 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client > > Hello List, > > can you please give me a quick feedback on which version WFS MapServer supports as CLIENT (see below)? I can't really find it in the docs. > Thank you. > > Lars Fricke > > > Am 18.12.2014 um 08:29 schrieb Lars Fricke: >> Hello, >> >> I am trying to access an external WFS with MapServer as client to >> cascade it. I get the following error message: >> msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports >> only WFS 1.0.0 or 0.0.14 (please verify the version metadata >> wfs_version). >> >> Indeed the external server only sends version 1.1.0 and my mapfile has: >> ... >> METADATA >> "wfs_version" "1.1.0" >> ... >> >> Now when I search on the net, I find bug reports about WMS 1.1.0 and >> MapServer but no information if I can use it as a 1.1.0 client at all. >> And if so, do I need to use something specific to activate it? >> >> I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: >> >> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks for looking into this. >> >> Best >> >> Lars >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lars.fricke at skendata.de Tue Dec 23 09:15:10 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 23 Dec 2014 18:15:10 +0100 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client In-Reply-To: References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> Message-ID: <5499A31E.6070309@skendata.de> Well at least now I know. Thanks for both of your effort. Cheers and blessed Christmas. Lars Based on other input from Daniel Morissette I think it's pretty safe to say that MapServer only supports WFS layers with versions 0.0.14 and 1.0.0. Sorry... I don't know what it would take to extend things to 1.1.0 though (patches welcome). Steve -----Original Message----- From: Lars Fricke [mailto:lars.fricke at skendata.de] Sent: Tuesday, December 23, 2014 10:58 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello Steve, Thank you for your answer. I tried setting to GET and this is what i got: "msWFSGetFeature(): WFS server error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer HK." The message about the wrong version is not showing up. Maybe I'm doing something wrong? Here's my layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION "http://localhost:8081/geoserver/wfs?" CONNECTIONTYPE WFS #EXTENT 618740 5962679 1737924 7376186 does not seem to matter STATUS ON METADATA "wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" "wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" "GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" "gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" END # STYLE END # CLASS END # LAYER" The request is: "http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeature&TYPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): >> Looking at the mapwfslayer.c code it's a little confusing. I see references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 and 1.1 for GET requests. You can try setting: >> >> "wfs_request_method" "GET" >> >> In the layer metadata and see if that works for you. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars >> Fricke >> Sent: Monday, December 22, 2014 12:58 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client >> >> Hello List, >> >> can you please give me a quick feedback on which version WFS MapServer supports as CLIENT (see below)? I can't really find it in the docs. >> Thank you. >> >> Lars Fricke >> >> >> Am 18.12.2014 um 08:29 schrieb Lars Fricke: >>> Hello, >>> >>> I am trying to access an external WFS with MapServer as client to >>> cascade it. I get the following error message: >>> msBuildWFSLayerPostRequest(): WFS connection error. MapServer >>> supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata >>> wfs_version). >>> >>> Indeed the external server only sends version 1.1.0 and my mapfile has: >>> ... >>> METADATA >>> "wfs_version" "1.1.0" >>> ... >>> >>> Now when I search on the net, I find bug reports about WMS 1.1.0 and >>> MapServer but no information if I can use it as a 1.1.0 client at all. >>> And if so, do I need to use something specific to activate it? >>> >>> I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: >>> >>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >>> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >>> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >>> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >>> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> Thanks for looking into this. >>> >>> Best >>> >>> Lars >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From Michael.Smith at erdc.dren.mil Tue Dec 23 09:19:20 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 23 Dec 2014 17:19:20 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client In-Reply-To: <5499A31E.6070309@skendata.de> References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> <5499A31E.6070309@skendata.de> Message-ID: Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/23/14, 12:15 PM, "Lars Fricke" wrote: >Well at least now I know. > >Thanks for both of your effort. > >Cheers and blessed Christmas. > >Lars > >Based on other input from Daniel Morissette I think it's pretty safe to >say that MapServer only supports WFS layers with versions 0.0.14 and >1.0.0. Sorry... I don't know what it would take to extend things to >1.1.0 though (patches welcome). Steve -----Original Message----- From: >Lars Fricke [mailto:lars.fricke at skendata.de] Sent: Tuesday, December 23, >2014 10:58 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org >Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello >Steve, Thank you for your answer. I tried setting to GET and this is >what i got: "locator="mapserv">msWFSGetFeature(): WFS server >error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection >error. WFS request produced unexpected output (junk?) for layer >HK." The message about the wrong >version is not showing up. Maybe I'm doing something wrong? Here's my >layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION >"http://localhost:8081/geoserver/wfs?" CONNECTIONTYPE WFS #EXTENT 618740 >5962679 1737924 7376186 does not seem to matter STATUS ON METADATA >"wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" >"wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" >"GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" >"gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA >PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" >STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" >END # STYLE END # CLASS END # LAYER" The request is: >"http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeature&T >YPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" >Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): >>> Looking at the mapwfslayer.c code it's a little confusing. I see >>>references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 and >>>1.1 for GET requests. You can try setting: >>> >>> "wfs_request_method" "GET" >>> >>> In the layer metadata and see if that works for you. >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars >>> Fricke >>> Sent: Monday, December 22, 2014 12:58 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client >>> >>> Hello List, >>> >>> can you please give me a quick feedback on which version WFS MapServer >>>supports as CLIENT (see below)? I can't really find it in the docs. >>> Thank you. >>> >>> Lars Fricke >>> >>> >>> Am 18.12.2014 um 08:29 schrieb Lars Fricke: >>>> Hello, >>>> >>>> I am trying to access an external WFS with MapServer as client to >>>> cascade it. I get the following error message: >>>> msBuildWFSLayerPostRequest(): WFS connection error. MapServer >>>> supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata >>>> wfs_version). >>>> >>>> Indeed the external server only sends version 1.1.0 and my mapfile >>>>has: >>>> ... >>>> METADATA >>>> "wfs_version" "1.1.0" >>>> ... >>>> >>>> Now when I search on the net, I find bug reports about WMS 1.1.0 and >>>> MapServer but no information if I can use it as a 1.1.0 client at all. >>>> And if so, do I need to use something specific to activate it? >>>> >>>> I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: >>>> >>>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >>>> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >>>> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >>>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >>>> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >>>> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> Thanks for looking into this. >>>> >>>> Best >>>> >>>> Lars >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Dec 23 09:11:12 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 23 Dec 2014 17:11:12 +0000 Subject: [mapserver-users] Mapserver as WFS 1.1.0 client In-Reply-To: <54999F32.7070100@skendata.de> References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> Message-ID: Based on other input from Daniel Morissette I think it's pretty safe to say that MapServer only supports WFS layers with versions 0.0.14 and 1.0.0. Sorry... I don't know what it would take to extend things to 1.1.0 though (patches welcome). Steve -----Original Message----- From: Lars Fricke [mailto:lars.fricke at skendata.de] Sent: Tuesday, December 23, 2014 10:58 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello Steve, Thank you for your answer. I tried setting to GET and this is what i got: "msWFSGetFeature(): WFS server error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer HK." The message about the wrong version is not showing up. Maybe I'm doing something wrong? Here's my layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION "http://localhost:8081/geoserver/wfs?" CONNECTIONTYPE WFS #EXTENT 618740 5962679 1737924 7376186 does not seem to matter STATUS ON METADATA "wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" "wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" "GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" "gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" END # STYLE END # CLASS END # LAYER" The request is: "http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeature&TYPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): > Looking at the mapwfslayer.c code it's a little confusing. I see references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 and 1.1 for GET requests. You can try setting: > > "wfs_request_method" "GET" > > In the layer metadata and see if that works for you. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars > Fricke > Sent: Monday, December 22, 2014 12:58 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client > > Hello List, > > can you please give me a quick feedback on which version WFS MapServer supports as CLIENT (see below)? I can't really find it in the docs. > Thank you. > > Lars Fricke > > > Am 18.12.2014 um 08:29 schrieb Lars Fricke: >> Hello, >> >> I am trying to access an external WFS with MapServer as client to >> cascade it. I get the following error message: >> msBuildWFSLayerPostRequest(): WFS connection error. MapServer >> supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata >> wfs_version). >> >> Indeed the external server only sends version 1.1.0 and my mapfile has: >> ... >> METADATA >> "wfs_version" "1.1.0" >> ... >> >> Now when I search on the net, I find bug reports about WMS 1.1.0 and >> MapServer but no information if I can use it as a 1.1.0 client at all. >> And if so, do I need to use something specific to activate it? >> >> I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: >> >> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >> SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks for looking into this. >> >> Best >> >> Lars >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Tue Dec 23 09:28:46 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 23 Dec 2014 17:28:46 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client In-Reply-To: References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> <5499A31E.6070309@skendata.de> Message-ID: Good idea! -----Original Message----- From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, December 23, 2014 11:19 AM To: fricke at gisberater.com; Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: Re: [EXTERNAL] Re: [mapserver-users] Mapserver as WFS 1.1.0 client Lars, Could you add a gdal layer into mapserver and use gdal to make the wfs 1.1.0 request? Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/23/14, 12:15 PM, "Lars Fricke" wrote: >Well at least now I know. > >Thanks for both of your effort. > >Cheers and blessed Christmas. > >Lars > >Based on other input from Daniel Morissette I think it's pretty safe to >say that MapServer only supports WFS layers with versions 0.0.14 and >1.0.0. Sorry... I don't know what it would take to extend things to >1.1.0 though (patches welcome). Steve -----Original Message----- From: >Lars Fricke [mailto:lars.fricke at skendata.de] Sent: Tuesday, December >23, >2014 10:58 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org >Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client Hello >Steve, Thank you for your answer. I tried setting to GET and this is >what i got: "locator="mapserv">msWFSGetFeature(): WFS server >error. ms_error->code not found msWFSLayerWhichShapes(): WFS connection >error. WFS request produced unexpected output (junk?) for layer >HK." The message about the wrong >version is not showing up. Maybe I'm doing something wrong? Here's my >layer definition: "LAYER NAME "HK" TYPE Point UNITS METERS CONNECTION >"http://localhost:8081/geoserver/wfs?" CONNECTIONTYPE WFS #EXTENT >618740 >5962679 1737924 7376186 does not seem to matter STATUS ON METADATA >"wfs_version" "1.1.0" "wfs_title" "HK" "wfs_connectiontimeout" "60" >"wfs_typename" "Data:HK" "wfs_maxfeatures" "500" "wfs_request_method" >"GET" "gml_include_items" "all" "wfs_title" "HK" "wfs_srs" "EPSG:3857" >"gml_featureid" "GCOA_ID" "wfs_enable_request" "*" END # METADATA >PROJECTION "init=epsg:3857" END # PROJECTION CLASS NAME "Koordinaten" >STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" >END # STYLE END # CLASS END # LAYER" The request is: >"http://localhost:8082/wfs?SERVICE=WFS&VERSION=1.1.0&&request=GetFeatur >e&T YPENAME=HK&local&SRS=EPSG:3857&bbox=793732,6570204,793765,6570228" >Thank you Cheers Lars Am 22.12.2014 um 16:09 schrieb Lime, Steve D (MNIT): >>> Looking at the mapwfslayer.c code it's a little confusing. I see >>>references to 0.0.14 and 1.0.0 for POST requests and 0.0.14, 1.0.0 >>>and >>>1.1 for GET requests. You can try setting: >>> >>> "wfs_request_method" "GET" >>> >>> In the layer metadata and see if that works for you. >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars >>> Fricke >>> Sent: Monday, December 22, 2014 12:58 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] Mapserver as WFS 1.1.0 client >>> >>> Hello List, >>> >>> can you please give me a quick feedback on which version WFS >>>MapServer supports as CLIENT (see below)? I can't really find it in the docs. >>> Thank you. >>> >>> Lars Fricke >>> >>> >>> Am 18.12.2014 um 08:29 schrieb Lars Fricke: >>>> Hello, >>>> >>>> I am trying to access an external WFS with MapServer as client to >>>> cascade it. I get the following error message: >>>> msBuildWFSLayerPostRequest(): WFS connection error. MapServer >>>> supports only WFS 1.0.0 or 0.0.14 (please verify the version >>>> metadata wfs_version). >>>> >>>> Indeed the external server only sends version 1.1.0 and my mapfile >>>>has: >>>> ... >>>> METADATA >>>> "wfs_version" "1.1.0" >>>> ... >>>> >>>> Now when I search on the net, I find bug reports about WMS 1.1.0 >>>> and MapServer but no information if I can use it as a 1.1.0 client at all. >>>> And if so, do I need to use something specific to activate it? >>>> >>>> I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: >>>> >>>> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE >>>> SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV >>>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >>>> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >>>> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> Thanks for looking into this. >>>> >>>> Best >>>> >>>> Lars >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From lars.fricke at skendata.de Tue Dec 23 10:15:33 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 23 Dec 2014 19:15:33 +0100 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client In-Reply-To: References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> <5499A31E.6070309@skendata.de> Message-ID: <5499B145.1050007@skendata.de> Hm, I had a look but would that not make it a raster layer? I do however need the vector to cascade the WFS. Am I getting this right? Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: > Lars, > > Could you add a gdal layer into mapserver and use gdal to make the wfs > 1.1.0 request? > > Mike > From Michael.Smith at erdc.dren.mil Tue Dec 23 10:19:41 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 23 Dec 2014 18:19:41 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client In-Reply-To: <5499A73F.9000009@skendata.de> References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> <5499A31E.6070309@skendata.de> <5499A73F.9000009@skendata.de> Message-ID: Lars, You can create a layer for mapserver that is an OGR layer (part of the GDAL library). LAYER ... CONNECTIONTYPE OGR DATA "..." ... END The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See http://www.gdal.org/drv_wfs.html Mike On 12/23/14, 12:32 PM, "Lars Fricke" wrote: >Hello Michael, > >I'm not sure I understand what you mean? > >Best > >Lars > > >Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: >> Lars, >> >> Could you add a gdal layer into mapserver and use gdal to make the wfs >> 1.1.0 request? >> >> Mike >> > From lars.fricke at skendata.de Tue Dec 23 11:02:31 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Tue, 23 Dec 2014 20:02:31 +0100 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client In-Reply-To: References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> <5499A31E.6070309@skendata.de> <5499A73F.9000009@skendata.de> Message-ID: <5499BC47.2090107@skendata.de> Mike, got it to work for one server but unfortunately the more important one delivers neither errors nor data. I will follow up on this tomorrow. Thank's for the idea, it may indeed lead forward. Best Lars Am 23.12.2014 um 19:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: > Lars, > > You can create a layer for mapserver that is an OGR layer (part of the > GDAL library). > > LAYER > ... > CONNECTIONTYPE OGR > DATA "..." > ... > END > > > The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See > http://www.gdal.org/drv_wfs.html > > Mike > > On 12/23/14, 12:32 PM, "Lars Fricke" wrote: > >> Hello Michael, >> >> I'm not sure I understand what you mean? >> >> Best >> >> Lars >> >> >> Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: >>> Lars, >>> >>> Could you add a gdal layer into mapserver and use gdal to make the wfs >>> 1.1.0 request? >>> >>> Mike >>> > From lars.fricke at skendata.de Wed Dec 24 00:18:28 2014 From: lars.fricke at skendata.de (Lars Fricke) Date: Wed, 24 Dec 2014 09:18:28 +0100 Subject: [mapserver-users] [EXTERNAL] Re: Mapserver as WFS 1.1.0 client In-Reply-To: References: <5492824F.5030003@skendata.de> <5497C113.2010300@skendata.de> <54999F32.7070100@skendata.de> <5499A31E.6070309@skendata.de> <5499A73F.9000009@skendata.de> Message-ID: <549A76D4.7030809@skendata.de> Mike, you were right. It works exactly as you say. The reason I could not get it to work yesterday night was due to a wrong EPSG code, so nothing specific. Thank you very much for putting this solution under the Christmas tree for me. I wonder if this option should also be pointed out in the docs with the WFS description? Blessed Christmas everybody! Cheers Lars Am 23.12.2014 um 19:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: > Lars, > > You can create a layer for mapserver that is an OGR layer (part of the > GDAL library). > > LAYER > ... > CONNECTIONTYPE OGR > DATA "..." > ... > END > > > The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See > http://www.gdal.org/drv_wfs.html > > Mike > > On 12/23/14, 12:32 PM, "Lars Fricke" wrote: > >> Hello Michael, >> >> I'm not sure I understand what you mean? >> >> Best >> >> Lars >> >> >> Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH: >>> Lars, >>> >>> Could you add a gdal layer into mapserver and use gdal to make the wfs >>> 1.1.0 request? >>> >>> Mike >>> > From fricke at gisberater.com Mon Dec 29 03:34:18 2014 From: fricke at gisberater.com (Lars Fricke) Date: Mon, 29 Dec 2014 12:34:18 +0100 Subject: [mapserver-users] Setting up a JSONP service Message-ID: <54A13C3A.5060405@gisberater.com> Dear List, I have a WFS service running under MapServer that I would like to operate as JSONP service. I managed to set GEOJSON as output format but I get "Cross-Origin-Request Blocked" if I try to call it with a Javascript client (using Leaflet L.layerJSON. The question is: Is it possible to set up a JSONP service from Mapserver and if yes, how? My current mapfile looks like this (relevant parts): " # in WEB - METADATA "wfs_getfeature_formatlist" "geojson,csv,ogrgml" OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson; charset=utf-8" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:COORDINATE_PRECISION=5" END " If this would already be a correct JSONP service, I have to look on the Leaflet side for the error... Thanks for your help. Cheers Lars From jmckenna at gatewaygeomatics.com Mon Dec 29 15:55:59 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 29 Dec 2014 18:55:59 -0500 Subject: [mapserver-users] Setting up a JSONP service In-Reply-To: <54A13C3A.5060405@gisberater.com> References: <54A13C3A.5060405@gisberater.com> Message-ID: <54A1EA0F.8070106@gatewaygeomatics.com> On 2014-12-29 6:34 AM, Lars Fricke wrote: > Dear List, > > I have a WFS service running under MapServer that I would like to > operate as JSONP service. I managed to set GEOJSON as output format but > I get "Cross-Origin-Request Blocked" if I try to call it with a > Javascript client (using Leaflet L.layerJSON. > The question is: Is it possible to set up a JSONP service from Mapserver > and if yes, how? My current mapfile looks like this (relevant parts): > > " > # in WEB - METADATA > "wfs_getfeature_formatlist" "geojson,csv,ogrgml" > > OUTPUTFORMAT > NAME "geojson" > DRIVER "OGR/GEOJSON" > MIMETYPE "application/json; subtype=geojson; charset=utf-8" > FORMATOPTION "STORAGE=stream" > FORMATOPTION "FORM=SIMPLE" > FORMATOPTION "LCO:COORDINATE_PRECISION=5" > END > " > If this would already be a correct JSONP service, I have to look on the > Leaflet side for the error... > Thanks for your help. > > Cheers > > Lars Since you're using the OGR driver, you might want to review the GDAL/OGR drive page thoroughly (http://www.gdal.org/drv_geojson.html), or ask about JSONP on the GDAL-dev mailing list (I see several discussions about JSONP, when I search the mailing list archives http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From even.rouault at spatialys.com Mon Dec 29 16:36:18 2014 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 30 Dec 2014 01:36:18 +0100 Subject: [mapserver-users] Setting up a JSONP service In-Reply-To: <54A1EA0F.8070106@gatewaygeomatics.com> References: <54A13C3A.5060405@gisberater.com> <54A1EA0F.8070106@gatewaygeomatics.com> Message-ID: <201412300136.18287.even.rouault@spatialys.com> Le mardi 30 d?cembre 2014 00:55:59, Jeff McKenna a ?crit : > On 2014-12-29 6:34 AM, Lars Fricke wrote: > > Dear List, > > > > I have a WFS service running under MapServer that I would like to > > operate as JSONP service. I managed to set GEOJSON as output format but > > I get "Cross-Origin-Request Blocked" if I try to call it with a > > Javascript client (using Leaflet L.layerJSON. > > The question is: Is it possible to set up a JSONP service from Mapserver > > and if yes, how? My current mapfile looks like this (relevant parts): > > > > " > > # in WEB - METADATA > > "wfs_getfeature_formatlist" "geojson,csv,ogrgml" > > > > OUTPUTFORMAT > > > > NAME "geojson" > > DRIVER "OGR/GEOJSON" > > MIMETYPE "application/json; subtype=geojson; charset=utf-8" > > FORMATOPTION "STORAGE=stream" > > FORMATOPTION "FORM=SIMPLE" > > FORMATOPTION "LCO:COORDINATE_PRECISION=5" > > > > END > > > > " > > If this would already be a correct JSONP service, I have to look on the > > Leaflet side for the error... > > Thanks for your help. > > > > Cheers > > > > Lars > > Since you're using the OGR driver, you might want to review the GDAL/OGR > drive page thoroughly (http://www.gdal.org/drv_geojson.html), or ask > about JSONP on the GDAL-dev mailing list (I see several discussions > about JSONP, when I search the mailing list archives > http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html) Lars, AFAICS, this would needs a modest enhancement in the OGR GeoJSON driver to have for example a FORMAT=JSONP creation option, and probably another one like JSONP_CALLBACK=the_name_you_wish to define the name of the callback function. Then you could define: OUTPUTFORMAT NAME "jsonp" DRIVER "OGR/GEOJSON" MIMETYPE "text/javascript" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:FORMAT=JSONP" FORMATOPTION "LCO:JSONP_CALLBACK=the_name_you_wish" FORMATOPTION "LCO:COORDINATE_PRECISION=5" END I see that GeoServer has a way to specify the callback name from a user- specified "format_options=" vendor specific parameters. We could probably do something similar with substitution in output format formatoption like OUTPUTFORMAT NAME "jsonp" DRIVER "OGR/GEOJSON" MIMETYPE "text/javascript" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:FORMAT=JSONP" FORMATOPTION "LCO:JSONP_CALLBACK=%jsonp_callback%" FORMATOPTION "LCO:COORDINATE_PRECISION=5" END But AFAIK, this is only currently implemented for the FILENAME format option, so this would require a small enhancement in MapServer too. Even -- Spatialys - Geospatial professional services http://www.spatialys.com From mp_surv at yahoo.com Mon Dec 29 19:43:30 2014 From: mp_surv at yahoo.com (mp_surv) Date: Mon, 30 Dec 2014 03:43:30 +0000 Subject: [mapserver-users] =?iso-8859-1?q?mp=5Fsurv=40yahoo=2Ecom?= Message-ID: http://allafula.bibleforisrael.com/jkbswzb/zpvuezryikadfximpbznjxrsjrjhualzum.cjrppfqayusmzrqojdifd mp_surv at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Dec 30 07:24:21 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 30 Dec 2014 15:24:21 +0000 Subject: [mapserver-users] Setting up a JSONP service In-Reply-To: <54A13C3A.5060405@gisberater.com> References: <54A13C3A.5060405@gisberater.com> Message-ID: You can also use MapServer templates to accomplish this. It's a little more work since you have to write the template but it's quite flexible then. Usually I write the template to produce JSON and then use a simple wrapper template to produce JSONP. For example, jsonp.js looks like (callback is passed in): // MapServer Template [callback]( [include src="templates/json.js"] ) Output formats look like: OUTPUTFORMAT NAME 'JSON' DRIVER 'TEMPLATE' MIMETYPE 'application/json;' FORMATOPTION 'FILE=templates/json.js' FORMATOPTION 'ATTACHMENT=service.json' END OUTPUTFORMAT NAME 'JSONP' DRIVER 'TEMPLATE' MIMETYPE 'application/json;' FORMATOPTION 'FILE=templates/jsonp.js' FORMATOPTION 'ATTACHMENT=service.json' END Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars Fricke Sent: Monday, December 29, 2014 5:34 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Setting up a JSONP service Dear List, I have a WFS service running under MapServer that I would like to operate as JSONP service. I managed to set GEOJSON as output format but I get "Cross-Origin-Request Blocked" if I try to call it with a Javascript client (using Leaflet L.layerJSON. The question is: Is it possible to set up a JSONP service from Mapserver and if yes, how? My current mapfile looks like this (relevant parts): " # in WEB - METADATA "wfs_getfeature_formatlist" "geojson,csv,ogrgml" OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson; charset=utf-8" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:COORDINATE_PRECISION=5" END " If this would already be a correct JSONP service, I have to look on the Leaflet side for the error... Thanks for your help. Cheers Lars _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From traderboy at yahoo.com Wed Dec 31 08:54:21 2014 From: traderboy at yahoo.com (Joe Franklin) Date: Wed, 31 Dec 2014 16:54:21 +0000 (UTC) Subject: [mapserver-users] Probably should update the link in the Mapcache Windows compilation section on mapserver.org Message-ID: <737630669.1882542.1420044861592.JavaMail.yahoo@jws100173.mail.ne1.yahoo.com> The link to?http://vbkto.dyndns.org/sdk/?listed on the help page for?Mapcache windows documentation at?http://mapserver.org/mapcache/install.html?should be replaced with http://www.gisinternals.com/sdk/. ?Don't click the old link - you've been warned :) ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Dec 31 13:53:13 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 31 Dec 2014 21:53:13 +0000 Subject: [mapserver-users] Mapserver VIM syntax file (map.vim) Message-ID: All, "RANGEITEM" seems to be missing from the newest "map.vim" file . . . should it be?? Who should I tell/ask about this ? Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Dec 31 21:40:28 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 1 Jan 2015 05:40:28 +0000 Subject: [mapserver-users] Probably should update the link in the Mapcache Windows compilation section on mapserver.org In-Reply-To: <737630669.1882542.1420044861592.JavaMail.yahoo@jws100173.mail.ne1.yahoo.com> References: <737630669.1882542.1420044861592.JavaMail.yahoo@jws100173.mail.ne1.yahoo.com> Message-ID: Not sure if the GIS Internals URL is the right place but the other one certainly ain't going anywhere useful. I made the change to master and branch-6-4, might need more attention... Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Joe Franklin [traderboy at yahoo.com] Sent: Wednesday, December 31, 2014 10:54 AM To: mapserver-users Subject: [mapserver-users] Probably should update the link in the Mapcache Windows compilation section on mapserver.org The link to http://vbkto.dyndns.org/sdk/ listed on the help page for Mapcache windows documentation at http://mapserver.org/mapcache/install.html should be replaced with http://www.gisinternals.com/sdk/. Don't click the old link - you've been warned :) -------------- next part -------------- An HTML attachment was scrubbed... URL: