From bfischer at houstoneng.com Mon May 2 18:51:45 2016 From: bfischer at houstoneng.com (Brian Fischer) Date: Tue, 3 May 2016 01:51:45 +0000 Subject: [mapserver-users] extract profile from dem/raster Message-ID: Is there a way with Mapserver cgi to extract a profile (series of x,y,z values) from a DEM by passing mapserver a linestring? Or is the best way to use mapscript and loop threw the points that represent the linestring one by one? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon May 2 20:19:46 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 3 May 2016 03:19:46 +0000 Subject: [mapserver-users] extract profile from dem/raster In-Reply-To: References: Message-ID: You should be able to do a query by shape against a raster layer. I'll see if I can whip up an example.... ________________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Brian Fischer [bfischer at houstoneng.com] Sent: Monday, May 02, 2016 8:51 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] extract profile from dem/raster Is there a way with Mapserver cgi to extract a profile (series of x,y,z values) from a DEM by passing mapserver a linestring? Or is the best way to use mapscript and loop threw the points that represent the linestring one by one? Thanks, Brian From ashuandindia at hotmail.com Fri May 6 01:48:58 2016 From: ashuandindia at hotmail.com (Ashutosh Sharma) Date: Fri, 6 May 2016 14:18:58 +0530 Subject: [mapserver-users] How to use mapcache with SLD parameter? Message-ID: Hi All, I am working on integrating styling with mapserver. Server is already integrated with mapcache. So whenever I request a styled layer using sld parameter in my wms request, server returns me the unstyled layer from cache.When I disable caching everything works fine. I want my mapcache server to cache layer not only on the basis of layer name but also on the basis of SLD path provided in SLD parameter, so each layer can have multiple folders with different SLD paths. and also if SLD_BODY is in parameter than we should by pass cache-server. I saw one of the answer on ( https://lists.osgeo.org/pipermail/mapserver-users/2015-August/078161.html ) link which says it is possible, but I didn't found much resources to make it work. thanks for any advice. Thanks and Regards, Ashutosh Sharma -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Sat May 7 10:47:23 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 17:47:23 +0000 Subject: [mapserver-users] WFS - featureid/resourceid Message-ID: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian From jukka.rahkonen at maanmittauslaitos.fi Sat May 7 10:54:02 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Sat, 7 May 2016 17:54:02 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> Message-ID: I would try the GetFeatureById stored query http://mapserver.org/ogc/wfs_server.html Jukka Rahkonen ________________________________ L?hett?j?: Ian Walberg L?hetetty: ?7.?5.?2016 20:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS - featureid/resourceid Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian _______________________________________________ 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 ian.walberg at airborne.aero Sat May 7 11:44:17 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 18:44:17 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> Message-ID: <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> Jukka, We could not get that to work, what is the syntax for our setup? Thanks Ian From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Saturday, May 7, 2016 10:54 AM To: Ian Walberg ; mapserver-users at lists.osgeo.org Subject: VS: [mapserver-users] WFS - featureid/resourceid I would try the GetFeatureById stored query http://mapserver.org/ogc/wfs_server.html Jukka Rahkonen ________________________________ L?hett?j?: Ian Walberg L?hetetty: ?7.?5.?2016 20:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS - featureid/resourceid Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian _______________________________________________ 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 Sat May 7 12:12:22 2016 From: tchaddad at gmail.com (TC Haddad) Date: Sat, 7 May 2016 12:12:22 -0700 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> Message-ID: Ian you may have to enable the GetFeatureById option in your mapfile as at the moment it looks like you have it turned off. Put something like this in the LAYER block to enable all WFS requests: "wfs_enable_request" "*" >From there you can begin to test with: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById And the server will tell you what other parameters you need to add to the URL in order to successfully return a record. On Sat, May 7, 2016 at 11:44 AM, Ian Walberg wrote: > Jukka, > > > > We could not get that to work, what is the syntax for our setup? > > > > Thanks > > > > Ian > > > > *From:* Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] > *Sent:* Saturday, May 7, 2016 10:54 AM > *To:* Ian Walberg ; > mapserver-users at lists.osgeo.org > *Subject:* VS: [mapserver-users] WFS - featureid/resourceid > > > > I would try the GetFeatureById stored query > http://mapserver.org/ogc/wfs_server.html > > Jukka Rahkonen > ------------------------------ > > *L?hett?j?: *Ian Walberg > *L?hetetty: *?7.?5.?2016 20:47 > *Vastaanottaja: *mapserver-users at lists.osgeo.org > *Aihe: *[mapserver-users] WFS - featureid/resourceid > > Folks, > > How do we select just a single feature using FEATUREID or RESOUCEID. > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST > > Thanks > > Ian > _______________________________________________ > 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 ian.walberg at airborne.aero Sat May 7 12:27:28 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 19:27:28 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> Message-ID: Here is what we have in the map file layer, what have we missed? METADATA "wfs_srs" "EPSG:4326" "wfs_title" "DATA_POI" "gml_featureid" "id" "gml_include_items" "all" "wfs_enable_request" "*" "wfs_encoding" "UTF-8" "wfs_abstract" "Points" "wfs_getfeature_formatlist" "geojson" END Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:12 PM To: Ian Walberg Cc: Rahkonen Jukka (MML) ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Ian you may have to enable the GetFeatureById option in your mapfile as at the moment it looks like you have it turned off. Put something like this in the LAYER block to enable all WFS requests: "wfs_enable_request" "*" From there you can begin to test with: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById And the server will tell you what other parameters you need to add to the URL in order to successfully return a record. On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > wrote: Jukka, We could not get that to work, what is the syntax for our setup? Thanks Ian From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Saturday, May 7, 2016 10:54 AM To: Ian Walberg >; mapserver-users at lists.osgeo.org Subject: VS: [mapserver-users] WFS - featureid/resourceid I would try the GetFeatureById stored query http://mapserver.org/ogc/wfs_server.html Jukka Rahkonen ________________________________ L?hett?j?: Ian Walberg L?hetetty: ?7.?5.?2016 20:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS - featureid/resourceid Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian _______________________________________________ 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 ian.walberg at airborne.aero Sat May 7 12:29:21 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 19:29:21 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> Message-ID: <437ba8a107314b2d8f3533646baee7c2@airborne.aero> And also in the WEB section METADATA "wfs_title" "WFS Test" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" "wfs_srs" "EPSG:4326" "wfs_abstract" "WFS Test" "wfs_enable_request" "*" "wfs_getfeature_formatlist" "geojson" Ian From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, May 7, 2016 12:27 PM To: TC Haddad Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Here is what we have in the map file layer, what have we missed? METADATA "wfs_srs" "EPSG:4326" "wfs_title" "DATA_POI" "gml_featureid" "id" "gml_include_items" "all" "wfs_enable_request" "*" "wfs_encoding" "UTF-8" "wfs_abstract" "Points" "wfs_getfeature_formatlist" "geojson" END Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:12 PM To: Ian Walberg > Cc: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Ian you may have to enable the GetFeatureById option in your mapfile as at the moment it looks like you have it turned off. Put something like this in the LAYER block to enable all WFS requests: "wfs_enable_request" "*" From there you can begin to test with: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById And the server will tell you what other parameters you need to add to the URL in order to successfully return a record. On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > wrote: Jukka, We could not get that to work, what is the syntax for our setup? Thanks Ian From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Saturday, May 7, 2016 10:54 AM To: Ian Walberg >; mapserver-users at lists.osgeo.org Subject: VS: [mapserver-users] WFS - featureid/resourceid I would try the GetFeatureById stored query http://mapserver.org/ogc/wfs_server.html Jukka Rahkonen ________________________________ L?hett?j?: Ian Walberg L?hetetty: ?7.?5.?2016 20:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS - featureid/resourceid Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian _______________________________________________ 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 tchaddad at gmail.com Sat May 7 12:39:27 2016 From: tchaddad at gmail.com (TC Haddad) Date: Sat, 7 May 2016 12:39:27 -0700 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: <437ba8a107314b2d8f3533646baee7c2@airborne.aero> References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: Well it looks like your map file settings are fine, and a correctly formatted URL would be: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 However the resulting error message indicates that something may else may be amiss: msQueryByFilter(): Search returned no results. No matching record(s) found. LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support On Sat, May 7, 2016 at 12:29 PM, Ian Walberg wrote: > And also in the WEB section > > > > > > METADATA > > "wfs_title" "WFS Test" > > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" > > "wfs_srs" "EPSG:4326" > > "wfs_abstract" "WFS Test" > > "wfs_enable_request" "*" > > "wfs_getfeature_formatlist" "geojson" > > > > Ian > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *Ian Walberg > *Sent:* Saturday, May 7, 2016 12:27 PM > *To:* TC Haddad > *Cc:* mapserver-users at lists.osgeo.org > > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > Here is what we have in the map file layer, what have we missed? > > > > METADATA > > "wfs_srs" "EPSG:4326" > > "wfs_title" "DATA_POI" > > "gml_featureid" "id" > > "gml_include_items" "all" > > "wfs_enable_request" "*" > > "wfs_encoding" "UTF-8" > > "wfs_abstract" "Points" > > "wfs_getfeature_formatlist" "geojson" > > END > > Thanks > > > > Ian > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com ] > *Sent:* Saturday, May 7, 2016 12:12 PM > *To:* Ian Walberg > *Cc:* Rahkonen Jukka (MML) ; > mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Ian > > you may have to enable the GetFeatureById option in your mapfile as at the > moment it looks like you have it turned off. > > Put something like this in the LAYER block to enable all WFS requests: > > "wfs_enable_request" "*" > > From there you can begin to test with: > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById > > And the server will tell you what other parameters you need to add to the > URL in order to successfully return a record. > > > > On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > wrote: > > Jukka, > > > > We could not get that to work, what is the syntax for our setup? > > > > Thanks > > > > Ian > > > > *From:* Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] > *Sent:* Saturday, May 7, 2016 10:54 AM > *To:* Ian Walberg ; > mapserver-users at lists.osgeo.org > *Subject:* VS: [mapserver-users] WFS - featureid/resourceid > > > > I would try the GetFeatureById stored query > http://mapserver.org/ogc/wfs_server.html > > Jukka Rahkonen > ------------------------------ > > *L?hett?j?: *Ian Walberg > *L?hetetty: *?7.?5.?2016 20:47 > *Vastaanottaja: *mapserver-users at lists.osgeo.org > *Aihe: *[mapserver-users] WFS - featureid/resourceid > > Folks, > > How do we select just a single feature using FEATUREID or RESOUCEID. > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST > > Thanks > > Ian > _______________________________________________ > 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 ian.walberg at airborne.aero Sat May 7 12:43:51 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 19:43:51 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: Yes we see the same and that was my reason for asking. Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:39 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Well it looks like your map file settings are fine, and a correctly formatted URL would be: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 However the resulting error message indicates that something may else may be amiss: msQueryByFilter(): Search returned no results. No matching record(s) found. LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: And also in the WEB section METADATA "wfs_title" "WFS Test" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" "wfs_srs" "EPSG:4326" "wfs_abstract" "WFS Test" "wfs_enable_request" "*" "wfs_getfeature_formatlist" "geojson" Ian From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, May 7, 2016 12:27 PM To: TC Haddad > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Here is what we have in the map file layer, what have we missed? METADATA "wfs_srs" "EPSG:4326" "wfs_title" "DATA_POI" "gml_featureid" "id" "gml_include_items" "all" "wfs_enable_request" "*" "wfs_encoding" "UTF-8" "wfs_abstract" "Points" "wfs_getfeature_formatlist" "geojson" END Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:12 PM To: Ian Walberg > Cc: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Ian you may have to enable the GetFeatureById option in your mapfile as at the moment it looks like you have it turned off. Put something like this in the LAYER block to enable all WFS requests: "wfs_enable_request" "*" From there you can begin to test with: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById And the server will tell you what other parameters you need to add to the URL in order to successfully return a record. On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > wrote: Jukka, We could not get that to work, what is the syntax for our setup? Thanks Ian From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Saturday, May 7, 2016 10:54 AM To: Ian Walberg >; mapserver-users at lists.osgeo.org Subject: VS: [mapserver-users] WFS - featureid/resourceid I would try the GetFeatureById stored query http://mapserver.org/ogc/wfs_server.html Jukka Rahkonen ________________________________ L?hett?j?: Ian Walberg L?hetetty: ?7.?5.?2016 20:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS - featureid/resourceid Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian _______________________________________________ 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 tchaddad at gmail.com Sat May 7 12:45:33 2016 From: tchaddad at gmail.com (TC Haddad) Date: Sat, 7 May 2016 12:45:33 -0700 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: Try adding GML as a format option to see if you are able to get a result that way: "wfs_getfeature_formatlist" "gml,geojson" On Sat, May 7, 2016 at 12:43 PM, Ian Walberg wrote: > Yes we see the same and that was my reason for asking. > > > > Thanks > > Ian > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com] > *Sent:* Saturday, May 7, 2016 12:39 PM > *To:* Ian Walberg > > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Well it looks like your map file settings are fine, and a correctly > formatted URL would be: > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 > > However the resulting error message indicates that something may else may > be amiss: > > msQueryByFilter(): Search returned no results. No matching record(s) found. > LayerDefaultTranslateFilter(): General error message. This data driver > does not implement filter translation support > > > > On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: > > And also in the WEB section > > > > > > METADATA > > "wfs_title" "WFS Test" > > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" > > "wfs_srs" "EPSG:4326" > > "wfs_abstract" "WFS Test" > > "wfs_enable_request" "*" > > "wfs_getfeature_formatlist" "geojson" > > > > Ian > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *Ian Walberg > *Sent:* Saturday, May 7, 2016 12:27 PM > *To:* TC Haddad > *Cc:* mapserver-users at lists.osgeo.org > > > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > Here is what we have in the map file layer, what have we missed? > > > > METADATA > > "wfs_srs" "EPSG:4326" > > "wfs_title" "DATA_POI" > > "gml_featureid" "id" > > "gml_include_items" "all" > > "wfs_enable_request" "*" > > "wfs_encoding" "UTF-8" > > "wfs_abstract" "Points" > > "wfs_getfeature_formatlist" "geojson" > > END > > Thanks > > > > Ian > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com ] > *Sent:* Saturday, May 7, 2016 12:12 PM > *To:* Ian Walberg > *Cc:* Rahkonen Jukka (MML) ; > mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Ian > > you may have to enable the GetFeatureById option in your mapfile as at the > moment it looks like you have it turned off. > > Put something like this in the LAYER block to enable all WFS requests: > > "wfs_enable_request" "*" > > From there you can begin to test with: > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById > > And the server will tell you what other parameters you need to add to the > URL in order to successfully return a record. > > > > On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > wrote: > > Jukka, > > > > We could not get that to work, what is the syntax for our setup? > > > > Thanks > > > > Ian > > > > *From:* Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] > *Sent:* Saturday, May 7, 2016 10:54 AM > *To:* Ian Walberg ; > mapserver-users at lists.osgeo.org > *Subject:* VS: [mapserver-users] WFS - featureid/resourceid > > > > I would try the GetFeatureById stored query > http://mapserver.org/ogc/wfs_server.html > > Jukka Rahkonen > ------------------------------ > > *L?hett?j?: *Ian Walberg > *L?hetetty: *?7.?5.?2016 20:47 > *Vastaanottaja: *mapserver-users at lists.osgeo.org > *Aihe: *[mapserver-users] WFS - featureid/resourceid > > Folks, > > How do we select just a single feature using FEATUREID or RESOUCEID. > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST > > Thanks > > Ian > _______________________________________________ > 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 ian.walberg at airborne.aero Sat May 7 12:53:24 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 19:53:24 +0000 Subject: [mapserver-users] WFS - featureid/resourceid References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: That did not seem to make any difference, can you tell from here what output types should work? http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:46 PM To: Ian Walberg > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Try adding GML as a format option to see if you are able to get a result that way: "wfs_getfeature_formatlist" "gml,geojson" On Sat, May 7, 2016 at 12:43 PM, Ian Walberg > wrote: Yes we see the same and that was my reason for asking. Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:39 PM To: Ian Walberg > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Well it looks like your map file settings are fine, and a correctly formatted URL would be: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 However the resulting error message indicates that something may else may be amiss: msQueryByFilter(): Search returned no results. No matching record(s) found. LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Sat May 7 12:56:34 2016 From: tchaddad at gmail.com (TC Haddad) Date: Sat, 7 May 2016 12:56:34 -0700 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: No - it seems the result could return successfully in either format, so the server config is fine. What is the data storage format? perhaps that is the driver that is reporting the error... On Sat, May 7, 2016 at 12:53 PM, Ian Walberg wrote: > > > That did not seem to make any difference, can you tell from here what > output types should work? > > > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities > > > > Thanks > > > Ian > > > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com ] > *Sent:* Saturday, May 7, 2016 12:46 PM > *To:* Ian Walberg > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Try adding GML as a format option to see if you are able to get a result > that way: > > "wfs_getfeature_formatlist" "gml,geojson" > > > > > > On Sat, May 7, 2016 at 12:43 PM, Ian Walberg > wrote: > > Yes we see the same and that was my reason for asking. > > > > Thanks > > Ian > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com] > *Sent:* Saturday, May 7, 2016 12:39 PM > *To:* Ian Walberg > > > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Well it looks like your map file settings are fine, and a correctly > formatted URL would be: > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 > > However the resulting error message indicates that something may else may > be amiss: > > msQueryByFilter(): Search returned no results. No matching record(s) found. > LayerDefaultTranslateFilter(): General error message. This data driver > does not implement filter translation support > > > > On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Sat May 7 13:04:50 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 20:04:50 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: The db is sqlite. ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:57 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid No - it seems the result could return successfully in either format, so the server config is fine. What is the data storage format? perhaps that is the driver that is reporting the error... On Sat, May 7, 2016 at 12:53 PM, Ian Walberg > wrote: That did not seem to make any difference, can you tell from here what output types should work? http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:46 PM To: Ian Walberg > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Try adding GML as a format option to see if you are able to get a result that way: "wfs_getfeature_formatlist" "gml,geojson" On Sat, May 7, 2016 at 12:43 PM, Ian Walberg > wrote: Yes we see the same and that was my reason for asking. Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:39 PM To: Ian Walberg > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Well it looks like your map file settings are fine, and a correctly formatted URL would be: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 However the resulting error message indicates that something may else may be amiss: msQueryByFilter(): Search returned no results. No matching record(s) found. LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Sat May 7 13:13:34 2016 From: tchaddad at gmail.com (TC Haddad) Date: Sat, 7 May 2016 13:13:34 -0700 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: Do you have a FILTERITEM specified in the LAYER? See this thread to see if the solution helps: http://lists.osgeo.org/pipermail/mapserver-users/2015-June/077933.html On Sat, May 7, 2016 at 1:04 PM, Ian Walberg wrote: > The db is sqlite. > > > > ian > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com] > *Sent:* Saturday, May 7, 2016 12:57 PM > > *To:* Ian Walberg > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > No - it seems the result could return successfully in either format, so > the server config is fine. > > What is the data storage format? perhaps that is the driver that is > reporting the error... > > > > On Sat, May 7, 2016 at 12:53 PM, Ian Walberg > wrote: > > > > That did not seem to make any difference, can you tell from here what > output types should work? > > > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities > > > > Thanks > > > Ian > > > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com ] > *Sent:* Saturday, May 7, 2016 12:46 PM > *To:* Ian Walberg > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Try adding GML as a format option to see if you are able to get a result > that way: > > "wfs_getfeature_formatlist" "gml,geojson" > > > > > > On Sat, May 7, 2016 at 12:43 PM, Ian Walberg > wrote: > > Yes we see the same and that was my reason for asking. > > > > Thanks > > Ian > > > > *From:* TC Haddad [mailto:tchaddad at gmail.com] > *Sent:* Saturday, May 7, 2016 12:39 PM > *To:* Ian Walberg > > > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > > > > > Well it looks like your map file settings are fine, and a correctly > formatted URL would be: > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 > > However the resulting error message indicates that something may else may > be amiss: > > msQueryByFilter(): Search returned no results. No matching record(s) found. > LayerDefaultTranslateFilter(): General error message. This data driver > does not implement filter translation support > > > > On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Sat May 7 13:19:29 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 7 May 2016 20:19:29 +0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: <4e2a91d329334f99b90f13a52010d799@airborne.aero> Here is the complete layer definition. LAYER NAME DATA_TEST DEBUG 5 METADATA "wfs_srs" "EPSG:4326" "wfs_title" "DATA_POI" "gml_featureid" "id" "gml_include_items" "all" "wfs_enable_request" "*" "wfs_encoding" "UTF-8" "wfs_abstract" "Points" "wfs_getfeature_formatlist" "geojson" "wfs_getfeature_formatlist" "gml,geojson" END # METADATA TYPE point STATUS ON EXTENT -180 -90 180 90 LABELITEM 'name' CONNECTIONTYPE OGR CONNECTION '/data/wfs/WFS_TEST.sqlite' DATA 'select id, "POINT(" || long || " " || lat || ")" as WKT_GEOMETRY, name from test' PROJECTION "init=epsg:4326" END # PROJECTION END # LAYER From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 1:14 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Do you have a FILTERITEM specified in the LAYER? See this thread to see if the solution helps: http://lists.osgeo.org/pipermail/mapserver-users/2015-June/077933.html On Sat, May 7, 2016 at 1:04 PM, Ian Walberg > wrote: The db is sqlite. ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sat May 7 13:46:10 2016 From: aperi2007 at gmail.com (aperi2007) Date: Sat, 7 May 2016 22:46:10 +0200 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: Perhaps the mapserver need a validation block in mapserver to check the ID value from parameter ? A. Il 07/05/2016 21:39, TC Haddad ha scritto: > > Well it looks like your map file settings are fine, and a correctly > formatted URL would be: > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 > > However the resulting error message indicates that something may else > may be amiss: > > msQueryByFilter(): Search returned no results. No matching record(s) > found. > LayerDefaultTranslateFilter(): General error message. This data driver > does not implement filter translation support > > On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > > wrote: > > And also in the WEB section > > METADATA > > "wfs_title" "WFS Test" > > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" > > "wfs_srs" "EPSG:4326" > > "wfs_abstract" "WFS Test" > > "wfs_enable_request" "*" > > "wfs_getfeature_formatlist" "geojson" > > Ian > > *From:*mapserver-users > [mailto:mapserver-users-bounces at lists.osgeo.org > ] *On Behalf Of > *Ian Walberg > *Sent:* Saturday, May 7, 2016 12:27 PM > *To:* TC Haddad > > *Cc:* mapserver-users at lists.osgeo.org > > > > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > Here is what we have in the map file layer, what have we missed? > > METADATA > > "wfs_srs" "EPSG:4326" > > "wfs_title" "DATA_POI" > > "gml_featureid" "id" > > "gml_include_items" "all" > > "wfs_enable_request" "*" > > "wfs_encoding" "UTF-8" > > "wfs_abstract" "Points" > > "wfs_getfeature_formatlist" "geojson" > > END > > Thanks > > Ian > > *From:*TC Haddad [mailto:tchaddad at gmail.com] > *Sent:* Saturday, May 7, 2016 12:12 PM > *To:* Ian Walberg > > *Cc:* Rahkonen Jukka (MML) >; > mapserver-users at lists.osgeo.org > > *Subject:* Re: [mapserver-users] WFS - featureid/resourceid > > Ian > > you may have to enable the GetFeatureById option in your mapfile > as at the moment it looks like you have it turned off. > > Put something like this in the LAYER block to enable all WFS requests: > > "wfs_enable_request" "*" > > From there you can begin to test with: > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById > > And the server will tell you what other parameters you need to add > to the URL in order to successfully return a record. > > On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > > wrote: > > Jukka, > > We could not get that to work, what is the syntax for our setup? > > Thanks > > Ian > > *From:*Rahkonen Jukka (MML) > [mailto:jukka.rahkonen at maanmittauslaitos.fi > ] > *Sent:* Saturday, May 7, 2016 10:54 AM > *To:* Ian Walberg >; > mapserver-users at lists.osgeo.org > > *Subject:* VS: [mapserver-users] WFS - featureid/resourceid > > I would try the GetFeatureById stored query > http://mapserver.org/ogc/wfs_server.html > > Jukka Rahkonen > > ------------------------------------------------------------------------ > > *L?hett?j?: *Ian Walberg > *L?hetetty: *?7.?5.?2016 20:47 > *Vastaanottaja: *mapserver-users at lists.osgeo.org > > *Aihe: *[mapserver-users] WFS - featureid/resourceid > > Folks, > > How do we select just a single feature using FEATUREID or > RESOUCEID. > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST > > Thanks > > Ian > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Sat May 7 14:22:55 2016 From: tchaddad at gmail.com (TC Haddad) Date: Sat, 7 May 2016 14:22:55 -0700 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: Yes, I don't know if adding PROCESSING 'NATIVE_FILTER=id' is useful but for the validation, something like: VALIDATION # %id% must be numeric and between 1 and 8 characters 'id' '^[0-9]{1,8)$'END might improve the situation? Also ensure that you are passing a valid id number - '1' was just a guess... On Sat, May 7, 2016 at 1:46 PM, aperi2007 wrote: > Perhaps the mapserver need a validation block in mapserver to check the ID > value from parameter ? > A. > > > > Il 07/05/2016 21:39, TC Haddad ha scritto: > > > Well it looks like your map file settings are fine, and a correctly > formatted URL would be: > > > http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 > > However the resulting error message indicates that something may else may > be amiss: > > msQueryByFilter(): Search returned no results. No matching record(s) found. > LayerDefaultTranslateFilter(): General error message. This data driver > does not implement filter translation support > > On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: > >> And also in the WEB section >> >> >> >> >> >> METADATA >> >> "wfs_title" "WFS Test" >> >> "wfs_onlineresource" " >> http://127.0.0.1/cgi-bin/mapserv?" >> >> "wfs_srs" "EPSG:4326" >> >> "wfs_abstract" "WFS Test" >> >> "wfs_enable_request" "*" >> >> "wfs_getfeature_formatlist" "geojson" >> >> >> >> Ian >> >> >> >> *From:* mapserver-users [mailto: >> >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Ian Walberg >> *Sent:* Saturday, May 7, 2016 12:27 PM >> *To:* TC Haddad < tchaddad at gmail.com> >> *Cc:* mapserver-users at lists.osgeo.org >> >> *Subject:* Re: [mapserver-users] WFS - featureid/resourceid >> >> >> >> Here is what we have in the map file layer, what have we missed? >> >> >> >> METADATA >> >> "wfs_srs" "EPSG:4326" >> >> "wfs_title" "DATA_POI" >> >> "gml_featureid" "id" >> >> "gml_include_items" "all" >> >> "wfs_enable_request" "*" >> >> "wfs_encoding" "UTF-8" >> >> "wfs_abstract" "Points" >> >> "wfs_getfeature_formatlist" "geojson" >> >> END >> >> Thanks >> >> >> >> Ian >> >> >> >> *From:* TC Haddad [mailto:tchaddad at gmail.com ] >> *Sent:* Saturday, May 7, 2016 12:12 PM >> *To:* Ian Walberg < ian.walberg at airborne.aero> >> *Cc:* Rahkonen Jukka (MML) < >> jukka.rahkonen at maanmittauslaitos.fi>; mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] WFS - featureid/resourceid >> >> >> >> >> >> Ian >> >> you may have to enable the GetFeatureById option in your mapfile as at >> the moment it looks like you have it turned off. >> >> Put something like this in the LAYER block to enable all WFS requests: >> >> "wfs_enable_request" "*" >> >> From there you can begin to test with: >> >> >> http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById >> >> And the server will tell you what other parameters you need to add to the >> URL in order to successfully return a record. >> >> >> >> On Sat, May 7, 2016 at 11:44 AM, Ian Walberg < >> ian.walberg at airborne.aero> wrote: >> >> Jukka, >> >> >> >> We could not get that to work, what is the syntax for our setup? >> >> >> >> Thanks >> >> >> >> Ian >> >> >> >> *From:* Rahkonen Jukka (MML) [mailto: >> jukka.rahkonen at maanmittauslaitos.fi] >> >> *Sent:* Saturday, May 7, 2016 10:54 AM >> *To:* Ian Walberg < ian.walberg at airborne.aero>; >> mapserver-users at lists.osgeo.org >> *Subject:* VS: [mapserver-users] WFS - featureid/resourceid >> >> >> >> I would try the GetFeatureById stored query >> http://mapserver.org/ogc/wfs_server.html >> >> Jukka Rahkonen >> ------------------------------ >> >> *L?hett?j?: *Ian Walberg >> *L?hetetty: *?7.?5.?2016 20:47 >> *Vastaanottaja: * >> mapserver-users at lists.osgeo.org >> *Aihe: *[mapserver-users] WFS - featureid/resourceid >> >> Folks, >> >> How do we select just a single feature using FEATUREID or RESOUCEID. >> >> >> http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST >> >> Thanks >> >> Ian >> _______________________________________________ >> 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 listmapserver-users at lists.osgeo.orghttp://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 jukka.rahkonen at maanmittauslaitos.fi Sat May 7 14:33:47 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Sat, 7 May 2016 21:33:47 +0000 Subject: [mapserver-users] WFS - featureid/resourceid Message-ID: <194b18d5bcc449168f4452ef92eb3a89@C119S212VM022.msvyvi.vaha.local> Reposting because the first trial was denied as longer than 40 kB. This query works for me. I had to leave out typename but it appears in ID and is not needed in GetFeatureByID stored query. http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=states.1 Mapfile follows. It has been used for other tests before and contains some odd remains, I apologize. MAP SIZE 800 800 EXTENT -90 -180 90 180 UNITS DD IMAGECOLOR 20 250 250 SHAPEPATH "c:\ms4w\tmp" IMAGETYPE "png" OUTPUTFORMAT NAME "SPATIALITEZIP" DRIVER "OGR/SQLite" MIMETYPE "application/spatialite" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=result.db" FORMATOPTION "DSCO:SPATIALITE=YES" END OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:WRITE_BBOX=YES" END WEB METADATA "ows_enable_request" "*" "wms_bbox_extended" "true" "wfs_return_srs_as_urn" "true" "ows_srs" "CRS:84 EPSG:4326 EPSG:32634 EPSG:3857 EPSG:2923" "wms_title" "MS 6.1.1 WMS from Spatialite" "wfs_title" "MS 6.1.1 WFS from Spatialite" "wfs_abstract" "????" "wfs_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map" END END DEBUG 10 CONFIG "PROJ_LIB" "C:/ms4w/proj/nad" CONFIG "CPL_DEBUG" "ON" CONFIG "SQLITE_LIST_ALL_TABLES" "TRUE" CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/debug.txt" PROJECTION "init=epsg:4326" END LAYER NAME "states" STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "\ms4w\apps\wms-wfs.sqlite" DATA "select * from states" PROCESSING "CLOSE_CONNECTION=DEFER" TYPE POLYGON STATUS ON PROJECTION "init=epsg:4326" END OPACITY 50 METADATA "ows_title" "states" ##REQUIRED "wfs_srs" "EPSG:4326" ## REQUIRED "wfs_abstract" "test ? &" "gml_include_items" "all" ## Optional (serves all attributes for layer) #"gml_exclude_items" "STATE_NAME" "gml_featureid" "PK_UID" ## REQUIRED "gml_types" "auto" "wfs_getfeature_formatlist" "geojson,SPATIALITEZIP" "wfs_additional_files_in_output" "c:/ms4w/apps/README_APPS.txt" END CLASS STYLE COLOR 100 200 100 OUTLINECOLOR 0 0 0 END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE bitmap SIZE small POSITION UL #TEXT "[STATE_FIPS]" PARTIALS FALSE END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE bitmap SIZE small POSITION LL TEXT "[STATE_NAME]" EXPRESSION (length('[STATE_NAME]') < 7) PARTIALS FALSE END END END END -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From techyguy1977 at gmail.com Mon May 9 05:41:16 2016 From: techyguy1977 at gmail.com (techy guy) Date: Mon, 9 May 2016 18:11:16 +0530 Subject: [mapserver-users] MapServer7.0 Oracle Query Expression Message-ID: Hi, I understand from Map Server 7.0, its recommended to use Map Server Native Expression for Filter & for querying features (i.e using queryByAttributes(). But in case if you want to stick to the old way of using database specific native expressions, there is a hook left to add a processing key like PROCESSING 'NATIVE_FILTER=id=234' This processing works best when this used as a filter within a map. 1) What about expressions used for invoking queryByAttributes()? . I have checked that queryByAttributes() takes only map server native expressions whereas filter & processing key information's are ignored. 2) If we stick to native query expressions for invoking queryByAttributes(), what is the syntax of map server native expressions in case of NULL, NOT NULL, LIKE operators for Oracle. Thanks & Regards, TechyGuy -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 10 03:08:07 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 10 May 2016 10:08:07 +0000 Subject: [mapserver-users] Geojson output from WFS is missing ID Message-ID: Hi, WFS output from Mapserver 7.0 in GML contain gml:id However, with GeoJSON as outputformat the id is missing: { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", GeoJSON specification says in http://geojson.org/geojson-spec.html#feature-objects: "If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id"." GeoJSON from Geoserver WFS does contain the id: {"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Feature","id":"states.1","geometry":{"type":"MultiPolygon" Should this be classified as a bug or a candidate for a featere request? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 10 03:12:16 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 10 May 2016 10:12:16 +0000 Subject: [mapserver-users] WFS 2.0 GetFeatureByID yields wrong gml:id Message-ID: Hi, If I make a GetFeatureByID query with ID=states.1, the result has a different gml:id Request: http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=states.1 Result: Notice that I asked for states.1 and the correct feature is found but the gml:id is changed into states.1.1 -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue May 10 03:15:11 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 10 May 2016 12:15:11 +0200 Subject: [mapserver-users] Geojson output from WFS is missing ID In-Reply-To: References: Message-ID: should be fixed in 7.0.1. If not you can open an issue. https://github.com/mapserver/mapserver/pull/5207 -- thomas On 10 May 2016 at 12:08, Rahkonen Jukka (MML) < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi, > > > > WFS output from Mapserver 7.0 in GML contain gml:id > > srsName="urn:ogc:def:crs:EPSG::4326"> > > > > However, with GeoJSON as outputformat the id is missing: > > { > > "type": "FeatureCollection", > > "crs": { "type": "name", "properties": { "name": > "urn:ogc:def:crs:OGC:1.3:CRS84" } }, > > "features": [ > > { "type": "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", > > > > > > GeoJSON specification says in > http://geojson.org/geojson-spec.html#feature-objects: > > ?If a feature has a commonly used identifier, that identifier should be > included as a member of the feature object with the name "id".? > > > > GeoJSON from Geoserver WFS does contain the id: > > {"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Feature","id":"states.1","geometry":{"type":"MultiPolygon" > > > > Should this be classified as a bug or a candidate for a featere request? > > > > -Jukka Rahkonen- > > _______________________________________________ > 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 even.rouault at spatialys.com Tue May 10 03:19:06 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 10 May 2016 12:19:06 +0200 Subject: [mapserver-users] Geojson output from WFS is missing ID In-Reply-To: References: Message-ID: <201605101219.07113.even.rouault@spatialys.com> Le mardi 10 mai 2016 12:08:07, Rahkonen Jukka (MML) a ?crit : > Hi, > > WFS output from Mapserver 7.0 in GML contain gml:id > srsName="urn:ogc:def:crs:EPSG::4326"> It looks like you must use WFS 2.0 and/or GML 3.2 output. In that case the GML 3.2 schemas require each geometry to have a gml:id. So this is a geometry id, not a feature id ( in case of geometry collections, you'll have one id for the collection and as many ids as members) To address that technical requirement, MapServer generates it in a sequential way for the output of each request. Not completely sure it matches the uniqueness intended but at least it validates schemas. So this particular one is not a good candidate to be exported to other formats, but I see Thomas has just replied for the feature id. > > However, with GeoJSON as outputformat the id is missing: > { > "type": "FeatureCollection", > "crs": { "type": "name", "properties": { "name": > "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ > { "type": "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", > > > GeoJSON specification says in > http://geojson.org/geojson-spec.html#feature-objects: "If a feature has a > commonly used identifier, that identifier should be included as a member > of the feature object with the name "id"." > > GeoJSON from Geoserver WFS does contain the id: > > {"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Feature > ","id":"states.1","geometry":{"type":"MultiPolygon" > > Should this be classified as a bug or a candidate for a featere request? > > -Jukka Rahkonen- -- Spatialys - Geospatial professional services http://www.spatialys.com From thomas.bonfort at gmail.com Tue May 10 03:21:46 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 10 May 2016 12:21:46 +0200 Subject: [mapserver-users] Geojson output from WFS is missing ID In-Reply-To: References: Message-ID: My bad, the fix isn't in 7.0.1 but will be in 7.0.2 On 10 May 2016 at 12:15, thomas bonfort wrote: > should be fixed in 7.0.1. If not you can open an issue. > > https://github.com/mapserver/mapserver/pull/5207 > > -- > thomas > > On 10 May 2016 at 12:08, Rahkonen Jukka (MML) < > jukka.rahkonen at maanmittauslaitos.fi> wrote: > >> Hi, >> >> >> >> WFS output from Mapserver 7.0 in GML contain gml:id >> >> > srsName="urn:ogc:def:crs:EPSG::4326"> >> >> >> >> However, with GeoJSON as outputformat the id is missing: >> >> { >> >> "type": "FeatureCollection", >> >> "crs": { "type": "name", "properties": { "name": >> "urn:ogc:def:crs:OGC:1.3:CRS84" } }, >> >> "features": [ >> >> { "type": "Feature", "properties": { "PK_UID": 1, "STATE_NAME": >> "Illinois", >> >> >> >> >> >> GeoJSON specification says in >> http://geojson.org/geojson-spec.html#feature-objects: >> >> ?If a feature has a commonly used identifier, that identifier should be >> included as a member of the feature object with the name "id".? >> >> >> >> GeoJSON from Geoserver WFS does contain the id: >> >> {"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Feature","id":"states.1","geometry":{"type":"MultiPolygon" >> >> >> >> Should this be classified as a bug or a candidate for a featere request? >> >> >> >> -Jukka Rahkonen- >> >> _______________________________________________ >> 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 jukka.rahkonen at maanmittauslaitos.fi Tue May 10 03:32:17 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 10 May 2016 10:32:17 +0000 Subject: [mapserver-users] Geojson output from WFS is missing ID In-Reply-To: <201605101219.07113.even.rouault@spatialys.com> References: <201605101219.07113.even.rouault@spatialys.com> Message-ID: Hi, Do you mean that the output from GeoServer WFS 2.0 is not valid because it does not seem to have gml:id for the collection, nor for the geometries, but it does have gml:id for the members? -Jukka Rahkonen- Even Rouault wrote: > Le mardi 10 mai 2016 12:08:07, Rahkonen Jukka (MML) a ?crit : >> Hi, >> >> WFS output from Mapserver 7.0 in GML contain gml:id >> > srsName="urn:ogc:def:crs:EPSG::4326"> > It looks like you must use WFS 2.0 and/or GML 3.2 output. In that case the GML 3.2 schemas require each geometry to have a gml:id. So this is a geometry id, not a feature id ( in case of geometry collections, you'll have one id for the collection and as many ids as members) To address that technical requirement, MapServer generates it in a sequential way for the output of each request. Not completely sure it matches the uniqueness intended but at least it validates schemas. So this particular one is not a good candidate to be exported to other formats, but I see Thomas has just replied for the feature id. >> >> However, with GeoJSON as outputformat the id is missing: >> { >> "type": "FeatureCollection", >> "crs": { "type": "name", "properties": { "name": >> "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": >> "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", >> >> >> GeoJSON specification says in >> http://geojson.org/geojson-spec.html#feature-objects: "If a feature >> has a commonly used identifier, that identifier should be included as >> a member of the feature object with the name "id"." >> >> GeoJSON from Geoserver WFS does contain the id: > >> {"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Fe >> ature ","id":"states.1","geometry":{"type":"MultiPolygon" >> >> Should this be classified as a bug or a candidate for a featere request? >> >> -Jukka Rahkonen- -- Spatialys - Geospatial professional services http://www.spatialys.com From even.rouault at spatialys.com Tue May 10 03:44:00 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 10 May 2016 12:44:00 +0200 Subject: [mapserver-users] Geojson output from WFS is missing ID In-Reply-To: References: <201605101219.07113.even.rouault@spatialys.com> Message-ID: <201605101244.00363.even.rouault@spatialys.com> Le mardi 10 mai 2016 12:32:17, Rahkonen Jukka (MML) a ?crit : > Hi, > > Do you mean that the output from GeoServer WFS 2.0 is not valid because it > does not seem to have gml:id for the collection, nor for the geometries, > but it does have gml:id for the members? > > timeStamp="2016-05-10T10:23:29.813Z" > xsi:schemaLocation="http://www.opengis.net/wfs/2.0 > http://localhost:8080/geoserver/schemas/wfs/2.0/wfs.xsd > http://www.openplans.org/topp > http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=Desc > ribeFeatureType&typeName=topp%3Astates http://www.opengis.net/gml/3.2 > http://localhost:8080/geoserver/schemas/gml/3.2.1/gml.xsd"> pp:states gml:id="states.1"> srsName="urn:ogc:def:crs:EPSG::4326" > srsDimension="2"> Ring> Yes, this will not validate the gml 3.2.1 schema. See for example http://www.datypic.com/sc/niem21/e-gml32_MultiSurface.html gml:id being compulsory on geometries is one of the main difference between gml 3.2 and 3.1 > > -Jukka Rahkonen- > > Even Rouault wrote: > > Le mardi 10 mai 2016 12:08:07, Rahkonen Jukka (MML) a ?crit : > >> Hi, > >> > >> WFS output from Mapserver 7.0 in GML contain gml:id > >> >> srsName="urn:ogc:def:crs:EPSG::4326"> > > > > It looks like you must use WFS 2.0 and/or GML 3.2 output. In that case > > the GML > > 3.2 schemas require each geometry to have a gml:id. So this is a geometry > id, not a feature id ( in case of geometry collections, you'll have one id > for the collection and as many ids as members) To address that technical > requirement, MapServer generates it in a sequential way for the output of > each request. Not completely sure it matches the uniqueness intended but > at least it validates schemas. So this particular one is not a good > candidate to be exported to other formats, but I see Thomas has just > replied for the feature id. > > >> However, with GeoJSON as outputformat the id is missing: > >> { > >> "type": "FeatureCollection", > >> "crs": { "type": "name", "properties": { "name": > >> "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": > >> "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", > >> > >> > >> GeoJSON specification says in > >> http://geojson.org/geojson-spec.html#feature-objects: "If a feature > >> has a commonly used identifier, that identifier should be included as > >> a member of the feature object with the name "id"." > >> > >> GeoJSON from Geoserver WFS does contain the id: > >> > >> {"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Fe > >> ature ","id":"states.1","geometry":{"type":"MultiPolygon" > >> > >> Should this be classified as a bug or a candidate for a featere request? > >> > >> -Jukka Rahkonen- > > -- > Spatialys - Geospatial professional services http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com From jukka.rahkonen at maanmittauslaitos.fi Tue May 10 04:08:07 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 10 May 2016 11:08:07 +0000 Subject: [mapserver-users] Geojson output from WFS is missing ID Message-ID: Hi, Geoserver breaking GML 3.2.1 schema is even documented in http://docs.geoserver.org/2.8.3/user/data/app-schema/supported-gml-versions.html, section GML 3.2.1 geometries require gml:id, including an application schema example about how to make it GML 3.2.1 compliant. So Mapserver WFS 2.0 does not return a FeatureCollection with members with GetFeatureByID but only a feature. The gml:id "states.1" is in the very beginning of the GML and it is the gml:id of the feature. In the geometry there is gml:id "states.1.1" and it means roughly "first geometry of the feature states.1". However, with GeoJSON as an outputformat the geometry is wrapped into a FeatureCollection probably because GeoJSON required it to be so. But would it be wrong to wrap also the GML 3.2.1 output of GetFeatureByID into a FeatureCollection? -Jukka- -----Alkuper?inen viesti----- Even Rouault wrote: Le mardi 10 mai 2016 12:32:17, Rahkonen Jukka (MML) a ?crit : > Hi, > > Do you mean that the output from GeoServer WFS 2.0 is not valid > because it does not seem to have gml:id for the collection, nor for > the geometries, but it does have gml:id for the members? > > timeStamp="2016-05-10T10:23:29.813Z" > xsi:schemaLocation="http://www.opengis.net/wfs/2.0 > http://localhost:8080/geoserver/schemas/wfs/2.0/wfs.xsd > http://www.openplans.org/topp > http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request= > Desc ribeFeatureType&typeName=topp%3Astates > http://www.opengis.net/gml/3.2 > http://localhost:8080/geoserver/schemas/gml/3.2.1/gml.xsd"> > srsName="urn:ogc:def:crs:EPSG::4326" > srsDimension="2"> near > Ring> Yes, this will not validate the gml 3.2.1 schema. See for example http://www.datypic.com/sc/niem21/e-gml32_MultiSurface.html gml:id being compulsory on geometries is one of the main difference between gml 3.2 and 3.1 > > -Jukka Rahkonen- > > Even Rouault wrote: > > Le mardi 10 mai 2016 12:08:07, Rahkonen Jukka (MML) a ?crit : > >> Hi, > >> > >> WFS output from Mapserver 7.0 in GML contain gml:id > >> >> srsName="urn:ogc:def:crs:EPSG::4326"> > > > > It looks like you must use WFS 2.0 and/or GML 3.2 output. In that > > case the GML > > 3.2 schemas require each geometry to have a gml:id. So this is a > geometry id, not a feature id ( in case of geometry collections, > you'll have one id for the collection and as many ids as members) To > address that technical requirement, MapServer generates it in a > sequential way for the output of each request. Not completely sure it > matches the uniqueness intended but at least it validates schemas. So > this particular one is not a good candidate to be exported to other > formats, but I see Thomas has just replied for the feature id. > > >> However, with GeoJSON as outputformat the id is missing: > >> { > >> "type": "FeatureCollection", > >> "crs": { "type": "name", "properties": { "name": > >> "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": > >> "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", > >> > >> > >> GeoJSON specification says in > >> http://geojson.org/geojson-spec.html#feature-objects: "If a feature > >> has a commonly used identifier, that identifier should be included > >> as a member of the feature object with the name "id"." > >> > >> GeoJSON from Geoserver WFS does contain the id: > >> > >> {"type":"FeatureCollection","totalFeatures":49,"features":[{"type": > >> "Fe ature ","id":"states.1","geometry":{"type":"MultiPolygon" > >> > >> Should this be classified as a bug or a candidate for a featere request? > >> > >> -Jukka Rahkonen- > > -- > Spatialys - Geospatial professional services http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com From jukka.rahkonen at maanmittauslaitos.fi Tue May 10 04:14:59 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 10 May 2016 11:14:59 +0000 Subject: [mapserver-users] Geojson output from WFS is missing ID Message-ID: <9c3cf3c6005741ebbf9b2558d4f01347@C119S212VM022.msvyvi.vaha.local> About the format of GetFeatureByID, I can actually read the standard myself. "11.3.5 GetFeatureById response Executing a GetFeature operation containing the GetFeatureById stored query (see 7.9.3.6) shall generate a response composed of a single feature encoded according to the values of the outputFormat parameter (see 7.6.3.7). The response shall only contain the feature XML without any of the normal containing elements generated as a result of executing a GetFeature operation (see 11.3.3.4, 11.3.3.5, 11.3.3.6)." So it must be a feature and wrapping it into FeatureCollection is not accepted. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Rahkonen Jukka (MML) L?hetetty: 10. toukokuuta 2016 14:08 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: VS: [mapserver-users] Geojson output from WFS is missing ID Hi, Geoserver breaking GML 3.2.1 schema is even documented in http://docs.geoserver.org/2.8.3/user/data/app-schema/supported-gml-versions.html, section GML 3.2.1 geometries require gml:id, including an application schema example about how to make it GML 3.2.1 compliant. So Mapserver WFS 2.0 does not return a FeatureCollection with members with GetFeatureByID but only a feature. The gml:id "states.1" is in the very beginning of the GML and it is the gml:id of the feature. In the geometry there is gml:id "states.1.1" and it means roughly "first geometry of the feature states.1". However, with GeoJSON as an outputformat the geometry is wrapped into a FeatureCollection probably because GeoJSON required it to be so. But would it be wrong to wrap also the GML 3.2.1 output of GetFeatureByID into a FeatureCollection? -Jukka- -----Alkuper?inen viesti----- Even Rouault wrote: Le mardi 10 mai 2016 12:32:17, Rahkonen Jukka (MML) a ?crit : > Hi, > > Do you mean that the output from GeoServer WFS 2.0 is not valid > because it does not seem to have gml:id for the collection, nor for > the geometries, but it does have gml:id for the members? > > timeStamp="2016-05-10T10:23:29.813Z" > xsi:schemaLocation="http://www.opengis.net/wfs/2.0 > http://localhost:8080/geoserver/schemas/wfs/2.0/wfs.xsd > http://www.openplans.org/topp > http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request= > Desc ribeFeatureType&typeName=topp%3Astates > http://www.opengis.net/gml/3.2 > http://localhost:8080/geoserver/schemas/gml/3.2.1/gml.xsd"> > srsName="urn:ogc:def:crs:EPSG::4326" > srsDimension="2"> near > Ring> Yes, this will not validate the gml 3.2.1 schema. See for example http://www.datypic.com/sc/niem21/e-gml32_MultiSurface.html gml:id being compulsory on geometries is one of the main difference between gml 3.2 and 3.1 > > -Jukka Rahkonen- > > Even Rouault wrote: > > Le mardi 10 mai 2016 12:08:07, Rahkonen Jukka (MML) a ?crit : > >> Hi, > >> > >> WFS output from Mapserver 7.0 in GML contain gml:id > >> >> srsName="urn:ogc:def:crs:EPSG::4326"> > > > > It looks like you must use WFS 2.0 and/or GML 3.2 output. In that > > case the GML > > 3.2 schemas require each geometry to have a gml:id. So this is a > geometry id, not a feature id ( in case of geometry collections, > you'll have one id for the collection and as many ids as members) To > address that technical requirement, MapServer generates it in a > sequential way for the output of each request. Not completely sure it > matches the uniqueness intended but at least it validates schemas. So > this particular one is not a good candidate to be exported to other > formats, but I see Thomas has just replied for the feature id. > > >> However, with GeoJSON as outputformat the id is missing: > >> { > >> "type": "FeatureCollection", > >> "crs": { "type": "name", "properties": { "name": > >> "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": > >> "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", > >> > >> > >> GeoJSON specification says in > >> http://geojson.org/geojson-spec.html#feature-objects: "If a feature > >> has a commonly used identifier, that identifier should be included > >> as a member of the feature object with the name "id"." > >> > >> GeoJSON from Geoserver WFS does contain the id: > >> > >> {"type":"FeatureCollection","totalFeatures":49,"features":[{"type": > >> "Fe ature ","id":"states.1","geometry":{"type":"MultiPolygon" > >> > >> Should this be classified as a bug or a candidate for a featere request? > >> > >> -Jukka Rahkonen- > > -- > Spatialys - Geospatial professional services http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com From even.rouault at spatialys.com Tue May 10 04:20:14 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 10 May 2016 13:20:14 +0200 Subject: [mapserver-users] Geojson output from WFS is missing ID In-Reply-To: References: Message-ID: <201605101320.14751.even.rouault@spatialys.com> Le mardi 10 mai 2016 13:08:07, Rahkonen Jukka (MML) a ?crit : > Hi, > > Geoserver breaking GML 3.2.1 schema is even documented in > http://docs.geoserver.org/2.8.3/user/data/app-schema/supported-gml-version > s.html, section GML 3.2.1 geometries require gml:id, including an > application schema example about how to make it GML 3.2.1 compliant. > > So Mapserver WFS 2.0 does not return a FeatureCollection with members with > GetFeatureByID but only a feature. The gml:id "states.1" is in the very > beginning of the GML and it is the gml:id of the feature. In the geometry > there is gml:id "states.1.1" and it means roughly "first geometry of the > feature states.1". However, with GeoJSON as an outputformat the geometry > is wrapped into a FeatureCollection probably because GeoJSON required it > to be so. But would it be wrong to wrap also the GML 3.2.1 output of > GetFeatureByID into a FeatureCollection? GML output and OGR output in MapServer take very different roads. For GML, MapServer is right to return the result of GetFeatureById as a single feature since this is mandated by the WFS 2.0 spec (an horrible exception that was painful to implement AFAIR since normally GetFeaturebyId should be just a normal GetFeature once the stored query is resolved) : """ 11.3.5 GetFeatureById response Executing a GetFeature operation containing the GetFeatureById stored query (see 7.9.3.6) shall generate a response composed of a single feature encoded according to the values of the outputFormat parameter (see 7.6.3.7). The response shall only contain the feature XML without any of the normal containing elements generated as a result of executing a GetFeature operation (see 11.3.3.4, 11.3.3.5, 11.3.3.6). """ For other output formats, I'm not sure what the WFS spec mandates, but anyway the OGR GeoJSON driver only exports features in a GeoJSON FeatureCollection. > > -Jukka- > > -----Alkuper?inen viesti----- > Even Rouault wrote: > > Le mardi 10 mai 2016 12:32:17, Rahkonen Jukka (MML) a ?crit : > > Hi, > > > > Do you mean that the output from GeoServer WFS 2.0 is not valid > > because it does not seem to have gml:id for the collection, nor for > > the geometries, but it does have gml:id for the members? > > > > > timeStamp="2016-05-10T10:23:29.813Z" > > xsi:schemaLocation="http://www.opengis.net/wfs/2.0 > > http://localhost:8080/geoserver/schemas/wfs/2.0/wfs.xsd > > http://www.openplans.org/topp > > http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request= > > Desc ribeFeatureType&typeName=topp%3Astates > > http://www.opengis.net/gml/3.2 > > http://localhost:8080/geoserver/schemas/gml/3.2.1/gml.xsd"> > > > > > > > srsName="urn:ogc:def:crs:EPSG::4326" > > srsDimension="2"> > near > > Ring> > > Yes, this will not validate the gml 3.2.1 schema. See for example > http://www.datypic.com/sc/niem21/e-gml32_MultiSurface.html gml:id being > compulsory on geometries is one of the main difference between gml 3.2 and > 3.1 > > > -Jukka Rahkonen- > > > > Even Rouault wrote: > > > Le mardi 10 mai 2016 12:08:07, Rahkonen Jukka (MML) a ?crit : > > >> Hi, > > >> > > >> WFS output from Mapserver 7.0 in GML contain gml:id > > >> > >> srsName="urn:ogc:def:crs:EPSG::4326"> > > > > > > It looks like you must use WFS 2.0 and/or GML 3.2 output. In that > > > case the GML > > > > 3.2 schemas require each geometry to have a gml:id. So this is a > > geometry id, not a feature id ( in case of geometry collections, > > you'll have one id for the collection and as many ids as members) To > > address that technical requirement, MapServer generates it in a > > sequential way for the output of each request. Not completely sure it > > matches the uniqueness intended but at least it validates schemas. So > > this particular one is not a good candidate to be exported to other > > formats, but I see Thomas has just replied for the feature id. > > > > >> However, with GeoJSON as outputformat the id is missing: > > >> { > > >> "type": "FeatureCollection", > > >> "crs": { "type": "name", "properties": { "name": > > >> "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": > > >> "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois", > > >> > > >> > > >> GeoJSON specification says in > > >> http://geojson.org/geojson-spec.html#feature-objects: "If a feature > > >> has a commonly used identifier, that identifier should be included > > >> as a member of the feature object with the name "id"." > > >> > > >> GeoJSON from Geoserver WFS does contain the id: > > >> > > >> {"type":"FeatureCollection","totalFeatures":49,"features":[{"type": > > >> "Fe ature ","id":"states.1","geometry":{"type":"MultiPolygon" > > >> > > >> Should this be classified as a bug or a candidate for a featere > > >> request? > > >> > > >> -Jukka Rahkonen- > > > > -- > > Spatialys - Geospatial professional services http://www.spatialys.com > > -- > Spatialys - Geospatial professional services http://www.spatialys.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Spatialys - Geospatial professional services http://www.spatialys.com From hosain.moh00 at gmail.com Tue May 10 10:20:18 2016 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Tue, 10 May 2016 21:50:18 +0430 Subject: [mapserver-users] openlayers 3 Message-ID: Hello every one i would like to use openlayers 3 in mapserver anyone have idea about this thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Tue May 10 14:54:28 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 10 May 2016 21:54:28 +0000 Subject: [mapserver-users] Mapserver - connection to MSSQL Message-ID: <36ca55f9ea0c4cca846fb03c09f5defe@OPASAKLPMBX01.nz01a.opaas.net.nz> Hi I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a MSSQL table with native geometry. I have tested the connection via ogrinfo (based on gdal v 2.0.2) and it works: ogrinfo -sql "select * from par_table where par_no = 6777887" "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" This is my layer section: LAYER NAME par_direct GROUP "CRS" STATUS ON CONNECTIONTYPE ogr CONNECTION "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" FILTER "WHERE date_dropped is null" TYPE POLYGON PROCESSING 'CLOSE_CONNECTION=DEFER' MAXSCALE 275000 CLASS STYLE WIDTH 0.25 OUTLINECOLOR 0 0 255 END END METADATA "ows_title" "par_direct" "wms_group_title" "CRS" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_abstract" "This is the LINZ parcel layer in NZTM" "wms_keywordlist" "LINZ,CRS" "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" "gml_include_items" "all" "gml_exclude_items" "" "ows_include_items" "all" "ows_exclude_items" "" END END When I try a WMS getmap call I get this error message: msDrawMap(): Image handling error. Failed to draw layer named 'par_direct'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `par_direct'. 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion Any clues? Many thanks, Robert L. Sanson -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Tue May 10 22:11:26 2016 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 11 May 2016 05:11:26 +0000 Subject: [mapserver-users] Upper Midwest Geospatial Conference (UMGEOCON 2016) Message-ID: Upper Midwest Geospatial Conference (UMGEOCON 2016) This is a first of its kind geospatial event, right here in the Upper Midwest. Several GIS organizations from across the region have come together to plan a GIS conference that spans borders and encourages collective learning. UMGEOCON will start off with some great workshops including one devoted to GeoMOOSE. During the conference proper there is an open source track on each day where there will more GeoMOOSE, Georilla, and other FOSS4G, as well as speakers like Howard Butler who will be pulling open source LiDAR rabbits out of a hat. The workshop program is here: http://bit.ly/21UYnSV. Full UMGEOCON program is here: http://bit.ly/1WnhJQB We would love to see you stay for UMGEOCON if you come for a workshop. At UMGEOCON 2016 you can expect engaging presentations on current trends in GIS, an opportunity to expand your professional network, and to learn how other states, agencies and organizations benefit from the use of GIS. When: May 25-26, 2016 Where: LaCrosse, Wi. USA Site: umgeocon.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Wed May 11 00:14:49 2016 From: geographika at gmail.com (Seth G) Date: Wed, 11 May 2016 09:14:49 +0200 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: <36ca55f9ea0c4cca846fb03c09f5defe@OPASAKLPMBX01.nz01a.opaas.net.nz> References: <36ca55f9ea0c4cca846fb03c09f5defe@OPASAKLPMBX01.nz01a.opaas.net.nz> Message-ID: <52c49b66-6205-1c3b-df40-802a000ac478@gmail.com> Hi, The error message indicates there is a problem with your connection string: 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion If the database part is not missing, maybe there is a missing semi-colon, or special character ending the database connection string? Regards, Seth On 10/05/2016 23:54, Robert Sanson wrote: > > Hi > > I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a > MSSQL table with native geometry. > > I have tested the connection via ogrinfo (based on gdal v 2.0.2) and > it works: > > ogrinfo -sql "select * from par_table where par_no = 6777887" > "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" > > This is my layer section: > > LAYER > > NAME par_direct > > GROUP "CRS" > > STATUS ON > > CONNECTIONTYPE ogr > > CONNECTION > "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" > > FILTER "WHERE date_dropped is null" > > TYPE POLYGON > > PROCESSING 'CLOSE_CONNECTION=DEFER' > > MAXSCALE 275000 > > CLASS > > STYLE > > WIDTH 0.25 > > OUTLINECOLOR 0 0 255 > > END > > END > > METADATA > > "ows_title" "par_direct" > > "wms_group_title" "CRS" > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > "wms_abstract" "This is the LINZ parcel layer in NZTM" > > "wms_keywordlist" "LINZ,CRS" > > "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" > > "gml_include_items" "all" > > "gml_exclude_items" "" > > "ows_include_items" "all" > > "ows_exclude_items" "" > > END > > END > > When I try a WMS getmap call I get this error message: > > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'par_direct'. > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `par_direct'. > > 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' > does not contain the 'database' portion > > > > > > Any clues? > > Many thanks, > > Robert L. Sanson > > > > _______________________________________________ > 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 jukka.rahkonen at maanmittauslaitos.fi Wed May 11 00:28:16 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 11 May 2016 07:28:16 +0000 Subject: [mapserver-users] Mapserver - connection to MSSQL Message-ID: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> Hi, The connection string in the mapfile does look perfect but something that happens for me is that if I copy and paste text the copy may contain invisible characters which make troubles. I would rewrite the CONNECTION again by hand from keyboard and try if it helps. -Jukka Rahkonen- Seth G wrote: Hi, The error message indicates there is a problem with your connection string: 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion If the database part is not missing, maybe there is a missing semi-colon, or special character ending the database connection string? Regards, Seth On 10/05/2016 23:54, Robert Sanson wrote: Hi I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a MSSQL table with native geometry. I have tested the connection via ogrinfo (based on gdal v 2.0.2) and it works: ogrinfo -sql "select * from par_table where par_no = 6777887" "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" This is my layer section: LAYER NAME par_direct GROUP "CRS" STATUS ON CONNECTIONTYPE ogr CONNECTION "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" FILTER "WHERE date_dropped is null" TYPE POLYGON PROCESSING 'CLOSE_CONNECTION=DEFER' MAXSCALE 275000 CLASS STYLE WIDTH 0.25 OUTLINECOLOR 0 0 255 END END METADATA "ows_title" "par_direct" "wms_group_title" "CRS" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_abstract" "This is the LINZ parcel layer in NZTM" "wms_keywordlist" "LINZ,CRS" "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" "gml_include_items" "all" "gml_exclude_items" "" "ows_include_items" "all" "ows_exclude_items" "" END END When I try a WMS getmap call I get this error message: > msDrawMap(): Image handling error. Failed to draw layer named 'par_direct'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `par_direct'. 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion Any clues? Many thanks, Robert L. Sanson _______________________________________________ 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 ashuandindia at hotmail.com Thu May 12 06:25:56 2016 From: ashuandindia at hotmail.com (Ashutosh Sharma) Date: Thu, 12 May 2016 18:55:56 +0530 Subject: [mapserver-users] Get styled .map file using sld? Message-ID: Hi All, I want to know that is there any mechanism by which I can embed SLD based styling in a .map file. I believe some mechanism must be there because when I pass SLD file path in WMS request, then in logs I got a message "Map file after SLD was applied /tmp/57347d6a_9e9_b1._sld.map[Thu May 12 18:26:10 2016].813240 msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG)" This "/tmp/57347d6a_9e9_b1._sld.map" map file has styles generated using the passed sld file. I have tested this file and this is exactly what I wanted. Is there any way (some api call or converter) to generated a styled .map file using sld without using the above hack ? Ashutosh Sharma -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Thu May 12 13:44:41 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Thu, 12 May 2016 20:44:41 +0000 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: References: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local>, Message-ID: <1463085802101.59670@asurequality.com> Hi I manually retyped the connection string into my Mapfile and still get the same error. The exact same connection string works fine in ogrinfo, the only error message is something about OGC Metadata table missing, however, it proceeds to give me the correct information. Thanks, Robert From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Wednesday, 11 May 2016 7:28 p.m. To: geographika at gmail.com; Robert Sanson ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver - connection to MSSQL Hi, The connection string in the mapfile does look perfect but something that happens for me is that if I copy and paste text the copy may contain invisible characters which make troubles. I would rewrite the CONNECTION again by hand from keyboard and try if it helps. -Jukka Rahkonen- Seth G wrote: Hi, The error message indicates there is a problem with your connection string: 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion If the database part is not missing, maybe there is a missing semi-colon, or special character ending the database connection string? Regards, Seth On 10/05/2016 23:54, Robert Sanson wrote: Hi I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a MSSQL table with native geometry. I have tested the connection via ogrinfo (based on gdal v 2.0.2) and it works: ogrinfo -sql "select * from par_table where par_no = 6777887" "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" This is my layer section: LAYER NAME par_direct GROUP "CRS" STATUS ON CONNECTIONTYPE ogr CONNECTION "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" FILTER "WHERE date_dropped is null" TYPE POLYGON PROCESSING 'CLOSE_CONNECTION=DEFER' MAXSCALE 275000 CLASS STYLE WIDTH 0.25 OUTLINECOLOR 0 0 255 END END METADATA "ows_title" "par_direct" "wms_group_title" "CRS" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_abstract" "This is the LINZ parcel layer in NZTM" "wms_keywordlist" "LINZ,CRS" "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" END END When I try a WMS getmap call I get this error message: > msDrawMap(): Image handling error. Failed to draw layer named 'par_direct'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `par_direct'. 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion Many thanks, Robert L. Sanson -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu May 12 14:26:15 2016 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 12 May 2016 21:26:15 +0000 Subject: [mapserver-users] Ballon labels. Message-ID: <70B8B8F1-6E9B-461A-B650-56359420D893@ci.stpaul.mn.us> All, Anyone know of a trick for labeling in MapServer with balloon chains. Something like the chain of balloons in the lower right corner of this image: http://help.autodesk.com/cloudhelp/2016/ENU/AutoCAD-Core/images/GUID-1DABE29E-AA77-41CD-9C6D-9796F195C6F1.png I have a bunch of potential conditions for a single point for labeling but not all conditions apply all of the time. I wonder if a symbol font would work somehow. I could possibly fake something with a feature draw from the return (I think), but I believe it would be convoluted. bobb "First they ignore you, then they laugh at you, then they fight you, then you win.? - Mahatma Gandhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu May 12 15:56:47 2016 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 12 May 2016 18:56:47 -0400 Subject: [mapserver-users] Ballon labels. In-Reply-To: <70B8B8F1-6E9B-461A-B650-56359420D893@ci.stpaul.mn.us> References: <70B8B8F1-6E9B-461A-B650-56359420D893@ci.stpaul.mn.us> Message-ID: Can you do that by defining multiple circles and offsetting the position of each by the diameter of the circle from the last position? On 5/12/2016 5:26 PM, Basques, Bob (CI-StPaul) wrote: > All, > > Anyone know of a trick for labeling in MapServer with balloon chains. > Something like the chain of balloons in the lower right corner of this > image: > > http://help.autodesk.com/cloudhelp/2016/ENU/AutoCAD-Core/images/GUID-1DABE29E-AA77-41CD-9C6D-9796F195C6F1.png > > I have a bunch of potential conditions for a single point for labeling > but not all conditions apply all of the time. I wonder if a symbol > font would work somehow. > > I could possibly fake something with a feature draw from the return (I > think), but I believe it would be convoluted. > > bobb > > > > > > "First they ignore you, then they laugh at you, then they fight you, > then you win.? > - Mahatma Gandhi > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From hosain.moh00 at gmail.com Fri May 13 00:24:55 2016 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Fri, 13 May 2016 11:54:55 +0430 Subject: [mapserver-users] openlayers 3 Message-ID: hello i'd like to use openlayers3 for wms service the belowe code is correct? web gis
someone has offer? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Fri May 13 08:33:35 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Fri, 13 May 2016 15:33:35 +0000 Subject: [mapserver-users] MapServer install Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C62162F@PDEXCH10DB1.corp.rcis.com> I'm starting over with MapServer and would like to do a IIS install of the latest version on a Windows Server 2012 R2 64 bit machine. Is this possible?...I've tried to find instructions in the documentation but can't seem to find something that fits my needs. -Bob Vogt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri May 13 09:52:36 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 May 2016 13:52:36 -0300 Subject: [mapserver-users] MapServer install In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C62162F@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C62162F@PDEXCH10DB1.corp.rcis.com> Message-ID: <7ed51420-77ba-0096-a30f-e105b336b67a@gatewaygeomatics.com> Hi Bob, There are some older documents that might have some useful steps for starters: - https://github.com/mapserver/mapserver/wiki/Installing-Mapserver-under-IIS-7.n-with-FastCGI - http://mapserver.org/installation/iis.html You can also contact me directly for professional support (we maintain MS4W for Windows http://ms4w.com, which works well with IIS), if you need professional assistance or custom builds. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-13 12:33 PM, Vogt, Robert (RCIS) wrote: > I?m starting over with MapServer and would like to do a IIS install of > the latest version on a Windows Server 2012 R2 64 bit machine. > > > > Is this possible?...I?ve tried to find instructions in the documentation > but can?t seem to find something that fits my needs. > > > > -Bob Vogt > > > From reuven at levitt.net Fri May 13 07:12:55 2016 From: reuven at levitt.net (reuven at levitt.net) Date: Fri, 13 May 2016 17:12:55 +0300 Subject: [mapserver-users] Fw: new message Message-ID: <00001c14771e$5ad6f629$e2ddf38d$@levitt.net> Hello! You have a new message, please read reuven at levitt.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Fri May 13 22:17:12 2016 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Sat, 14 May 2016 09:47:12 +0430 Subject: [mapserver-users] openlayers 3 Message-ID: hello dears i'd like to use openayers3 with ms4w 3.0.6 the below code is used. some one know what is my problem. web gis
-------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Sat May 14 05:06:43 2016 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Sat, 14 May 2016 16:36:43 +0430 Subject: [mapserver-users] openlayers 3 Message-ID: Hello every one i would like to use openlayers 3 in mapserver anyone have idea about this thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From mafonso333 at gmail.com Sat May 14 05:57:49 2016 From: mafonso333 at gmail.com (Marco Afonso) Date: Sat, 14 May 2016 13:57:49 +0100 Subject: [mapserver-users] openlayers 3 In-Reply-To: References: Message-ID: Hello hosain, >From the openlayers code you supplied, you are using OSM layer over your WMS layer. You want to use diferente projections, you have to use the proj4js libray. http://proj4js.org/ 1. You did not supplied any MapServer information. What gives this link? http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/ol/tehran.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities 2. Do you have any javascript errors? You can use Google Chrome developer tools to check this. 3. You need to define in your ol.proj.Projection the proj4 parameters. See http://spatialreference.org/ref/epsg/32639/ 4. Try invert your layers order 5. Set your WMS layer to use the projection you defined This is what comes in my mind at the moment... Cheers, 2016-05-14 13:06 GMT+01:00 hosain mohammadi : > Hello every one > i would like to use openlayers 3 in mapserver > anyone have idea about this > thanks > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Regards, Marco Afonso http://goo.gl/ZDtQjm -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Sun May 15 14:26:21 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Sun, 15 May 2016 21:26:21 +0000 Subject: [mapserver-users] Mapcache - WMS calls Message-ID: <033134e8c8ed48e1b2d2e3959d1f1bf0@OPASAKLPMBX01.nz01a.opaas.net.nz> I have mapcache and mapserver running on a single server. Mapcache is configured to respond to WMST, TMS and WMS calls. When WMS calls are made, I don't want the calls passed through to the mapserver, but served by the existing tiles in the cache. I want the cached tiles to be assembled from existing tiles and if necessary resampled if the request is not exactly at one of the pre-existing resolutions. Is this possible? Is the following snippet from the mapcache.xml file correct for this behaviour? assemble bilinear myjpeg This is so that I can support map printing (at scales that are different to what I serve to browser based clients). Many thanks, Robert L. Sanson -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Sun May 15 15:28:23 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Sun, 15 May 2016 22:28:23 +0000 Subject: [mapserver-users] mapcache_seed fill in missing tiles? Message-ID: Hi Is it possible to use mapcache_seed to fill in missing tiles? Many thanks, Robert L. Sanson -------------- next part -------------- An HTML attachment was scrubbed... URL: From smercier at mapgears.com Sun May 15 18:04:06 2016 From: smercier at mapgears.com (Simon Mercier) Date: Sun, 15 May 2016 21:04:06 -0400 Subject: [mapserver-users] mapcache_seed fill in missing tiles? In-Reply-To: References: Message-ID: <57391C86.3010701@mapgears.com> yep. you can use mapcache_seed to fill missing tiles in a specific area for level 1 to 16 like this: sudo -u www-data mapcache_seed -c mapcacheConfig.xml -t my_tileset_name -g g -e -7808229,6035336,-7115330,6340836 -z 1,16 -n 8 (on ubuntu server, tiles generated will be available for web users) -- simon mercier mapgears On 16-05-15 06:28 PM, Robert Sanson wrote: > > Hi > > Is it possible to use mapcache_seed to fill in missing tiles? > > Many thanks, > > > Robert L. Sanson > > > > _______________________________________________ > 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 smercier at mapgears.com Sun May 15 18:24:55 2016 From: smercier at mapgears.com (Simon Mercier) Date: Sun, 15 May 2016 21:24:55 -0400 Subject: [mapserver-users] Ballon labels. In-Reply-To: References: <70B8B8F1-6E9B-461A-B650-56359420D893@ci.stpaul.mn.us> Message-ID: <57392167.8000900@mapgears.com> maybe multilabel can help https://lists.osgeo.org/pipermail/mapserver-users/2014-March/076167.html -- simon mercier mapgears On 16-05-12 06:56 PM, Stephen Woodbridge wrote: > Can you do that by defining multiple circles and offsetting the > position of each by the diameter of the circle from the last position? > > On 5/12/2016 5:26 PM, Basques, Bob (CI-StPaul) wrote: >> All, >> >> Anyone know of a trick for labeling in MapServer with balloon chains. >> Something like the chain of balloons in the lower right corner of this >> image: >> >> http://help.autodesk.com/cloudhelp/2016/ENU/AutoCAD-Core/images/GUID-1DABE29E-AA77-41CD-9C6D-9796F195C6F1.png >> >> >> I have a bunch of potential conditions for a single point for labeling >> but not all conditions apply all of the time. I wonder if a symbol >> font would work somehow. >> >> I could possibly fake something with a feature draw from the return (I >> think), but I believe it would be convoluted. >> >> bobb >> >> >> >> >> >> "First they ignore you, then they laugh at you, then they fight you, >> then you win.? >> - Mahatma Gandhi >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From reuven at levitt.net Sun May 15 18:48:05 2016 From: reuven at levitt.net (reuven at levitt.net) Date: Mon, 16 May 2016 04:48:05 +0300 Subject: [mapserver-users] interesting Message-ID: <00007a864062$a520b051$62ef5746$@levitt.net> Hi! Take a look at what I've just read, this is so interesting, read more at reuven at levitt.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Mon May 16 00:29:28 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Mon, 16 May 2016 09:29:28 +0200 Subject: [mapserver-users] openlayers 3 In-Reply-To: References: Message-ID: <41814644.hO6cTWm0po@tatras> Hello, It could be two kind of problem: * server side * client site It is difficult to see a problem (except obvious one) in such code. Did you check that your mapserver is working correctly? If not check this: http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/jask/jask.map&REQUEST=getcapabilities&SERVICE=WMS&VERSION=1.3.0 If you get the capabilities, check any errors messages in the capabilities. If you can't have the capabitilies, try to find the error or post the error message if you can't find it. When WMS service works, you can try the ol3 mailing list to see why the client side is not working. Regards, Y. On Friday, May 13, 2016 11:54:55 hosain mohammadi wrote: > hello > > i'd like to use openlayers3 for wms service > the belowe code is correct? > > > > > href="http://openlayers.org/en/v3.15.1/css/ol.css" type="text/css"> > > > web gis > > > >
> > > > > > > someone has offer? -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From yves.jacolin at camptocamp.com Mon May 16 00:34:31 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Mon, 16 May 2016 09:34:31 +0200 Subject: [mapserver-users] mapcache_seed fill in missing tiles? In-Reply-To: <57391C86.3010701@mapgears.com> References: <57391C86.3010701@mapgears.com> Message-ID: <2152555.fgXVRgMQkx@tatras> On Sunday, May 15, 2016 21:04:06 Simon Mercier wrote: > yep. you can use mapcache_seed to fill missing tiles in a specific area > for level 1 to 16 like this: > > sudo -u www-data mapcache_seed -c mapcacheConfig.xml -t my_tileset_name > -g g -e -7808229,6035336,-7115330,6340836 -z 1,16 -n 8 > [..] Hello Simon, So that's mean that if we don't know where are exactly the missing tiles user need to seed again all the cache? And as Mapcache overwrite existing tiles (if I am correct) that's mean that it can be very long to get just few missing tiles. Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From giohappy at gmail.com Mon May 16 01:53:58 2016 From: giohappy at gmail.com (G. Allegri) Date: Mon, 16 May 2016 10:53:58 +0200 Subject: [mapserver-users] runtime CONNECTION string partial substitution Message-ID: Hello, I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution. e.g. LAYER NAME mylayer TYPE POINT CONNECTIONTYPE OGR VALIDATION "db" "[a-z]+" END CONNECTION "/var/www/dbs/%db%.sqlite" DATA "mytable" END The point layers works fine if %db% is set statically but if I try to define it through get query values nothing is returned: http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong? Thanks, Giovanni -- Giovanni Allegri http://about.me/giovanniallegri Gis3W - http://gis3w.it Ikare - http://ikare.it Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Mon May 16 02:46:00 2016 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Mon, 16 May 2016 14:16:00 +0430 Subject: [mapserver-users] WFS service with mapserever and show in openlayers 3 Message-ID: hello there i'd like to create WFS service like below URL the format is geojson http://localhost:100/cgi-bin/mapserv.exe?map=D:/WEB_GIS/code_test/wms/HTML5Application/public_html/tehran.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TypeName=tehran&outputformat=geojson and want to show this service in openlayers 3 some one has experience about this thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon May 16 04:24:30 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 16 May 2016 11:24:30 +0000 Subject: [mapserver-users] runtime CONNECTION string partial substitution Message-ID: Hi, I made a test with your VALIDATION and CONNECTION and changing db on-the-fly works. How did you test? If you use some WMS client for testing it is good to remember that variable substitution does not have an effect on the GetCapabilities document so that the GetMap URL would be updated automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the &db= parameter from the GetMaps if you do not tell them not to trust the advertised GetMap URL. According to documentation http://mapserver.org/cgi/runsub.html it should also be possible to use variable substitution also in MAP- WEB: METADATA. I tried to use "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&%db%? but GetCapabilities response contains the variable %db% literally It seems that for getting a proper error message when &db= is missing or it is wrong a WMS GetMap request is required. WFS GetFeature triggers the error and is easier to write by hand, for example: http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo sends an error msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `states'. File not found or unsupported format. Document http://www.mapserver.org/optimization/debugging.html contains good advice for debugging. -Jukka Rahkonen- G. Allegri wrote: Hello, I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution. e.g. LAYER NAME mylayer TYPE POINT CONNECTIONTYPE OGR VALIDATION "db" "[a-z]+" END CONNECTION "/var/www/dbs/%db%.sqlite" DATA "mytable" END The point layers works fine if %db% is set statically but if I try to define it through get query values nothing is returned: http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong? Thanks, Giovanni -- Giovanni Allegri http://about.me/giovanniallegri Gis3W - http://gis3w.it Ikare - http://ikare.it Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon May 16 05:02:14 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 16 May 2016 12:02:14 +0000 Subject: [mapserver-users] runtime CONNECTION string partial substitution Message-ID: <22fe201872f3460486af9407e1ee5ea9@C119S212VM022.msvyvi.vaha.local> Correction: Changing the WMS online resource does work if the mapfile is written correctly. I had to add VALIDATION also into MAP->WEB WEB METADATA "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&db=%db%" END #metadata VALIDATION "db" "[a-z]+" END #validation END #WEB Now I can send http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wms&version=1.3.0&request=getcapabilities&db=wms-wfs and get What is interesting is that the validation rule ?[a-z]+? should not accept the name of my db ?wms-wfs? but it does. Capital letters are accepted as well ?WMS-WFS?. Because I am on Windows I can even get data with WMS-WFS though the name of the db is ?wms-wfs.sqlite?. -Jukka Rahkonen- L?hett?j?: Rahkonen Jukka (MML) L?hetetty: 16. toukokuuta 2016 14:24 Vastaanottaja: 'G. Allegri'; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution Hi, I made a test with your VALIDATION and CONNECTION and changing db on-the-fly works. How did you test? If you use some WMS client for testing it is good to remember that variable substitution does not have an effect on the GetCapabilities document so that the GetMap URL would be updated automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the &db= parameter from the GetMaps if you do not tell them not to trust the advertised GetMap URL. According to documentation http://mapserver.org/cgi/runsub.html it should also be possible to use variable substitution also in MAP- WEB: METADATA. I tried to use "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&%db%? but GetCapabilities response contains the variable %db% literally It seems that for getting a proper error message when &db= is missing or it is wrong a WMS GetMap request is required. WFS GetFeature triggers the error and is easier to write by hand, for example: http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo sends an error msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `states'. File not found or unsupported format. Document http://www.mapserver.org/optimization/debugging.html contains good advice for debugging. -Jukka Rahkonen- G. Allegri wrote: Hello, I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution. e.g. LAYER NAME mylayer TYPE POINT CONNECTIONTYPE OGR VALIDATION "db" "[a-z]+" END CONNECTION "/var/www/dbs/%db%.sqlite" DATA "mytable" END The point layers works fine if %db% is set statically but if I try to define it through get query values nothing is returned: http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong? Thanks, Giovanni -- Giovanni Allegri http://about.me/giovanniallegri Gis3W - http://gis3w.it Ikare - http://ikare.it Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon May 16 05:10:58 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 16 May 2016 14:10:58 +0200 Subject: [mapserver-users] runtime CONNECTION string partial substitution In-Reply-To: <22fe201872f3460486af9407e1ee5ea9@C119S212VM022.msvyvi.vaha.local> References: <22fe201872f3460486af9407e1ee5ea9@C119S212VM022.msvyvi.vaha.local> Message-ID: On May 16, 2016 2:02 PM, "Rahkonen Jukka (MML)" < jukka.rahkonen at maanmittauslaitos.fi> wrote: > > Correction: > > > > Changing the WMS online resource does work if the mapfile is written correctly. I had to add VALIDATION also into MAP->WEB > > > > WEB > > METADATA > > "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c :\ms4w\apps\wms-wfs.map&db=%db%" > > END #metadata > > VALIDATION > > "db" "[a-z]+" > > END #validation > > END #WEB > > > > Now I can send > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wms&version=1.3.0&request=getcapabilities&db=wms-wfs > > > > and get > > > > > What is interesting is that the validation rule ?[a-z]+? should not accept the name of my db ?wms-wfs? but it does. Capital letters are accepted as well ?WMS-WFS?. Because I am on Windows I can even get data with WMS-WFS though the name of the db is ?wms-wfs.sqlite?. > That's because [a-z]+ means "there should be at least one alphabetic character in the passed expression". The " correct" regex to use would be ^[a-z]+$ Thomas > > > -Jukka Rahkonen- > > > > > > L?hett?j?: Rahkonen Jukka (MML) > L?hetetty: 16. toukokuuta 2016 14:24 > Vastaanottaja: 'G. Allegri'; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution > > > > Hi, > > > > I made a test with your VALIDATION and CONNECTION and changing db on-the-fly works. How did you test? If you use some WMS client for testing it is good to remember that variable substitution does not have an effect on the GetCapabilities document so that the GetMap URL would be updated automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the &db= parameter from the GetMaps if you do not tell them not to trust the advertised GetMap URL. > > > > According to documentation http://mapserver.org/cgi/runsub.html it should also be possible to use variable substitution also in MAP- WEB: METADATA. I tried > > to use > > "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c :\ms4w\apps\wms-wfs.map&%db%? > > > > but GetCapabilities response contains the variable %db% literally > > > > > > It seems that for getting a proper error message when &db= is missing or it is wrong a WMS GetMap request is required. WFS GetFeature triggers the error > > and is easier to write by hand, for example: > > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo > > sends an error > > > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `states'. File not found or unsupported format. > > > > > > Document http://www.mapserver.org/optimization/debugging.html contains good advice for debugging. > > > > -Jukka Rahkonen- > > > > > > G. Allegri wrote: > > > > Hello, > > I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution. > > > > e.g. > > > > LAYER > > NAME mylayer > > TYPE POINT > > CONNECTIONTYPE OGR > > VALIDATION > > "db" "[a-z]+" > > END > > CONNECTION "/var/www/dbs/%db%.sqlite" > > DATA "mytable" > > END > > > > The point layers works fine if %db% is set statically but if I try to define it through get query values nothing is returned: > > > > http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb > > > > The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong? > > > > Thanks, > > Giovanni > > > > -- > > Giovanni Allegri > http://about.me/giovanniallegri > > Gis3W - http://gis3w.it > > Ikare - http://ikare.it > > Twitter: https://twitter.com/_giohappy_ > > blog: http://blog.spaziogis.it > GEO+ geomatica in Italia http://bit.ly/GEOplus > > > _______________________________________________ > 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 jukka.rahkonen at maanmittauslaitos.fi Mon May 16 05:27:50 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 16 May 2016 12:27:50 +0000 Subject: [mapserver-users] runtime CONNECTION string partial substitution Message-ID: <52f5841ebafa482ca7378a296f594368@C119S212VM022.msvyvi.vaha.local> Hi Thomas, I was testing with http://www.regexr.com/ and it does not agree totally: ?wms-wfs? contains a dash and the test utility requires ?[a-z-]+? WMS-WFS has capital letters and dash and test utility requires ?[A-Z-]+? -Jukka- L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] L?hetetty: 16. toukokuuta 2016 15:11 Vastaanottaja: Rahkonen Jukka (MML) Kopio: MapserverList OSGEO; G. Allegri Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution On May 16, 2016 2:02 PM, "Rahkonen Jukka (MML)" > wrote: > > Correction: > > > > Changing the WMS online resource does work if the mapfile is written correctly. I had to add VALIDATION also into MAP->WEB > > > > WEB > > METADATA > > "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&db=%db%" > > END #metadata > > VALIDATION > > "db" "[a-z]+" > > END #validation > > END #WEB > > > > Now I can send > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wms&version=1.3.0&request=getcapabilities&db=wms-wfs > > > > and get > > > > > What is interesting is that the validation rule ?[a-z]+? should not accept the name of my db ?wms-wfs? but it does. Capital letters are accepted as well ?WMS-WFS?. Because I am on Windows I can even get data with WMS-WFS though the name of the db is ?wms-wfs.sqlite?. > That's because [a-z]+ means "there should be at least one alphabetic character in the passed expression". The " correct" regex to use would be ^[a-z]+$ Thomas > > > -Jukka Rahkonen- > > > > > > L?hett?j?: Rahkonen Jukka (MML) > L?hetetty: 16. toukokuuta 2016 14:24 > Vastaanottaja: 'G. Allegri'; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution > > > > Hi, > > > > I made a test with your VALIDATION and CONNECTION and changing db on-the-fly works. How did you test? If you use some WMS client for testing it is good to remember that variable substitution does not have an effect on the GetCapabilities document so that the GetMap URL would be updated automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the &db= parameter from the GetMaps if you do not tell them not to trust the advertised GetMap URL. > > > > According to documentation http://mapserver.org/cgi/runsub.html it should also be possible to use variable substitution also in MAP- WEB: METADATA. I tried > > to use > > "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&%db%? > > > > but GetCapabilities response contains the variable %db% literally > > > > > > It seems that for getting a proper error message when &db= is missing or it is wrong a WMS GetMap request is required. WFS GetFeature triggers the error > > and is easier to write by hand, for example: > > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo > > sends an error > > > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `states'. File not found or unsupported format. > > > > > > Document http://www.mapserver.org/optimization/debugging.html contains good advice for debugging. > > > > -Jukka Rahkonen- > > > > > > G. Allegri wrote: > > > > Hello, > > I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution. > > > > e.g. > > > > LAYER > > NAME mylayer > > TYPE POINT > > CONNECTIONTYPE OGR > > VALIDATION > > "db" "[a-z]+" > > END > > CONNECTION "/var/www/dbs/%db%.sqlite" > > DATA "mytable" > > END > > > > The point layers works fine if %db% is set statically but if I try to define it through get query values nothing is returned: > > > > http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb > > > > The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong? > > > > Thanks, > > Giovanni > > > > -- > > Giovanni Allegri > http://about.me/giovanniallegri > > Gis3W - http://gis3w.it > > Ikare - http://ikare.it > > Twitter: https://twitter.com/_giohappy_ > > blog: http://blog.spaziogis.it > GEO+ geomatica in Italia http://bit.ly/GEOplus > > > _______________________________________________ > 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 Mon May 16 05:30:41 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 16 May 2016 14:30:41 +0200 Subject: [mapserver-users] runtime CONNECTION string partial substitution In-Reply-To: <52f5841ebafa482ca7378a296f594368@C119S212VM022.msvyvi.vaha.local> References: <52f5841ebafa482ca7378a296f594368@C119S212VM022.msvyvi.vaha.local> Message-ID: Not sure I get it. Your regex requires a letter or a dash , and one of them is present, no? On May 16, 2016 2:28 PM, "Rahkonen Jukka (MML)" < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi Thomas, > > > > I was testing with http://www.regexr.com/ and it does not agree totally: > > > > ?wms-wfs? contains a dash and the test utility requires ?[a-z-]+? > > WMS-WFS has capital letters and dash and test utility requires ?[A-Z-]+? > > > > -Jukka- > > > > > > *L?hett?j?:* thomas bonfort [mailto:thomas.bonfort at gmail.com] > *L?hetetty:* 16. toukokuuta 2016 15:11 > *Vastaanottaja:* Rahkonen Jukka (MML) > *Kopio:* MapserverList OSGEO; G. Allegri > *Aihe:* Re: [mapserver-users] runtime CONNECTION string partial > substitution > > > > > On May 16, 2016 2:02 PM, "Rahkonen Jukka (MML)" < > jukka.rahkonen at maanmittauslaitos.fi> wrote: > > > > Correction: > > > > > > > > Changing the WMS online resource does work if the mapfile is written > correctly. I had to add VALIDATION also into MAP->WEB > > > > > > > > WEB > > > > METADATA > > > > "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c > :\ms4w\apps\wms-wfs.map&db=%db%" > > > > END #metadata > > > > VALIDATION > > > > "db" "[a-z]+" > > > > END #validation > > > > END #WEB > > > > > > > > Now I can send > > > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wms&version=1.3.0&request=getcapabilities&db=wms-wfs > > > > > > > > and get > > > > > > > > > > What is interesting is that the validation rule ?[a-z]+? should not > accept the name of my db ?wms-wfs? but it does. Capital letters are > accepted as well ?WMS-WFS?. Because I am on Windows I can even get data > with WMS-WFS though the name of the db is ?wms-wfs.sqlite?. > > > That's because [a-z]+ means "there should be at least one alphabetic > character in the passed expression". The " correct" regex to use would be > ^[a-z]+$ > > Thomas > > > > > > -Jukka Rahkonen- > > > > > > > > > > > > L?hett?j?: Rahkonen Jukka (MML) > > L?hetetty: 16. toukokuuta 2016 14:24 > > Vastaanottaja: 'G. Allegri'; mapserver-users at lists.osgeo.org > > Aihe: Re: [mapserver-users] runtime CONNECTION string partial > substitution > > > > > > > > Hi, > > > > > > > > I made a test with your VALIDATION and CONNECTION and changing db > on-the-fly works. How did you test? If you use some WMS client for testing > it is good to remember that variable substitution does not have an effect > on the GetCapabilities document so that the GetMap URL would be updated > automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the > &db= parameter from the GetMaps if you do not tell them not to trust the > advertised GetMap URL. > > > > > > > > According to documentation http://mapserver.org/cgi/runsub.html it > should also be possible to use variable substitution also in MAP- WEB: > METADATA. I tried > > > > to use > > > > "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c > :\ms4w\apps\wms-wfs.map&%db%? > > > > > > > > but GetCapabilities response contains the variable %db% literally > > > > > > > > > > > > It seems that for getting a proper error message when &db= is missing or > it is wrong a WMS GetMap request is required. WFS GetFeature triggers the > error > > > > and is easier to write by hand, for example: > > > > > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo > > > > sends an error > > > > > > > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `states'. File not found or unsupported format. > > > > > > > > > > > > Document http://www.mapserver.org/optimization/debugging.html contains > good advice for debugging. > > > > > > > > -Jukka Rahkonen- > > > > > > > > > > > > G. Allegri wrote: > > > > > > > > Hello, > > > > I'm trying to define a layer where the Sqlite DB connection should be > set dynamically through runtime sustitution. > > > > > > > > e.g. > > > > > > > > LAYER > > > > NAME mylayer > > > > TYPE POINT > > > > CONNECTIONTYPE OGR > > > > VALIDATION > > > > "db" "[a-z]+" > > > > END > > > > CONNECTION "/var/www/dbs/%db%.sqlite" > > > > DATA "mytable" > > > > END > > > > > > > > The point layers works fine if %db% is set statically but if I try to > define it through get query values nothing is returned: > > > > > > > > http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb > > > > > > > > The documentation says that runtime sustitution should work for > CONNECTION param too. What am I doing wrong? > > > > > > > > Thanks, > > > > Giovanni > > > > > > > > -- > > > > Giovanni Allegri > > http://about.me/giovanniallegri > > > > Gis3W - http://gis3w.it > > > > Ikare - http://ikare.it > > > > Twitter: https://twitter.com/_giohappy_ > > > > blog: http://blog.spaziogis.it > > GEO+ geomatica in Italia http://bit.ly/GEOplus > > > > > > _______________________________________________ > > 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 giohappy at gmail.com Mon May 16 05:38:59 2016 From: giohappy at gmail.com (G. Allegri) Date: Mon, 16 May 2016 14:38:59 +0200 Subject: [mapserver-users] runtime CONNECTION string partial substitution In-Reply-To: References: <52f5841ebafa482ca7378a296f594368@C119S212VM022.msvyvi.vaha.local> Message-ID: First of all thanks Jukka. I haven't tested it yet but I'm quite sure the problem was the online resource url. I agree with Jukka, the original regex should accept only lowercase alphanumeric characters and nothing else. I will do some tests... giovanni Il 16/mag/2016 2:30 PM, "thomas bonfort" ha scritto: > Not sure I get it. Your regex requires a letter or a dash , and one of > them is present, no? > On May 16, 2016 2:28 PM, "Rahkonen Jukka (MML)" < > jukka.rahkonen at maanmittauslaitos.fi> wrote: > >> Hi Thomas, >> >> >> >> I was testing with http://www.regexr.com/ and it does not agree totally: >> >> >> >> ?wms-wfs? contains a dash and the test utility requires ?[a-z-]+? >> >> WMS-WFS has capital letters and dash and test utility requires ?[A-Z-]+? >> >> >> >> -Jukka- >> >> >> >> >> >> *L?hett?j?:* thomas bonfort [mailto:thomas.bonfort at gmail.com] >> *L?hetetty:* 16. toukokuuta 2016 15:11 >> *Vastaanottaja:* Rahkonen Jukka (MML) >> *Kopio:* MapserverList OSGEO; G. Allegri >> *Aihe:* Re: [mapserver-users] runtime CONNECTION string partial >> substitution >> >> >> >> >> On May 16, 2016 2:02 PM, "Rahkonen Jukka (MML)" < >> jukka.rahkonen at maanmittauslaitos.fi> wrote: >> > >> > Correction: >> > >> > >> > >> > Changing the WMS online resource does work if the mapfile is written >> correctly. I had to add VALIDATION also into MAP->WEB >> > >> > >> > >> > WEB >> > >> > METADATA >> > >> > "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c >> :\ms4w\apps\wms-wfs.map&db=%db%" >> > >> > END #metadata >> > >> > VALIDATION >> > >> > "db" "[a-z]+" >> > >> > END #validation >> > >> > END #WEB >> > >> > >> > >> > Now I can send >> > >> http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wms&version=1.3.0&request=getcapabilities&db=wms-wfs >> > >> > >> > >> > and get >> > >> > >> > >> > >> > What is interesting is that the validation rule ?[a-z]+? should not >> accept the name of my db ?wms-wfs? but it does. Capital letters are >> accepted as well ?WMS-WFS?. Because I am on Windows I can even get data >> with WMS-WFS though the name of the db is ?wms-wfs.sqlite?. >> > >> That's because [a-z]+ means "there should be at least one alphabetic >> character in the passed expression". The " correct" regex to use would be >> ^[a-z]+$ >> >> Thomas >> > >> > >> > -Jukka Rahkonen- >> > >> > >> > >> > >> > >> > L?hett?j?: Rahkonen Jukka (MML) >> > L?hetetty: 16. toukokuuta 2016 14:24 >> > Vastaanottaja: 'G. Allegri'; mapserver-users at lists.osgeo.org >> > Aihe: Re: [mapserver-users] runtime CONNECTION string partial >> substitution >> > >> > >> > >> > Hi, >> > >> > >> > >> > I made a test with your VALIDATION and CONNECTION and changing db >> on-the-fly works. How did you test? If you use some WMS client for testing >> it is good to remember that variable substitution does not have an effect >> on the GetCapabilities document so that the GetMap URL would be updated >> automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the >> &db= parameter from the GetMaps if you do not tell them not to trust the >> advertised GetMap URL. >> > >> > >> > >> > According to documentation http://mapserver.org/cgi/runsub.html it >> should also be possible to use variable substitution also in MAP- WEB: >> METADATA. I tried >> > >> > to use >> > >> > "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c >> :\ms4w\apps\wms-wfs.map&%db%? >> > >> > >> > >> > but GetCapabilities response contains the variable %db% literally >> > >> > >> > >> > >> > >> > It seems that for getting a proper error message when &db= is missing >> or it is wrong a WMS GetMap request is required. WFS GetFeature triggers >> the error >> > >> > and is easier to write by hand, for example: >> > >> > >> http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo >> > >> > sends an error >> > >> > >> > >> > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >> `states'. File not found or unsupported format. >> > >> > >> > >> > >> > >> > Document http://www.mapserver.org/optimization/debugging.html contains >> good advice for debugging. >> > >> > >> > >> > -Jukka Rahkonen- >> > >> > >> > >> > >> > >> > G. Allegri wrote: >> > >> > >> > >> > Hello, >> > >> > I'm trying to define a layer where the Sqlite DB connection should be >> set dynamically through runtime sustitution. >> > >> > >> > >> > e.g. >> > >> > >> > >> > LAYER >> > >> > NAME mylayer >> > >> > TYPE POINT >> > >> > CONNECTIONTYPE OGR >> > >> > VALIDATION >> > >> > "db" "[a-z]+" >> > >> > END >> > >> > CONNECTION "/var/www/dbs/%db%.sqlite" >> > >> > DATA "mytable" >> > >> > END >> > >> > >> > >> > The point layers works fine if %db% is set statically but if I try to >> define it through get query values nothing is returned: >> > >> > >> > >> > http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb >> > >> > >> > >> > The documentation says that runtime sustitution should work for >> CONNECTION param too. What am I doing wrong? >> > >> > >> > >> > Thanks, >> > >> > Giovanni >> > >> > >> > >> > -- >> > >> > Giovanni Allegri >> > http://about.me/giovanniallegri >> > >> > Gis3W - http://gis3w.it >> > >> > Ikare - http://ikare.it >> > >> > Twitter: https://twitter.com/_giohappy_ >> > >> > blog: http://blog.spaziogis.it >> > GEO+ geomatica in Italia http://bit.ly/GEOplus >> > >> > >> > _______________________________________________ >> > 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 smercier at mapgears.com Mon May 16 06:16:40 2016 From: smercier at mapgears.com (Simon Mercier) Date: Mon, 16 May 2016 09:16:40 -0400 Subject: [mapserver-users] mapcache_seed fill in missing tiles? In-Reply-To: <2152555.fgXVRgMQkx@tatras> References: <57391C86.3010701@mapgears.com> <2152555.fgXVRgMQkx@tatras> Message-ID: <5739C838.1050201@mapgears.com> Yves no. mapcache_seed will create missing tiles only and in the extent. If tiles exist mapcache_seed will skip them. Based on my experience it's super fast and you dont have to know where are missing tiles You can force seeding with -f option but it's very slow. I prefere to delete tiles first or use "-m delete" for specific area On 16-05-16 03:34 AM, Yves Jacolin wrote: > On Sunday, May 15, 2016 21:04:06 Simon Mercier wrote: >> yep. you can use mapcache_seed to fill missing tiles in a specific area >> for level 1 to 16 like this: >> >> sudo -u www-data mapcache_seed -c mapcacheConfig.xml -t my_tileset_name >> -g g -e -7808229,6035336,-7115330,6340836 -z 1,16 -n 8 >> [..] > Hello Simon, > > So that's mean that if we don't know where are exactly the missing tiles user > need to seed again all the cache? > > And as Mapcache overwrite existing tiles (if I am correct) that's mean that it > can be very long to get just few missing tiles. > > Y. -- simon mercier mapgears +1.418.476.7139 p101 From yves.jacolin at camptocamp.com Mon May 16 06:24:01 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Mon, 16 May 2016 15:24:01 +0200 Subject: [mapserver-users] mapcache_seed fill in missing tiles? In-Reply-To: <5739C838.1050201@mapgears.com> References: <2152555.fgXVRgMQkx@tatras> <5739C838.1050201@mapgears.com> Message-ID: <2402704.YYnjO1mchA@tatras> Good to know :) Thanks! Y. On Monday, May 16, 2016 9:16:40 Simon Mercier wrote: > Yves > > no. mapcache_seed will create missing tiles only and in the extent. If > tiles exist mapcache_seed will skip them. Based on my experience it's > super fast and you dont have to know where are missing tiles > > You can force seeding with -f option but it's very slow. I prefere to > delete tiles first or use "-m delete" for specific area > > On 16-05-16 03:34 AM, Yves Jacolin wrote: > > On Sunday, May 15, 2016 21:04:06 Simon Mercier wrote: > >> yep. you can use mapcache_seed to fill missing tiles in a specific area > >> for level 1 to 16 like this: > >> > >> sudo -u www-data mapcache_seed -c mapcacheConfig.xml -t my_tileset_name > >> -g g -e -7808229,6035336,-7115330,6340836 -z 1,16 -n 8 > >> [..] > > > > Hello Simon, > > > > So that's mean that if we don't know where are exactly the missing tiles > > user need to seed again all the cache? > > > > And as Mapcache overwrite existing tiles (if I am correct) that's mean > > that it can be very long to get just few missing tiles. > > > > Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From jukka.rahkonen at maanmittauslaitos.fi Mon May 16 06:59:21 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 16 May 2016 13:59:21 +0000 Subject: [mapserver-users] runtime CONNECTION string partial substitution Message-ID: <181a494a01654c30998f5cf7a51a36ef@C119S212VM022.msvyvi.vaha.local> Hi, I am by no means a master with regexp so I took the validation [a-z]+ from the mail by Giovanni and tested it with the http://www.regexr.com/ tool. I do understand now that if I do not include anchors ^and $ then it is enough the find one validated character and therefore [a-z]+ accepts ?wms-wfs? even dash is not included in regexp. But why [a-z]+ is also accepting ?WMS-WFS?? Shouldn?t it be case sensitive? I made some more tests and these two variants accept both all lower case and all upper case strings on Windows with Mapserver 7.0 from MS4W: VALIDATION "db" "^[A-Z]+$" END VALIDATION "db" "^[a-z]+$" END -Jukka Rahkonen- L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] L?hetetty: 16. toukokuuta 2016 15:31 Vastaanottaja: Rahkonen Jukka (MML) Kopio: MapserverList OSGEO; G. Allegri Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution Not sure I get it. Your regex requires a letter or a dash , and one of them is present, no? On May 16, 2016 2:28 PM, "Rahkonen Jukka (MML)" > wrote: Hi Thomas, I was testing with http://www.regexr.com/ and it does not agree totally: ?wms-wfs? contains a dash and the test utility requires ?[a-z-]+? WMS-WFS has capital letters and dash and test utility requires ?[A-Z-]+? -Jukka- L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] L?hetetty: 16. toukokuuta 2016 15:11 Vastaanottaja: Rahkonen Jukka (MML) Kopio: MapserverList OSGEO; G. Allegri Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution On May 16, 2016 2:02 PM, "Rahkonen Jukka (MML)" > wrote: > > Correction: > > > > Changing the WMS online resource does work if the mapfile is written correctly. I had to add VALIDATION also into MAP->WEB > > > > WEB > > METADATA > > "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&db=%db%" > > END #metadata > > VALIDATION > > "db" "[a-z]+" > > END #validation > > END #WEB > > > > Now I can send > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wms&version=1.3.0&request=getcapabilities&db=wms-wfs > > > > and get > > > > > What is interesting is that the validation rule ?[a-z]+? should not accept the name of my db ?wms-wfs? but it does. Capital letters are accepted as well ?WMS-WFS?. Because I am on Windows I can even get data with WMS-WFS though the name of the db is ?wms-wfs.sqlite?. > That's because [a-z]+ means "there should be at least one alphabetic character in the passed expression". The " correct" regex to use would be ^[a-z]+$ Thomas > > > -Jukka Rahkonen- > > > > > > L?hett?j?: Rahkonen Jukka (MML) > L?hetetty: 16. toukokuuta 2016 14:24 > Vastaanottaja: 'G. Allegri'; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] runtime CONNECTION string partial substitution > > > > Hi, > > > > I made a test with your VALIDATION and CONNECTION and changing db on-the-fly works. How did you test? If you use some WMS client for testing it is good to remember that variable substitution does not have an effect on the GetCapabilities document so that the GetMap URL would be updated automatically. Therefore WMS clients like QGIS or OpenJUMP will drop the &db= parameter from the GetMaps if you do not tell them not to trust the advertised GetMap URL. > > > > According to documentation http://mapserver.org/cgi/runsub.html it should also be possible to use variable substitution also in MAP- WEB: METADATA. I tried > > to use > > "wms_onlineresource" ?http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map&%db%? > > > > but GetCapabilities response contains the variable %db% literally > > > > > > It seems that for getting a proper error message when &db= is missing or it is wrong a WMS GetMap request is required. WFS GetFeature triggers the error > > and is easier to write by hand, for example: > > http://localhost:8060/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms-wfs.map&service=wfs&version=2.0.0&request=getfeature&typename=states&db=foo > > sends an error > > > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `states'. File not found or unsupported format. > > > > > > Document http://www.mapserver.org/optimization/debugging.html contains good advice for debugging. > > > > -Jukka Rahkonen- > > > > > > G. Allegri wrote: > > > > Hello, > > I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution. > > > > e.g. > > > > LAYER > > NAME mylayer > > TYPE POINT > > CONNECTIONTYPE OGR > > VALIDATION > > "db" "[a-z]+" > > END > > CONNECTION "/var/www/dbs/%db%.sqlite" > > DATA "mytable" > > END > > > > The point layers works fine if %db% is set statically but if I try to define it through get query values nothing is returned: > > > > http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb > > > > The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong? > > > > Thanks, > > Giovanni > > > > -- > > Giovanni Allegri > http://about.me/giovanniallegri > > Gis3W - http://gis3w.it > > Ikare - http://ikare.it > > Twitter: https://twitter.com/_giohappy_ > > blog: http://blog.spaziogis.it > GEO+ geomatica in Italia http://bit.ly/GEOplus > > > _______________________________________________ > 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 Mon May 16 08:50:38 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 16 May 2016 12:50:38 -0300 Subject: [mapserver-users] openlayers 3 In-Reply-To: <41814644.hO6cTWm0po@tatras> References: <41814644.hO6cTWm0po@tatras> Message-ID: <8d5aa6f2-80b1-56a7-d0c8-b2e70bd4bd4f@gatewaygeomatics.com> Hello Hosain, To help you and others get started with OpenLayers, I've added an OpenLayers 3 example that uses a (local) WMS service, into MS4W's OpenLayers package. The data is in spatialite format. What's nice is that you can just use this working mapfile (that lives in /ms4w/apps/openlayers/examples/map/wms-server.map) and its working javascript code (visible through a link on the MS4W homepage at 127.0.0.1). Once you install MS4W 3.14 and the OpenLayers 3.15.1 package (from http://ms4w.com), look for a new "MapServer WMS Example" on your MS4W homepage, under the "OpenLayers" section. This new demo will look like this: http://pasteboard.co/Y63Qzix.jpg If you use MS4W's setup.exe installer the mapfile and the OpenLayers code will be automatically modified for your installation (path to mapfile, WMS onlineresource, Apache port, etc.). I think this will help you and others get started with OpenLayers3 and MS4W. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-16 4:29 AM, Yves Jacolin wrote: > Hello, > > It could be two kind of problem: > * server side > * client site > > It is difficult to see a problem (except obvious one) in such code. Did you > check that your mapserver is working correctly? > > If not check this: > http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/jask/jask.map&REQUEST=getcapabilities&SERVICE=WMS&VERSION=1.3.0 > > If you get the capabilities, check any errors messages in the capabilities. If > you can't have the capabitilies, try to find the error or post the error > message if you can't find it. > > When WMS service works, you can try the ol3 mailing list to see why the client > side is not working. > > Regards, > > Y. > > On Friday, May 13, 2016 11:54:55 hosain mohammadi wrote: >> hello >> >> i'd like to use openlayers3 for wms service >> the belowe code is correct? >> >> >> >> >> > href="http://openlayers.org/en/v3.15.1/css/ol.css" type="text/css"> >> >> >> web gis >> >> >> >>
>> >> >> >> >> >> >> someone has offer? > From ankurgis009 at gmail.com Tue May 17 23:11:18 2016 From: ankurgis009 at gmail.com (Ankur Kumar) Date: Wed, 18 May 2016 11:41:18 +0530 Subject: [mapserver-users] help in mapserver mapfile scale define Message-ID: hello All, can any body help me out in how to per-define map scale manually in mapserver(ms4w) map script mode mode -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Tue May 17 23:11:12 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Wed, 18 May 2016 11:41:12 +0530 Subject: [mapserver-users] mapserver(ms4w) map script mode mode Message-ID: hello all, can any body help me out in how to per-define map scale manually in mapserver(ms4w) map script mode mode -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Wed May 18 04:10:07 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Wed, 18 May 2016 16:40:07 +0530 Subject: [mapserver-users] mapserver(ms4w) map script mode Message-ID: hello all, can any body help me out in how touser-define map scale manually in mapserver(ms4w) map script mode -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricardoqmacedo at gmail.com Wed May 18 05:48:37 2016 From: ricardoqmacedo at gmail.com (Ricardo Queiroz) Date: Wed, 18 May 2016 09:48:37 -0300 Subject: [mapserver-users] MS4W and Oracle Message-ID: This is my first mail to this list, and sorry about english (not my native language) I've a software with ms4w 1.3.4 and pgsql9.5 (and postgis 2.2.2) and works fine, so i need to convert all the app to use oracle (client request =/, i'm using oracle client 11.2.0.3.0). I follow the steps of the ms4w installation and when write "mapserv -v" in console the oraclespatian appears, so the next step was test the connection layer, there's ok, when i change some parameters (to wrong) in the conn string the connect fail, but here's the problem, when i set a data in the layer (simple sql) allways return a error and i can't resolve this, don't know if is some mapserver config or else. Basic example of layer (trying draw a point): $objLayer = ms_newLayerObj($objMap); $objLayer ->set("name", "layer_oracle"); $objLayer ->setConnectionType(MS_ORACLESPATIAL); $objLayer ->set("connection", "user/pass at tnsName"); $objLayer ->setProcessing("CLOSE_CONNECTION=DEFER"); $objLayer ->set("type", MS_LAYER_POINT); $data = "THE_GEOM from (select PK_ID, NAME as LABELITEM, THE_GEOM from user.TABLE_POINT) USING SRID 29193"; $objLayer ->set("data", $data); unset($data); $objLayer ->set("labelitem", "LABELITEM"); $objLayer ->set("template", "layer.html"); $objLayer ->set("header", "layer.html"); $objLayer ->set("footer", "layer.html"); $objClass= ms_newClassObj($objLayer ); $objClass->set("name", "POINT"); $objStyle= ms_newStyleObj($objClass); $objStyle->set("symbolname", "dot_purple"); $objLabel= new labelObj(); $objLabel->color->setRGB(217, 242, 230); $objLabel->outlinecolor->setRGB(0, 0, 0); $objLabel->set("font", "luxi-bold"); $objLabel->set("size", 9); $objLabel->set("position", MS_UC); $objLabel->set("partials", MS_TRUE); $objLabel->set("mindistance",100); $objLabel->set("buffer",4); $objClass->addLabel($objLabel); $objLayer ->set("status", MS_ON); $objLayer ->free(); $objClass->free(); $objStyle->free(); $objLabel->free(); unset($objLayer); unset($objClass); unset($objStyle); unset($objLabel); I get the error message: Warning: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to draw layer named 'layer_oracle'. in... Warning: mapObj::draw(): [MapServer Error]: msOracleSpatialLayerWhichShapes(): Check your data statement and server logs in... When i change some var on set("connection") i get the error conn msg, so i can connect, just can't draw the point Warning: mapObj::draw(): [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check your logs and the connection string. in The same example works fine when i change to postgis (using the same table "structure"). Oracle table and the record: CREATE TABLE TABLE_POINT ( PK_ID NUMBER, NAME VARCHAR2(30 BYTE), THE_GEOM SDO_GEOMETRY, PRIMARY KEY (PK_ID) ) insert into TABLE_POINT(PK_ID, NAME, THE_GEOM) values(1, 'Point 1', MDSYS.SDO_GEOMETRY(2001,29193,MDSYS.SDO_POINT_TYPE(798062.7655190326,7459237.923282569,null),null,null)); Thanks, Ricardo Queiroz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Wed May 18 11:17:56 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Wed, 18 May 2016 18:17:56 +0000 Subject: [mapserver-users] Testing x64 MapServer Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> Good afternoon I'm trying to set up x64 MapServer on Windows 2012 server. I've been partially successful in that the MapServer dll's are all there but when I run my .map file through shp2img.exe The process is failing on a .map file that worked previously. This is what the map file looks like ... MAP NAME USA1 SYMBOLSET "e:\arcgisserver\basedata\symbols.txt" FONTSET "e:\arcgisserver\basedata\fonts.txt" STATUS ON IMAGETYPE PNG8 RESOLUTION 72 IMAGECOLOR 255 255 255 SHAPEPATH "e:\arcgisserver\basedata" UNITS METERS PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" "datum=NAD83" END SIZE 1500 1500 EXTENT -45292.7219576058 780481.616003812 45290.5126012127 871065.05991903 LAYER STATUS DEFAULT CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, I've tested the connection with a .udl file on the server" PLUGIN "msplugin_mssql2008.dll" DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx USING UNIQUE OBJECTID USING SRID=4269" NAME "States" TYPE POLYGON STATUS DEFAULT PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END LABELITEM "state" CLASS NAME "States" STYLE SYMBOL 0 WIDTH 2 OUTLINECOLOR 255 0 0 END LABEL TYPE truetype FONT arial PRIORITY 2 ALIGN center SIZE 10 COLOR 255 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 2 MINDISTANCE 300 ANGLE AUTO WRAP "~" END END END END I have tested the SQL connection string with a .udl file on the server and it is working. The out put of shp2img.exe looks like this... PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o E:\RCIS\Web\MapServer Dlls\MapServerTest\image1.png -all_debug 5 msLoadMap(): 0.000s msDrawMap(): rendering using outputformat named png8 (AGG/PNG8). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawMap(): Image handling error. Failed to draw layer named 'States'. msDrawMap(): Image handling error. Failed to draw layer named 'States'.
msFreeMap(): freeing map at 00000067B88C2DE0. Any help is greatly appreciated!! Thank you so much!! -Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed May 18 11:36:24 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 18 May 2016 15:36:24 -0300 Subject: [mapserver-users] Testing x64 MapServer In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> Message-ID: If I had to guess, it would be that you are not properly pointing to the full path to the MSSQL plugin: for example, see http://ms4w.com/README_INSTALL.html#microsoft-sql-server-2008 I am happy to hear that MS4W is doing so well for sharing your organization's spatial needs. Please feel free to help fund MS4W, to make sure that the MS4W product remains so innovative and reliable for your organization in the long term. You can contact me directly at any time to offer that help. Thank you, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-18 3:17 PM, Vogt, Robert (RCIS) wrote: > Good afternoon I?m trying to set up x64 MapServer on Windows 2012 server. > > > > I?ve been partially successful in that the MapServer dll?s are all there > but when I run my .map file through shp2img.exe > > > > The process is failing on a .map file that worked previously. > > > > This is what the map file looks like ? > > > > MAP > > NAME USA1 > > SYMBOLSET "e:\arcgisserver\basedata\symbols.txt" > > FONTSET "e:\arcgisserver\basedata\fonts.txt" > > STATUS ON > > IMAGETYPE PNG8 > > RESOLUTION 72 > > IMAGECOLOR 255 255 255 > > SHAPEPATH "e:\arcgisserver\basedata" > > UNITS METERS > > PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" > "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" > "datum=NAD83" END > > SIZE 1500 1500 > > EXTENT -45292.7219576058 780481.616003812 45290.5126012127 871065.05991903 > > LAYER > > STATUS DEFAULT > > CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, I?ve > tested the connection with a .udl file on the server" > > PLUGIN "msplugin_mssql2008.dll" > > DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx > USING UNIQUE OBJECTID USING SRID=4269" > > NAME "States" > > TYPE POLYGON > > STATUS DEFAULT > > PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END > > LABELITEM "state" > > CLASS > > NAME "States" > > STYLE > > SYMBOL 0 > > WIDTH 2 OUTLINECOLOR 255 0 0 > > END > > LABEL TYPE truetype > > FONT arial > > PRIORITY 2 > > ALIGN center > > SIZE 10 > > COLOR 255 0 0 > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 2 > > MINDISTANCE 300 > > ANGLE AUTO > > WRAP "~" > > END > > END > > END > > END > > > > > > I have tested the SQL connection string with a .udl file on the server > and it is working. > > The out put of shp2img.exe looks like this? > > > > PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m > E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o E:\RCIS\Web\MapServer > > Dlls\MapServerTest\image1.png -all_debug 5 > > msLoadMap(): 0.000s > > msDrawMap(): rendering using outputformat named png8 (AGG/PNG8). > > msDrawMap(): WMS/WFS set-up and query, 0.000s > > msDrawMap(): Image handling error. Failed to draw layer named 'States'. > > msDrawMap(): Image handling error. Failed to draw layer named 'States'.
> > msFreeMap(): freeing map at 00000067B88C2DE0. > > > From Robert.Vogt at rcis.com Wed May 18 13:33:26 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Wed, 18 May 2016 20:33:26 +0000 Subject: [mapserver-users] Testing x64 MapServer In-Reply-To: References: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C651C34@PDEXCH10DB1.corp.rcis.com> I've changed the path to msplugin_mssql2008.dll to be an absolute path and verified that it's getting loaded But I'm still getting the error "Image handling error. Failed to draw layer" I'm not sure how to debug this going forward? Any help is appreciated!! Thanks! -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, May 18, 2016 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Testing x64 MapServer If I had to guess, it would be that you are not properly pointing to the full path to the MSSQL plugin: for example, see http://ms4w.com/README_INSTALL.html#microsoft-sql-server-2008 I am happy to hear that MS4W is doing so well for sharing your organization's spatial needs. Please feel free to help fund MS4W, to make sure that the MS4W product remains so innovative and reliable for your organization in the long term. You can contact me directly at any time to offer that help. Thank you, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-18 3:17 PM, Vogt, Robert (RCIS) wrote: > Good afternoon I?m trying to set up x64 MapServer on Windows 2012 server. > > > > I?ve been partially successful in that the MapServer dll?s are all there > but when I run my .map file through shp2img.exe > > > > The process is failing on a .map file that worked previously. > > > > This is what the map file looks like ? > > > > MAP > > NAME USA1 > > SYMBOLSET "e:\arcgisserver\basedata\symbols.txt" > > FONTSET "e:\arcgisserver\basedata\fonts.txt" > > STATUS ON > > IMAGETYPE PNG8 > > RESOLUTION 72 > > IMAGECOLOR 255 255 255 > > SHAPEPATH "e:\arcgisserver\basedata" > > UNITS METERS > > PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" > "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" > "datum=NAD83" END > > SIZE 1500 1500 > > EXTENT -45292.7219576058 780481.616003812 45290.5126012127 871065.05991903 > > LAYER > > STATUS DEFAULT > > CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, I?ve > tested the connection with a .udl file on the server" > > PLUGIN "msplugin_mssql2008.dll" > > DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx > USING UNIQUE OBJECTID USING SRID=4269" > > NAME "States" > > TYPE POLYGON > > STATUS DEFAULT > > PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END > > LABELITEM "state" > > CLASS > > NAME "States" > > STYLE > > SYMBOL 0 > > WIDTH 2 OUTLINECOLOR 255 0 0 > > END > > LABEL TYPE truetype > > FONT arial > > PRIORITY 2 > > ALIGN center > > SIZE 10 > > COLOR 255 0 0 > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 2 > > MINDISTANCE 300 > > ANGLE AUTO > > WRAP "~" > > END > > END > > END > > END > > > > > > I have tested the SQL connection string with a .udl file on the server > and it is working. > > The out put of shp2img.exe looks like this? > > > > PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m > E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o E:\RCIS\Web\MapServer > > Dlls\MapServerTest\image1.png -all_debug 5 > > msLoadMap(): 0.000s > > msDrawMap(): rendering using outputformat named png8 (AGG/PNG8). > > msDrawMap(): WMS/WFS set-up and query, 0.000s > > msDrawMap(): Image handling error. Failed to draw layer named 'States'. > > msDrawMap(): Image handling error. Failed to draw layer named 'States'.
> > msFreeMap(): freeing map at 00000067B88C2DE0. > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed May 18 15:35:22 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 18 May 2016 19:35:22 -0300 Subject: [mapserver-users] mapserver(ms4w) map script mode In-Reply-To: References: Message-ID: <7606f35c-5459-5fdd-b6fc-4e74c3829390@gatewaygeomatics.com> Hi Ankur, To be honest I don't fully understand your question. Are you referring to the "DEFRESOLUTION" parameter in the MAP object of the mapfile? If you are referring to how to set a user defined scale for a layer (the "MAXSCALEDENOM" parameter), I always use MapServer in CGI mode to get this value. I've added a (old) CGI viewer to download for MS4W users (http://www.ms4w.com/release/apps/cgi-viewer-ms4w.zip) - extract that to your MS4W root and restart Apache. For new MS4W users installing through the setup installer, the mapfile and all paths will be automatically updated. This simple CGI viewer will display MapServer's scale value as you zoom in; here is what it looks like: http://pasteboard.co/11y5aJzt.png It's not fancy but I actually still use it everyday! Here is how to set that in PHP mapscript: $oMap = ms_newMapObj( "path/to/mapfile.map"); $oLayer = $oMap->getLayerByName("mylayer"); $oLayer->set("maxscaledenom", 1000000); $oMap->save("path/to/mapfile.map"); -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-18 8:10 AM, ankur chitranshi wrote: > hello all, > > can any body help me out in how touser-define map scale manually in > mapserver(ms4w) map script mode > > -- > thanks & regards > Ankur Chitranshi > > From jmckenna at gatewaygeomatics.com Wed May 18 16:14:40 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 18 May 2016 20:14:40 -0300 Subject: [mapserver-users] MS4W and Oracle In-Reply-To: References: Message-ID: <218fdd55-2b8a-2998-9023-b2f2336f6ab7@gatewaygeomatics.com> Hi Ricardo, Can you test with a mapfile (not mapscript)? Then use the shp2img commandline utility to test your mapfile. In my Oracle instance, the default spatial column is named "ORA_GEOMETRY", so my DATA parameter in my mapfile layer looks like: DATA "ORA_GEOMETRY FROM (SELECT ORA_GEOMETRY FROM PARK)" You can also see the full SQL used by MapServer, through your shp2img command such as: shp2img -m oracle.map -o ttt.png -all_debug 3 Look for the lines around "msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data" in the response. Another alternative, is to check how GDAL/OGR sees your Oracle table. Follow the steps to configure your MS4W (step 3 at http://ms4w.com/README_INSTALL.html#oracle-10g-11g-12c), then try to connect through ogrinfo: ogrinfo -ro OCI:jeff/pass at tnsname LAYERNAME -summary I hope this gives you some ideas for your problem. Thanks for using MS4W, and hello from the east coast of Canada! :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-18 9:48 AM, Ricardo Queiroz wrote: > This is my first mail to this list, and sorry about english (not my > native language) > > I've a software with ms4w 1.3.4 and pgsql9.5 (and postgis 2.2.2) and > works fine, so i need to convert all the app to use oracle (client > request =/, i'm using oracle client 11.2.0.3.0). I follow the steps of > the ms4w installation and when write "mapserv -v" in console the > oraclespatian appears, so the next step was test the connection layer, > there's ok, when i change some parameters (to wrong) in the conn string > the connect fail, but here's the problem, when i set a data in the layer > (simple sql) allways return a error and i can't resolve this, don't know > if is some mapserver config or else. > > Basic example of layer (trying draw a point): > > $objLayer = ms_newLayerObj($objMap); > $objLayer ->set("name", "layer_oracle"); > $objLayer ->setConnectionType(MS_ORACLESPATIAL); > $objLayer ->set("connection", "user/pass at tnsName"); > $objLayer ->setProcessing("CLOSE_CONNECTION=DEFER"); > $objLayer ->set("type", MS_LAYER_POINT); > > $data = "THE_GEOM from (select PK_ID, NAME as LABELITEM, THE_GEOM > from user.TABLE_POINT) USING SRID 29193"; > $objLayer ->set("data", $data); unset($data); > > $objLayer ->set("labelitem", "LABELITEM"); > $objLayer ->set("template", "layer.html"); > $objLayer ->set("header", "layer.html"); > $objLayer ->set("footer", "layer.html"); > > $objClass= ms_newClassObj($objLayer ); > $objClass->set("name", "POINT"); > > $objStyle= ms_newStyleObj($objClass); > $objStyle->set("symbolname", "dot_purple"); > > $objLabel= new labelObj(); > $objLabel->color->setRGB(217, 242, 230); > $objLabel->outlinecolor->setRGB(0, 0, 0); > $objLabel->set("font", "luxi-bold"); > $objLabel->set("size", 9); > $objLabel->set("position", MS_UC); > $objLabel->set("partials", MS_TRUE); > $objLabel->set("mindistance",100); > $objLabel->set("buffer",4); > > $objClass->addLabel($objLabel); > $objLayer ->set("status", MS_ON); > > $objLayer ->free(); $objClass->free(); $objStyle->free(); > $objLabel->free(); > unset($objLayer); unset($objClass); unset($objStyle); unset($objLabel); > > > I get the error message: > > Warning: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to > draw layer named 'layer_oracle'. in... > Warning: mapObj::draw(): [MapServer Error]: > msOracleSpatialLayerWhichShapes(): Check your data statement and > server logs in... > > > When i change some var on set("connection") i get the error conn msg, so > i can connect, just can't draw the point > > Warning: mapObj::draw(): [MapServer Error]: > msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection > failure. Check your logs and the connection string. in > > > > The same example works fine when i change to postgis (using the same > table "structure"). > Oracle table and the record: > > CREATE TABLE TABLE_POINT > ( > PK_ID NUMBER, > NAME VARCHAR2(30 BYTE), > THE_GEOM SDO_GEOMETRY, > PRIMARY KEY (PK_ID) > ) > > insert into TABLE_POINT(PK_ID, NAME, THE_GEOM) values(1, 'Point > 1', MDSYS.SDO_GEOMETRY(2001,29193,MDSYS.SDO_POINT_TYPE(798062.7655190326,7459237.923282569,null),null,null)); > > > > Thanks, > > Ricardo Queiroz > > From ankuriimt at gmail.com Wed May 18 21:44:17 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Thu, 19 May 2016 10:14:17 +0530 Subject: [mapserver-users] mapserver(ms4w) map script mode Message-ID: Actually we required a map should be displayed at scale of 1:4000 ration . thanks in advanced On Thu, May 19, 2016 at 4:05 AM, Jeff McKenna wrote: > Hi Ankur, > > To be honest I don't fully understand your question. Are you referring to > the "DEFRESOLUTION" parameter in the MAP object of the mapfile? > > If you are referring to how to set a user defined scale for a layer (the > "MAXSCALEDENOM" parameter), I always use MapServer in CGI mode to get this > value. I've added a (old) CGI viewer to download for MS4W users ( > http://www.ms4w.com/release/apps/cgi-viewer-ms4w.zip) - extract that to > your MS4W root and restart Apache. For new MS4W users installing through > the setup installer, the mapfile and all paths will be automatically > updated. This simple CGI viewer will display MapServer's scale value as > you zoom in; here is what it looks like: http://pasteboard.co/11y5aJzt.png > It's not fancy but I actually still use it everyday! > > Here is how to set that in PHP mapscript: > > $oMap = ms_newMapObj( "path/to/mapfile.map"); > $oLayer = $oMap->getLayerByName("mylayer"); > $oLayer->set("maxscaledenom", 1000000); > $oMap->save("path/to/mapfile.map"); > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2016-05-18 8:10 AM, ankur chitranshi wrote: > >> hello all, >> >> can any body help me out in how touser-define map scale manually in >> mapserver(ms4w) map script mode >> >> -- >> thanks & regards >> Ankur Chitranshi >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Wed May 18 22:39:03 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Thu, 19 May 2016 11:09:03 +0530 Subject: [mapserver-users] how to define a scale in mapfile of mapscript mode in ms4w Message-ID: Hi All, we required a map should be dispalyed at scale of 1:4000 ration in mapserver(ms4w) in map file of mapscript mode can any body help me ??????????? thanks in advanced -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Wed May 18 23:17:06 2016 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 19 May 2016 10:47:06 +0430 Subject: [mapserver-users] ms4w 3.1.4 mapcache Message-ID: hello there i active mapcache in ms4w 3.1.4 with it's introduction and run successfully image in tmp folder , in example is openlayers2 but i'd like use mapcache ms4w via openlayers 3 and my code is below new ol.layer.Tile({ title: 'Chabahar', source: new ol.source.TileWMS({ url: ' http://localhost:100/cgi-bin/mapserv.exe?map=D:/WEB_GIS/code_test/wms/HTML5Application/public_html/chabahar.map& ', params: { 'LAYERS': 'chabahar', 'FORMAT': 'image/png', 'TILED': true }, serverType: 'mapserver' }) }) , but no image save in tmp directory do you have some offer? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Thu May 19 06:19:59 2016 From: wal3 at mindspring.com (Worth Lutz) Date: Thu, 19 May 2016 09:19:59 -0400 Subject: [mapserver-users] mapserver(ms4w) map script mode In-Reply-To: References: Message-ID: <573DBD7F.4080101@mindspring.com> Here is an extraction of some of my code. I get PDF maps to an accurate scale when printed. All steps are necessary and must be in the order described. $map = new mapObj($mapfile); $map->selectOutputFormat('PDF'); // defined in mapfile // set mapsize using pdfMapDef paper sizes // $map->resolution defaults to 72 pixels/inch $w = $width_inches * $map->resolution; $h = $height_inches * $map->resolution; $map->setSize($w, $h); //in pixels // set to actual sizes set by 'setSize' $w = $map->width; $h = $map->height; $map->setExtent($bounds[0], $bounds[1], $bounds[2], $bounds[3]); // calculate center point in pixels // this center will not be very accurate as it is a pixel value?? $x = $w * ($center->x - $map->extent->minx) / ($map->extent->maxx - $map->extent->minx); $y = $h - ($h * ($center->y - $map->extent->miny) / ($map->extent->maxy - $map->extent->miny)); $center_pixel = new pointObj(); $center_pixel->setXY($x, $y); // this zooms the map to scale given in $scaleDemon // but the center value is not accurate enough for small scale maps $scaleDenom = 4000; $success = $map->zoomScale($scaleDenom, $center_pixel, $w, $h, $map->extent); if ($success == MS_FAILURE) echo "\n FAILURE OF zoomScale"; // set the desired center in map units to get a better map $x_mapunits = ; $y_mapunits = ; // here setCenter will set the center point of the map based upon // the center value in map units not pixels $center_mapunits = new pointObj(); $center_mapunits->setXY($x_mapunits, $y_mapunits); $success = $map->setCenter($center_mapunits); if ($success == MS_FAILURE) echo "\n FAILURE OF setCenter"; // ** turn on desired layers here ** $img = $map->draw(); $outfile = $img->saveWebimage(); *Worth Lutz* On 05/18/2016 07:10 AM, ankur chitranshi wrote: > hello all, > > can any body help me out in how touser-define map scale manually in > mapserver(ms4w) map script mode > > -- > thanks & regards > Ankur Chitranshi > > > _______________________________________________ > 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 miladnidal2604 at gmail.com Thu May 19 10:01:35 2016 From: miladnidal2604 at gmail.com (milad nidal) Date: Thu, 19 May 2016 13:01:35 -0400 Subject: [mapserver-users] Problem with label offset Message-ID: Hi, I have updated Mapserver to version 7 on linux. I started to have a problem with label offset. I do not know if somebody else has the same problem with offset LABEL COLOR 0 0 0 ANGLE FOLLOW FONT "arial" TYPE truetype POSITION CC # same error with AUTO SIZE 7 BUFFER 5 OFFSET 4 99 END I got internal server error.. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 19 13:40:05 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 19 May 2016 17:40:05 -0300 Subject: [mapserver-users] ms4w 3.1.4 mapcache In-Reply-To: References: Message-ID: <8b7fb693-4d2b-fdec-8f13-fce2a2a9d1bf@gatewaygeomatics.com> Hello Hosain, This was a very good question. I used your question, configured an example, and added a wiki page for how to configure MS4W and MapCache in OpenLayers 3 with my steps: http://www.ms4w.com/trac/wiki/MapCacheOpenLayers3 You will notice the importance of configuring your properly for this WMS service in your mapcache.xml file; and also pointing to the proper MapCache endpoint (/mapcache/) in your OpenLayers3 script. Please (everyone) feel free to edit this wiki page with corrections, notes, gotchyas, ideas, everything :) Thanks for using MS4W. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-19 3:17 AM, hosain mohammadi wrote: > hello there > i active mapcache in ms4w 3.1.4 with it's introduction > and run successfully image in tmp folder , in example is openlayers2 > > but i'd like use mapcache ms4w via openlayers 3 and my code is below > > new ol.layer.Tile({ > title: 'Chabahar', > source: new ol.source.TileWMS({ > url: > 'http://localhost:100/cgi-bin/mapserv.exe?map=D:/WEB_GIS/code_test/wms/HTML5Application/public_html/chabahar.map&', > params: { > 'LAYERS': 'chabahar', > 'FORMAT': 'image/png', > 'TILED': true > }, > serverType: 'mapserver' > }) > }) , > > > but no image save in tmp directory > > do you have some offer? > > thanks > > From jenia.ivlev at gmail.com Thu May 19 18:33:54 2016 From: jenia.ivlev at gmail.com (jenia mtl) Date: Thu, 19 May 2016 21:33:54 -0400 Subject: [mapserver-users] How to use tiles input Message-ID: Hello. Finally I subscribed and sent the message to the right group. Fewwww. Here goes my question: I have installed Mapserver on my arch machine Reading the docs, I want to ask a quick question: why is the "tiles" component (Anatomy of a MapServer App) the input? Isn't the tiles what this program outputs? Like isn't the output of this program fed as input to OpenLayers or Leafet for example? Also, where do I get the tiles? Is it OpenStreetMaps? And finally, can the tiles be something I draw myself? And how do I organized them? For example, I might want to have 100 tiles that represent the earth at resolution 10. How do I name or generally organize the 100 tiles so that when I ask for the tile "POINT (73.45 45.00)" for example, it gets the correct file and so on? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu May 19 18:56:51 2016 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 19 May 2016 21:56:51 -0400 Subject: [mapserver-users] How to use tiles input In-Reply-To: References: Message-ID: <4928f32c-4b23-652a-54f7-58cfe28d0310@swoodbridge.com> On 5/19/2016 9:33 PM, jenia mtl wrote: > Hello. > > Finally I subscribed and sent the message to the right group. Fewwww. > > Here goes my question: > > I have installed Mapserver on my arch machine > > Reading the docs, I want to ask a quick question: why is the "tiles" > component (Anatomy of a MapServer App) the input? > Isn't the tiles what this program outputs? Like isn't the output of this > program fed as input to OpenLayers or Leafet for example? > > > Also, where do I get the tiles? Is it OpenStreetMaps? > > And finally, can the tiles be something I draw myself? And how do I > organized them? For example, I might want to have 100 tiles that > represent the earth at resolution 10. How do I name or generally > organize the 100 tiles so that when I ask for the tile "POINT (73.45 > 45.00)" for example, it gets the correct file and so on? > > Thanks in advance. So things are organized like this: mapcache is a tile caching server it takes requests from a client like Openlayers or Leaflet and checks to see if it has a cached tile and serves or it calls a rendering engine like mapserver to generate the tiles and caches them. mapserver is a map rendering engine, it reads a mapfile that you create with styling information and it reads gis data from various sources based on the mapfile and renders an image. You can configure OpenLayers or Leaflet to request images from either mapcache, or mapserver or other services like an OSM tileservice, or other third party services. google for tutorials on how to set any of these up. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From Robert.Sanson at asurequality.com Thu May 19 19:22:58 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Fri, 20 May 2016 02:22:58 +0000 Subject: [mapserver-users] How to use tiles input In-Reply-To: References: Message-ID: <862fafe626a94f8baeebf1e06427f219@OPASAKLPMBX01.nz01a.opaas.net.nz> I don't see a reference to the "tiles" component on: http://mapserver.org/introduction.html#anatomy-of-a-mapserver-application Mapserver can take many forms of data as input (Shapefiles, rasters, other WMS etc). If you have many rasters as inputs, you can create a Shapefile index of their extents using gdaltindex utility, and reference this shapefile as the input layer. Regards, Robert From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jenia mtl Sent: Friday, 20 May 2016 1:34 p.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to use tiles input Hello. Finally I subscribed and sent the message to the right group. Fewwww. Here goes my question: I have installed Mapserver on my arch machine Reading the docs, I want to ask a quick question: why is the "tiles" component (Anatomy of a MapServer App) the input? Isn't the tiles what this program outputs? Like isn't the output of this program fed as input to OpenLayers or Leafet for example? Also, where do I get the tiles? Is it OpenStreetMaps? And finally, can the tiles be something I draw myself? And how do I organized them? For example, I might want to have 100 tiles that represent the earth at resolution 10. How do I name or generally organize the 100 tiles so that when I ask for the tile "POINT (73.45 45.00)" for example, it gets the correct file and so on? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankurgis009 at gmail.com Thu May 19 22:26:23 2016 From: ankurgis009 at gmail.com (Ankur Kumar) Date: Fri, 20 May 2016 10:56:23 +0530 Subject: [mapserver-users] define a scale in mapfile in mapscript mode Message-ID: hello All, How to define a scale in mapfile in mapscript mode. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankurgis009 at gmail.com Thu May 19 23:03:33 2016 From: ankurgis009 at gmail.com (Ankur Kumar) Date: Fri, 20 May 2016 11:33:33 +0530 Subject: [mapserver-users] how to define a layers display in mapfile (mapscript) Message-ID: hello All, How to define a layer display scale in mapfile in mapscript mode. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankurgis009 at gmail.com Thu May 19 23:05:02 2016 From: ankurgis009 at gmail.com (Ankur Kumar) Date: Fri, 20 May 2016 11:35:02 +0530 Subject: [mapserver-users] how to define a layers size display in mapfile (mapscript) Message-ID: hello All, ignore previous mail How to define a layer display scale in mapfile in mapscript mode. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Fri May 20 00:05:28 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Fri, 20 May 2016 12:35:28 +0530 Subject: [mapserver-users] define a layers size display in mapfile (mapscript) how??? Message-ID: hello All, How to define a layer display scale in mapfile in mapscript mode. -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri May 20 05:16:39 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 20 May 2016 12:16:39 +0000 Subject: [mapserver-users] define a layers size display in mapfile (mapscript) how??? In-Reply-To: References: Message-ID: Should be something like (e.g. in perl): $layer->{minscaledenom} = 50000; $layer->{maxcaledenom} = 150000; Steve ________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of ankur chitranshi [ankuriimt at gmail.com] Sent: Friday, May 20, 2016 2:05 AM To: mapserver-users Subject: [mapserver-users] define a layers size display in mapfile (mapscript) how??? hello All, How to define a layer display scale in mapfile in mapscript mode. -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri May 20 05:28:45 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 May 2016 09:28:45 -0300 Subject: [mapserver-users] How to use tiles input In-Reply-To: References: Message-ID: Hello, Your timing is impeccable: if you are wondering how to serve tiles through MapServer and MapCache and visible through OpenLayers3, yesterday I wrote a tutorial on specific steps, with example mapfiles and Javascript, for MS4W (Windows) users. There is likely very useful files there for you, if you're the type of person (like me) who prefers to start with something that works and modify it for your own data. And, it's a wiki, so you can also add/modify the steps yourself :) http://www.ms4w.com/trac/wiki/MapCacheOpenLayers3 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-19 10:33 PM, jenia mtl wrote: > Hello. > > Finally I subscribed and sent the message to the right group. Fewwww. > > Here goes my question: > > I have installed Mapserver on my arch machine > > Reading the docs, I want to ask a quick question: why is the "tiles" > component (Anatomy of a MapServer App) the input? > Isn't the tiles what this program outputs? Like isn't the output of this > program fed as input to OpenLayers or Leafet for example? > > > Also, where do I get the tiles? Is it OpenStreetMaps? > > And finally, can the tiles be something I draw myself? And how do I > organized them? For example, I might want to have 100 tiles that > represent the earth at resolution 10. How do I name or generally > organize the 100 tiles so that when I ask for the tile "POINT (73.45 > 45.00)" for example, it gets the correct file and so on? > > Thanks in advance. > > From wal3 at mindspring.com Fri May 20 06:40:19 2016 From: wal3 at mindspring.com (Worth Lutz) Date: Fri, 20 May 2016 09:40:19 -0400 Subject: [mapserver-users] define a layers size display in mapfile (mapscript) how??? In-Reply-To: References: Message-ID: <8ee091b6-d1b3-e9f6-80b0-984554a7609a@mindspring.com> I answered this before on this list. Here is an extraction of some of my code. I get PDF maps to an accurate scale when printed. All steps are necessary and must be in the order described. $map = new mapObj($mapfile); $map->selectOutputFormat('PDF'); // defined in mapfile // set mapsize using pdfMapDef paper sizes // $map->resolution defaults to 72 pixels/inch $w = $width_inches * $map->resolution; $h = $height_inches * $map->resolution; $map->setSize($w, $h); //in pixels // set to actual sizes set by 'setSize' $w = $map->width; $h = $map->height; $map->setExtent($bounds[0], $bounds[1], $bounds[2], $bounds[3]); // calculate center point in pixels // this center will not be very accurate as it is a pixel value?? $x = $w * ($center->x - $map->extent->minx) / ($map->extent->maxx - $map->extent->minx); $y = $h - ($h * ($center->y - $map->extent->miny) / ($map->extent->maxy - $map->extent->miny)); $center_pixel = new pointObj(); $center_pixel->setXY($x, $y); // this zooms the map to scale given in $scaleDemon // but the center value is not accurate enough for small scale maps $scaleDenom = 4000; $success = $map->zoomScale($scaleDenom, $center_pixel, $w, $h, $map->extent); if ($success == MS_FAILURE) echo "\n FAILURE OF zoomScale"; // set the desired center in map units to get a better map $x_mapunits = ; $y_mapunits = ; // here setCenter will set the center point of the map based upon // the center value in map units not pixels $center_mapunits = new pointObj(); $center_mapunits->setXY($x_mapunits, $y_mapunits); $success = $map->setCenter($center_mapunits); if ($success == MS_FAILURE) echo "\n FAILURE OF setCenter"; // ** turn on desired layers here ** $img = $map->draw(); $outfile = $img->saveWebimage(); * * *Worth Lutz* On 5/20/2016 3:05 AM, ankur chitranshi wrote: > hello All, > > > How to define a layer display scale in mapfile in mapscript mode. > > -- > thanks & regards > Ankur Chitranshi > > > _______________________________________________ > 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 Fri May 20 06:51:13 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 May 2016 10:51:13 -0300 Subject: [mapserver-users] define a layers size display in mapfile (mapscript) how??? In-Reply-To: <8ee091b6-d1b3-e9f6-80b0-984554a7609a@mindspring.com> References: <8ee091b6-d1b3-e9f6-80b0-984554a7609a@mindspring.com> Message-ID: Hi Worth, how about adding your code onto a new wiki page, so it isn't lost and forgotten? Maybe add a page in the "Tricks, Tips, and HowTos" section at: https://github.com/mapserver/mapserver/wiki Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-20 10:40 AM, Worth Lutz wrote: > I answered this before on this list. > > Here is an extraction of some of my code. I get PDF maps to an accurate > scale when printed. > > All steps are necessary and must be in the order described. > > $map = new mapObj($mapfile); > > $map->selectOutputFormat('PDF'); // defined in mapfile > > // set mapsize using pdfMapDef paper sizes > // $map->resolution defaults to 72 pixels/inch > $w = $width_inches * $map->resolution; > $h = $height_inches * $map->resolution; > $map->setSize($w, $h); //in pixels > > // set to actual sizes set by 'setSize' > $w = $map->width; > $h = $map->height; > > $map->setExtent($bounds[0], $bounds[1], $bounds[2], $bounds[3]); > > // calculate center point in pixels > // this center will not be very accurate as it is a pixel value?? > $x = $w * ($center->x - $map->extent->minx) / ($map->extent->maxx - > $map->extent->minx); > $y = $h - ($h * ($center->y - $map->extent->miny) / > ($map->extent->maxy - $map->extent->miny)); > > $center_pixel = new pointObj(); > $center_pixel->setXY($x, $y); > > // this zooms the map to scale given in $scaleDemon > // but the center value is not accurate enough for small scale maps > $scaleDenom = 4000; > $success = $map->zoomScale($scaleDenom, $center_pixel, $w, $h, > $map->extent); > > if ($success == MS_FAILURE) echo "\n FAILURE OF zoomScale"; > > > // set the desired center in map units to get a better map > $x_mapunits = ; > $y_mapunits = ; > > // here setCenter will set the center point of the map based upon > // the center value in map units not pixels > $center_mapunits = new pointObj(); > $center_mapunits->setXY($x_mapunits, $y_mapunits); > $success = $map->setCenter($center_mapunits); > > if ($success == MS_FAILURE) echo "\n FAILURE OF setCenter"; > > // ** turn on desired layers here ** > > $img = $map->draw(); > $outfile = $img->saveWebimage(); > * > * > *Worth Lutz* > From wal3 at mindspring.com Fri May 20 07:00:46 2016 From: wal3 at mindspring.com (Worth Lutz) Date: Fri, 20 May 2016 10:00:46 -0400 Subject: [mapserver-users] define a layers size display in mapfile (mapscript) how??? In-Reply-To: References: <8ee091b6-d1b3-e9f6-80b0-984554a7609a@mindspring.com> Message-ID: <60ca5fc1-c743-3ced-b697-18018f054746@mindspring.com> Hi Jeff, That is a good idea. I'll try to add it in there. *Worth Lutz* On 5/20/2016 9:51 AM, Jeff McKenna wrote: > Hi Worth, how about adding your code onto a new wiki page, so it isn't > lost and forgotten? Maybe add a page in the "Tricks, Tips, and > HowTos" section at: https://github.com/mapserver/mapserver/wiki > > Thanks, > > -jeff > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frippe12573 at hotmail.com Fri May 20 07:05:31 2016 From: frippe12573 at hotmail.com (Eugenio Trumpy) Date: Fri, 20 May 2016 16:05:31 +0200 Subject: [mapserver-users] mapserver basemap Message-ID: Hello all, I would like to insert a modern basemap on a running mapserver project. Currently I set a mapfile including about 15 layers and a raster tif file representing the hillshade of the study area, as basemap. My aim is to substitute the running base map with something more dynamic as well as with higher resolution and at the same time not heavy to slow down the service. These basemap aspects are new for me, I found documentation but not so clear for me, I need something easy. What can you suggest me? Is it an hard stuff? or can I handle it? I think I could have at least 2 possibilities: to insert a WMS global layer, (and in case can you suggest me a nice service?), or set up something like tiles service (like OSM), in case how?? Thank you in advance, E. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Fri May 20 07:57:55 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Fri, 20 May 2016 14:57:55 +0000 Subject: [mapserver-users] Testing x64 MapServer In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C651C34@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> <1491EB4E1D75164E940399B1F62D23CE5C651C34@PDEXCH10DB1.corp.rcis.com> Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C652E29@PDEXCH10DB1.corp.rcis.com> Good morning all, I'm trying to set Mapserver up in a x64 environment and test a map file that previously worked with shp2img Shp2img crashes with an error saying it can't draw the layer...when I put a process monitor on it I notice this path in Operation CreateFile with A Result of NAME INVALID...does anyone know where this path may be coming from? E:\uildselease-1800-x64inprojSHARE\proj_def.dat All help is greatly appreciated!! -Bob -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Wednesday, May 18, 2016 4:33 PM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Testing x64 MapServer I've changed the path to msplugin_mssql2008.dll to be an absolute path and verified that it's getting loaded But I'm still getting the error "Image handling error. Failed to draw layer" I'm not sure how to debug this going forward? Any help is appreciated!! Thanks! -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, May 18, 2016 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Testing x64 MapServer If I had to guess, it would be that you are not properly pointing to the full path to the MSSQL plugin: for example, see http://ms4w.com/README_INSTALL.html#microsoft-sql-server-2008 I am happy to hear that MS4W is doing so well for sharing your organization's spatial needs. Please feel free to help fund MS4W, to make sure that the MS4W product remains so innovative and reliable for your organization in the long term. You can contact me directly at any time to offer that help. Thank you, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-18 3:17 PM, Vogt, Robert (RCIS) wrote: > Good afternoon I?m trying to set up x64 MapServer on Windows 2012 server. > > > > I?ve been partially successful in that the MapServer dll?s are all > there but when I run my .map file through shp2img.exe > > > > The process is failing on a .map file that worked previously. > > > > This is what the map file looks like ? > > > > MAP > > NAME USA1 > > SYMBOLSET "e:\arcgisserver\basedata\symbols.txt" > > FONTSET "e:\arcgisserver\basedata\fonts.txt" > > STATUS ON > > IMAGETYPE PNG8 > > RESOLUTION 72 > > IMAGECOLOR 255 255 255 > > SHAPEPATH "e:\arcgisserver\basedata" > > UNITS METERS > > PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" > "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" > "datum=NAD83" END > > SIZE 1500 1500 > > EXTENT -45292.7219576058 780481.616003812 45290.5126012127 > 871065.05991903 > > LAYER > > STATUS DEFAULT > > CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, > I?ve tested the connection with a .udl file on the server" > > PLUGIN "msplugin_mssql2008.dll" > > DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx > USING UNIQUE OBJECTID USING SRID=4269" > > NAME "States" > > TYPE POLYGON > > STATUS DEFAULT > > PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" > END > > LABELITEM "state" > > CLASS > > NAME "States" > > STYLE > > SYMBOL 0 > > WIDTH 2 OUTLINECOLOR 255 0 0 > > END > > LABEL TYPE truetype > > FONT arial > > PRIORITY 2 > > ALIGN center > > SIZE 10 > > COLOR 255 0 0 > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 2 > > MINDISTANCE 300 > > ANGLE AUTO > > WRAP "~" > > END > > END > > END > > END > > > > > > I have tested the SQL connection string with a .udl file on the server > and it is working. > > The out put of shp2img.exe looks like this? > > > > PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m > E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o > E:\RCIS\Web\MapServer > > Dlls\MapServerTest\image1.png -all_debug 5 > > msLoadMap(): 0.000s > > msDrawMap(): rendering using outputformat named png8 (AGG/PNG8). > > msDrawMap(): WMS/WFS set-up and query, 0.000s > > msDrawMap(): Image handling error. Failed to draw layer named 'States'. > > msDrawMap(): Image handling error. Failed to draw layer named > 'States'.
> > msFreeMap(): freeing map at 00000067B88C2DE0. > > > _______________________________________________ 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 geographika at gmail.com Sun May 22 03:57:18 2016 From: geographika at gmail.com (Seth G) Date: Sun, 22 May 2016 12:57:18 +0200 Subject: [mapserver-users] Testing x64 MapServer In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C652E29@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> <1491EB4E1D75164E940399B1F62D23CE5C651C34@PDEXCH10DB1.corp.rcis.com> <1491EB4E1D75164E940399B1F62D23CE5C652E29@PDEXCH10DB1.corp.rcis.com> Message-ID: <6d793a33-74e8-85c8-982f-7cf5770a3f01@gmail.com> Hi, It looks like a Windows path with single backslashes is being interpreted as having escape characters. Any \b and \r in the path are being replaced. E:\uildselease-1800-x64inprojSHARE\proj_def.dat comes from E:\Builds\release-1800-x64\bin\proj\SHARE\proj_def.dat Is this path anywhere in your config, or in your Windows Environment settings? Probably CONFIG "PROJ_LIB" Try doubling the backslashes or using forward slashes in the path to resolve it. Regards, Seth On 20/05/2016 16:57, Vogt, Robert (RCIS) wrote: > Good morning all, I'm trying to set Mapserver up in a x64 environment and test a map file that previously worked with shp2img > > Shp2img crashes with an error saying it can't draw the layer...when I put a process monitor on it I notice this path in Operation CreateFile with > A Result of NAME INVALID...does anyone know where this path may be coming from? > > E:\uildselease-1800-x64inprojSHARE\proj_def.dat > > > > All help is greatly appreciated!! > -Bob > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) > Sent: Wednesday, May 18, 2016 4:33 PM > To: Jeff McKenna; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Testing x64 MapServer > > I've changed the path to msplugin_mssql2008.dll to be an absolute path and verified that it's getting loaded > > But I'm still getting the error "Image handling error. Failed to draw layer" > > I'm not sure how to debug this going forward? Any help is appreciated!! > > Thanks! > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Wednesday, May 18, 2016 2:36 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Testing x64 MapServer > > If I had to guess, it would be that you are not properly pointing to the full path to the MSSQL plugin: for example, see > http://ms4w.com/README_INSTALL.html#microsoft-sql-server-2008 > > I am happy to hear that MS4W is doing so well for sharing your organization's spatial needs. Please feel free to help fund MS4W, to make sure that the MS4W product remains so innovative and reliable for your organization in the long term. You can contact me directly at any time to offer that help. Thank you, > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ > > > > > On 2016-05-18 3:17 PM, Vogt, Robert (RCIS) wrote: >> Good afternoon I?m trying to set up x64 MapServer on Windows 2012 server. >> >> >> >> I?ve been partially successful in that the MapServer dll?s are all >> there but when I run my .map file through shp2img.exe >> >> >> >> The process is failing on a .map file that worked previously. >> >> >> >> This is what the map file looks like ? >> >> >> >> MAP >> >> NAME USA1 >> >> SYMBOLSET "e:\arcgisserver\basedata\symbols.txt" >> >> FONTSET "e:\arcgisserver\basedata\fonts.txt" >> >> STATUS ON >> >> IMAGETYPE PNG8 >> >> RESOLUTION 72 >> >> IMAGECOLOR 255 255 255 >> >> SHAPEPATH "e:\arcgisserver\basedata" >> >> UNITS METERS >> >> PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" >> "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" >> "datum=NAD83" END >> >> SIZE 1500 1500 >> >> EXTENT -45292.7219576058 780481.616003812 45290.5126012127 >> 871065.05991903 >> >> LAYER >> >> STATUS DEFAULT >> >> CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, >> I?ve tested the connection with a .udl file on the server" >> >> PLUGIN "msplugin_mssql2008.dll" >> >> DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx >> USING UNIQUE OBJECTID USING SRID=4269" >> >> NAME "States" >> >> TYPE POLYGON >> >> STATUS DEFAULT >> >> PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" >> END >> >> LABELITEM "state" >> >> CLASS >> >> NAME "States" >> >> STYLE >> >> SYMBOL 0 >> >> WIDTH 2 OUTLINECOLOR 255 0 0 >> >> END >> >> LABEL TYPE truetype >> >> FONT arial >> >> PRIORITY 2 >> >> ALIGN center >> >> SIZE 10 >> >> COLOR 255 0 0 >> >> OUTLINECOLOR 255 255 255 >> >> OUTLINEWIDTH 2 >> >> MINDISTANCE 300 >> >> ANGLE AUTO >> >> WRAP "~" >> >> END >> >> END >> >> END >> >> END >> >> >> >> >> >> I have tested the SQL connection string with a .udl file on the server >> and it is working. >> >> The out put of shp2img.exe looks like this? >> >> >> >> PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m >> E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o >> E:\RCIS\Web\MapServer >> >> Dlls\MapServerTest\image1.png -all_debug 5 >> >> msLoadMap(): 0.000s >> >> msDrawMap(): rendering using outputformat named png8 (AGG/PNG8). >> >> msDrawMap(): WMS/WFS set-up and query, 0.000s >> >> msDrawMap(): Image handling error. Failed to draw layer named 'States'. >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'States'.
>> >> msFreeMap(): freeing map at 00000067B88C2DE0. >> >> >> > > _______________________________________________ > 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 yves.jacolin at camptocamp.com Mon May 23 02:25:44 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Mon, 23 May 2016 11:25:44 +0200 Subject: [mapserver-users] mapserver basemap In-Reply-To: References: Message-ID: <2218241.1deNEpkly1@tatras> On Friday, May 20, 2016 16:05:31 Eugenio Trumpy wrote: > Hello all, > > I would like to insert a modern basemap on a running mapserver project. > Currently I set a mapfile including about 15 layers and a raster tif file > representing the hillshade of the study area, as basemap. > My aim is to substitute the running base map with something more dynamic as > well as with higher resolution and at the same time not heavy to slow down > the service. These basemap aspects are new for me, I found documentation > but not so clear for me, I need something easy. What can you suggest me? Is > it an hard stuff? or can I handle it? I think I could have at least 2 > possibilities: to insert a WMS global layer, (and in case can you suggest > me a nice service?), or set up something like tiles service (like OSM), in > case how?? > > Thank you in advance, > Eugenio, Did you try the basemaps project? https://github.com/mapserver/basemaps/ Doc is here: https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04 Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From jmckenna at gatewaygeomatics.com Mon May 23 03:34:34 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 May 2016 07:34:34 -0300 Subject: [mapserver-users] mapserver basemap In-Reply-To: <2218241.1deNEpkly1@tatras> References: <2218241.1deNEpkly1@tatras> Message-ID: <59c2b117-3248-88dd-cb44-d555393dee64@gatewaygeomatics.com> On 2016-05-23 6:25 AM, Yves Jacolin wrote: > On Friday, May 20, 2016 16:05:31 Eugenio Trumpy wrote: >> Hello all, >> >> I would like to insert a modern basemap on a running mapserver project. >> Currently I set a mapfile including about 15 layers and a raster tif file >> representing the hillshade of the study area, as basemap. >> My aim is to substitute the running base map with something more dynamic as >> well as with higher resolution and at the same time not heavy to slow down >> the service. These basemap aspects are new for me, I found documentation >> but not so clear for me, I need something easy. What can you suggest me? Is >> it an hard stuff? or can I handle it? I think I could have at least 2 >> possibilities: to insert a WMS global layer, (and in case can you suggest >> me a nice service?), or set up something like tiles service (like OSM), in >> case how?? >> >> Thank you in advance, >> > Eugenio, > > Did you try the basemaps project? > > https://github.com/mapserver/basemaps/ > > Doc is here: https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04 > The equivalent page for Windows users is: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows Note that if you choose to go down this path with Basemaps, please feel free to edit these wiki pages with your updates, notes, changes. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Robert.Vogt at rcis.com Mon May 23 10:54:58 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Mon, 23 May 2016 17:54:58 +0000 Subject: [mapserver-users] Mapserver WMS Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C657479@PDEXCH10DB1.corp.rcis.com> Does anyone know of a good current guide for setting up a MapServer WMS...I've looked on mapserver.org and there is some information but it also includes broken paths in the instructions for testing. Any help is greatly appreciated. -Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon May 23 11:54:29 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 May 2016 18:54:29 +0000 Subject: [mapserver-users] Mapserver WMS Message-ID: <917f01b2022942128befb51b551d5940@C119S212VM022.msvyvi.vaha.local> Hi, There is a very good initial at http://gislars.github.io/mapserver_docs/tutorial/index.html#tutorials-for-mapserver-6. Minimal but complete mapfile http://gislars.github.io/mapserver_docs/tutorial/quickstart/single_layer.map.html#qs-single-layer-map works with Natural Earth data. The Sample WMS Server Mapfile at http://mapserver.org/ogc/wms_server.html is good but I do not know where the "park" shapefile for DATA can be acquired. I am not sure how much WMS/WFS/WCS is included in the MS4W packages http://www.ms4w.com/download.html. Unfortunately we do not have default demo data and mapfiles which installs with Mapserver and just works like Geoserver does. -Jukka Rahkonen- Vogt, Robert (RCIS) wrote: Does anyone know of a good current guide for setting up a MapServer WMS...I've looked on mapserver.org and there is some information but it also includes broken paths in the instructions for testing. Any help is greatly appreciated. -Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon May 23 11:55:45 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 May 2016 15:55:45 -0300 Subject: [mapserver-users] Mapserver WMS In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C657479@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C657479@PDEXCH10DB1.corp.rcis.com> Message-ID: Hello, Here are some tips for you for WMS; - follow the WMS Server howto: http://mapserver.org/ogc/wms_server.html - if you are an MS4W user, it comes with an OGC workshop package that contains many WMS/WFS/OGC mapfiles: see packages at http://ms4w.com/download.html - if you are an MS4W user, and wish to see a MapServer WMS through OpenLayers 3, MS4W comes with an OpenLayers3 package with a working mapfile: see packages at http://ms4w.com/download.html Remember: be gracious, be positive, and give back to the FOSS4G community. If you notice something that needs fixing, file a ticket, or issue a pull request with your fix. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-23 2:54 PM, Vogt, Robert (RCIS) wrote: > Does anyone know of a good current guide for setting up a MapServer > WMS?I?ve looked on mapserver.org > > and there is some information but it also includes broken paths in the > instructions for testing. > > > > Any help is greatly appreciated. > > -Bob > From jmckenna at gatewaygeomatics.com Mon May 23 12:03:24 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 May 2016 16:03:24 -0300 Subject: [mapserver-users] Mapserver WMS In-Reply-To: <917f01b2022942128befb51b551d5940@C119S212VM022.msvyvi.vaha.local> References: <917f01b2022942128befb51b551d5940@C119S212VM022.msvyvi.vaha.local> Message-ID: On 2016-05-23 3:54 PM, Rahkonen Jukka (MML) wrote: > > I am not sure how much WMS/WFS/WCS is included in the MS4W packages > http://www.ms4w.com/download.html. > > > > Unfortunately we do not have default demo data and mapfiles which > installs with Mapserver and just works like Geoserver does. > > > Hi Jukka, For fun this past Friday I checked how many working mapfiles are included in MS4W (with MapServer 7.0.1): 63 in total. Yup, 63. That includes WMS, WFS, WCS, SOS, OpenLayers3 mapfile, and tons of demo data. For MS4W users installing through the setup.exe, all mapfiles and paths are updated for their custom installation path. If you ever notice a path issue in a mapfile please let me know, or you can also file a ticket in MS4W's tracker: http://ms4w.com/trac/ Thanks for mentioning MS4W. Talk soon, -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jukka.rahkonen at maanmittauslaitos.fi Mon May 23 12:12:50 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 May 2016 19:12:50 +0000 Subject: [mapserver-users] Mapserver WMS Message-ID: <274f15d78bf9404a94df2ef4fac8d7ba@C119S212VM022.msvyvi.vaha.local> Jeff McKenna wrote: On 2016-05-23 3:54 PM, Rahkonen Jukka (MML) wrote: >> >> I am not sure how much WMS/WFS/WCS is included in the MS4W packages >> http://www.ms4w.com/download.html. >> >> >> >> Unfortunately we do not have default demo data and mapfiles which >> installs with Mapserver and just works like Geoserver does. >> >> >> > Hi Jukka, > For fun this past Friday I checked how many working mapfiles are included in MS4W (with MapServer 7.0.1): 63 in total. Yup, 63. That includes WMS, WFS, WCS, SOS, OpenLayers3 mapfile, and tons of demo data. > For MS4W users installing through the setup.exe, all mapfiles and paths are updated for their custom installation path. Setup.exe, never heard :). I just unzip and run as I have been doing for exactly 10 years now. I need to try the exe someday. > If you ever notice a path issue in a mapfile please let me know, or you can also file a ticket in MS4W's tracker: http://ms4w.com/trac/ I will. > Thanks for mentioning MS4W. > Talk soon, -Jukka- -- > Jeff McKenna > MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Robert.Vogt at rcis.com Tue May 24 05:41:17 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Tue, 24 May 2016 12:41:17 +0000 Subject: [mapserver-users] Mapserver WMS In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C657479@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C657479@PDEXCH10DB1.corp.rcis.com> Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C6586AB@PDEXCH10DB1.corp.rcis.com> Good morning, I believe that I almost have MapServer working!! I am getting tiles back for my map and they are all status 200 which is great!! :) However there are no images which is not :( I believe that I have traced the problem on the server to a path... E:\rcis\web\MapServerDlls\uildselease-1800-x64inprojSHARE\proj_def.dat Which is coming back as "Name Invalid"...I have no idea how this path gets built or how to correct it... Any help is greatly appreciated!! bobv -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at geo6.be Thu May 26 06:24:28 2016 From: support at geo6.be (Geo-6) Date: Thu, 26 May 2016 15:24:28 +0200 Subject: [mapserver-users] WFS output for WMS GetFeatureInfo request Message-ID: Hi everyone, I'm struggling for WMS GetFeatureInfo from my OpenLayers application on a Mapserver WMS service (hosted by myself). My goal is to do : 1. a GetCapabilities to know which layers are in my WMS Service (there are layer group); 2. a GetFeatureInfo when I click on the map to know which objects are located where I click; When I do a GetFeatureInfo, it works well with the GML output but I can't get layer name in OpenLayers using ol.format.WMSGetFeatureInfo().readFeatures(). (I contact OL mailing list to know if it is possible). So I think about another solution : to use the feature id WFS style ("layername"."objectid"). Is it possible in the MapFile to set this feature id with GML output ? Or is it possible to return a WFS output for a WMS GetFeatureInfo request ? And how do I do i ? Thanks for your help or any tips. Have a great day. -- Jonathan Beli?n Geo-6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From reuven at levitt.net Sat May 28 10:37:56 2016 From: reuven at levitt.net (Daniel Levitt) Date: Sat, 28 May 2016 20:37:56 +0300 Subject: [mapserver-users] great stuff for you Message-ID: <0000caf2cf94$a2a7e7d7$a1d6e53b$@levitt.net> Hi, Have you seen this stuff? I think it's great, lust take a look here See you soon, Daniel Levitt -------------- next part -------------- An HTML attachment was scrubbed... URL: From reuven at levitt.net Sat May 28 10:38:04 2016 From: reuven at levitt.net (Daniel Levitt) Date: Sat, 28 May 2016 20:38:04 +0300 Subject: [mapserver-users] stuff we discussed Message-ID: <000044f58a1a$356056f1$a243d973$@levitt.net> Hello, I found the stuff we've discussed with you recently, get it here Wishes, Daniel Levitt -------------- next part -------------- An HTML attachment was scrubbed... URL: From smw at ceh.ac.uk Tue May 31 05:37:27 2016 From: smw at ceh.ac.uk (Wright, Simon M.) Date: Tue, 31 May 2016 12:37:27 +0000 Subject: [mapserver-users] Multiple styles in a MapServer WMS Service Message-ID: Dear All I'm fairly new to MapServer and am trying to create a WMS Service. I have defined two styles the following metadata section of a layer as follows: METADATA "wms_title" "LC.LandCoverSurfaces" "wms_srs" "CRS:84 EPSG:4326 EPSG:27700 EPSG:4258 EPSG:3857" "wms_metadataurl_type" "ISO19115:2003" "wms_metadataurl_format" "text/xml" "wms_metadataurl_href" "https://catalogue.ceh.ac.uk//id/a1f88807-4826-44bc-994d-a902da5119c2?" "wms_style" "default" "wms_style_default_legendurl_title" "" "wms_style_default_legendurl_width" "226" "wms_style_default_legendurl_height" "431" "wms_style_default_legendurl_format" "image/png" "wms_style_default_legendurl_href" "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png" "wms_style" "inspire_common:DEFAULT" "wms_style_inspire_common:DEFAULT_legendurl_title" "LC.LandCoverSurfaces Default Style" "wms_style_inspire_common:DEFAULT_legendurl_width" "226" "wms_style_inspire_common:DEFAULT_legendurl_height" "431" "wms_style_inspire_common:DEFAULT_legendurl_format" "image/png" "wms_style_inspire_common:DEFAULT_legendurl_href" "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png" But only one style is actually broadcast in the WMS GetCapabilities document: LC.LandCoverSurfaces LC.LandCoverSurfaces CRS:84 EPSG:4326 EPSG:27700 EPSG:4258 EPSG:3857 -9.49714 3.63202 49.7668 61.581 text/xml It appears that the last defined style is the one that makes it through to the GetCapabilities file. Therefore, am I specifying my styles incorrectly in the .map file? Is it possible to define multiple styles for the GetCapabilities document? Or, is this a bug in MapServer 6.4.2? And if so, should I use a later version of MapServer? Many thanks for any help that anyone can provide. Best wishes, Simon. ________________________________ This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue May 31 07:47:33 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 31 May 2016 11:47:33 -0300 Subject: [mapserver-users] Multiple styles in a MapServer WMS Service In-Reply-To: References: Message-ID: <3d7de244-8797-d3b5-1cff-d297f8eaf5c6@gatewaygeomatics.com> Hi Simon, I just locally enabled 2 different styles, and they showed up in my GetCapabilities document, by using CLASSGROUP and GROUP in my mapfile layer (see the RFC examples at http://mapserver.org/development/rfc/ms-rfc-39.html). Note that I deleted your layer metadata, and magically both styles appeared in the GetCapabilities. There could be a bug there (why your metadata doesn't work I am not sure), but to get the 2 styles to appear I followed that RFC. I am testing with MS4W 3.1.4 (MapServer 7.0.1). http://ms4w.com -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-31 9:37 AM, Wright, Simon M. wrote: > Dear All > > > > I?m fairly new to MapServer and am trying to create a WMS Service. > > > > I have defined two styles the following metadata section of a layer as > follows: > > > > METADATA > > "wms_title" "LC.LandCoverSurfaces" > > "wms_srs" "CRS:84 EPSG:4326 EPSG:27700 > EPSG:4258 EPSG:3857" > > "wms_metadataurl_type" "ISO19115:2003" > > "wms_metadataurl_format" "text/xml" > > "wms_metadataurl_href" > "https://catalogue.ceh.ac.uk//id/a1f88807-4826-44bc-994d-a902da5119c2?" > > "wms_style" "default" > > "wms_style_default_legendurl_title" "" > > "wms_style_default_legendurl_width" "226" > > "wms_style_default_legendurl_height" "431" > > "wms_style_default_legendurl_format" "image/png" > > "wms_style_default_legendurl_href" > "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png" > > "wms_style" "inspire_common:DEFAULT" > > > "wms_style_inspire_common:DEFAULT_legendurl_title" > "LC.LandCoverSurfaces Default Style" > > > "wms_style_inspire_common:DEFAULT_legendurl_width" "226" > > > "wms_style_inspire_common:DEFAULT_legendurl_height" "431" > > > "wms_style_inspire_common:DEFAULT_legendurl_format" > "image/png" > > > "wms_style_inspire_common:DEFAULT_legendurl_href" > "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png" > > > > But only one style is actually broadcast in the WMS GetCapabilities > document: > > > > > > LC.LandCoverSurfaces > > LC.LandCoverSurfaces > > CRS:84 > > EPSG:4326 > > EPSG:27700 > > EPSG:4258 > > EPSG:3857 > > > > -9.49714 > > 3.63202 > > 49.7668 > > 61.581 > > > > maxy="61.581"/> > > maxx="61.581" maxy="3.63202"/> > > maxy="1.3e+06"/> > > maxx="61.581" maxy="3.63202"/> > > maxx="404315" maxy="8.76046e+06"/> > > > > text/xml > > xlink:type="simple" > xlink:href="https://catalogue.ceh.ac.uk//id/a1f88807-4826-44bc-994d-a902da5119c2?"/> > > > > > > > > > > It appears that the last defined style is the one that makes it through > to the GetCapabilities file. > > > > > > > > Therefore, am I specifying my styles incorrectly in the .map file? > > > > Is it possible to define multiple styles for the GetCapabilities document? > > > > Or, is this a bug in MapServer 6.4.2? And if so, should I use a later > version of MapServer? > > > > > > > > Many thanks for any help that anyone can provide. > > > > > > > > Best wishes, Simon. > > ------------------------------------------------------------------------ > This message (and any attachments) is for the recipient only. NERC is > subject to the Freedom of Information Act 2000 and the contents of this > email and any reply you make may be disclosed by NERC unless it is > exempt from release under the Act. Any material supplied to NERC may be > stored in an electronic records management system. > ------------------------------------------------------------------------ > > > _______________________________________________ > 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 May 31 07:43:23 2016 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 31 May 2016 14:43:23 +0000 Subject: [mapserver-users] Multiple styles in a MapServer WMS Service In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5682247FE@FS-EX-DB102.fs.sachsen.de> Hi Simon, We had to create a CLASSGROUP for every style and on every layer: LAYER CLASSGROUP 'Style1' CLASSGROUP 'Style2' CLASS GROUP 'Style1' STYLE [...] END END CLASS GROUP 'Style2' STYLE [...] END END END With this, they are advertised as: [...] And you can request the one to use on GetMap-Requests using the STYLES parameter. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im > Auftrag von Wright, Simon M. > Gesendet: Dienstag, 31. Mai 2016 14:37 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Multiple styles in a MapServer WMS Service > > Dear All > > > > I'm fairly new to MapServer and am trying to create a WMS Service. > > > > I have defined two styles the following metadata section of a layer as > follows: > > > > METADATA > > "wms_title" "LC.LandCoverSurfaces" > > "wms_srs" "CRS:84 EPSG:4326 EPSG:27700 EPSG:4258 > EPSG:3857" > > "wms_metadataurl_type" "ISO19115:2003" > > "wms_metadataurl_format" "text/xml" > > "wms_metadataurl_href" > "https://catalogue.ceh.ac.uk//id/a1f88807-4826-44bc-994d-a902da5119c2?" > > "wms_style" "default" > > "wms_style_default_legendurl_title" "" > > "wms_style_default_legendurl_width" "226" > > "wms_style_default_legendurl_height" "431" > > "wms_style_default_legendurl_format" "image/png" > > "wms_style_default_legendurl_href" > "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4- > 8c21-0800200c9a66/legends/LCM2007_DomTar.png" > > "wms_style" "inspire_common:DEFAULT" > > "wms_style_inspire_common:DEFAULT_legendurl_title" > "LC.LandCoverSurfaces Default Style" > > "wms_style_inspire_common:DEFAULT_legendurl_width" > "226" > > "wms_style_inspire_common:DEFAULT_legendurl_height" > "431" > > "wms_style_inspire_common:DEFAULT_legendurl_format" > "image/png" > > "wms_style_inspire_common:DEFAULT_legendurl_href" > "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4- > 8c21-0800200c9a66/legends/LCM2007_DomTar.png" > > > > But only one style is actually broadcast in the WMS GetCapabilities > document: > > > > > > LC.LandCoverSurfaces > > LC.LandCoverSurfaces > > CRS:84 > > EPSG:4326 > > EPSG:27700 > > EPSG:4258 > > EPSG:3857 > > > > -9.49714 > > 3.63202 > > 49.7668 > > 61.581 > > > > maxy="61.581"/> > > maxy="3.63202"/> > > maxy="1.3e+06"/> > > maxy="3.63202"/> > > maxx="404315" maxy="8.76046e+06"/> > > > > text/xml > > xlink:type="simple" xlink:href="https://catalogue.ceh.ac.uk//id/a1f88807- > 4826-44bc-994d-a902da5119c2?"/> > > > > > > > > > > It appears that the last defined style is the one that makes it through to > the GetCapabilities file. > > > > > > > > Therefore, am I specifying my styles incorrectly in the .map file? > > > > Is it possible to define multiple styles for the GetCapabilities document? > > > > Or, is this a bug in MapServer 6.4.2? And if so, should I use a later > version of MapServer? > > > > > > > > Many thanks for any help that anyone can provide. > > > > > > > > Best wishes, Simon. > > ________________________________ > > This message (and any attachments) is for the recipient only. NERC is > subject to the Freedom of Information Act 2000 and the contents of this > email and any reply you make may be disclosed by NERC unless it is exempt > from release under the Act. Any material supplied to NERC may be stored in > an electronic records management system. > ________________________________ From ian.walberg at airborne.aero Sat May 7 12:52:03 2016 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 07 May 2016 19:52:03 -0000 Subject: [mapserver-users] WFS - featureid/resourceid In-Reply-To: References: <5fa552e43f1c4b828ca134b9e507d085@airborne.aero> <4aa187e25c034fbe8cbfbbc3eba59b65@airborne.aero> <437ba8a107314b2d8f3533646baee7c2@airborne.aero> Message-ID: <52584446cca345e1b78c3d8565236072@airborne.aero> That did not seem to make any difference, can you tell from here what output types should work? http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:46 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Try adding GML as a format option to see if you are able to get a result that way: "wfs_getfeature_formatlist" "gml,geojson" On Sat, May 7, 2016 at 12:43 PM, Ian Walberg > wrote: Yes we see the same and that was my reason for asking. Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:39 PM To: Ian Walberg > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Well it looks like your map file settings are fine, and a correctly formatted URL would be: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1 However the resulting error message indicates that something may else may be amiss: msQueryByFilter(): Search returned no results. No matching record(s) found. LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support On Sat, May 7, 2016 at 12:29 PM, Ian Walberg > wrote: And also in the WEB section METADATA "wfs_title" "WFS Test" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" "wfs_srs" "EPSG:4326" "wfs_abstract" "WFS Test" "wfs_enable_request" "*" "wfs_getfeature_formatlist" "geojson" Ian From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, May 7, 2016 12:27 PM To: TC Haddad > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Here is what we have in the map file layer, what have we missed? METADATA "wfs_srs" "EPSG:4326" "wfs_title" "DATA_POI" "gml_featureid" "id" "gml_include_items" "all" "wfs_enable_request" "*" "wfs_encoding" "UTF-8" "wfs_abstract" "Points" "wfs_getfeature_formatlist" "geojson" END Thanks Ian From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Saturday, May 7, 2016 12:12 PM To: Ian Walberg > Cc: Rahkonen Jukka (MML) >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS - featureid/resourceid Ian you may have to enable the GetFeatureById option in your mapfile as at the moment it looks like you have it turned off. Put something like this in the LAYER block to enable all WFS requests: "wfs_enable_request" "*" From there you can begin to test with: http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById And the server will tell you what other parameters you need to add to the URL in order to successfully return a record. On Sat, May 7, 2016 at 11:44 AM, Ian Walberg > wrote: Jukka, We could not get that to work, what is the syntax for our setup? Thanks Ian From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Saturday, May 7, 2016 10:54 AM To: Ian Walberg >; mapserver-users at lists.osgeo.org Subject: VS: [mapserver-users] WFS - featureid/resourceid I would try the GetFeatureById stored query http://mapserver.org/ogc/wfs_server.html Jukka Rahkonen ________________________________ L?hett?j?: Ian Walberg L?hetetty: ?7.?5.?2016 20:47 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS - featureid/resourceid Folks, How do we select just a single feature using FEATUREID or RESOUCEID. http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST Thanks Ian _______________________________________________ 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 Robert.Sanson at asurequality.com Wed May 11 13:56:34 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Wed, 11 May 2016 20:56:34 -0000 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> References: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> Message-ID: Hi I retyped the connection string into my Mapfile and I still get the same error. The exact same connection string works fine via ogrinfo on the command line: ogrinfo -sql "select * from par_table where par_no = 6777887" "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" The only error message is: ERROR 1: Error initializing the metadata tables However, it then proceeds to give me the answer correctly. INFO: Open of `MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)' using driver `MSSQLSpatial' successful. Layer name: SELECT Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: PROJCS["NZGD2000 / New Zealand Transverse Mercator 2000", GEOGCS["NZGD2000", DATUM["New_Zealand_Geodetic_Datum_2000", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6167"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4167"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",173], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",1600000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","2193"]] etc. Regards, Robert From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] Sent: Wednesday, 11 May 2016 7:28 p.m. To: geographika at gmail.com; Robert Sanson ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver - connection to MSSQL Hi, The connection string in the mapfile does look perfect but something that happens for me is that if I copy and paste text the copy may contain invisible characters which make troubles. I would rewrite the CONNECTION again by hand from keyboard and try if it helps. -Jukka Rahkonen- Seth G wrote: Hi, The error message indicates there is a problem with your connection string: 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion If the database part is not missing, maybe there is a missing semi-colon, or special character ending the database connection string? Regards, Seth On 10/05/2016 23:54, Robert Sanson wrote: Hi I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a MSSQL table with native geometry. I have tested the connection via ogrinfo (based on gdal v 2.0.2) and it works: ogrinfo -sql "select * from par_table where par_no = 6777887" "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" This is my layer section: LAYER NAME par_direct GROUP "CRS" STATUS ON CONNECTIONTYPE ogr CONNECTION "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" FILTER "WHERE date_dropped is null" TYPE POLYGON PROCESSING 'CLOSE_CONNECTION=DEFER' MAXSCALE 275000 CLASS STYLE WIDTH 0.25 OUTLINECOLOR 0 0 255 END END METADATA "ows_title" "par_direct" "wms_group_title" "CRS" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_abstract" "This is the LINZ parcel layer in NZTM" "wms_keywordlist" "LINZ,CRS" "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" "gml_include_items" "all" "gml_exclude_items" "" "ows_include_items" "all" "ows_exclude_items" "" END END When I try a WMS getmap call I get this error message: > msDrawMap(): Image handling error. Failed to draw layer named 'par_direct'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `par_direct'. 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not contain the 'database' portion Any clues? Many thanks, Robert L. Sanson _______________________________________________ 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 Robert.Vogt at rcis.com Wed May 18 15:11:51 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Wed, 18 May 2016 22:11:51 +0000 Subject: [mapserver-users] Testing x64 MapServer In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C651C34@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C651C09@PDEXCH10DB1.corp.rcis.com> <1491EB4E1D75164E940399B1F62D23CE5C651C34@PDEXCH10DB1.corp.rcis.com> Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C651C63@PDEXCH10DB1.corp.rcis.com> I wasn?t sure if this would help or not but this is a process monitor of Shp2Img excluding ?SUCCESS? results and including only ?Create? operation. I did highlight one line that looks suspect but I?m not sure what to make of it? [cid:image001.png at 01D1B130.B896C450] -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Wednesday, May 18, 2016 4:33 PM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Testing x64 MapServer I've changed the path to msplugin_mssql2008.dll to be an absolute path and verified that it's getting loaded But I'm still getting the error "Image handling error. Failed to draw layer" I'm not sure how to debug this going forward? Any help is appreciated!! Thanks! -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, May 18, 2016 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Testing x64 MapServer If I had to guess, it would be that you are not properly pointing to the full path to the MSSQL plugin: for example, see http://ms4w.com/README_INSTALL.html#microsoft-sql-server-2008 I am happy to hear that MS4W is doing so well for sharing your organization's spatial needs. Please feel free to help fund MS4W, to make sure that the MS4W product remains so innovative and reliable for your organization in the long term. You can contact me directly at any time to offer that help. Thank you, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-05-18 3:17 PM, Vogt, Robert (RCIS) wrote: > Good afternoon I?m trying to set up x64 MapServer on Windows 2012 server. > > > > I?ve been partially successful in that the MapServer dll?s are all > there but when I run my .map file through shp2img.exe > > > > The process is failing on a .map file that worked previously. > > > > This is what the map file looks like ? > > > > MAP > > NAME USA1 > > SYMBOLSET "e:\arcgisserver\basedata\symbols.txt" > > FONTSET "e:\arcgisserver\basedata\fonts.txt" > > STATUS ON > > IMAGETYPE PNG8 > > RESOLUTION 72 > > IMAGECOLOR 255 255 255 > > SHAPEPATH "e:\arcgisserver\basedata" > > UNITS METERS > > PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" > "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" > "datum=NAD83" END > > SIZE 1500 1500 > > EXTENT -45292.7219576058 780481.616003812 45290.5126012127 > 871065.05991903 > > LAYER > > STATUS DEFAULT > > CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, > I?ve tested the connection with a .udl file on the server" > > PLUGIN "msplugin_mssql2008.dll" > > DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx > USING UNIQUE OBJECTID USING SRID=4269" > > NAME "States" > > TYPE POLYGON > > STATUS DEFAULT > > PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" > END > > LABELITEM "state" > > CLASS > > NAME "States" > > STYLE > > SYMBOL 0 > > WIDTH 2 OUTLINECOLOR 255 0 0 > > END > > LABEL TYPE truetype > > FONT arial > > PRIORITY 2 > > ALIGN center > > SIZE 10 > > COLOR 255 0 0 > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 2 > > MINDISTANCE 300 > > ANGLE AUTO > > WRAP "~" > > END > > END > > END > > END > > > > > > I have tested the SQL connection string with a .udl file on the server > and it is working. > > The out put of shp2img.exe looks like this? > > > > PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m > E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o > E:\RCIS\Web\MapServer > > Dlls\MapServerTest\image1.png -all_debug 5 > > msLoadMap(): 0.000s > > msDrawMap(): rendering using outputformat named png8 (AGG/PNG8). > > msDrawMap(): WMS/WFS set-up and query, 0.000s > > msDrawMap(): Image handling error. Failed to draw layer named 'States'. > > msDrawMap(): Image handling error. Failed to draw layer named > 'States'.
> > msFreeMap(): freeing map at 00000067B88C2DE0. > > > _______________________________________________ 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 204893 bytes Desc: image001.png URL: From szekerest at gmail.com Tue May 31 11:35:55 2016 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 31 May 2016 20:35:55 +0200 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: <1463085802101.59670@asurequality.com> References: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> <1463085802101.59670@asurequality.com> Message-ID: Robert, It looks like the port number portion in the connection string causes the issue, specifically the comma is not being interpreted correctly by the parser. I guess this is similar to an earlier issue reported to gdal: https://trac.osgeo.org/gdal/ticket/4885 That time quoting the connection string provided a workaround as far as I remember. Best regards, Tamas 2016-05-12 22:44 GMT+02:00 Robert Sanson : > Hi > > > > I manually retyped the connection string into my Mapfile and still get the > same error. The exact same connection string works fine in ogrinfo, the > only error message is something about OGC Metadata table missing, however, > it proceeds to give me the correct information. > > > > Thanks, > > > Robert > > *From:* Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] > *Sent:* Wednesday, 11 May 2016 7:28 p.m. > *To:* geographika at gmail.com; Robert Sanson ; > mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Mapserver - connection to MSSQL > > Hi, > > The connection string in the mapfile does look perfect but something that > happens for me is that if I copy and paste text the copy may contain > invisible characters which make troubles. I would rewrite the CONNECTION > again by hand from keyboard and try if it helps. > > -Jukka Rahkonen- > > Seth G wrote: > > Hi, > > The error message indicates there is a problem with your connection string: > > 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not > contain the 'database' portion > > If the database part is not missing, maybe there is a missing semi-colon, > or special character ending the database connection string? > > Regards, > > Seth > > On 10/05/2016 23:54, Robert Sanson wrote: > > Hi > > > > I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a > MSSQL table with native geometry. > > > > I have tested the connection via ogrinfo (based on gdal v 2.0.2) and it > works: > > > > ogrinfo -sql "select * from par_table where par_no = 6777887" > "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" > > > > This is my layer section: > > > > LAYER > > NAME par_direct > > GROUP "CRS" > > STATUS ON > > CONNECTIONTYPE ogr > > CONNECTION > "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)" > > FILTER "WHERE date_dropped is null" > > TYPE POLYGON > > PROCESSING 'CLOSE_CONNECTION=DEFER' > > MAXSCALE 275000 > > CLASS > > STYLE > > WIDTH 0.25 > > OUTLINECOLOR 0 0 255 > > END > > END > > METADATA > > "ows_title" "par_direct" > > "wms_group_title" "CRS" > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > "wms_abstract" "This is the LINZ parcel layer in NZTM" > > "wms_keywordlist" "LINZ,CRS" > > "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" > > END > > END > > > > When I try a WMS getmap call I get this error message: > > > > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd" > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'par_direct'. > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `par_direct'. > > 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does > not contain the 'database' portion > > > > > > > > > > Many thanks, > > > > Robert L. Sanson > > > > > > _______________________________________________ > 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 Robert.Sanson at asurequality.com Tue May 31 14:04:27 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 31 May 2016 21:04:27 +0000 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: References: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> <1463085802101.59670@asurequality.com> Message-ID: <73e2990afc69424fa9f2ef17e0c0c2f4@OPASAKLPMBX01.nz01a.opaas.net.nz> Hi Tamas Thanks for that. I tried that but now the response is: msDrawMap(): Image handling error. Failed to draw layer named 'par_direct'. msOGRFileNextShape(): OGR error. Error initializing the metadata tables : Any way I can get around this issue? Robert From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, 1 June 2016 6:36 a.m. To: Robert Sanson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver - connection to MSSQL Robert, It looks like the port number portion in the connection string causes the issue, specifically the comma is not being interpreted correctly by the parser. I guess this is similar to an earlier issue reported to gdal: https://trac.osgeo.org/gdal/ticket/4885 That time quoting the connection string provided a workaround as far as I remember. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Tue May 31 14:11:11 2016 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Tue, 31 May 2016 21:11:11 +0000 Subject: [mapserver-users] WMS MapServer Message-ID: <1491EB4E1D75164E940399B1F62D23CE5C65C376@PDEXCH10DB1.corp.rcis.com> Good afternoon all, Still working on getting MapServer up and running? I am getting blank tiles back with a status of 200 in chrome. I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I request the page an error test document is created? However it is blank?does this mean there were no error?s? If so what is a reasonable next step to take to debug blank tiles? -BobV -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue May 31 14:23:20 2016 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 31 May 2016 23:23:20 +0200 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: <73e2990afc69424fa9f2ef17e0c0c2f4@OPASAKLPMBX01.nz01a.opaas.net.nz> References: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> <1463085802101.59670@asurequality.com> <73e2990afc69424fa9f2ef17e0c0c2f4@OPASAKLPMBX01.nz01a.opaas.net.nz> Message-ID: Probably the referred table is not enumerated in the geometry_columns metadata table of the database. Best regards, Tamas 2016-05-31 23:04 GMT+02:00 Robert Sanson : > Hi Tamas > > > > Thanks for that. I tried that but now the response is: > > > > > > http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'par_direct'. > > msOGRFileNextShape(): OGR error. Error initializing the metadata tables : > > > > > > > > Any way I can get around this issue? > > > > Robert > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Wednesday, 1 June 2016 6:36 a.m. > *To:* Robert Sanson > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Mapserver - connection to MSSQL > > > > Robert, > > > > It looks like the port number portion in the connection string causes the > issue, specifically the comma is not being interpreted correctly by the > parser. I guess this is similar to an earlier issue reported to gdal: > https://trac.osgeo.org/gdal/ticket/4885 > > > > That time quoting the connection string provided a workaround as far as I > remember. > > > > Best regards, > > > > Tamas > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 31 15:28:56 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 31 May 2016 22:28:56 +0000 Subject: [mapserver-users] WMS MapServer In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C65C376@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C65C376@PDEXCH10DB1.corp.rcis.com> Message-ID: First thing I?d check is layer status. What are the STATUS values for your layers? One easy thing to do is set STATUS DEFAULT for the layers in question. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Tuesday, May 31, 2016 4:11 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS MapServer Good afternoon all, Still working on getting MapServer up and running? I am getting blank tiles back with a status of 200 in chrome. I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I request the page an error test document is created? However it is blank?does this mean there were no error?s? If so what is a reasonable next step to take to debug blank tiles? -BobV -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Tue May 31 16:06:36 2016 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 31 May 2016 23:06:36 +0000 Subject: [mapserver-users] Mapserver - connection to MSSQL In-Reply-To: References: <8b173da96a994ad58bd095d8550f337f@C119S212VM022.msvyvi.vaha.local> <1463085802101.59670@asurequality.com> <73e2990afc69424fa9f2ef17e0c0c2f4@OPASAKLPMBX01.nz01a.opaas.net.nz> Message-ID: <72dfa483578e45eaadb78ae31d2098a0@OPASAKLPMBX01.nz01a.opaas.net.nz> Hi Tamas That was it. I inserted the appropriate values into geometry_columns and spatial_ref_sys. All working now. Many thanks, Robert From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, 1 June 2016 9:23 a.m. To: Robert Sanson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver - connection to MSSQL Probably the referred table is not enumerated in the geometry_columns metadata table of the database. Best regards, Tamas 2016-05-31 23:04 GMT+02:00 Robert Sanson >: Hi Tamas Thanks for that. I tried that but now the response is: msDrawMap(): Image handling error. Failed to draw layer named 'par_direct'. msOGRFileNextShape(): OGR error. Error initializing the metadata tables : Any way I can get around this issue? Robert From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, 1 June 2016 6:36 a.m. To: Robert Sanson > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver - connection to MSSQL Robert, It looks like the port number portion in the connection string causes the issue, specifically the comma is not being interpreted correctly by the parser. I guess this is similar to an earlier issue reported to gdal: https://trac.osgeo.org/gdal/ticket/4885 That time quoting the connection string provided a workaround as far as I remember. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue May 31 21:22:57 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 1 Jun 2016 04:22:57 +0000 Subject: [mapserver-users] WMS MapServer In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE5C65C376@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE5C65C376@PDEXCH10DB1.corp.rcis.com> Message-ID: <1464754978674.98957@maanmittauslaitos.fi> Hi, Usually blank images without error mean that there are no data within the BBOX. Check the coverage of your data and that you have projections right. It would be very interesting to know afterwards all the steps you have followed with your Mapserver setup. I believe that you have spent considerable much time with it and that means that the Mapserver documentation may not be good enough. You wrote once that you had problems with path E:\rcis\web\MapServerDlls\uildselease-1800-x64inprojSHARE\proj_def.dat. Does it mean that you have built Mapserver by yourself on Windows? -Jukka Rahkonen- ________________________________ Vogt, Robert wrote: Good afternoon all, Still working on getting MapServer up and running... I am getting blank tiles back with a status of 200 in chrome. I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I request the page an error test document is created... However it is blank...does this mean there were no error's? If so what is a reasonable next step to take to debug blank tiles? -BobV -------------- next part -------------- An HTML attachment was scrubbed... URL: