From starling.lucky at gmail.com Mon Nov 3 07:27:00 2014 From: starling.lucky at gmail.com (Hari Pradhan) Date: Mon, 3 Nov 2014 09:27:00 -0600 Subject: [mapserver-users] Problem with Colon in WFS Layer Name Message-ID: Hello List, I am getting the following error when requesting for WFS getfeature on the layer which includes colon in it's name (example: Analysis1:VolumeOut:VECTOR). Failed to parse QName 'ms:Analysis1:'. It looks like mapserver failed to parse the layer including colon. But as per the documentation, the restrictions to WFS layer name is that layer names can not start with a digit or have spaces in them. I doesn't say anything about the colon. Can anyone help me to resolve this problem? Note: The layer name is designed to include colon. We can not omit it. Thanks, Hari -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Nov 3 07:53:37 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 3 Nov 2014 15:53:37 +0000 Subject: [mapserver-users] Problem with Colon in WFS Layer Name Message-ID: Hi, Colons are absolutely denied in WFS feature type names and if you want to have a standard compliant WFS service you must remove the colon from the name. https://www.mail-archive.com/geoserver-users at lists.sourceforge.net/msg20012.html -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Hari Pradhan L?hetetty: 3. marraskuuta 2014 17:27 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Problem with Colon in WFS Layer Name Hello List, I am getting the following error when requesting for WFS getfeature on the layer which includes colon in it's name (example: Analysis1:VolumeOut:VECTOR). Failed to parse QName 'ms:Analysis1:'. It looks like mapserver failed to parse the layer including colon. But as per the documentation, the restrictions to WFS layer name is that layer names can not start with a digit or have spaces in them. I doesn't say anything about the colon. Can anyone help me to resolve this problem? Note: The layer name is designed to include colon. We can not omit it. Thanks, Hari -------------- next part -------------- An HTML attachment was scrubbed... URL: From DeDuikertjes at xs4all.nl Mon Nov 3 07:56:12 2014 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Mon, 3 Nov 2014 07:56:12 -0800 (PST) Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) Message-ID: <1415030172641-5170988.post@n6.nabble.com> Hi List, I'm experiencing real slow performance when doing WFS queries on a postgis table with about 1500000 records. A simple spatial query (which features in a box) takes about 1 to 2 minutes. In postgis the same query takes less than a second. Same story for attribute queries. Indeed on a postgis table with some 60000 records things are still very very slow. WMS on the other hand is flying taking less than a second for rendering most tiles. By using the debug functions I see that mapserver fetches all features in the map extent (set at map level) and then starts filtering feature by feature which takes a long time. I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to be related. Is there any way to speed up this kind of WFS queries? Is there any progress on the ticket? Any help appreciated, MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Nov 3 10:06:26 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 3 Nov 2014 18:06:26 +0000 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <1415030172641-5170988.post@n6.nabble.com> References: <1415030172641-5170988.post@n6.nabble.com> Message-ID: MapServer 7.0 should fix issues like this. A more general solution to the one presented in #4049 has been added to that version. You might try the development version and see how it goes. I'm surprised simple queries aren't working well though since older versions of MapServer have optimizations specific to PostGIS for those simple cases. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of deduikertjes Sent: Monday, November 03, 2014 9:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) Hi List, I'm experiencing real slow performance when doing WFS queries on a postgis table with about 1500000 records. A simple spatial query (which features in a box) takes about 1 to 2 minutes. In postgis the same query takes less than a second. Same story for attribute queries. Indeed on a postgis table with some 60000 records things are still very very slow. WMS on the other hand is flying taking less than a second for rendering most tiles. By using the debug functions I see that mapserver fetches all features in the map extent (set at map level) and then starts filtering feature by feature which takes a long time. I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to be related. Is there any way to speed up this kind of WFS queries? Is there any progress on the ticket? Any help appreciated, MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From deduikertjes at xs4all.nl Tue Nov 4 00:14:56 2014 From: deduikertjes at xs4all.nl (deduikertjes) Date: Tue, 04 Nov 2014 09:14:56 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: References: <1415030172641-5170988.post@n6.nabble.com> Message-ID: <54588B00.9070700@xs4all.nl> Steve, Thank you for the suggestion. Mapserver 7 is an interesting option indeed. I cannot find a date when it is due. Do you have any knowledge of that? I'm not looking forward to build mapserver from sources. I had not so good experiences with that in the past. So I've been looking around in GitHub to find closed tickets which are related to the way the backend is queried or performance is improved. I couldn't find any. Could you please point me to the relevant ticket(s)? Thank you, MArco On 03-11-14 19:06, Lime, Steve D (MNIT) wrote: > MapServer 7.0 should fix issues like this. A more general solution to the one presented in #4049 has been added to that version. You might try the development version and see how it goes. I'm surprised simple queries aren't working well though since older versions of MapServer have optimizations specific to PostGIS for those simple cases. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of deduikertjes > Sent: Monday, November 03, 2014 9:56 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) > > Hi List, > > I'm experiencing real slow performance when doing WFS queries on a postgis table with about 1500000 records. > > A simple spatial query (which features in a box) takes about 1 to 2 minutes. > In postgis the same query takes less than a second. Same story for attribute queries. > Indeed on a postgis table with some 60000 records things are still very very slow. > > WMS on the other hand is flying taking less than a second for rendering most tiles. > > By using the debug functions I see that mapserver fetches all features in the map extent (set at map level) and then starts filtering feature by feature which takes a long time. > > I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to be related. > > Is there any way to speed up this kind of WFS queries? Is there any progress on the ticket? > > Any help appreciated, MArco > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From deduikertjes at xs4all.nl Tue Nov 4 03:32:53 2014 From: deduikertjes at xs4all.nl (deduikertjes) Date: Tue, 04 Nov 2014 12:32:53 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <201411041041.27804.even.rouault@spatialys.com> References: <1415030172641-5170988.post@n6.nabble.com> <201411041041.27804.even.rouault@spatialys.com> Message-ID: <5458B965.1080606@xs4all.nl> Even, Thank you. Examples of slow and fast queries: Slow queries (not very complex) like: 493014.59839229 6795936.8942158 493014.59839229 6796022.885872601 493102.97870623 6796022.885872601 493102.97870623 6795936.8942158 493014.59839229 6795936.8942158 fast queries (only with small bbox) like: msGeometry 491667.6470239 6795223.3576443 494192.4576141 6796212.2616977 value 0 Marco On 04-11-14 10:41, Even Rouault wrote: > Le lundi 03 novembre 2014 16:56:12, vous avez ?crit : >> Hi List, >> >> I'm experiencing real slow performance when doing WFS queries on a postgis >> table with about 1500000 records. >> >> A simple spatial query (which features in a box) takes about 1 to 2 >> minutes. In postgis the same query takes less than a second. Same story >> for attribute queries. >> Indeed on a postgis table with some 60000 records things are still very >> very slow. >> >> WMS on the other hand is flying taking less than a second for rendering >> most tiles. >> >> By using the debug functions I see that mapserver fetches all features in >> the map extent (set at map level) and then starts filtering feature by >> feature which takes a long time. >> >> I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to >> be related. >> >> Is there any way to speed up this kind of WFS queries? Is there any >> progress on the ticket? > Can you show the exact WFS request you send to mapserver and that is slow to > run ? BBOX requests should use postgis spatial filtering. Perhaps you use > something more complex ? > >> Any help appreciated, MArco >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table- >> and-small-table-disappointing-as-well-tp5170988.html Sent from the >> Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From even.rouault at spatialys.com Tue Nov 4 04:05:16 2014 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 4 Nov 2014 13:05:16 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <5458B965.1080606@xs4all.nl> References: <1415030172641-5170988.post@n6.nabble.com> <201411041041.27804.even.rouault@spatialys.com> <5458B965.1080606@xs4all.nl> Message-ID: <201411041305.16742.even.rouault@spatialys.com> Le mardi 04 novembre 2014 12:32:53, deduikertjes a ?crit : > Even, > > Thank you. > > Examples of slow and fast queries: Marco, OK, that explains it. Up to now only (and without the presence of any other spatial operator in the filter) used PostGIS spatial filtering. Operators like Intersects were indeed evaluated once the feature has been retrieved from the server. As said by Steve, MapServer 7.0 should fix this by translating the into a PostGIS ST_Intersects. In the meantime, a workaround would be to transform the into a BBOX filter and do the intersection side client side. Even > > Slow queries (not very complex) like: > > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:hb="http://maps.md2.com/schemas/hb_wfs.xsd"> > > > > > > > 493014.59839229 6795936.8942158 493014.59839229 > 6796022.885872601 493102.97870623 6796022.885872601 493102.97870623 > 6795936.8942158 493014.59839229 6795936.8942158 > > > > > > > > > fast queries (only with small bbox) like: > > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd > http://maps.md2.com/schemas/hb_wfs.xsd > http://xxxxx/maps/xxxx/rc1/services/basic/default.map?service=WFS&version=1 > .1.0&request=DescribeFeatureType&typeName=jan2014_high" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > > msGeometry > > 491667.6470239 6795223.3576443 > 494192.4576141 6796212.2616977 > > > > value > 0 > > > > > > > Marco > > On 04-11-14 10:41, Even Rouault wrote: > > Le lundi 03 novembre 2014 16:56:12, vous avez ?crit : > >> Hi List, > >> > >> I'm experiencing real slow performance when doing WFS queries on a > >> postgis table with about 1500000 records. > >> > >> A simple spatial query (which features in a box) takes about 1 to 2 > >> minutes. In postgis the same query takes less than a second. Same story > >> for attribute queries. > >> Indeed on a postgis table with some 60000 records things are still very > >> very slow. > >> > >> WMS on the other hand is flying taking less than a second for rendering > >> most tiles. > >> > >> By using the debug functions I see that mapserver fetches all features > >> in the map extent (set at map level) and then starts filtering feature > >> by feature which takes a long time. > >> > >> I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems > >> to be related. > >> > >> Is there any way to speed up this kind of WFS queries? Is there any > >> progress on the ticket? > > > > Can you show the exact WFS request you send to mapserver and that is slow > > to run ? BBOX requests should use postgis spatial filtering. Perhaps you > > use something more complex ? > > > >> Any help appreciated, MArco > >> > >> > >> > >> -- > >> View this message in context: > >> http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-tabl > >> e- and-small-table-disappointing-as-well-tp5170988.html Sent from the > >> Mapserver - User mailing list archive at Nabble.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 deduikertjes at xs4all.nl Tue Nov 4 08:27:31 2014 From: deduikertjes at xs4all.nl (deduikertjes) Date: Tue, 04 Nov 2014 17:27:31 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: References: <1415030172641-5170988.post@n6.nabble.com> Message-ID: <5458FE73.1070902@xs4all.nl> Hi Steve, List, Hmm, I compiled mapserver from sources (GitHub Master). Actually that was not that bad, all tough I did not find out how to run the mapserver from ubuntu packages next to the one I compiled myself. The new mapserver is working ... a bit. The new mapserver doesn't support custom dimensions (yet ?) which I do use. So, for now I've removed that from the client side requests and getmap requests are fine . Then do a simple query like: 493014.59839229 6795936.8942158 493014.59839229 6796022.885872601 493102.97870623 6796022.885872601 493102.97870623 6795936.8942158 493014.59839229 6795936.8942158 Resulting in an error: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : 492858.14135005 6795805.518073499 492858.14135005 6796116.0435008 493197.33066301 6796116.0435008 493197.33066301 6795805.518073499 492858.14135005 6795805.518073499 (Mapserver 6.4 accepts this query and returns a result (albeit taking long)). A simple query like this works: msGeometry 491667.6470239 6795223.3576443 494192.4576141 6796212.2616977 value 0 but that one was already reasonably fast. Any pointers very much appreciated. MArco On 03-11-14 19:06, Lime, Steve D (MNIT) wrote: > MapServer 7.0 should fix issues like this. A more general solution to the one presented in #4049 has been added to that version. You might try the development version and see how it goes. I'm surprised simple queries aren't working well though since older versions of MapServer have optimizations specific to PostGIS for those simple cases. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of deduikertjes > Sent: Monday, November 03, 2014 9:56 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) > > Hi List, > > I'm experiencing real slow performance when doing WFS queries on a postgis table with about 1500000 records. > > A simple spatial query (which features in a box) takes about 1 to 2 minutes. > In postgis the same query takes less than a second. Same story for attribute queries. > Indeed on a postgis table with some 60000 records things are still very very slow. > > WMS on the other hand is flying taking less than a second for rendering most tiles. > > By using the debug functions I see that mapserver fetches all features in the map extent (set at map level) and then starts filtering feature by feature which takes a long time. > > I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to be related. > > Is there any way to speed up this kind of WFS queries? Is there any progress on the ticket? > > Any help appreciated, MArco > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > 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 Nov 4 09:20:27 2014 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 4 Nov 2014 18:20:27 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <5458FE73.1070902@xs4all.nl> References: <1415030172641-5170988.post@n6.nabble.com> <5458FE73.1070902@xs4all.nl> Message-ID: <201411041820.28444.even.rouault@spatialys.com> Le mardi 04 novembre 2014 17:27:31, deduikertjes a ?crit : > Hi Steve, List, > > Hmm, I compiled mapserver from sources (GitHub Master). Actually that > was not that bad, all tough I did not find out how to run the mapserver > from ubuntu packages next to the one I compiled myself. > > The new mapserver is working ... a bit. > The new mapserver doesn't support custom dimensions (yet ?) which I do > use. So, for now I've removed that from the client side requests and > getmap requests are fine . > > Then do a simple query like: > > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:hb="http://maps.md2.com/schemas/hb_wfs.xsd"> > > > > xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"> > > > 493014.59839229 > 6795936.8942158 493014.59839229 6796022.885872601 493102.97870623 > 6796022.885872601 493102.97870623 > 6795936.8942158 493014.59839229 6795936.8942158 > > > > > > > > > > Resulting in an error: > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in > GetFeature : > srsName="EPSG:900913"> 492858.14135005 > 6795805.518073499 492858.14135005 6796116.0435008 493197.33066301 > 6796116.0435008 493197.33066301 6795805.518073499 492858.14135005 > 6795805.518073499 > > (Mapserver 6.4 accepts this query and returns a result (albeit taking > long)). The issue is the empty content in . Setting it to anything non empty should fix it. We are perhaps more sensitive to that now that in previous versions. > > A simple query like this works: > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd > http://maps.md2.com/schemas/hb_wfs.xsd > http://xxxxx/maps/xxxx/rc1/services/basic/default.map?service=WFS&version=1 > .1.0&request=DescribeFeatureType&typeName=jan2014_high" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > > msGeometry > > 491667.6470239 6795223.3576443 > 494192.4576141 6796212.2616977 > > > > value > 0 > > > > > > > but that one was already reasonably fast. > > Any pointers very much appreciated. > > MArco > > On 03-11-14 19:06, Lime, Steve D (MNIT) wrote: > > MapServer 7.0 should fix issues like this. A more general solution to the > > one presented in #4049 has been added to that version. You might try the > > development version and see how it goes. I'm surprised simple queries > > aren't working well though since older versions of MapServer have > > optimizations specific to PostGIS for those simple cases. > > > > Steve > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > deduikertjes Sent: Monday, November 03, 2014 9:56 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] WFS query slow on large postgis table (and > > small table disappointing as well) > > > > Hi List, > > > > I'm experiencing real slow performance when doing WFS queries on a > > postgis table with about 1500000 records. > > > > A simple spatial query (which features in a box) takes about 1 to 2 > > minutes. In postgis the same query takes less than a second. Same story > > for attribute queries. Indeed on a postgis table with some 60000 records > > things are still very very slow. > > > > WMS on the other hand is flying taking less than a second for rendering > > most tiles. > > > > By using the debug functions I see that mapserver fetches all features in > > the map extent (set at map level) and then starts filtering feature by > > feature which takes a long time. > > > > I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to > > be related. > > > > Is there any way to speed up this kind of WFS queries? Is there any > > progress on the ticket? > > > > Any help appreciated, MArco > > > > > > > > -- > > View this message in context: > > http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-tabl > > e-and-small-table-disappointing-as-well-tp5170988.html Sent from the > > Mapserver - User mailing list archive at Nabble.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 deduikertjes at xs4all.nl Tue Nov 4 11:39:51 2014 From: deduikertjes at xs4all.nl (mdprive) Date: Tue, 4 Nov 2014 20:39:51 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <201411041820.28444.even.rouault@spatialys.com> References: <1415030172641-5170988.post@n6.nabble.com> <5458FE73.1070902@xs4all.nl> <201411041820.28444.even.rouault@spatialys.com> Message-ID: Even, Thank you. i'll try to convince my geoext viewer to set a non empty PropertyName. Up till now that proves to be not so easy. Any hints on the custom dimensions? Marco -- Op 4 nov. 2014 om 18:20 heeft Even Rouault het volgende geschreven: > Le mardi 04 novembre 2014 17:27:31, deduikertjes a ?crit : >> Hi Steve, List, >> >> Hmm, I compiled mapserver from sources (GitHub Master). Actually that >> was not that bad, all tough I did not find out how to run the mapserver >> from ubuntu packages next to the one I compiled myself. >> >> The new mapserver is working ... a bit. >> The new mapserver doesn't support custom dimensions (yet ?) which I do >> use. So, for now I've removed that from the client side requests and >> getmap requests are fine . >> >> Then do a simple query like: >> >> > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> > xmlns:hb="http://maps.md2.com/schemas/hb_wfs.xsd"> >> >> >> >> > xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"> >> >> >> 493014.59839229 >> 6795936.8942158 493014.59839229 6796022.885872601 493102.97870623 >> 6796022.885872601 493102.97870623 >> 6795936.8942158 493014.59839229 6795936.8942158 >> >> >> >> >> >> >> >> >> >> Resulting in an error: >> msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in >> GetFeature : >> > srsName="EPSG:900913"> 492858.14135005 >> 6795805.518073499 492858.14135005 6796116.0435008 493197.33066301 >> 6796116.0435008 493197.33066301 6795805.518073499 492858.14135005 >> 6795805.518073499 >> >> (Mapserver 6.4 accepts this query and returns a result (albeit taking >> long)). > > The issue is the empty content in . Setting it to anything non > empty should fix it. We are perhaps more sensitive to that now that in previous > versions. > >> >> A simple query like this works: >> > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd >> http://maps.md2.com/schemas/hb_wfs.xsd >> http://xxxxx/maps/xxxx/rc1/services/basic/default.map?service=WFS&version=1 >> .1.0&request=DescribeFeatureType&typeName=jan2014_high" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> >> >> >> >> msGeometry >> >> 491667.6470239 6795223.3576443 >> 494192.4576141 6796212.2616977 >> >> >> >> value >> 0 >> >> >> >> >> >> >> but that one was already reasonably fast. >> >> Any pointers very much appreciated. >> >> MArco >> >> On 03-11-14 19:06, Lime, Steve D (MNIT) wrote: >>> MapServer 7.0 should fix issues like this. A more general solution to the >>> one presented in #4049 has been added to that version. You might try the >>> development version and see how it goes. I'm surprised simple queries >>> aren't working well though since older versions of MapServer have >>> optimizations specific to PostGIS for those simple cases. >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> deduikertjes Sent: Monday, November 03, 2014 9:56 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] WFS query slow on large postgis table (and >>> small table disappointing as well) >>> >>> Hi List, >>> >>> I'm experiencing real slow performance when doing WFS queries on a >>> postgis table with about 1500000 records. >>> >>> A simple spatial query (which features in a box) takes about 1 to 2 >>> minutes. In postgis the same query takes less than a second. Same story >>> for attribute queries. Indeed on a postgis table with some 60000 records >>> things are still very very slow. >>> >>> WMS on the other hand is flying taking less than a second for rendering >>> most tiles. >>> >>> By using the debug functions I see that mapserver fetches all features in >>> the map extent (set at map level) and then starts filtering feature by >>> feature which takes a long time. >>> >>> I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to >>> be related. >>> >>> Is there any way to speed up this kind of WFS queries? Is there any >>> progress on the ticket? >>> >>> Any help appreciated, MArco >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-tabl >>> e-and-small-table-disappointing-as-well-tp5170988.html Sent from the >>> Mapserver - User mailing list archive at Nabble.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 even.rouault at spatialys.com Tue Nov 4 11:55:19 2014 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 4 Nov 2014 20:55:19 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: References: <1415030172641-5170988.post@n6.nabble.com> <201411041820.28444.even.rouault@spatialys.com> Message-ID: <201411042055.19414.even.rouault@spatialys.com> Le mardi 04 novembre 2014 20:39:51, mdprive a ?crit : > Even, > > Thank you. i'll try to convince my geoext viewer to set a non empty > PropertyName. Up till now that proves to be not so easy. > > Any hints on the custom dimensions? I'm not sure what you mean with "custom dimensions" > > Marco > > -- > > Op 4 nov. 2014 om 18:20 heeft Even Rouault het volgende geschreven: > > Le mardi 04 novembre 2014 17:27:31, deduikertjes a ?crit : > >> Hi Steve, List, > >> > >> Hmm, I compiled mapserver from sources (GitHub Master). Actually that > >> was not that bad, all tough I did not find out how to run the mapserver > >> from ubuntu packages next to the one I compiled myself. > >> > >> The new mapserver is working ... a bit. > >> The new mapserver doesn't support custom dimensions (yet ?) which I do > >> use. So, for now I've removed that from the client side requests and > >> getmap requests are fine . > >> > >> Then do a simple query like: > >> >> version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > >> > >> >> > >> xmlns:hb="http://maps.md2.com/schemas/hb_wfs.xsd"> > >> > >> > >> > >> > >> > >> > >> > >> >> > >> xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"> > >> > >> > >> > >> 493014.59839229 > >> > >> 6795936.8942158 493014.59839229 6796022.885872601 493102.97870623 > >> 6796022.885872601 493102.97870623 > >> 6795936.8942158 493014.59839229 6795936.8942158 > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Resulting in an error: > >> msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in > >> GetFeature : > >> >> srsName="EPSG:900913"> 492858.14135005 > >> 6795805.518073499 492858.14135005 6796116.0435008 493197.33066301 > >> 6796116.0435008 493197.33066301 6795805.518073499 492858.14135005 > >> 6795805.518073499 > >> > >> (Mapserver 6.4 accepts this query and returns a result (albeit taking > >> long)). > > > > The issue is the empty content in . Setting it to anything > > non empty should fix it. We are perhaps more sensitive to that now that > > in previous versions. > > > >> A simple query like this works: > >> >> version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd > >> http://maps.md2.com/schemas/hb_wfs.xsd > >> http://xxxxx/maps/xxxx/rc1/services/basic/default.map?service=WFS&versio > >> n=1 .1.0&request=DescribeFeatureType&typeName=jan2014_high" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > >> > >> > >> > >> > >> msGeometry > >> >> srsName="EPSG:900913"> 491667.6470239 > >> 6795223.3576443 494192.4576141 > >> 6796212.2616977 > >> > >> > >> value > >> 0 > >> > >> > >> > >> > >> > >> > >> but that one was already reasonably fast. > >> > >> Any pointers very much appreciated. > >> > >> MArco > >> > >> On 03-11-14 19:06, Lime, Steve D (MNIT) wrote: > >>> MapServer 7.0 should fix issues like this. A more general solution to > >>> the one presented in #4049 has been added to that version. You might > >>> try the development version and see how it goes. I'm surprised simple > >>> queries aren't working well though since older versions of MapServer > >>> have optimizations specific to PostGIS for those simple cases. > >>> > >>> Steve > >>> > >>> -----Original Message----- > >>> From: mapserver-users-bounces at lists.osgeo.org > >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > >>> deduikertjes Sent: Monday, November 03, 2014 9:56 AM > >>> To: mapserver-users at lists.osgeo.org > >>> Subject: [mapserver-users] WFS query slow on large postgis table (and > >>> small table disappointing as well) > >>> > >>> Hi List, > >>> > >>> I'm experiencing real slow performance when doing WFS queries on a > >>> postgis table with about 1500000 records. > >>> > >>> A simple spatial query (which features in a box) takes about 1 to 2 > >>> minutes. In postgis the same query takes less than a second. Same story > >>> for attribute queries. Indeed on a postgis table with some 60000 > >>> records things are still very very slow. > >>> > >>> WMS on the other hand is flying taking less than a second for rendering > >>> most tiles. > >>> > >>> By using the debug functions I see that mapserver fetches all features > >>> in the map extent (set at map level) and then starts filtering feature > >>> by feature which takes a long time. > >>> > >>> I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems > >>> to be related. > >>> > >>> Is there any way to speed up this kind of WFS queries? Is there any > >>> progress on the ticket? > >>> > >>> Any help appreciated, MArco > >>> > >>> > >>> > >>> -- > >>> View this message in context: > >>> http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-tab > >>> l e-and-small-table-disappointing-as-well-tp5170988.html Sent from the > >>> Mapserver - User mailing list archive at Nabble.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 emperor_stef at yahoo.gr Tue Nov 4 14:44:30 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Tue, 4 Nov 2014 22:44:30 +0000 (UTC) Subject: [mapserver-users] Installation of Mapserver 6.4.1 Message-ID: <1431220107.767309.1415141070460.JavaMail.yahoo@jws11125.mail.ir2.yahoo.com> Hello.!! I'm wondering if the installation should be made only with cmake. Can't someone just use the repos ? ?I'm trying to use cmake but getting a lot or errors, probably having to do with the PREFIX path. So I'm feeling pretty confused. I'm also not that good with linux file system hierarchy. Thanks Stefanos -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Tue Nov 4 14:56:27 2014 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Wed, 05 Nov 2014 11:56:27 +1300 Subject: [mapserver-users] Storing GeoTIFFs in Amazon S3 for use with Mapserver? In-Reply-To: <6F331135492B944D90731CE93743D5680D4916@FS-EX-DB102.fs.sachsen.de> References: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> <6F331135492B944D90731CE93743D5680D4916@FS-EX-DB102.fs.sachsen.de> Message-ID: <545A106B020000370003B9BE@lx-gwgate1.asurequality.com> Does anyone have experience with using Amazon S3 to store GeoTIffs for use as a back-end datastore accessible by Mapserver in order to create a WMS service? Thanks, Robert Sanson Robert Sanson Veterinary Epidemiologist Batchelar Centre | Tennent Drive | Palmerston North PO Box 585 | Palmerston North 4440 | New Zealand p. +64 6 351 7990 | m. +64 21 448 472 | f. +64 6 351 7919 e. robert.sanson at asurequality.com Global experts in food safety and quality | www.asurequality.com This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From warmerdam at pobox.com Tue Nov 4 16:45:48 2014 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 4 Nov 2014 16:45:48 -0800 Subject: [mapserver-users] Storing GeoTIFFs in Amazon S3 for use with Mapserver? In-Reply-To: <545A106B020000370003B9BE@lx-gwgate1.asurequality.com> References: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> <6F331135492B944D90731CE93743D5680D4916@FS-EX-DB102.fs.sachsen.de> <545A106B020000370003B9BE@lx-gwgate1.asurequality.com> Message-ID: Robert, I've done some variations on this. I'd encourage you to watch a video by Mark Korver on this topic from FOSS4G: http://vimeo.com/106833852 I used his NAIP bucket in "requestor-pays" mode successfully. One thing that I ended up doing when reading the metadata was to use the vsicurl driver to access the tiffs, so only the required portions were fetched. His example actually mounts the whole bucket as a file system in which case things are much easier. I will note that when using vsicurl to access GeoTIFFs in S3 I found I had to set the following configuration variables to get it working. # Various /vsicurl hackery to get it working with signed aws urls well gdal.SetConfigOption('CPL_VSIL_CURL_ALLOWED_EXTENSIONS', 'ter') gdal.SetConfigOption('GDAL_DISABLE_READDIR_ON_OPEN', 'YES') gdal.SetConfigOption('CPL_VSIL_CURL_USE_HEAD', 'NO') I do quite a bit of stuff here with MapServer from S3, but I usually fetch from S3 and store in /tmp for serving so by the time MapServer sees the file it is completely normal. Best regards, Frank On Tue, Nov 4, 2014 at 2:56 PM, Robert Sanson < Robert.Sanson at asurequality.com> wrote: > Does anyone have experience with using Amazon S3 to store GeoTIffs for use > as a back-end datastore accessible by Mapserver in order to create a WMS > service? > > Thanks, > > Robert Sanson > > > Robert Sanson Veterinary Epidemiologist > Batchelar Centre | Tennent Drive | Palmerston North > PO Box 585 | Palmerston North 4440 | New Zealand > p. +64 6 351 7990 | m. +64 21 448 472 | f. +64 6 351 7919 > e. robert.sanson at asurequality.com > > Global experts in food safety and quality | www.asurequality.com > > > > > This email and any attachments are confidential and intended solely for > the addressee(s). If you are not the intended recipient, please notify us > immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted > Security. > www.websense.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: From deduikertjes at xs4all.nl Tue Nov 4 23:43:03 2014 From: deduikertjes at xs4all.nl (deduikertjes) Date: Wed, 05 Nov 2014 08:43:03 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <201411042055.19414.even.rouault@spatialys.com> References: <1415030172641-5170988.post@n6.nabble.com> <201411041820.28444.even.rouault@spatialys.com> <201411042055.19414.even.rouault@spatialys.com> Message-ID: <5459D507.9080106@xs4all.nl> Even, I use functionality as described on: http://mapserver.org/ogc/wms_dimension.html I referred to it by 'custom dimensions' to distinguish from wms time and elevation dimensions. MArco On 04-11-14 20:55, Even Rouault wrote: > Le mardi 04 novembre 2014 20:39:51, mdprive a ?crit : >> Even, >> >> Thank you. i'll try to convince my geoext viewer to set a non empty >> PropertyName. Up till now that proves to be not so easy. >> >> Any hints on the custom dimensions? > I'm not sure what you mean with "custom dimensions" > From raffaele.morelli at gmail.com Wed Nov 5 03:07:11 2014 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Wed, 5 Nov 2014 12:07:11 +0100 Subject: [mapserver-users] raster layer from postgis table Message-ID: <20141105110710.GF1398@gmail.com> Hi, I've loaded a bunch of GTiff files into a postgis table and actually trying to fetch tiles with a mapserver layer with a where statement in DATA definition, eg: DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' schema='someschema' table='cooltable' where'filename=dem20.tif' mode='2'" Testing with shp2img gives an error: msResampleGDALToMap(): no overlap ... no result. If I remove where condition all the rasters - different extensions - in the table are returned in the image, which is not what I want. I didn't found anything useful in the documentation about using where statement (which should be quite straightforward) and I really would prefer not to create a table for those 20 rasters... Any hints? -- ? Nunc est bibendum, nunc pede libero pulsanda tellus ? From baas at speerit.nl Wed Nov 5 07:30:07 2014 From: baas at speerit.nl (Jelmer Baas) Date: Wed, 5 Nov 2014 15:30:07 +0000 Subject: [mapserver-users] Annotation label with styleitem auto uses bitmap font Message-ID: Hi all, I have some converted AutoCAD files in MapInfo format that I'm showing via MapScript (up-to-date, via apt get). To show all components, each TAB file has both a 'line' layer (styleitem "auto") and an 'annotation' layer (also set to styleitem "auto"). This has worked fine for ages, but there are two issues: - Special characters aren't displayed - We now have a new file, which has an odd font size Because of this new file, I'm beging flooded with this message: msGetRasterTextBBox(): General error message. selected renderer does not support bitmap font size 13 Both issues obviously mean MapServer is using its built-in bitmap font. Is there a way to override this? I've tried a few options already: - Switching to PNG instead of GIF output format - Setting class.label properties; this has been removed in 6.2 - Creating a new labelObj, and adding it via class.addLabel; this manages to crash my python script (not getting caught in try/catch) without leaving any logs when styleitem is still set to "auto" - Adding a default and Arial entry in my fontlist file. This seems to be ignored. Furthermore, I can't seem to get ANY logging from MapScript. I've tried setting debug to MS_TRUE in the layer, mapfile, class, etc. Log file is being created (in /tmp) but remains empty. Am I doing something wrong? Missing something? Any help would be greatly appreciated! Regards, Jelmer From humberto at pastoraldacrianca.org.br Wed Nov 5 08:48:45 2014 From: humberto at pastoraldacrianca.org.br (Humberto Cereser Ibanez) Date: Wed, 05 Nov 2014 14:48:45 -0200 Subject: [mapserver-users] Annotation label with styleitem auto uses bitmap font In-Reply-To: References: Message-ID: <1415206125.4312.10.camel@p224.pastoral.interno> Hi Jelmer, On Wed, 2014-11-05 at 15:30 +0000, Jelmer Baas wrote: > Hi all, > > I have some converted AutoCAD files in MapInfo format that I'm showing via MapScript (up-to-date, via apt get). To show all components, each TAB file has both a 'line' layer (styleitem "auto") and an 'annotation' layer (also set to styleitem "auto"). This has worked fine for ages, but there are two issues: > > - Special characters aren't displayed > - We now have a new file, which has an odd font size > > Because of this new file, I'm beging flooded with this message: > msGetRasterTextBBox(): General error message. selected renderer does not support bitmap font size 13 > > Both issues obviously mean MapServer is using its built-in bitmap font. Is there a way to override this? I've tried a few options already: > - Switching to PNG instead of GIF output format > - Setting class.label properties; this has been removed in 6.2 Did you try set LABEL properties: FONT to TRUETYPE and ENCODING to "UTF8" or something like that? Regards, Humberto > - Creating a new labelObj, and adding it via class.addLabel; this manages to crash my python script (not getting caught in try/catch) without leaving any logs when styleitem is still set to "auto" > - Adding a default and Arial entry in my fontlist file. This seems to be ignored. > > Furthermore, I can't seem to get ANY logging from MapScript. I've tried setting debug to MS_TRUE in the layer, mapfile, class, etc. Log file is being created (in /tmp) but remains empty. > > Am I doing something wrong? Missing something? Any help would be greatly appreciated! > > Regards, > Jelmer > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Robert.Sanson at asurequality.com Wed Nov 5 12:07:25 2014 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Thu, 06 Nov 2014 09:07:25 +1300 Subject: [mapserver-users] Storing GeoTIFFs in Amazon S3 for use with Mapserver? In-Reply-To: References: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> <6F331135492B944D90731CE93743D5680D4916@FS-EX-DB102.fs.sachsen.de> <545A106B020000370003B9BE@lx-gwgate1.asurequality.com> Message-ID: <545B3A4D020000370003BA7B@lx-gwgate1.asurequality.com> Thanks Frank. Do you have an example of a mapfile layer section using GDAL with vsicurl to retrieve GeoTIFFs? In my case I use a tileindex to access a directory of GeoTIFFs but we want to move them into S3. Here is a layer from my mapfile: LAYER NAME sthl-075m-rural-2005-11 GROUP 'highres' TYPE RASTER STATUS ON TILEINDEX ../../data/nz/sthl-075m-rural-2005-11_ind TILEITEM Location MAXSCALE 100000 METADATA 'ows_title' 'sthl-075m-rural-2005-11' 'wms_opaque' '1' 'wms_group_title' 'highres' 'wms_resx' '0.75' 'wms_resy' '0.75' 'ows_extent' '1088800.0 4743600.0 1314400.0 5089200.0' END END Thanks, Robert >>> Frank Warmerdam 5/11/2014 1:45 p.m. >>> Robert, I've done some variations on this. I'd encourage you to watch a video by Mark Korver on this topic from FOSS4G: http://vimeo.com/106833852 I used his NAIP bucket in "requestor-pays" mode successfully. One thing that I ended up doing when reading the metadata was to use the vsicurl driver to access the tiffs, so only the required portions were fetched. His example actually mounts the whole bucket as a file system in which case things are much easier. I will note that when using vsicurl to access GeoTIFFs in S3 I found I had to set the following configuration variables to get it working. # Various /vsicurl hackery to get it working with signed aws urls well gdal.SetConfigOption('CPL_VSIL_CURL_ALLOWED_EXTENSIONS', 'ter') gdal.SetConfigOption('GDAL_DISABLE_READDIR_ON_OPEN', 'YES') gdal.SetConfigOption('CPL_VSIL_CURL_USE_HEAD', 'NO') I do quite a bit of stuff here with MapServer from S3, but I usually fetch from S3 and store in /tmp for serving so by the time MapServer sees the file it is completely normal. Best regards, Frank On Tue, Nov 4, 2014 at 2:56 PM, Robert Sanson < Robert.Sanson at asurequality.com> wrote: > Does anyone have experience with using Amazon S3 to store GeoTIffs for use > as a back-end datastore accessible by Mapserver in order to create a WMS > service? > > Thanks, > > Robert Sanson > > > Robert Sanson Veterinary Epidemiologist > Batchelar Centre | Tennent Drive | Palmerston North > PO Box 585 | Palmerston North 4440 | New Zealand > p. +64 6 351 7990 | m. +64 21 448 472 | f. +64 6 351 7919 > e. robert.sanson at asurequality.com > > Global experts in food safety and quality | www.asurequality.com > > > > > This email and any attachments are confidential and intended solely for > the addressee(s). If you are not the intended recipient, please notify us > immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted > Security. > www.websense.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer From warmerdam at pobox.com Wed Nov 5 12:17:54 2014 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 5 Nov 2014 12:17:54 -0800 Subject: [mapserver-users] Storing GeoTIFFs in Amazon S3 for use with Mapserver? In-Reply-To: <545B3A4D020000370003BA7B@lx-gwgate1.asurequality.com> References: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> <6F331135492B944D90731CE93743D5680D4916@FS-EX-DB102.fs.sachsen.de> <545A106B020000370003B9BE@lx-gwgate1.asurequality.com> <545B3A4D020000370003BA7B@lx-gwgate1.asurequality.com> Message-ID: Robert, I was actually using the vsicurl support from a prep-script similar to gdaltindex, not from in mapserver directly, so I don't have a handy example. I'd also be concerned that accessing the data via /vsicurl/ would have performance problems that would make it unwise for direct access from MapServer. One benefit of the S3 file system handlers is that they cache the files locally so multiple tile renders in mapserver from the file would be fast after the first fetch. If you use /vsicurl/ then I don't think that local caching would occur between mapserver render requests. Best regards, Frank On Wed, Nov 5, 2014 at 12:07 PM, Robert Sanson < Robert.Sanson at asurequality.com> wrote: > Thanks Frank. > > Do you have an example of a mapfile layer section using GDAL with vsicurl > to retrieve GeoTIFFs? > > In my case I use a tileindex to access a directory of GeoTIFFs but we want > to move them into S3. Here is a layer from my mapfile: > > LAYER > NAME sthl-075m-rural-2005-11 > GROUP 'highres' > TYPE RASTER > STATUS ON > TILEINDEX ../../data/nz/sthl-075m-rural-2005-11_ind > TILEITEM Location > MAXSCALE 100000 > METADATA > 'ows_title' 'sthl-075m-rural-2005-11' > 'wms_opaque' '1' > 'wms_group_title' 'highres' > 'wms_resx' '0.75' > 'wms_resy' '0.75' > 'ows_extent' '1088800.0 4743600.0 1314400.0 5089200.0' > END > END > > Thanks, > > Robert > > >>> Frank Warmerdam 5/11/2014 1:45 p.m. >>> > Robert, > > I've done some variations on this. > > I'd encourage you to watch a video by Mark Korver on this topic from > FOSS4G: http://vimeo.com/106833852 > > I used his NAIP bucket in "requestor-pays" mode successfully. One thing > that I ended up doing when reading the metadata was to use the vsicurl > driver to access the tiffs, so only the required portions were fetched. > His example actually mounts the whole bucket as a file system in which case > things are much easier. > > I will note that when using vsicurl to access GeoTIFFs in S3 I found I had > to set the following configuration variables to get it working. > > # Various /vsicurl hackery to get it working with signed aws urls well > gdal.SetConfigOption('CPL_VSIL_CURL_ALLOWED_EXTENSIONS', 'ter') > gdal.SetConfigOption('GDAL_DISABLE_READDIR_ON_OPEN', 'YES') > gdal.SetConfigOption('CPL_VSIL_CURL_USE_HEAD', 'NO') > > I do quite a bit of stuff here with MapServer from S3, but I usually fetch > from S3 and store in /tmp for serving so by the time MapServer sees the > file it is completely normal. > > Best regards, > Frank > > > On Tue, Nov 4, 2014 at 2:56 PM, Robert Sanson < > Robert.Sanson at asurequality.com> wrote: > > > Does anyone have experience with using Amazon S3 to store GeoTIffs for > use > > as a back-end datastore accessible by Mapserver in order to create a WMS > > service? > > > > Thanks, > > > > Robert Sanson > > > > > > Robert Sanson Veterinary Epidemiologist > > Batchelar Centre | Tennent Drive | Palmerston North > > PO Box 585 | Palmerston North 4440 | New Zealand > > p. +64 6 351 7990 | m. +64 21 448 472 | f. +64 6 351 7919 > > e. robert.sanson at asurequality.com > > > > Global experts in food safety and quality | www.asurequality.com > > > > > > > > > > This email and any attachments are confidential and intended solely for > > the addressee(s). If you are not the intended recipient, please notify us > > immediately and then delete this email from your system. > > > > This message has been scanned for Malware and Viruses by Websense Hosted > > Security. > > www.websense.com > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Software Developer > > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at speerit.nl Wed Nov 5 12:39:28 2014 From: baas at speerit.nl (Jelmer Baas) Date: Wed, 5 Nov 2014 20:39:28 +0000 Subject: [mapserver-users] Annotation label with styleitem auto uses bitmap font In-Reply-To: <1415206125.4312.10.camel@p224.pastoral.interno> References: <1415206125.4312.10.camel@p224.pastoral.interno> Message-ID: Hi Humberto, Thanks for the quick reply. I have not tried any encoding setting, because it's obviously using the bitmap font. Or would that force MapServer to use a TTF font? I'm also not sure where to add the "FONT" property. On the class? Or Layer? I tried both, had no effect. I believe I may have a bigger problem, maybe MapServer is falling back to the built-in font because it can't open the TTF files, but I have no idea how to test that (or confirm or deny my suspicions, because I can't find any debugging / logging info). Regards, Jelmer -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Humberto Cereser Ibanez Sent: woensdag 5 november 2014 17:49 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Annotation label with styleitem auto uses bitmap font Hi Jelmer, On Wed, 2014-11-05 at 15:30 +0000, Jelmer Baas wrote: > - Setting class.label properties; this has been removed in 6.2 Did you try set LABEL properties: FONT to TRUETYPE and ENCODING to "UTF8" or something like that? Regards, From samuelmesa at gmail.com Wed Nov 5 17:12:17 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Wed, 5 Nov 2014 20:12:17 -0500 Subject: [mapserver-users] Installation of Mapserver 6.4.1 In-Reply-To: <1431220107.767309.1415141070460.JavaMail.yahoo@jws11125.mail.ir2.yahoo.com> References: <1431220107.767309.1415141070460.JavaMail.yahoo@jws11125.mail.ir2.yahoo.com> Message-ID: Hi Stefanos, the next is the instructions for compiling Mapserver in Arch Linux [1]: 1. cd to src mapserver 2. rm CMakeCache.txt CMakeFiles 3. mkdir build 4. cd build 5. compiling as: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \ -DPYTHON_LIBRARIES=/usr/lib/python2.7 \ -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ -DWITH_CAIRO=ON \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -DWITH_CSHARP=OFF \ -DWITH_CURL=ON \ -DWITH_EXEMPI=OFF \ -DWITH_FCGI=ON \ -DWITH_FRIBIDI=ON \ -DWITH_GD=OFF \ -DWITH_GDAL=ON \ -DWITH_GENERIC_NINT=OFF \ -DWITH_GEOS=ON \ -DWITH_GIF=ON \ -DWITH_ICONV=ON \ -DWITH_JAVA=OFF \ -DWITH_KML=ON \ -DWITH_LIBXML2=ON \ -DWITH_MSSQL2008=OFF \ -DWITH_MYSQL=OFF \ -DWITH_OGR=ON \ -DWITH_ORACLESPATIAL=OFF \ -DWITH_ORACLE_PLUGIN=OFF \ -DWITH_PERL=OFF \ -DWITH_PHP=ON \ -DWITH_POINT_Z_M=OFF \ -DWITH_POSTGIS=ON \ -DWITH_PROJ=ON \ -DWITH_PYTHON=ON \ -DWITH_RSVG=OFF \ -DWITH_RUBY=OFF \ -DWITH_SDE=OFF \ -DWITH_SDE_PLUGIN=OFF \ -DWITH_SOS=ON \ -DWITH_SVGCAIRO=ON \ -DWITH_THREAD_SAFETY=ON \ -DWITH_WCS=ON \ -DWITH_WFS=ON \ -DWITH_WMS=ON \ -DWITH_XMLMAPFILE=OFF \ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ 6. make clean && make 7. make install regards, Samuel Mesa. [1] https://aur.archlinux.org/packages/ma/mapserver/PKGBUILD 2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou : > Hello.!! > > > I'm wondering if the installation should be made only with cmake. Can't > someone just use the repos ? I'm trying to use cmake but getting a lot or > errors, probably having to do with the PREFIX path. So I'm feeling pretty > confused. I'm also not that good with linux file system hierarchy. > > > Thanks > > > Stefanos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott159 at free.fr Wed Nov 5 22:13:37 2014 From: scott159 at free.fr (scott159 at free.fr) Date: Thu, 6 Nov 2014 07:13:37 +0100 (CET) Subject: [mapserver-users] Install MapCache In-Reply-To: <968835191.148155394.1415254365705.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <1208472111.148156861.1415254417283.JavaMail.root@zimbra34-e6.priv.proxad.net> I'm trying to install the mapcache. I've downloaded the zip file from github but i got an error when i was installing : -- The C compiler identification is GNU 4.7.2 -- The CXX compiler identification is GNU 4.7.2 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for strncasecmp -- Looking for strncasecmp - found -- Looking for symlink -- Looking for symlink - found -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49") -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.26.0") -- Found APR: /usr/lib/libapr-1.so -- Found APU: /usr/lib/libaprutil-1.so -- Looking for apr_memcache_hash -- Looking for apr_memcache_hash - found -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for module 'pixman' -- package 'pixman' not found -- checking for module 'pixman-1' -- found pixman-1, version 0.26.0 -- Found PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so -- Found PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so -- Found SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "3.9.6") -- * Configured options for the mapcache library -- * Mandatory components -- * png: /usr/lib/x86_64-linux-gnu/libpng.so -- * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so -- * Curl: /usr/lib/x86_64-linux-gnu/libcurl.so -- * Apr: /usr/lib/libapr-1.so -- * Optional components -- * PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so -- * SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- * Berkeley DB: disabled -- * Memcache: /usr/lib/libaprutil-1.so -- * TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so -- * GeoTIFF: disabled -- * Experimental TIFF write support: disabled -- * PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so -- * Experimental mapserver support: disabled -- Found GDAL: /usr/lib/libgdal.so -- Found GEOS: /usr/lib/libgeos_c.so -- * Seeder Configuration Options: -- * GEOS: /usr/lib/libgeos_c.so -- * OGR: /usr/lib/libgdal.so -- Found FCGI: /usr/lib/libfcgi.so -- * CGI Configuration Options: -- * FastCGI: /usr/lib/libfcgi.so -- Found APACHE: /usr/include/apache2 -- * Apache Module support status: -- * Mapcache Version String: mod_mapcache/1.2.1 -- * Module will be installed to : Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. /usr/lib/apache2/modules -- Configuring done -- Generating done -- Build files have been written to: /var/www/mapcache-1-2-1/build From baas at speerit.nl Thu Nov 6 04:40:51 2014 From: baas at speerit.nl (Jelmer Baas) Date: Thu, 6 Nov 2014 12:40:51 +0000 Subject: [mapserver-users] Annotation label with styleitem auto uses bitmap font In-Reply-To: References: <1415206125.4312.10.camel@p224.pastoral.interno> Message-ID: Update on this issue: MapInfo didn't have a font specified for the TEXT objects. This meant that MapServer somehow didn't use the fallback font ("default"), but switched to its built-in font. I've now manually changed all fonts to Arial, added a valid "default" font in my fontset, and it works! (And it looks beautiful :) For short-term, I'll make sure our conversion software adds a valid font, but I would like it if someone can investigate this further (MID/MIF or TAB file available on request), since it's odd behavious imho. Thanks, Jelmer -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jelmer Baas Sent: woensdag 5 november 2014 21:39 To: humberto at pastoraldacrianca.org.br; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Annotation label with styleitem auto uses bitmap font Hi Humberto, Thanks for the quick reply. I have not tried any encoding setting, because it's obviously using the bitmap font. Or would that force MapServer to use a TTF font? I'm also not sure where to add the "FONT" property. On the class? Or Layer? I tried both, had no effect. I believe I may have a bigger problem, maybe MapServer is falling back to the built-in font because it can't open the TTF files, but I have no idea how to test that (or confirm or deny my suspicions, because I can't find any debugging / logging info). Regards, Jelmer -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Humberto Cereser Ibanez Sent: woensdag 5 november 2014 17:49 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Annotation label with styleitem auto uses bitmap font Hi Jelmer, On Wed, 2014-11-05 at 15:30 +0000, Jelmer Baas wrote: > - Setting class.label properties; this has been removed in 6.2 Did you try set LABEL properties: FONT to TRUETYPE and ENCODING to "UTF8" or something like that? Regards, _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From humberto at pastoraldacrianca.org.br Thu Nov 6 04:34:19 2014 From: humberto at pastoraldacrianca.org.br (Humberto Cereser Ibanez) Date: Thu, 06 Nov 2014 10:34:19 -0200 Subject: [mapserver-users] Annotation label with styleitem auto uses bitmap font In-Reply-To: References: <1415206125.4312.10.camel@p224.pastoral.interno> Message-ID: <1415277259.4312.37.camel@p224.pastoral.interno> Hi Jelmer, On Wed, 2014-11-05 at 20:39 +0000, Jelmer Baas wrote: > Hi Humberto, > > Thanks for the quick reply. > > I have not tried any encoding setting, because it's obviously using the bitmap font. Or would that force MapServer to use a TTF font? I'm also not sure where to add the "FONT" property. On the class? Or Layer? I tried both, had no effect. My environment is another that your. I use PhpMapscript and PostgreSQL/Postgis. But perhaps these settings from my mapfile will be useful to clarifying: MAP ... FONTSET "../fonts/msfontset.txt" ... LAYER ... labelitem obj_name ... CLASS NAME "Better" expression ([range] = 1) STYLE width 2 color 0 255 0 OUTLINECOLOR 15 15 15 END # Style LABEL COLOR 15 15 15 SIZE 8 POSITION auto mindistance 4 FONT "FreeSans" type TRUETYPE ENCODING "UTF8" END #LABEL END # Class Better CLASS ... Next, the path for FreeSans at msfontset.txt file: ... FreeSans sfd/FreeSans.ttf ... And, at the mapfile's directory: $ ls -l ../fonts/sfd/ ... -rwxr-xr-x 1 humberto humberto 264072 Sep 30 11:58 FreeSans.ttf ... I get the labelitem 'obj_name' and the value tested on the expression 'range' from a PostgreSQL/Postgis query. > > I believe I may have a bigger problem, maybe MapServer is falling back to the built-in font because it can't open the TTF files, but I have no idea how to test that (or confirm or deny my suspicions, because I can't find any debugging / logging info). > Did you looked to Web Server's logs or run the utility command line 'shp2img'? http://mapserver.org/utilities/shp2img.html Good luck, Humberto From dejan.gambin at coin.hr Thu Nov 6 05:34:20 2014 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Thu, 6 Nov 2014 14:34:20 +0100 Subject: [mapserver-users] Label wrapping question In-Reply-To: References: Message-ID: <266FA811-7611-42B8-843A-B471AF902F35@coin.hr> Hi Jukka, If you remember, I've sent the screen captures. I am just interested if this change makes sense and do you plan to embed it in the future versions? Like I said, this is just the proof of concept. I didn't make change for label->encoding part, and also, it currently crashes in certain situation if I have a word in label text longer than maxlength. It should all be revised and modified. Thanks very much regards, dejan On 24. ruj. 2014., at 15:15, Rahkonen Jukka (Tike) wrote: > Hi, > > Send us some screen captures of wrapped labels before and after your change. I feel that your change would make sense. > > -Jukka Rahkonen- > > Dejan Gambin wrote: > >> In the meantime, I have slightly changed msWrapText() function in maplabel.c to >> get what I wanted. If someone is interested I can share the short piece of code. >> >> regards, dejan >> >> >> On 23. ruj. 2014., at 12:32, Dejan Gambin wrote: >> >>> Hi, >>> >>> I have some users wishing to use long legend labels, but they don't fit well on >> my site. As I can see, MapServer is doing this - if maxlength > 0 and wrap = 'char' >> (usually space), insert a new line at the FIRST wrap character found AFTER >> maxlength character. This is leading to some bad results (label not wrapped or >> wrapped too early). >>> >>> My question is - shouldn't it be better to wrap at the LAST wrap character >> BEFORE maxlength character? Is this maybe implemented somewhere or there >> are plans for this? >>> >>> Thanks very much >>> >>> regards, dejan >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Nov 6 13:27:46 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 6 Nov 2014 21:27:46 +0000 Subject: [mapserver-users] Label wrapping question In-Reply-To: <266FA811-7611-42B8-843A-B471AF902F35@coin.hr> References: <266FA811-7611-42B8-843A-B471AF902F35@coin.hr> Message-ID: Dejan: If you'd open a ticket with your patches or submit a pull request it would be appreciated. --Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin Sent: Thursday, November 06, 2014 7:34 AM To: Rahkonen Jukka Cc: 'mapserver-users at lists.osgeo.org' Subject: Re: [mapserver-users] Label wrapping question Hi Jukka, If you remember, I've sent the screen captures. I am just interested if this change makes sense and do you plan to embed it in the future versions? Like I said, this is just the proof of concept. I didn't make change for label->encoding part, and also, it currently crashes in certain situation if I have a word in label text longer than maxlength. It should all be revised and modified. Thanks very much regards, dejan On 24. ruj. 2014., at 15:15, Rahkonen Jukka (Tike) wrote: > Hi, > > Send us some screen captures of wrapped labels before and after your change. I feel that your change would make sense. > > -Jukka Rahkonen- > > Dejan Gambin wrote: > >> In the meantime, I have slightly changed msWrapText() function in >> maplabel.c to get what I wanted. If someone is interested I can share the short piece of code. >> >> regards, dejan >> >> >> On 23. ruj. 2014., at 12:32, Dejan Gambin wrote: >> >>> Hi, >>> >>> I have some users wishing to use long legend labels, but they don't >>> fit well on >> my site. As I can see, MapServer is doing this - if maxlength > 0 and wrap = 'char' >> (usually space), insert a new line at the FIRST wrap character found >> AFTER maxlength character. This is leading to some bad results (label >> not wrapped or wrapped too early). >>> >>> My question is - shouldn't it be better to wrap at the LAST wrap >>> character >> BEFORE maxlength character? Is this maybe implemented somewhere or >> there are plans for this? >>> >>> Thanks very much >>> >>> regards, dejan >>> _______________________________________________ >>> 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 baas at speerit.nl Thu Nov 6 23:05:01 2014 From: baas at speerit.nl (Jelmer Baas) Date: Fri, 7 Nov 2014 07:05:01 +0000 Subject: [mapserver-users] Annotation label with styleitem auto uses bitmap font In-Reply-To: <1415277259.4312.37.camel@p224.pastoral.interno> References: <1415206125.4312.10.camel@p224.pastoral.interno> <1415277259.4312.37.camel@p224.pastoral.interno> Message-ID: Hi Humberto, Thanks for the example; unfortunately I can't use this construction - I don't know the font size and color of the objects, hence the stileitem "auto" . The resolution now is to make sure all labels in the MapInfo have have a proper font set. Regards, Jelmer -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Humberto Cereser Ibanez Sent: donderdag 6 november 2014 13:34 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Annotation label with styleitem auto uses bitmap font Hi Jelmer, On Wed, 2014-11-05 at 20:39 +0000, Jelmer Baas wrote: > Hi Humberto, > > Thanks for the quick reply. > > I have not tried any encoding setting, because it's obviously using the bitmap font. Or would that force MapServer to use a TTF font? I'm also not sure where to add the "FONT" property. On the class? Or Layer? I tried both, had no effect. My environment is another that your. I use PhpMapscript and PostgreSQL/Postgis. But perhaps these settings from my mapfile will be useful to clarifying: MAP ... FONTSET "../fonts/msfontset.txt" ... LAYER ... labelitem obj_name ... CLASS NAME "Better" expression ([range] = 1) STYLE width 2 color 0 255 0 OUTLINECOLOR 15 15 15 END # Style LABEL COLOR 15 15 15 SIZE 8 POSITION auto mindistance 4 FONT "FreeSans" type TRUETYPE ENCODING "UTF8" END #LABEL END # Class Better CLASS ... Next, the path for FreeSans at msfontset.txt file: ... FreeSans sfd/FreeSans.ttf ... And, at the mapfile's directory: $ ls -l ../fonts/sfd/ ... -rwxr-xr-x 1 humberto humberto 264072 Sep 30 11:58 FreeSans.ttf ... I get the labelitem 'obj_name' and the value tested on the expression 'range' from a PostgreSQL/Postgis query. > > I believe I may have a bigger problem, maybe MapServer is falling back to the built-in font because it can't open the TTF files, but I have no idea how to test that (or confirm or deny my suspicions, because I can't find any debugging / logging info). > Did you looked to Web Server's logs or run the utility command line 'shp2img'? http://mapserver.org/utilities/shp2img.html Good luck, Humberto _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From DeDuikertjes at xs4all.nl Fri Nov 7 00:34:47 2014 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Fri, 7 Nov 2014 00:34:47 -0800 (PST) Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <5459D507.9080106@xs4all.nl> References: <1415030172641-5170988.post@n6.nabble.com> <5458FE73.1070902@xs4all.nl> <201411041820.28444.even.rouault@spatialys.com> <201411042055.19414.even.rouault@spatialys.com> <5459D507.9080106@xs4all.nl> Message-ID: <1415349287157-5171806.post@n6.nabble.com> Ok, with all the help I came to the following results: Compile the current development version (6.5-dev) from GitHub & Install. Results: Simple Spatial WFS queries require a non-empty . Setting it too foo proved to be sufficient. Query speed is indeed very fast now. Using WMS-dimensions as described on http://mapserver.org/ogc/wms_dimension.html does work in 6.4 but not in 6.5-dev. As I have need for them I recompiled mapserver with a -DCMAKE_INSTALL_PREFIX=/usr/local/bin switch so I can run mapserver 6.4 en 6.5-dev next to each other. GetMap requests are routed to mapserver 6.4 and GetFeature requests are routed to 6.5-dev. Using the WMS-dimensons on 6.5-dev yields the following error: msDrawMap(): Image handling error. Failed to draw layer named 'jan2014_low'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: operator does not exist: >= numeric LINE 1: ...32.505600397 6790506.21879132))',900913) and (((( >= 0.90000... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. Its seems that the dimension parameter is not inserted in the layer filter expression. Should I create a bug report for this? MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988p5171806.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Fri Nov 7 00:42:40 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 7 Nov 2014 09:42:40 +0100 Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: <1415349287157-5171806.post@n6.nabble.com> References: <1415030172641-5170988.post@n6.nabble.com> <5458FE73.1070902@xs4all.nl> <201411041820.28444.even.rouault@spatialys.com> <201411042055.19414.even.rouault@spatialys.com> <5459D507.9080106@xs4all.nl> <1415349287157-5171806.post@n6.nabble.com> Message-ID: Yes Marco, Please open a ticket for this. thanks, thomas On 7 November 2014 09:34, deduikertjes wrote: > Ok, with all the help I came to the following results: > > Compile the current development version (6.5-dev) from GitHub & Install. > Results: > > Simple Spatial WFS queries require a non-empty > . > Setting it too foo proved to be > sufficient. > Query speed is indeed very fast now. > > Using WMS-dimensions as described on > http://mapserver.org/ogc/wms_dimension.html does work in > 6.4 but not in 6.5-dev. As I have need for them I recompiled mapserver > with a > -DCMAKE_INSTALL_PREFIX=/usr/local/bin switch so I can run mapserver 6.4 > en 6.5-dev next to each > other. GetMap requests are routed to mapserver 6.4 and GetFeature > requests are routed to 6.5-dev. > > Using the WMS-dimensons on 6.5-dev yields the following error: > > > msDrawMap(): Image handling error. Failed to draw layer named 'jan2014_low'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > operator does not exist: >= numeric > LINE 1: ...32.505600397 6790506.21879132))',900913) and (((( >= 0.90000... > ^ > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts. > > > > Its seems that the dimension parameter is not inserted in the layer filter > expression. > Should I create a bug report for this? > > MArco > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988p5171806.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From DeDuikertjes at xs4all.nl Fri Nov 7 00:58:27 2014 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Fri, 7 Nov 2014 00:58:27 -0800 (PST) Subject: [mapserver-users] WFS query slow on large postgis table (and small table disappointing as well) In-Reply-To: References: <1415030172641-5170988.post@n6.nabble.com> <5458FE73.1070902@xs4all.nl> <201411041820.28444.even.rouault@spatialys.com> <201411042055.19414.even.rouault@spatialys.com> <5459D507.9080106@xs4all.nl> <1415349287157-5171806.post@n6.nabble.com> Message-ID: <1415350707429-5171815.post@n6.nabble.com> Done, opened ticket: https://github.com/mapserver/mapserver/issues/5032 thomas bonfort wrote > Yes Marco, Please open a ticket for this. > > thanks, > thomas -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988p5171815.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dejan.gambin at coin.hr Fri Nov 7 05:42:03 2014 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Fri, 7 Nov 2014 14:42:03 +0100 Subject: [mapserver-users] Label wrapping question In-Reply-To: References: <266FA811-7611-42B8-843A-B471AF902F35@coin.hr> Message-ID: <6C350C33-8001-40C6-8FE9-BB5651051A80@coin.hr> Here it is: https://github.com/mapserver/mapserver/pull/5033 regards, dejan On 6. stu. 2014., at 22:27, Lime, Steve D (MNIT) wrote: > Dejan: If you'd open a ticket with your patches or submit a pull request it would be appreciated. --Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin > Sent: Thursday, November 06, 2014 7:34 AM > To: Rahkonen Jukka > Cc: 'mapserver-users at lists.osgeo.org' > Subject: Re: [mapserver-users] Label wrapping question > > Hi Jukka, > > If you remember, I've sent the screen captures. I am just interested if this change makes sense and do you plan to embed it in the future versions? > > Like I said, this is just the proof of concept. I didn't make change for label->encoding part, and also, it currently crashes in certain situation if I have a word in label text longer than maxlength. It should all be revised and modified. > > Thanks very much > > regards, dejan > On 24. ruj. 2014., at 15:15, Rahkonen Jukka (Tike) wrote: > >> Hi, >> >> Send us some screen captures of wrapped labels before and after your change. I feel that your change would make sense. >> >> -Jukka Rahkonen- >> >> Dejan Gambin wrote: >> >>> In the meantime, I have slightly changed msWrapText() function in >>> maplabel.c to get what I wanted. If someone is interested I can share the short piece of code. >>> >>> regards, dejan >>> >>> >>> On 23. ruj. 2014., at 12:32, Dejan Gambin wrote: >>> >>>> Hi, >>>> >>>> I have some users wishing to use long legend labels, but they don't >>>> fit well on >>> my site. As I can see, MapServer is doing this - if maxlength > 0 and wrap = 'char' >>> (usually space), insert a new line at the FIRST wrap character found >>> AFTER maxlength character. This is leading to some bad results (label >>> not wrapped or wrapped too early). >>>> >>>> My question is - shouldn't it be better to wrap at the LAST wrap >>>> character >>> BEFORE maxlength character? Is this maybe implemented somewhere or >>> there are plans for this? >>>> >>>> Thanks very much >>>> >>>> regards, dejan >>>> _______________________________________________ >>>> 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 samuelmesa at gmail.com Sat Nov 8 12:10:30 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Sat, 8 Nov 2014 15:10:30 -0500 Subject: [mapserver-users] Installation of Mapserver 6.4.1 In-Reply-To: <1676731053.95316.1415475084826.JavaMail.yahoo@jws11110.mail.ir2.yahoo.com> References: <1431220107.767309.1415141070460.JavaMail.yahoo@jws11125.mail.ir2.yahoo.com> <1676731053.95316.1415475084826.JavaMail.yahoo@jws11110.mail.ir2.yahoo.com> Message-ID: Try again decompressing the src and ignore step 2: 2. rm CMakeCache.txt CMakeFiles regards, Samuel Mesa. 2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou : > Hi Samuel, > > Thank you for the reply..!!! I'm getting the following error : CMake > Error: The source directory "/usr/local/src/mapserver-6.4.1/build" does not > appear to contain CMakeLists.txt. > Specify --help for usage, or press the help button on the CMake GUI. > > If I use CMake GUI I get permission error. I've placed the folder in > /usr/local/src. What should I do ? > > Stefanos > > > ???? 3:12 ?.?. ??????, 6 ????????? 2014, ?/? "samuelmesa at gmail.com" < > samuelmesa at gmail.com> ??????: > > > Hi Stefanos, the next is the instructions for compiling Mapserver in Arch > Linux [1]: > > 1. cd to src mapserver > 2. rm CMakeCache.txt CMakeFiles > 3. mkdir build > 4. cd build > 5. compiling as: > > cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \ > -DPYTHON_LIBRARIES=/usr/lib/python2.7 \ > -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ > -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ > -DWITH_CAIRO=ON \ > -DWITH_CLIENT_WFS=ON \ > -DWITH_CLIENT_WMS=ON \ > -DWITH_CSHARP=OFF \ > -DWITH_CURL=ON \ > -DWITH_EXEMPI=OFF \ > -DWITH_FCGI=ON \ > -DWITH_FRIBIDI=ON \ > -DWITH_GD=OFF \ > -DWITH_GDAL=ON \ > -DWITH_GENERIC_NINT=OFF \ > -DWITH_GEOS=ON \ > -DWITH_GIF=ON \ > -DWITH_ICONV=ON \ > -DWITH_JAVA=OFF \ > -DWITH_KML=ON \ > -DWITH_LIBXML2=ON \ > -DWITH_MSSQL2008=OFF \ > -DWITH_MYSQL=OFF \ > -DWITH_OGR=ON \ > -DWITH_ORACLESPATIAL=OFF \ > -DWITH_ORACLE_PLUGIN=OFF \ > -DWITH_PERL=OFF \ > -DWITH_PHP=ON \ > -DWITH_POINT_Z_M=OFF \ > -DWITH_POSTGIS=ON \ > -DWITH_PROJ=ON \ > -DWITH_PYTHON=ON \ > -DWITH_RSVG=OFF \ > -DWITH_RUBY=OFF \ > -DWITH_SDE=OFF \ > -DWITH_SDE_PLUGIN=OFF \ > -DWITH_SOS=ON \ > -DWITH_SVGCAIRO=ON \ > -DWITH_THREAD_SAFETY=ON \ > -DWITH_WCS=ON \ > -DWITH_WFS=ON \ > -DWITH_WMS=ON \ > -DWITH_XMLMAPFILE=OFF \ > -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ > > 6. make clean && make > 7. make install > > regards, > > Samuel Mesa. > > [1] https://aur.archlinux.org/packages/ma/mapserver/PKGBUILD > > 2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou : > > Hello.!! > > I'm wondering if the installation should be made only with cmake. Can't > someone just use the repos ? I'm trying to use cmake but getting a lot or > errors, probably having to do with the PREFIX path. So I'm feeling pretty > confused. I'm also not that good with linux file system hierarchy. > > Thanks > > Stefanos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > --- > .~. > / v \ > // \\ > /( )\ > ^`~'^ > > > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mostafa_riaydh at yahoo.com Fri Nov 7 04:10:58 2014 From: mostafa_riaydh at yahoo.com (mostafa_riaydh) Date: Thu, 7 Nov 2014 12:10:58 +0000 Subject: [mapserver-users] =?iso-8859-1?q?To=3A=09Rashed?= Message-ID: http://gokhantopcu.net/ffhhtr/nsbllerczkiqoyegqjxfdlaxhnatnwtiblrmykrj.fhlnhqctbcprdluwgjtrhktzsj mostafa_riaydh at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelmesa at gmail.com Mon Nov 10 11:34:50 2014 From: samuelmesa at gmail.com (Samuel Mesa) Date: Mon, 10 Nov 2014 14:34:50 -0500 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogIEluc3RhbGxhdGlvbiBvZiBN?= =?iso-8859-7?q?apserver_6=2E4=2E1?= In-Reply-To: <1641782196.462575.1415642645515.JavaMail.yahoo@jws11134.mail.ir2.yahoo.com > References: <1641782196.462575.1415642645515.JavaMail.yahoo@jws11134.mail.ir2.yahoo.com> Message-ID: <1415648090.4759.1@smtp.gmail.com> What distribution of Linux you are using Stefanos?. I think you could use a package manager to install dependencies and Mapserver. El lun, 10 de nov 2014 a las 1:04 PM, Stefanos Anastasiou escribi?: > Hello Samuel..!!! > > No I'm getting the following error: > > CMake Error at CMakeLists.txt:49 (message): > GEOS library/component/dependency could not be found. > > -- Could NOT find SVG (missing: SVG_LIBRARY SVG_INCLUDE_DIR) > -- Could NOT find SVGCAIRO (missing: SVGCAIRO_LIBRARY > SVGCAIRO_INCLUDE_DIR) > CMake Error at CMakeLists.txt:49 (message): > SVGCAIRO library/component/dependency could not be found. > > Could NOT find GDAL (missing: GDAL_LIBRARY GDAL_INCLUDE_DIR) > CMake Error at CMakeLists.txt:567 (message): > GDAL library could not be found and is needed for OGR support. > > Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version > "7.35.0") > CMake Error at CMakeLists.txt:60 (message): > CLIENT_WMS support requires GDAL support, however GDAL support has > been > disabled. > > CMake Error at CMakeLists.txt:60 (message): > CLIENT_WFS support requires OGR support, however OGR support has > been > disabled. > > CMake Error at CMakeLists.txt:60 (message): > WFS support requires OGR support, however OGR support has been > disabled. > > > CMake Error at CMakeLists.txt:60 (message): > KML support requires LIBXML2 support, however LIBXML2 support has > been > disabled. > > CMake Error at CMakeLists.txt:60 (message): > SOS support requires LIBXML2 support, however LIBXML2 support has > been > disabled. > > CMake Error at CMakeLists.txt:49 (message): > GIF library/component/dependency could not be found. > CMake Error at > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 > (message): > Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) > > > > Does is have to do with the compiling of the libraries? I installed > all libraries and their .dev through the repositories. Does it have > to do anything? > > Thanks a lot. > > Stefanos > > > > > > > > ???? 10:10 ?.?. ???????, 8 ????????? 2014, > ?/? "samuelmesa at gmail.com" ??????: > > > Try again decompressing the src and ignore step 2: > > 2. rm CMakeCache.txt CMakeFiles > > regards, > > Samuel Mesa. > > 2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou > : >> Hi Samuel, >> >> Thank you for the reply..!!! I'm getting the following error : >> CMake Error: The source directory >> "/usr/local/src/mapserver-6.4.1/build" does not appear to contain >> CMakeLists.txt. >> Specify --help for usage, or press the help button on the CMake GUI. >> >> If I use CMake GUI I get permission error. I've placed the folder in >> /usr/local/src. What should I do ? >> >> Stefanos >> >> >> ???? 3:12 ?.?. ??????, 6 ????????? 2014, ?/? >> "samuelmesa at gmail.com" ??????: >> >> >> Hi Stefanos, the next is the instructions for compiling Mapserver in >> Arch Linux [1]: >> >> 1. cd to src mapserver >> 2. rm CMakeCache.txt CMakeFiles >> 3. mkdir build >> 4. cd build >> 5. compiling as: >> cmake .. -DCMAKE_INSTALL_PREFIX=/usr >> -DPYTHON_EXECUTABLE=/usr/bin/python2 \ >> -DPYTHON_LIBRARIES=/usr/lib/python2.7 \ >> -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ >> -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" >> \ >> -DWITH_CAIRO=ON \ >> -DWITH_CLIENT_WFS=ON \ >> -DWITH_CLIENT_WMS=ON \ >> -DWITH_CSHARP=OFF \ >> -DWITH_CURL=ON \ >> -DWITH_EXEMPI=OFF \ >> -DWITH_FCGI=ON \ >> -DWITH_FRIBIDI=ON \ >> -DWITH_GD=OFF \ >> -DWITH_GDAL=ON \ >> -DWITH_GENERIC_NINT=OFF \ >> -DWITH_GEOS=ON \ >> -DWITH_GIF=ON \ >> -DWITH_ICONV=ON \ >> -DWITH_JAVA=OFF \ >> -DWITH_KML=ON \ >> -DWITH_LIBXML2=ON \ >> -DWITH_MSSQL2008=OFF \ >> -DWITH_MYSQL=OFF \ >> -DWITH_OGR=ON \ >> -DWITH_ORACLESPATIAL=OFF \ >> -DWITH_ORACLE_PLUGIN=OFF \ >> -DWITH_PERL=OFF \ >> -DWITH_PHP=ON \ >> -DWITH_POINT_Z_M=OFF \ >> -DWITH_POSTGIS=ON \ >> -DWITH_PROJ=ON \ >> -DWITH_PYTHON=ON \ >> -DWITH_RSVG=OFF \ >> -DWITH_RUBY=OFF \ >> -DWITH_SDE=OFF \ >> -DWITH_SDE_PLUGIN=OFF \ >> -DWITH_SOS=ON \ >> -DWITH_SVGCAIRO=ON \ >> -DWITH_THREAD_SAFETY=ON \ >> -DWITH_WCS=ON \ >> -DWITH_WFS=ON \ >> -DWITH_WMS=ON \ >> -DWITH_XMLMAPFILE=OFF \ >> -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ >> 6. make clean && make >> 7. make install >> >> regards, >> >> Samuel Mesa. >> >> [1] https://aur.archlinux.org/packages/ma/mapserver/PKGBUILD >> >> 2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou >> : >>> Hello.!! >>> >>> I'm wondering if the installation should be made only with cmake. >>> Can't someone just use the repos ? I'm trying to use cmake but >>> getting a lot or errors, probably having to do with the PREFIX >>> path. So I'm feeling pretty confused. I'm also not that good with >>> linux file system hierarchy. >>> >>> Thanks >>> >>> Stefanos >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> >> -- >> --- >> .~. >> / v \ >> // \\ >> /( )\ >> ^`~'^ >> >> > > > > -- > --- > .~. > / v \ > // \\ > /( )\ > ^`~'^ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelmesa at gmail.com Mon Nov 10 11:51:06 2014 From: samuelmesa at gmail.com (Samuel Mesa) Date: Mon, 10 Nov 2014 14:51:06 -0500 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9Dog0/fl9DogIEluc3RhbGxhdGlv?= =?iso-8859-7?q?n_of_Mapserver_6=2E4=2E1?= In-Reply-To: <804488707.486775.1415648419545.JavaMail.yahoo@jws11175.mail.ir2.yahoo.com> References: <804488707.486775.1415648419545.JavaMail.yahoo@jws11175.mail.ir2.yahoo.com> Message-ID: <1415649066.4759.2@smtp.gmail.com> I understand that the Ubuntu repositories are compatible with Linux Mint. Have you tried the following solution to install MapServer binaries from UbuntuGIS?: http://gis.stackexchange.com/questions/72588/how-to-install-qgis-2-0-on-mint-15?answertab=active#tab-top For Mapserver: sudo aptitude install python-software-properties sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo aptitude update sudo aptitude install mapserver El lun, 10 de nov 2014 a las 2:40 PM, Stefanos Anastasiou escribi?: > Hi Samuel, > > I'm using Linux Mint 17. Indeed I installed all libraries through the > repos and I presume it took care of the dependencies. And that was my > initial qusestion actually: if i should use the synaptic or compile > it from scratch. Probably the problem is in the paths of the > libraries that cmake can't find them but I think the paths are the > default paths that the synaptic installed them. > > Stefanos > > > ???? 9:34 ?.?. ???????, 10 ????????? 2014, > ?/? Samuel Mesa ??????: > > > What distribution of Linux you are using Stefanos?. I think you could > use a package manager to install dependencies and Mapserver. > > El lun, 10 de nov 2014 a las 1:04 PM, Stefanos Anastasiou > escribi?: >> Hello Samuel..!!! >> >> No I'm getting the following error: >> >> CMake Error at CMakeLists.txt:49 (message): >> GEOS library/component/dependency could not be found. >> >> -- Could NOT find SVG (missing: SVG_LIBRARY SVG_INCLUDE_DIR) >> -- Could NOT find SVGCAIRO (missing: SVGCAIRO_LIBRARY >> SVGCAIRO_INCLUDE_DIR) >> CMake Error at CMakeLists.txt:49 (message): >> SVGCAIRO library/component/dependency could not be found. >> >> Could NOT find GDAL (missing: GDAL_LIBRARY GDAL_INCLUDE_DIR) >> CMake Error at CMakeLists.txt:567 (message): >> GDAL library could not be found and is needed for OGR support. >> >> Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version >> "7.35.0") >> CMake Error at CMakeLists.txt:60 (message): >> CLIENT_WMS support requires GDAL support, however GDAL support has >> been >> disabled. >> >> CMake Error at CMakeLists.txt:60 (message): >> CLIENT_WFS support requires OGR support, however OGR support has >> been >> disabled. >> >> CMake Error at CMakeLists.txt:60 (message): >> WFS support requires OGR support, however OGR support has been >> disabled. >> >> >> CMake Error at CMakeLists.txt:60 (message): >> KML support requires LIBXML2 support, however LIBXML2 support has >> been >> disabled. >> >> CMake Error at CMakeLists.txt:60 (message): >> SOS support requires LIBXML2 support, however LIBXML2 support has >> been >> disabled. >> >> CMake Error at CMakeLists.txt:49 (message): >> GIF library/component/dependency could not be found. >> CMake Error at >> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 >> (message): >> Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) >> >> >> >> Does is have to do with the compiling of the libraries? I installed >> all libraries and their .dev through the repositories. Does it have >> to do anything? >> >> Thanks a lot. >> >> Stefanos >> >> >> >> >> >> >> >> ???? 10:10 ?.?. ???????, 8 ????????? 2014, >> ?/? "samuelmesa at gmail.com" ??????: >> >> >> Try again decompressing the src and ignore step 2: >> >> 2. rm CMakeCache.txt CMakeFiles >> >> regards, >> >> Samuel Mesa. >> >> 2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou >> : >>> Hi Samuel, >>> >>> Thank you for the reply..!!! I'm getting the following error : >>> CMake Error: The source directory >>> "/usr/local/src/mapserver-6.4.1/build" does not appear to contain >>> CMakeLists.txt. >>> Specify --help for usage, or press the help button on the CMake GUI. >>> >>> If I use CMake GUI I get permission error. I've placed the folder >>> in /usr/local/src. What should I do ? >>> >>> Stefanos >>> >>> >>> ???? 3:12 ?.?. ??????, 6 ????????? 2014, ?/? >>> "samuelmesa at gmail.com" ??????: >>> >>> >>> Hi Stefanos, the next is the instructions for compiling Mapserver >>> in Arch Linux [1]: >>> >>> 1. cd to src mapserver >>> 2. rm CMakeCache.txt CMakeFiles >>> 3. mkdir build >>> 4. cd build >>> 5. compiling as: >>> cmake .. -DCMAKE_INSTALL_PREFIX=/usr >>> -DPYTHON_EXECUTABLE=/usr/bin/python2 \ >>> -DPYTHON_LIBRARIES=/usr/lib/python2.7 \ >>> -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ >>> -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" >>> \ >>> -DWITH_CAIRO=ON \ >>> -DWITH_CLIENT_WFS=ON \ >>> -DWITH_CLIENT_WMS=ON \ >>> -DWITH_CSHARP=OFF \ >>> -DWITH_CURL=ON \ >>> -DWITH_EXEMPI=OFF \ >>> -DWITH_FCGI=ON \ >>> -DWITH_FRIBIDI=ON \ >>> -DWITH_GD=OFF \ >>> -DWITH_GDAL=ON \ >>> -DWITH_GENERIC_NINT=OFF \ >>> -DWITH_GEOS=ON \ >>> -DWITH_GIF=ON \ >>> -DWITH_ICONV=ON \ >>> -DWITH_JAVA=OFF \ >>> -DWITH_KML=ON \ >>> -DWITH_LIBXML2=ON \ >>> -DWITH_MSSQL2008=OFF \ >>> -DWITH_MYSQL=OFF \ >>> -DWITH_OGR=ON \ >>> -DWITH_ORACLESPATIAL=OFF \ >>> -DWITH_ORACLE_PLUGIN=OFF \ >>> -DWITH_PERL=OFF \ >>> -DWITH_PHP=ON \ >>> -DWITH_POINT_Z_M=OFF \ >>> -DWITH_POSTGIS=ON \ >>> -DWITH_PROJ=ON \ >>> -DWITH_PYTHON=ON \ >>> -DWITH_RSVG=OFF \ >>> -DWITH_RUBY=OFF \ >>> -DWITH_SDE=OFF \ >>> -DWITH_SDE_PLUGIN=OFF \ >>> -DWITH_SOS=ON \ >>> -DWITH_SVGCAIRO=ON \ >>> -DWITH_THREAD_SAFETY=ON \ >>> -DWITH_WCS=ON \ >>> -DWITH_WFS=ON \ >>> -DWITH_WMS=ON \ >>> -DWITH_XMLMAPFILE=OFF \ >>> -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ >>> 6. make clean && make >>> 7. make install >>> >>> regards, >>> >>> Samuel Mesa. >>> >>> [1] https://aur.archlinux.org/packages/ma/mapserver/PKGBUILD >>> >>> 2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou >>> : >>>> Hello.!! >>>> >>>> I'm wondering if the installation should be made only with cmake. >>>> Can't someone just use the repos ? I'm trying to use cmake but >>>> getting a lot or errors, probably having to do with the PREFIX >>>> path. So I'm feeling pretty confused. I'm also not that good with >>>> linux file system hierarchy. >>>> >>>> Thanks >>>> >>>> Stefanos >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >>> >>> -- >>> --- >>> .~. >>> / v \ >>> // \\ >>> /( )\ >>> ^`~'^ >>> >>> >> >> >> >> -- >> --- >> .~. >> / v \ >> // \\ >> /( )\ >> ^`~'^ >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelmesa at gmail.com Mon Nov 10 13:44:46 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Mon, 10 Nov 2014 16:44:46 -0500 Subject: [mapserver-users] =?utf-8?b?zqPPh861z4Q6IM6jz4fOtc+EOiAgSW5zdGFs?= =?utf-8?q?lation_of_Mapserver_6=2E4=2E1?= In-Reply-To: <1074822209.500296.1415652049200.JavaMail.yahoo@jws11149.mail.ir2.yahoo.com> References: <1415649066.4759.2@smtp.gmail.com> <1074822209.500296.1415652049200.JavaMail.yahoo@jws11149.mail.ir2.yahoo.com> Message-ID: Then try the next installation: sudo apt-get install cgi-mapserver mapserver-bin Generally, the installation is in /usr. So, the CGI Mapserver is in /usr/lib /cgi-bin/mapserv. 2014-11-10 15:40 GMT-05:00 Stefanos Anastasiou : > Indeed Mint's repositiories are based on Ubuntu's. I just tried the method > you proposed by adding UbuntuGIS. I get the following: > > Couldn't find package "mapserver". However, the following > packages contain "mapserver" in their name: > mapserver-doc cgi-mapserver qgis-mapserver mapserver-bin > libmapserver1-dev libmapserver1 > Couldn't find package "mapserver". However, the following > packages contain "mapserver" in their name: > mapserver-doc cgi-mapserver qgis-mapserver mapserver-bin > libmapserver1-dev libmapserver1 > No packages will be installed, upgraded, or removed. > 0 packages upgraded, 0 newly installed, 0 to remove and 87 not upgraded. > Need to get 0 B of archives. After unpacking 0 B will be used. > > > From what I've seen the same packages are on the repositories of Mint 17. > Should I install what it proposes above? In which folder will it be > installed..? I was trying to compile it because I though it's necessary to > be installed in /usr/local/src > > Stefanos > > > ???? 9:51 ?.?. ???????, 10 ????????? 2014, ?/? Samuel Mesa < > samuelmesa at gmail.com> ??????: > > > I understand that the Ubuntu repositories are compatible with Linux Mint. > Have you tried the following solution to install MapServer binaries from > UbuntuGIS?: > > > http://gis.stackexchange.com/questions/72588/how-to-install-qgis-2-0-on-mint-15?answertab=active#tab-top > > For Mapserver: > > sudo aptitude install python-software-properties > sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable > sudo aptitude update > sudo aptitude install mapserver > > > El lun, 10 de nov 2014 a las 2:40 PM, Stefanos Anastasiou < > emperor_stef at yahoo.gr> escribi?: > > Hi Samuel, > > I'm using Linux Mint 17. Indeed I installed all libraries through the > repos and I presume it took care of the dependencies. And that was my > initial qusestion actually: if i should use the synaptic or compile it from > scratch. Probably the problem is in the paths of the libraries that cmake > can't find them but I think the paths are the default paths that the > synaptic installed them. > > Stefanos > > > ???? 9:34 ?.?. ???????, 10 ????????? 2014, ?/? Samuel Mesa < > samuelmesa at gmail.com> ??????: > > > What distribution of Linux you are using Stefanos?. I think you could use > a package manager to install dependencies and Mapserver. > > El lun, 10 de nov 2014 a las 1:04 PM, Stefanos Anastasiou < > emperor_stef at yahoo.gr> escribi?: > > Hello Samuel..!!! > > No I'm getting the following error: > > CMake Error at CMakeLists.txt:49 (message): > GEOS library/component/dependency could not be found. > > -- Could NOT find SVG (missing: SVG_LIBRARY SVG_INCLUDE_DIR) > -- Could NOT find SVGCAIRO (missing: SVGCAIRO_LIBRARY > SVGCAIRO_INCLUDE_DIR) > CMake Error at CMakeLists.txt:49 (message): > SVGCAIRO library/component/dependency could not be found. > > Could NOT find GDAL (missing: GDAL_LIBRARY GDAL_INCLUDE_DIR) > CMake Error at CMakeLists.txt:567 (message): > GDAL library could not be found and is needed for OGR support. > > Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version "7.35.0") > CMake Error at CMakeLists.txt:60 (message): > CLIENT_WMS support requires GDAL support, however GDAL support has been > disabled. > > CMake Error at CMakeLists.txt:60 (message): > CLIENT_WFS support requires OGR support, however OGR support has been > disabled. > > CMake Error at CMakeLists.txt:60 (message): > WFS support requires OGR support, however OGR support has been disabled. > > > CMake Error at CMakeLists.txt:60 (message): > KML support requires LIBXML2 support, however LIBXML2 support has been > disabled. > > CMake Error at CMakeLists.txt:60 (message): > SOS support requires LIBXML2 support, however LIBXML2 support has been > disabled. > > CMake Error at CMakeLists.txt:49 (message): > GIF library/component/dependency could not be found. > CMake Error at > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 > (message): > Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) > > > > Does is have to do with the compiling of the libraries? I installed all > libraries and their .dev through the repositories. Does it have to do > anything? > > Thanks a lot. > > Stefanos > > > > > > > > ???? 10:10 ?.?. ???????, 8 ????????? 2014, ?/? "samuelmesa at gmail.com" < > samuelmesa at gmail.com> ??????: > > > Try again decompressing the src and ignore step 2: > > 2. rm CMakeCache.txt CMakeFiles > > regards, > > Samuel Mesa. > > 2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou : > > Hi Samuel, > > Thank you for the reply..!!! I'm getting the following error : CMake > Error: The source directory "/usr/local/src/mapserver-6.4.1/build" does not > appear to contain CMakeLists.txt. > Specify --help for usage, or press the help button on the CMake GUI. > > If I use CMake GUI I get permission error. I've placed the folder in > /usr/local/src. What should I do ? > > Stefanos > > > ???? 3:12 ?.?. ??????, 6 ????????? 2014, ?/? "samuelmesa at gmail.com" < > samuelmesa at gmail.com> ??????: > > > Hi Stefanos, the next is the instructions for compiling Mapserver in Arch > Linux [1]: > > 1. cd to src mapserver > 2. rm CMakeCache.txt CMakeFiles > 3. mkdir build > 4. cd build > 5. compiling as: > > cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \ > -DPYTHON_LIBRARIES=/usr/lib/python2.7 \ > -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ > -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ > -DWITH_CAIRO=ON \ > -DWITH_CLIENT_WFS=ON \ > -DWITH_CLIENT_WMS=ON \ > -DWITH_CSHARP=OFF \ > -DWITH_CURL=ON \ > -DWITH_EXEMPI=OFF \ > -DWITH_FCGI=ON \ > -DWITH_FRIBIDI=ON \ > -DWITH_GD=OFF \ > -DWITH_GDAL=ON \ > -DWITH_GENERIC_NINT=OFF \ > -DWITH_GEOS=ON \ > -DWITH_GIF=ON \ > -DWITH_ICONV=ON \ > -DWITH_JAVA=OFF \ > -DWITH_KML=ON \ > -DWITH_LIBXML2=ON \ > -DWITH_MSSQL2008=OFF \ > -DWITH_MYSQL=OFF \ > -DWITH_OGR=ON \ > -DWITH_ORACLESPATIAL=OFF \ > -DWITH_ORACLE_PLUGIN=OFF \ > -DWITH_PERL=OFF \ > -DWITH_PHP=ON \ > -DWITH_POINT_Z_M=OFF \ > -DWITH_POSTGIS=ON \ > -DWITH_PROJ=ON \ > -DWITH_PYTHON=ON \ > -DWITH_RSVG=OFF \ > -DWITH_RUBY=OFF \ > -DWITH_SDE=OFF \ > -DWITH_SDE_PLUGIN=OFF \ > -DWITH_SOS=ON \ > -DWITH_SVGCAIRO=ON \ > -DWITH_THREAD_SAFETY=ON \ > -DWITH_WCS=ON \ > -DWITH_WFS=ON \ > -DWITH_WMS=ON \ > -DWITH_XMLMAPFILE=OFF \ > -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ > > 6. make clean && make > 7. make install > > regards, > > Samuel Mesa. > > [1] https://aur.archlinux.org/packages/ma/mapserver/PKGBUILD > > 2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou : > > Hello.!! > > I'm wondering if the installation should be made only with cmake. Can't > someone just use the repos ? I'm trying to use cmake but getting a lot or > errors, probably having to do with the PREFIX path. So I'm feeling pretty > confused. I'm also not that good with linux file system hierarchy. > > Thanks > > Stefanos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > --- > .~. > / v \ > // \\ > /( )\ > ^`~'^ > > > > > > -- > --- > .~. > / v \ > // \\ > /( )\ > ^`~'^ > > > > > > > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mh at mapcentia.com Tue Nov 11 01:10:14 2014 From: mh at mapcentia.com (Martin Hoegh) Date: Tue, 11 Nov 2014 10:10:14 +0100 Subject: [mapserver-users] PostGIS raster connection is not closed by MapServer References: <8EDBF68A-B399-4104-89CE-FCD510560B32@mapcentia.com> Message-ID: I'm using PostGIS raster in MapServer like this: TYPE RASTER DATA ?PG:port=5432 dbname='mydb' user='postgres' password='1234' schema='public' table='truemarble' mode='2'" PROCESSING "CLOSE_CONNECTION=ALWAYS" My problem is that the database connection is not closed after a request, which leads to connection leak. It works fine with PostGIS vectors in the same database. Any ideas? I've tested with: python_mapscript in a mod_python application php_mapscript in a php-fpm application (Fastcgi) Both on apache2-mpm-worker MapServer 6.2 and 6.4, GDAL 1.10 and GDAL 1.11, Ubuntu 12.04 and 14.04 For now I?ve fixed it with pgbouncer. Martin H?gh mapcentia.com +45 26277810 Skype: mhoegh1 about.me/mhoegh From samuelmesa at gmail.com Tue Nov 11 10:15:22 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Tue, 11 Nov 2014 13:15:22 -0500 Subject: [mapserver-users] Configuring TinyOWS with a standard Mapfile in OSGeo4W Message-ID: I've tried to create a WFS-T service configuring TinyOWS with a standard Mapfile in OSGeo4W, following the instructions in [1]. The connection is correct but does not enable transccionales operations, example using QGIS Desktop. Has anyone been able start up the WFS-T service from Mapfile and TinyOWS in OSGeo4W? There are limitations on OSGeo4W to publish the WFS-T service with Mapfile? regards, Samuel Mesa. [1]. http://mapserver.org/tinyows/mapfileconfig.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Tue Nov 11 14:43:33 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Tue, 11 Nov 2014 22:43:33 +0000 Subject: [mapserver-users] [mapserver-dev] Configuring TinyOWS with a standard Mapfile in OSGeo4W In-Reply-To: References: Message-ID: <47caca0bd4d6484a92534905be9baa40@C119S212VM022.msvyvi.vaha.local> Hi, Please send your LAYER. Just to make sure that there are no typos etc. Check also that user you use for making a connection have INSERT/UPDATE/DELETE rights. How does QGIS behave? Which QGIS version? Can you switch the layer to edit mode? Is just saving the changes that fails? -Jukka Rahkonen- ________________________________ samuelmesa wrote I've tried to create a WFS-T service configuring TinyOWS with a standard Mapfile in OSGeo4W, following the instructions in [1]. The connection is correct but does not enable transccionales operations, example using QGIS Desktop. Has anyone been able start up the WFS-T service from Mapfile and TinyOWS in OSGeo4W? There are limitations on OSGeo4W to publish the WFS-T service with Mapfile? regards, Samuel Mesa. [1]. http://mapserver.org/tinyows/mapfileconfig.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelmesa at gmail.com Tue Nov 11 18:11:45 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Tue, 11 Nov 2014 21:11:45 -0500 Subject: [mapserver-users] [mapserver-dev] Configuring TinyOWS with a standard Mapfile in OSGeo4W In-Reply-To: <47caca0bd4d6484a92534905be9baa40@C119S212VM022.msvyvi.vaha.local> References: <47caca0bd4d6484a92534905be9baa40@C119S212VM022.msvyvi.vaha.local> Message-ID: Thanks for your reply. I published the WFS service configured the config.xml file in TinyOWS. When I perform the GetCapabilities request, I have verified that is supported transactional operations: http://127.0.0.1/cgi-bin/tinyows.exe?Service=WFS&Request=GetCapabilities Query Insert Update Delete In this case, only edits TinyOWS when I add the check_schema="0" attribute in config.xml, according to [1]. However, when I setup TinyOWS in Mapfile file, this is not possible to enable transactional operations. http://localhost/cgi-bin/mapserv.exe?map=C:/OSGeo4W/httpd.d/Mapfile/bogota.map&Service=WFS&Request=GetCapabilities Query I have set the environment variable in httpd.conf of Apacha, according to [2]: SetEnv TINYOWS_MAPFILE "C:\OSGeo4W/httpd.d/Mapfile/bogota.map" The software used is OSGeo4W x86, Mapserver 6.4.1, postgis 2.1, TinyOWS 1.1.0 and QGIS 2.4, 2.6 and 2.7 for editing. I attached the project with all files postgis layers, the mapfile project and configuration TinyOWS file. Download project: http://goo.gl/BQmpYx Thanks for your reply. [1] http://lists.osgeo.org/pipermail/mapserver-users/2014-January/075869.html [2] http://mapserver.org/tinyows/mapfileconfig.html 2014-11-11 17:43 GMT-05:00 Rahkonen Jukka (Tike) : > Hi, > > > Please send your LAYER. Just to make sure that there are no typos etc. > Check also that user you use for making a connection have > INSERT/UPDATE/DELETE rights. > > > How does QGIS behave? Which QGIS version? Can you switch the layer to > edit mode? Is just saving the changes that fails? > > > -Jukka Rahkonen- > ------------------------------ > samuelmesa wrote > > I've tried to create a WFS-T service configuring TinyOWS with a standard > Mapfile in OSGeo4W, following the instructions in [1]. > > The connection is correct but does not enable transccionales operations, > example using QGIS Desktop. > > Has anyone been able start up the WFS-T service from Mapfile and TinyOWS > in OSGeo4W? There are limitations on OSGeo4W to publish the WFS-T service > with Mapfile? > > regards, > > Samuel Mesa. > > [1]. http://mapserver.org/tinyows/mapfileconfig.html > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelmesa at gmail.com Tue Nov 11 17:56:48 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Tue, 11 Nov 2014 20:56:48 -0500 Subject: [mapserver-users] [mapserver-dev] Configuring TinyOWS with a standard Mapfile in OSGeo4W In-Reply-To: <47caca0bd4d6484a92534905be9baa40@C119S212VM022.msvyvi.vaha.local> References: <47caca0bd4d6484a92534905be9baa40@C119S212VM022.msvyvi.vaha.local> Message-ID: Thanks Jukka for your reply. I published the WFS service configured the config.xml file in TinyOWS. When I perform the GetCapabilities request, I have verified that is supported transactional operations: http://127.0.0.1/cgi-bin/tinyows.exe?Service=WFS&Request=GetCapabilities Query Insert Update Delete In this case, only edits TinyOWS when I add the check_schema="0" attribute in config.xml, according to [1]. However, when I setup TinyOWS in Mapfile file, this is not possible to enable transactional operations. http://localhost/cgi-bin/mapserv.exe?map=C:/OSGeo4W/httpd.d/Mapfile/bogota.map&Service=WFS&Request=GetCapabilities Query I have set the environment variable in httpd.conf of Apacha, according to [2]: SetEnv TINYOWS_MAPFILE "C:\OSGeo4W/httpd.d/Mapfile/bogota.map" The software used is OSGeo4W x86, Mapserver 6.4.1, postgis 2.1, TinyOWS 1.1.0 and QGIS 2.4, 2.6 and 2.7 for editing. I attached the project with all files postgis layers, the mapfile project and configuration TinyOWS file. Thanks for your reply. [1] http://lists.osgeo.org/pipermail/mapserver-users/2014-January/075869.html [2] http://mapserver.org/tinyows/mapfileconfig.html 2014-11-11 17:43 GMT-05:00 Rahkonen Jukka (Tike) : > Hi, > > > Please send your LAYER. Just to make sure that there are no typos etc. > Check also that user you use for making a connection have > INSERT/UPDATE/DELETE rights. > > > How does QGIS behave? Which QGIS version? Can you switch the layer to > edit mode? Is just saving the changes that fails? > > > -Jukka Rahkonen- > ------------------------------ > samuelmesa wrote > > I've tried to create a WFS-T service configuring TinyOWS with a standard > Mapfile in OSGeo4W, following the instructions in [1]. > > The connection is correct but does not enable transccionales operations, > example using QGIS Desktop. > > Has anyone been able start up the WFS-T service from Mapfile and TinyOWS > in OSGeo4W? There are limitations on OSGeo4W to publish the WFS-T service > with Mapfile? > > regards, > > Samuel Mesa. > > [1]. http://mapserver.org/tinyows/mapfileconfig.html > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bogota_mapfile.zip Type: application/zip Size: 831725 bytes Desc: not available URL: From adams at terrestris.de Tue Nov 11 23:30:44 2014 From: adams at terrestris.de (Till Adams) Date: Wed, 12 Nov 2014 08:30:44 +0100 Subject: [mapserver-users] FOSSGIS 2015: Call for Papers FOSSGIS 2015 verl?ngert bis zum 29.11.2014 Message-ID: <54630CA4.9080303@terrestris.de> Hallo FOSSGIS-Aktive, OSM-Mitstreiter und alle Open Source GIS und Data Aktive, wir verl?ngern den Call for Papers f?r die #FOSSGIS2015 bis zum 29.11.2014. [http://www.fossgis.de/konferenz/2015/callforpapers/]. Direkt zur Abstrakteinreichung geht es hier: [http://pb.fossgis.de/submission/FOSSGIS2015]. Wir freuen uns auf Eure Beitr?ge, die ben?tigt werden, um auch f?r die FOSSGIS 2015 ein interessantes, vielseitiges und spannendes Programm f?r alle Teilnehmer zu erstellen. Wer mehr ?ber M?nster erfahren m?chte, schaut in den n?chsten Tagen auf der Konferenzhomepage vorbei. Nat?rlich d?rft Ihr diese Nachricht in die entsprechenden Mailinglisten, in denen Ihr kommuniziert verteilen. Vielen Dank daf?r. Die Aktivit?ten und News zur FOSSGIS 2015 gibt es auch auf Twitter - [https://twitter.com/FOSSGIS2015]. Freundliche Gr??e vom FOSSGIS-Orgateam From dietmar.stolz at freenet.de Wed Nov 12 04:28:55 2014 From: dietmar.stolz at freenet.de (Dietmar Stolz) Date: Wed, 12 Nov 2014 13:28:55 +0100 Subject: [mapserver-users] change kml style output Message-ID: <54635287.70403@freenet.de> Hi, is it possible to change kml style output? Mapserver writes only fix style information in the kml result file: // It seems that the problem only occurs with wfs requests. wms request works fine. MapServer version 6.4.1 / OUTPUTFORMAT/ / NAME "kml"/ / DRIVER "OGR/KML" # wms without OGR/ / MIMETYPE "application/vnd.google-earth.kml+xml"/ / EXTENSION "kml"/ / FORMATOPTION "STORAGE=memory"/ / FORMATOPTION "FORM=simple"/ / END/ / LAYER/ / NAME "electricity"/ / TYPE LINE/ / DATA "electricity.shp"/ / METADATA/ / "ows_title" "electricity"/ / "ows_abstract" "electricity"/ / "ows_include_items" "all"/ / "OWS_SRS" "EPSG:25832"/ / "wfs_getfeature_formatlist" "text/csv,gml,geojson,xml,kml"/ / END/ / DUMP TRUE/ / TEMPLATE "../templates/void.html"/ / CLASS/ / STYLE/ / COLOR 0 255 0/ / OUTLINECOLOR 0 0 255/ / WIDTH 4/ / END/ / END/ / END/ Thx, Dietmar -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathias.cunault at inrap.fr Wed Nov 12 07:21:30 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Wed, 12 Nov 2014 07:21:30 -0800 (PST) Subject: [mapserver-users] no featurecount in cluster Message-ID: <1415805690704-5172621.post@n6.nabble.com> I am experiencing an issue using cluster with mapserver 6. I am using "Cluster: FeatureCount" as label in the layer but depending on the scale, some clusters are empty. I can't find the reason why. Look in the center and on bottom left of the image. Thx -- View this message in context: http://osgeo-org.1560.x6.nabble.com/no-featurecount-in-cluster-tp5172621.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Michael.Smith at erdc.dren.mil Wed Nov 12 07:28:26 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 12 Nov 2014 15:28:26 +0000 Subject: [mapserver-users] [EXTERNAL] no featurecount in cluster In-Reply-To: <1415805690704-5172621.post@n6.nabble.com> References: <1415805690704-5172621.post@n6.nabble.com> Message-ID: A recent change to clusters were to replace the colon (:) with a underscore (_). Use Cluster_FeatureCount as the variable. This change was made as the colon made it invalid gml. Mike On 11/12/14, 10:21 AM, "Leehan" wrote: >I am experiencing an issue using cluster with mapserver 6. >I am using "Cluster: FeatureCount" as label in the layer but depending on >the scale, some clusters are empty. >I can't find the reason why. >Look in the center and on bottom left of the image. >Thx > > > > > >-- >View this message in context: >http://osgeo-org.1560.x6.nabble.com/no-featurecount-in-cluster-tp5172621.h >tml >Sent from the Mapserver - User mailing list archive at Nabble.com. >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From bruno.domenget at rochservice.com Wed Nov 12 08:57:14 2014 From: bruno.domenget at rochservice.com (Bruno D) Date: Wed, 12 Nov 2014 08:57:14 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error Message-ID: <1415811434127-5172655.post@n6.nabble.com> Hi everyone, I'm using MapServer on a CentOS 6 server, everything works fine except for the OGR output. When I try to select an outputformat that uses OGR, I always get the following errors (and nothing more, making debugging really difficult) : *msDrawMap() : Unable to initialize image. msPrepareImage() : Unable to initialize image.* I tried a lot of things but I still haven't found the source of this problem, does anyone have any idea ? Thanks ! Server configuration : *MapServer 6.4.1 GDal 1.9.2 (also tried with GDal 1.8.1)* Example of a mapfile I'm trying to output (PNG and KMZ work fine, the other formats don't) : /MAP NAME "TOTO" SIZE 1000 600 STATUS ON SYMBOLSET "./symbols.txt" EXTENT -10 40 9 51 UNITS DD SHAPEPATH "./shapefiles" CONFIG "MS_ERRORFILE" "./erreurs_mapserver.txt" CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" DEBUG 5 PROJECTION "init=epsg:4326" END WEB IMAGEPATH "./output/" IMAGEURL "./output/" END # WEB OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END OUTPUTFORMAT NAME "kmz" DRIVER KMZ MIMETYPE "application/vnd.google-earth.kmz" IMAGEMODE RGB EXTENSION "kmz" FORMATOPTION "maxfeaturestodraw=1000000000" END OUTPUTFORMAT NAME "CSV" DRIVER "OGR/CSV" MIMETYPE "text/csv" FORMATOPTION "LCO:GEOMETRY=AS_WKT" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=simple" FORMATOPTION "FILENAME=result.csv" END OUTPUTFORMAT NAME "SHAPEZIP" DRIVER "OGR/ESRI Shapefile" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=result.zip" END OUTPUTFORMAT NAME "MIDMIF" DRIVER "OGR/MapInfo File" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" FORMATOPTION "DSCO:FORMAT=MIF" FORMATOPTION "FILENAME=result.mif" END OUTPUTFORMAT NAME "DXF" DRIVER "OGR/DXF" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=result.csv" END LAYER DATA "Bati" METADATA "ows_title" "Bati" END # METADATA NAME "Bati" STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Bati" STYLE ANGLE 0 COLOR 103 132 169 OFFSET 0 0 OUTLINECOLOR 0 0 0 WIDTH 0.91 END # STYLE END # CLASS PROJECTION "init=epsg:27561" END END # LAYER END # MAP/ And the corresponding PHP file : /$map = ms_newMapObj("./toto.map"); if($_REQUEST["type_fichier"] == "kmz") { $map->selectOutputFormat("kmz"); } else if($_REQUEST["type_fichier"] == "shp") { $map->selectOutputFormat("SHAPEZIP"); } else if($_REQUEST["type_fichier"] == "dxf") { $map->selectOutputFormat("DXF"); } else if($_REQUEST["type_fichier"] == "midmif") { $map->selectOutputFormat("MIDMIF"); } else if($_REQUEST["type_fichier"] == "csv") { $map->selectOutputFormat("CSV"); } try { $image = $map->draw(); if($image != NULL) { $image_url = $image->saveWebImage(); echo "ok
". $image_url; } else { echo "pasok
"; $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { echo $error->routine." : ".$error->message."
"; $error = $error->next(); } } } catch(Exception $e) { echo "pasok
"; echo $e->getMessage()."
"; $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { echo $error->routine." : ".$error->message."
"; $error = $error->next(); } }/ -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mathias.cunault at inrap.fr Wed Nov 12 22:55:34 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Wed, 12 Nov 2014 22:55:34 -0800 (PST) Subject: [mapserver-users] [EXTERNAL] no featurecount in cluster In-Reply-To: References: <1415805690704-5172621.post@n6.nabble.com> Message-ID: <1415861734774-5172718.post@n6.nabble.com> LABELITEM "Cluster_FeatureCount" does not work : Query error. Error executing query: column cluster_featureCount doesn't exist. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/no-featurecount-in-cluster-tp5172621p5172718.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bruno.domenget at rochservice.com Thu Nov 13 00:33:22 2014 From: bruno.domenget at rochservice.com (Bruno D) Date: Thu, 13 Nov 2014 00:33:22 -0800 (PST) Subject: [mapserver-users] MapServer 6.4.1 OGR output error In-Reply-To: <1415811434127-5172655.post@n6.nabble.com> References: <1415811434127-5172655.post@n6.nabble.com> Message-ID: <1415867602491-5172731.post@n6.nabble.com> Hi all, Sorry I forgot to add the debug output : /[Thu Nov 13 09:26:55 2014].276919 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Thu Nov 13 09:26:55 2014].276942 msDrawMap(): WMS/WFS set-up and query, 0.000s [Thu Nov 13 09:26:55 2014].611233 msDrawMap(): Layer 0 (Bati), 0.334s [Thu Nov 13 09:26:55 2014].611246 msDrawMap(): Drawing Label Cache, 0.000s [Thu Nov 13 09:26:55 2014].611250 msDrawMap() total time: 0.336s [Thu Nov 13 09:26:55 2014].624686 msFreeMap(): freeing map at 0xc4a480. [Thu Nov 13 09:27:14 2014].559160 msPrepareImage(): GD library error. Unable to initialize image. [Thu Nov 13 09:27:14 2014].559179 msDrawMap(): Image handling error. Unable to initialize image. [Thu Nov 13 09:27:14 2014].560997 msFreeMap(): freeing map at 0xc4a4c0./ There is a GD library error, I checked and GD (libGD v2.0.34) seems to be installed correctly on my server. I thought MapServer no longer used GD unless the installation parameters stated otherwise, am I wrong ? Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-tp5172655p5172731.html Sent from the Mapserver - User mailing list archive at Nabble.com. From huub.gis at gmail.com Mon Nov 17 06:01:00 2014 From: huub.gis at gmail.com (Huub Fleuren) Date: Mon, 17 Nov 2014 15:01:00 +0100 Subject: [mapserver-users] wrong type cast for OGRVRT datasource Message-ID: Hi List, De following OGRVRT datasource is used to define a Mapserver layer on an ODBC connection to a MSACCESS tabel that contains x and y values. This works fine. CONNECTION " ODBC:admin/admin at MyMSACCESSDatabase SELECT * FROM kpxy wkbPoint WGS84 " Now we need a WFS on this, and we should be able to select a record based on a field value. A WFS-Filter might look like kp_nr06864 The error is described by the following msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOGRFileNextShape(): OGR error. Type mismatch or improper type of arguments to = operator. So, the kp_nr field is not of type integer in the underlying database. The Literal states 06864, which at least looks like an int. Take a look at the datasource again. The fields kp_id and kp_nr are defined as String, not Integer. I take it that Mapserver cannot determine the correct type from the Literal which looks like an int But now I explicitly defined the type in the MAP file. I proved this case by looking up a Literal on the same property that actually contains a real Character. No errors So Mapserver tries to 'see' the datatype instead of looking it up. I can imagine you need to do that if you cannot access the database but in this case the datatype of this field is given. No need to gamble datatypes between records... Should i file a bug report? Regards, Huub -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdmorgan at unca.edu Tue Nov 18 14:26:34 2014 From: jdmorgan at unca.edu (jdmorgan) Date: Tue, 18 Nov 2014 17:26:34 -0500 Subject: [mapserver-users] Mapserver as static executable Message-ID: <546BC79A.9010102@gmail.com> Hello, I am trying to compile MapServer 6.4.1 on CENTOS (RHEL Linux) in as a stand-alone static executable. At http://mapserver.org/installation/unix.html it says "If you want to also build a static version of the library, the BUILD_STATIC and LINK_STATIC_LIBMAPSERVER options can be used," therefore I have included those parameters. However, after I complete the MAKE and MAKE INSTALL steps the resulting mapserv executable doesn't seem to be static. To test this I am doing a /ldd mapserv /which list all of the dependencies, where I would expect none. If anyone could provide advice that would be great. Here is my CMAKE command: cmake -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_PREFIX_PATH="/usr/pgsql-9.3" \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -BUILD_STATIC=ON \ -LINK_STATIC_LIBMAPSERVER=ON \ -DWITH_CAIRO=0 .. >../configure.out.txt Thanks, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 19 03:51:12 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 19 Nov 2014 12:51:12 +0100 Subject: [mapserver-users] Mapserver as static executable In-Reply-To: <546BC79A.9010102@gmail.com> References: <546BC79A.9010102@gmail.com> Message-ID: Those flags only influence how the mapserver binaries (shp2img, mapserv, etc...) are linked to libmapserver, not how libmapserver links to its dependencies. There is currently now way that I know of to statically link the dependencies. If you figure out how to do so in cmake and wanted to submit a patch I would happily include it. regards, thomas On 18 November 2014 23:26, jdmorgan wrote: > Hello, > > I am trying to compile MapServer 6.4.1 on CENTOS (RHEL Linux) in as a > stand-alone static executable. At > http://mapserver.org/installation/unix.html it says "If you want to also > build a static version of the library, the BUILD_STATIC and > LINK_STATIC_LIBMAPSERVER options can be used," therefore I have included > those parameters. However, after I complete the MAKE and MAKE INSTALL steps > the resulting mapserv executable doesn't seem to be static. To test this I > am doing a ldd mapserv which list all of the dependencies, where I would > expect none. If anyone could provide advice that would be great. Here is > my CMAKE command: > > > > cmake -DCMAKE_INSTALL_PREFIX="/usr" \ > -DCMAKE_PREFIX_PATH="/usr/pgsql-9.3" \ > -DWITH_CLIENT_WFS=ON \ > -DWITH_CLIENT_WMS=ON \ > -BUILD_STATIC=ON \ > -LINK_STATIC_LIBMAPSERVER=ON \ > -DWITH_CAIRO=0 .. >../configure.out.txt > > Thanks, > Derek > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From 1203849336 at qq.com Thu Nov 20 07:27:17 2014 From: 1203849336 at qq.com (=?utf-8?B?ZnV0dXJlIGRyZWFt?=) Date: Thu, 20 Nov 2014 23:27:17 +0800 Subject: [mapserver-users] asking for help about mapcache Message-ID: Questions: i installed mapserver-6.4.1 and mapcache-1.2.i visit this url :?http://10.3.1.151:8041/cgi-bin/mapserv?map=/home/qqcao/mapserver/new/mapserver/mapserver-6.4.1/tests/raster.map&FORMAT=png&SERVICE=WMS&VERSION=1.1.1&LAYERS=RASTER&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=-7,40,2,60&WIDTH=300&HEIGHT=500 when i only use mapserver.but i find that i must change the url to ?when i combine with mapcache.i eager to konw why it happens.There have many service choice when i visit .i click one of them and display a picture.i wonder why i must visit this url and how it works to display a picture.Does the demo service works like the openlayer? where i can find it?i want to konw more about the demo service. Thanks for all the help!? Diana -------------- next part -------------- An HTML attachment was scrubbed... URL: From carsen.banister at gmail.com Mon Nov 24 17:50:03 2014 From: carsen.banister at gmail.com (Carsen Banister) Date: Mon, 24 Nov 2014 20:50:03 -0500 Subject: [mapserver-users] MapServer SOS setup questions Message-ID: <001e01d00852$233fab20$69bf0160$@gmail.com> Hi, I would appreciate any help on some items associated with setting up MapServer SOS. I am quite new to MapServer, and am trying to get up to speed as quickly as possible. The reason for using MapServer's SOS is that the database structure is custom and I'm not aware of any other SOS servers that support custom MySQL databases (if you can point me in a direction easier than MapServer, please do!). So, the questions I am hoping to get clarification on are: 1. How do you connect different layers together? e.g. layer and sublayer. What is the syntax for that in the mapfile? 2. Is there a way to dynamically generate layers (e.g. from database query result), or does the layer structure have to be hardcoded? 3. When you do a GetObservation, how do you set up MapServer so that that request pulls data from the database, e.g. OVF file configuration? Thanks in advance for any assistance. Best regards, Carsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Nov 25 05:21:29 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 25 Nov 2014 09:21:29 -0400 Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <001e01d00852$233fab20$69bf0160$@gmail.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> Message-ID: <54748259.6090001@gatewaygeomatics.com> Hi Carsen, Regarding .ovf configuration, MySQL connections are well documented, with examples[1]. Or, if you already have an ovf connection, maybe you should paste it into your message so that the whole mailing list community can help you along. In terms of SOS servers, I am also aware of a very active project named istSOS, that you should take a look at[2]. [1] http://mapserver.org/input/vector/mysql.html [2] https://geoservice.ist.supsi.ch/projects/istsos/index.php/Welcome_to_istSOS_project -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-11-24 9:50 PM, Carsen Banister wrote: > Hi, > > I would appreciate any help on some items associated with setting up > MapServer SOS. I am quite new to MapServer, and am trying to get up to > speed as quickly as possible. The reason for using MapServer?s SOS is > that the database structure is custom and I?m not aware of any other SOS > servers that support custom MySQL databases (if you can point me in a > direction easier than MapServer, please do!). > > So, the questions I am hoping to get clarification on are: > > 1.How do you connect different layers together? e.g. layer and sublayer. > What is the syntax for that in the mapfile? > > 2.Is there a way to dynamically generate layers (e.g. from database > query result), or does the layer structure have to be hardcoded? > > 3.When you do a GetObservation, how do you set up MapServer so that that > request pulls data from the database, e.g. OVF file configuration? > > Thanks in advance for any assistance. > > Best regards, > > Carsen > > From carsen.banister at gmail.com Tue Nov 25 08:05:21 2014 From: carsen.banister at gmail.com (Carsen Banister) Date: Tue, 25 Nov 2014 11:05:21 -0500 Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <54748259.6090001@gatewaygeomatics.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> <54748259.6090001@gatewaygeomatics.com> Message-ID: <000401d008c9$9eaa8b50$dbffa1f0$@gmail.com> Hi Jeff, Thanks for the reply. Here is my OVF file, which is able to connect to the database and return information (via Linux command line): (sostest.ovf): MYSQL:dbname,user=usr,password=pw,host=127.0.0.1,port=3306,ta bles=Stations SELECT StationId, Name FROM Stations MYSQL:dbname,user=usr,password=pw,host=127.0.0.1,port=3306,ta bles=InstrumentReadings SELECT ReadingValue, ReadingTime FROM InstrumentReadings WHERE InstrumentId = 134 LIMIT 1000 Here is the map file I would like to link the data to (I've omitted some metadata entries with ...): (sostest.map): MAP NAME "SOS_server" STATUS ON SIZE 300 300 EXTENT -66 44 -62 45 UNITS METERS SHAPEPATH "./data/" IMAGECOLOR 255 255 0 IMAGETYPE png WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA ... END END PROJECTION "init=epsg:4326" END LAYER NAME "OfferingStation_1" METADATA "sos_procedure" "OfferingStation_1" "sos_offering_id" "OfferingStation_1" "sos_offering_name" "OfferingStation_1" "sos_observedproperty_id" "Temperature_1 " "sos_offering_intendedapplication" "Application" "sos_offering_timeextent" "2013-11-29T00:00:00Z/" "sos_describesensor_url" "http://trac.osgeo.org/mapserver/browser/trunk/msautotest/wxs/data/sos-%proc edure%.xml?format=raw" END STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "sostest.ovf" DATA "Stations" PROJECTION "init=epsg:4326" END END LAYER NAME "OfferingStation_2" METADATA "sos_procedure" "OfferingStation_2" "sos_offering_id" "OfferingStation_2" "sos_offering_name" "OfferingStation_2" "sos_observedproperty_id" "Temperature_2" "sos_offering_intendedapplication" "Application" "sos_offering_timeextent" "2013-11-29T00:00:00Z" "sos_describesensor_url" "http://trac.osgeo.org/mapserver/browser/trunk/msautotest/wxs/data/sos-%proc edure%.xml?format=raw" END STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "sostest.ovf" DATA "Stations" PROJECTION "init=epsg:4326" END END END #map Regards, Carsen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: November 25, 2014 8:21 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer SOS setup questions Hi Carsen, Regarding .ovf configuration, MySQL connections are well documented, with examples[1]. Or, if you already have an ovf connection, maybe you should paste it into your message so that the whole mailing list community can help you along. In terms of SOS servers, I am also aware of a very active project named istSOS, that you should take a look at[2]. [1] http://mapserver.org/input/vector/mysql.html [2] https://geoservice.ist.supsi.ch/projects/istsos/index.php/Welcome_to_istSOS_ project -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-11-24 9:50 PM, Carsen Banister wrote: > Hi, > > I would appreciate any help on some items associated with setting up > MapServer SOS. I am quite new to MapServer, and am trying to get up to > speed as quickly as possible. The reason for using MapServer's SOS is > that the database structure is custom and I'm not aware of any other SOS > servers that support custom MySQL databases (if you can point me in a > direction easier than MapServer, please do!). > > So, the questions I am hoping to get clarification on are: > > 1.How do you connect different layers together? e.g. layer and sublayer. > What is the syntax for that in the mapfile? > > 2.Is there a way to dynamically generate layers (e.g. from database > query result), or does the layer structure have to be hardcoded? > > 3.When you do a GetObservation, how do you set up MapServer so that that > request pulls data from the database, e.g. OVF file configuration? > > Thanks in advance for any assistance. > > Best regards, > > Carsen > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From carsen.banister at gmail.com Tue Nov 25 08:19:25 2014 From: carsen.banister at gmail.com (Carsen Banister) Date: Tue, 25 Nov 2014 11:19:25 -0500 Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <54748259.6090001@gatewaygeomatics.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> <54748259.6090001@gatewaygeomatics.com> Message-ID: <002101d008cb$952ecd00$bf8c6700$@gmail.com> Hi Jeff, I should also add that I have previously used link [1] to do the setup so far. istSOS was actually my top pick for SOS implementation, but as far as I am aware, MySQL support is a 'to do' item. Since we are using a custom MySQL database, MapServer seemed like the only/best option. As I say, I would be open to other SOS suggestions that will work in my situation, as I find the warnings of MapServer having a steep learning curve are certainly true! Carsen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: November 25, 2014 8:21 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer SOS setup questions Hi Carsen, Regarding .ovf configuration, MySQL connections are well documented, with examples[1]. Or, if you already have an ovf connection, maybe you should paste it into your message so that the whole mailing list community can help you along. In terms of SOS servers, I am also aware of a very active project named istSOS, that you should take a look at[2]. [1] http://mapserver.org/input/vector/mysql.html [2] https://geoservice.ist.supsi.ch/projects/istsos/index.php/Welcome_to_istSOS_ project -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-11-24 9:50 PM, Carsen Banister wrote: > Hi, > > I would appreciate any help on some items associated with setting up > MapServer SOS. I am quite new to MapServer, and am trying to get up to > speed as quickly as possible. The reason for using MapServer's SOS is > that the database structure is custom and I'm not aware of any other SOS > servers that support custom MySQL databases (if you can point me in a > direction easier than MapServer, please do!). > > So, the questions I am hoping to get clarification on are: > > 1.How do you connect different layers together? e.g. layer and sublayer. > What is the syntax for that in the mapfile? > > 2.Is there a way to dynamically generate layers (e.g. from database > query result), or does the layer structure have to be hardcoded? > > 3.When you do a GetObservation, how do you set up MapServer so that that > request pulls data from the database, e.g. OVF file configuration? > > Thanks in advance for any assistance. > > Best regards, > > Carsen > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Nov 25 08:40:12 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 25 Nov 2014 12:40:12 -0400 Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <000401d008c9$9eaa8b50$dbffa1f0$@gmail.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> <54748259.6090001@gatewaygeomatics.com> <000401d008c9$9eaa8b50$dbffa1f0$@gmail.com> Message-ID: <5474B0EC.8090202@gatewaygeomatics.com> Hi Carsen, Great. Can you also please list the exact errors that you get with the ovf and mapfile? (I recommend using the commandline utility shp2img for testing the mapfile[1]) Then once you are able to generate a valid map image with shp2img, you should move to debugging your SOS service. You could then paste parts of your GetCapabilities response, or the request that is causing you trouble (and its response), here and the mailing list community can hopefully help you along. Regarding your comment on steep learning curve, well here is your chance to help prevent that in the future: as you travel along the MapServer/mysql/ovf/SOS path, contribute enhancements to the MapServer docs, write your notes on the MapServer wiki.....contribute, help, and share! :) Thanks! [1] http://mapserver.org/utilities/shp2img.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-11-25 12:05 PM, Carsen Banister wrote: > Hi Jeff, > > Thanks for the reply. Here is my OVF file, which is able to connect to the > database and return information (via Linux command line): > > (sostest.ovf): > > > > > MYSQL:dbname,user=usr,password=pw,host=127.0.0.1,port=3306,ta > bles=Stations > SELECT StationId, Name FROM Stations > > > > > > MYSQL:dbname,user=usr,password=pw,host=127.0.0.1,port=3306,ta > bles=InstrumentReadings > SELECT ReadingValue, ReadingTime FROM InstrumentReadings > WHERE InstrumentId = 134 LIMIT 1000 > > > > > > Here is the map file I would like to link the data to (I've omitted some > metadata entries with ...): > > (sostest.map): > > MAP > NAME "SOS_server" > STATUS ON > SIZE 300 300 > EXTENT -66 44 -62 45 > UNITS METERS > SHAPEPATH "./data/" > IMAGECOLOR 255 255 0 > > IMAGETYPE png > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > > METADATA > ... > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "OfferingStation_1" > METADATA > "sos_procedure" "OfferingStation_1" > "sos_offering_id" "OfferingStation_1" > "sos_offering_name" "OfferingStation_1" > "sos_observedproperty_id" "Temperature_1 " > "sos_offering_intendedapplication" "Application" > "sos_offering_timeextent" "2013-11-29T00:00:00Z/" > "sos_describesensor_url" > "http://trac.osgeo.org/mapserver/browser/trunk/msautotest/wxs/data/sos-%proc > edure%.xml?format=raw" > END > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "sostest.ovf" > DATA "Stations" > > PROJECTION > "init=epsg:4326" > END > END > > LAYER > NAME "OfferingStation_2" > METADATA > "sos_procedure" "OfferingStation_2" > "sos_offering_id" "OfferingStation_2" > "sos_offering_name" "OfferingStation_2" > "sos_observedproperty_id" "Temperature_2" > "sos_offering_intendedapplication" "Application" > "sos_offering_timeextent" "2013-11-29T00:00:00Z" > "sos_describesensor_url" > "http://trac.osgeo.org/mapserver/browser/trunk/msautotest/wxs/data/sos-%proc > edure%.xml?format=raw" > END > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "sostest.ovf" > DATA "Stations" > > PROJECTION > "init=epsg:4326" > END > END > > END #map > > Regards, > Carsen > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: November 25, 2014 8:21 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer SOS setup questions > > Hi Carsen, > > Regarding .ovf configuration, MySQL connections are well documented, with > examples[1]. Or, if you already have an ovf connection, maybe you should > paste it into your message so that the whole mailing list community can help > you along. > > In terms of SOS servers, I am also aware of a very active project named > istSOS, that you should take a look at[2]. > > [1] http://mapserver.org/input/vector/mysql.html > [2] > https://geoservice.ist.supsi.ch/projects/istsos/index.php/Welcome_to_istSOS_ > project > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ > > > > On 2014-11-24 9:50 PM, Carsen Banister wrote: >> Hi, >> >> I would appreciate any help on some items associated with setting up >> MapServer SOS. I am quite new to MapServer, and am trying to get up to >> speed as quickly as possible. The reason for using MapServer's SOS is >> that the database structure is custom and I'm not aware of any other SOS >> servers that support custom MySQL databases (if you can point me in a >> direction easier than MapServer, please do!). >> >> So, the questions I am hoping to get clarification on are: >> >> 1.How do you connect different layers together? e.g. layer and sublayer. >> What is the syntax for that in the mapfile? >> >> 2.Is there a way to dynamically generate layers (e.g. from database >> query result), or does the layer structure have to be hardcoded? >> >> 3.When you do a GetObservation, how do you set up MapServer so that that >> request pulls data from the database, e.g. OVF file configuration? >> >> Thanks in advance for any assistance. >> >> Best regards, >> >> Carsen >> >> > From Steve.Lime at state.mn.us Tue Nov 25 13:31:13 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 25 Nov 2014 21:31:13 +0000 Subject: [mapserver-users] wrong type cast for OGRVRT datasource In-Reply-To: References: Message-ID: Huub: What does your layer definition look like? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Huub Fleuren Sent: Monday, November 17, 2014 8:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] wrong type cast for OGRVRT datasource Hi List, De following OGRVRT datasource is used to define a Mapserver layer on an ODBC connection to a MSACCESS tabel that contains x and y values. This works fine. CONNECTION " ODBC:admin/admin at MyMSACCESSDatabase SELECT * FROM kpxy wkbPoint WGS84 " Now we need a WFS on this, and we should be able to select a record based on a field value. A WFS-Filter might look like kp_nr06864 The error is described by the following msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOGRFileNextShape(): OGR error. Type mismatch or improper type of arguments to = operator. So, the kp_nr field is not of type integer in the underlying database. The Literal states 06864, which at least looks like an int. Take a look at the datasource again. The fields kp_id and kp_nr are defined as String, not Integer. I take it that Mapserver cannot determine the correct type from the Literal which looks like an int But now I explicitly defined the type in the MAP file. I proved this case by looking up a Literal on the same property that actually contains a real Character. No errors So Mapserver tries to 'see' the datatype instead of looking it up. I can imagine you need to do that if you cannot access the database but in this case the datatype of this field is given. No need to gamble datatypes between records... Should i file a bug report? Regards, Huub -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.coudert at gmail.com Tue Nov 25 13:55:06 2014 From: mathieu.coudert at gmail.com (Mathieu Coudert) Date: Tue, 25 Nov 2014 22:55:06 +0100 Subject: [mapserver-users] Install MapCache In-Reply-To: <1208472111.148156861.1415254417283.JavaMail.root@zimbra34-e6.priv.proxad.net> References: <968835191.148155394.1415254365705.JavaMail.root@zimbra34-e6.priv.proxad.net> <1208472111.148156861.1415254417283.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: Hi, I guess you're compiling MapCache on Debian Wheezy? It seems to be a known issue on Debian which had been fixed, except for Wheezy! But as they mention in the issue, the problem is noisy but harmless...So you can ignore it. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707109 Cheers, Mathieu On Thu, Nov 6, 2014 at 7:13 AM, wrote: > > I'm trying to install the mapcache. I've downloaded the zip file from > github but i got an error when i was installing : > > -- The C compiler identification is GNU 4.7.2 > -- The CXX compiler identification is GNU 4.7.2 > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Looking for strncasecmp > -- Looking for strncasecmp - found > -- Looking for symlink > -- Looking for symlink - found > -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7") > -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49") > -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so > -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version > "7.26.0") > -- Found APR: /usr/lib/libapr-1.so > -- Found APU: /usr/lib/libaprutil-1.so > -- Looking for apr_memcache_hash > -- Looking for apr_memcache_hash - found > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") > -- checking for module 'pixman' > -- package 'pixman' not found > -- checking for module 'pixman-1' > -- found pixman-1, version 0.26.0 > -- Found PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so > -- Found PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so > -- Found SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so > -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "3.9.6") > -- * Configured options for the mapcache library > -- * Mandatory components > -- * png: /usr/lib/x86_64-linux-gnu/libpng.so > -- * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so > -- * Curl: /usr/lib/x86_64-linux-gnu/libcurl.so > -- * Apr: /usr/lib/libapr-1.so > -- * Optional components > -- * PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so > -- * SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so > -- * Berkeley DB: disabled > -- * Memcache: /usr/lib/libaprutil-1.so > -- * TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so > -- * GeoTIFF: disabled > -- * Experimental TIFF write support: disabled > -- * PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so > -- * Experimental mapserver support: disabled > -- Found GDAL: /usr/lib/libgdal.so > -- Found GEOS: /usr/lib/libgeos_c.so > -- * Seeder Configuration Options: > -- * GEOS: /usr/lib/libgeos_c.so > -- * OGR: /usr/lib/libgdal.so > -- Found FCGI: /usr/lib/libfcgi.so > -- * CGI Configuration Options: > -- * FastCGI: /usr/lib/libfcgi.so > -- Found APACHE: /usr/include/apache2 > -- * Apache Module support status: > -- * Mapcache Version String: mod_mapcache/1.2.1 > -- * Module will be installed to : Use of uninitialized value > $includedir in concatenation (.) or string at (eval 9) line 1. > /usr/lib/apache2/modules > -- Configuring done > -- Generating done > -- Build files have been written to: /var/www/mapcache-1-2-1/build > _______________________________________________ > 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 glenn.prigent at capgemini.com Wed Nov 26 06:06:34 2014 From: glenn.prigent at capgemini.com (Prigent, Glenn) Date: Wed, 26 Nov 2014 14:06:34 +0000 Subject: [mapserver-users] Mapfile limit size Message-ID: <2E56F0E82D27734CADC9F90B0FE51C473367F155@DE-CM-MBX05.corp.capgemini.com> Hello, i wonder if there is any size limit for the mapfile. I have a mapfile (23 ko) which includes many other file (17 includes of a 0.517 ko file, 7 includes of a 6.466 ko file, 6 includes of a 5.996 ko file and 4 includes of a 5.788 ko file) I use url parameters to filter data with %% in the mapfile. With some parameters i have a ERROR 500 and sometimes i get no response from mapserver (timeout). I use regexp in mapfile from BBOX url to filter data in request. With this BBOX : BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.51233, no problem. With this BBOX : BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.51233333333, timeout With this BBOX : BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.512333333333, ERROR 500. I have no log when those errors come. I guess it was a BBOX touble but testing those BBOX on another mapfile, everything is ok. After removing some tabulations from an include file, everything works fine. So i suppose there is a size limit problem. Has anyone encountered the same problem and has a solution ? (I will reformat my mapfile by removing tabulations to avoid the problem) Glenn Prigent This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 26 06:45:08 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 26 Nov 2014 15:45:08 +0100 Subject: [mapserver-users] Mapfile limit size In-Reply-To: <2E56F0E82D27734CADC9F90B0FE51C473367F155@DE-CM-MBX05.corp.capgemini.com> References: <2E56F0E82D27734CADC9F90B0FE51C473367F155@DE-CM-MBX05.corp.capgemini.com> Message-ID: Glenn, I have had no other reports of issues related to mapfile sizes, includes, or tabs vs. spaces. Ideally provide a backtrace of the segfault after having recompiled mapserver with debugging symbols turned on, from the command line with a bounding box that triggers the 500 error: gdb --args /path/to/mapserv QUERY_STRING='map=foo.map&....&BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.512333333333' > run ... wait for segfault > bt regards, thomas On 26 November 2014 at 15:06, Prigent, Glenn wrote: > Hello, > > > i wonder if there is any size limit for the mapfile. > I have a mapfile (23 ko) which includes many other file (17 includes of a > 0.517 ko file, 7 includes of a 6.466 ko file, 6 includes of a 5.996 ko file > and 4 includes of a 5.788 ko file) > I use url parameters to filter data with %% in the mapfile. > With some parameters i have a ERROR 500 and sometimes i get no response from > mapserver (timeout). > I use regexp in mapfile from BBOX url to filter data in request. > With this BBOX : > BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.51233, no problem. > With this BBOX : > BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.51233333333, > timeout > With this BBOX : > BBOX=0.61720000000017,37.762166666667,1.6673000000002,39.512333333333, ERROR > 500. > I have no log when those errors come. > > I guess it was a BBOX touble but testing those BBOX on another mapfile, > everything is ok. > > After removing some tabulations from an include file, everything works fine. > > So i suppose there is a size limit problem. > > Has anyone encountered the same problem and has a solution ? > > (I will reformat my mapfile by removing tabulations to avoid the problem) > > > Glenn Prigent > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is intended only for the person > to whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From carsen.banister at gmail.com Thu Nov 27 07:41:41 2014 From: carsen.banister at gmail.com (Carsen Banister) Date: Thu, 27 Nov 2014 10:41:41 -0500 Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <5474B0EC.8090202@gatewaygeomatics.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> <54748259.6090001@gatewaygeomatics.com> <000401d008c9$9eaa8b50$dbffa1f0$@gmail.com> <5474B0EC.8090202@gatewaygeomatics.com> Message-ID: <004001d00a58$a4a80920$edf81b60$@gmail.com> Hi Jeff, Thanks for link [1], in the process of doing that. In the meantime, is anybody able to provide input on the initial questions?: >> 1.How do you connect different layers together? e.g. layer and sublayer. >> What is the syntax for that in the mapfile? >> >> 2.Is there a way to dynamically generate layers (e.g. from database >> query result), or does the layer structure have to be hardcoded? >> >> 3.When you do a GetObservation, how do you set up MapServer so that that >> request pulls data from the database, e.g. OVF file configuration? Best regards, Carsen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: November 25, 2014 11:40 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer SOS setup questions Hi Carsen, Great. Can you also please list the exact errors that you get with the ovf and mapfile? (I recommend using the commandline utility shp2img for testing the mapfile[1]) Then once you are able to generate a valid map image with shp2img, you should move to debugging your SOS service. You could then paste parts of your GetCapabilities response, or the request that is causing you trouble (and its response), here and the mailing list community can hopefully help you along. Regarding your comment on steep learning curve, well here is your chance to help prevent that in the future: as you travel along the MapServer/mysql/ovf/SOS path, contribute enhancements to the MapServer docs, write your notes on the MapServer wiki.....contribute, help, and share! :) Thanks! [1] http://mapserver.org/utilities/shp2img.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-11-25 12:05 PM, Carsen Banister wrote: > Hi Jeff, > > Thanks for the reply. Here is my OVF file, which is able to connect to the > database and return information (via Linux command line): > > (sostest.ovf): > > > > > MYSQL:dbname,user=usr,password=pw,host=127.0.0.1,port=3306,ta > bles=Stations > SELECT StationId, Name FROM Stations > > > > > > MYSQL:dbname,user=usr,password=pw,host=127.0.0.1,port=3306,ta > bles=InstrumentReadings > SELECT ReadingValue, ReadingTime FROM InstrumentReadings > WHERE InstrumentId = 134 LIMIT 1000 > > > > > > Here is the map file I would like to link the data to (I've omitted some > metadata entries with ...): > > (sostest.map): > > MAP > NAME "SOS_server" > STATUS ON > SIZE 300 300 > EXTENT -66 44 -62 45 > UNITS METERS > SHAPEPATH "./data/" > IMAGECOLOR 255 255 0 > > IMAGETYPE png > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > > METADATA > ... > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "OfferingStation_1" > METADATA > "sos_procedure" "OfferingStation_1" > "sos_offering_id" "OfferingStation_1" > "sos_offering_name" "OfferingStation_1" > "sos_observedproperty_id" "Temperature_1 " > "sos_offering_intendedapplication" "Application" > "sos_offering_timeextent" "2013-11-29T00:00:00Z/" > "sos_describesensor_url" > "http://trac.osgeo.org/mapserver/browser/trunk/msautotest/wxs/data/sos-%proc > edure%.xml?format=raw" > END > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "sostest.ovf" > DATA "Stations" > > PROJECTION > "init=epsg:4326" > END > END > > LAYER > NAME "OfferingStation_2" > METADATA > "sos_procedure" "OfferingStation_2" > "sos_offering_id" "OfferingStation_2" > "sos_offering_name" "OfferingStation_2" > "sos_observedproperty_id" "Temperature_2" > "sos_offering_intendedapplication" "Application" > "sos_offering_timeextent" "2013-11-29T00:00:00Z" > "sos_describesensor_url" > "http://trac.osgeo.org/mapserver/browser/trunk/msautotest/wxs/data/sos-%proc > edure%.xml?format=raw" > END > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "sostest.ovf" > DATA "Stations" > > PROJECTION > "init=epsg:4326" > END > END > > END #map > > Regards, > Carsen > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: November 25, 2014 8:21 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer SOS setup questions > > Hi Carsen, > > Regarding .ovf configuration, MySQL connections are well documented, with > examples[1]. Or, if you already have an ovf connection, maybe you should > paste it into your message so that the whole mailing list community can help > you along. > > In terms of SOS servers, I am also aware of a very active project named > istSOS, that you should take a look at[2]. > > [1] http://mapserver.org/input/vector/mysql.html > [2] > https://geoservice.ist.supsi.ch/projects/istsos/index.php/Welcome_to_istSOS_ > project > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ > > > > On 2014-11-24 9:50 PM, Carsen Banister wrote: >> Hi, >> >> I would appreciate any help on some items associated with setting up >> MapServer SOS. I am quite new to MapServer, and am trying to get up to >> speed as quickly as possible. The reason for using MapServer's SOS is >> that the database structure is custom and I'm not aware of any other SOS >> servers that support custom MySQL databases (if you can point me in a >> direction easier than MapServer, please do!). >> >> So, the questions I am hoping to get clarification on are: >> >> 1.How do you connect different layers together? e.g. layer and sublayer. >> What is the syntax for that in the mapfile? >> >> 2.Is there a way to dynamically generate layers (e.g. from database >> query result), or does the layer structure have to be hardcoded? >> >> 3.When you do a GetObservation, how do you set up MapServer so that that >> request pulls data from the database, e.g. OVF file configuration? >> >> Thanks in advance for any assistance. >> >> Best regards, >> >> Carsen >> >> > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pcreso at pcreso.com Thu Nov 27 22:18:33 2014 From: pcreso at pcreso.com (Brent Wood) Date: Fri, 28 Nov 2014 06:18:33 +0000 (UTC) Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <001e01d00852$233fab20$69bf0160$@gmail.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> Message-ID: <1097684753.1260856.1417155513995.JavaMail.yahoo@jws10074.mail.ne1.yahoo.com> Mapservers SOS implementation is pretty minimal these days. You might look at 52N for their FOSS SOS server. You can either harvest you data into the internal db, or use Hibernate to build a middleware tool that can access your db directly. Brent Wood From: Carsen Banister To: mapserver-users at lists.osgeo.org Sent: Tuesday, November 25, 2014 2:50 PM Subject: [mapserver-users] MapServer SOS setup questions Hi, ?I would appreciate any help on some items associated with setting up MapServer SOS. I am quite new to MapServer, and am trying to get up to speed as quickly as possible. The reason for using MapServer?s SOS is that the database structure is custom and I?m not aware of any other SOS servers that support custom MySQL databases (if you can point me in a direction easier than MapServer, please do!). ?So, the questions I am hoping to get clarification on are: ?1.????? How do you connect different layers together? e.g. layer and sublayer. What is the syntax for that in the mapfile??2.????? Is there a way to dynamically generate layers (e.g. from database query result), or does the layer structure have to be hardcoded??3.????? When you do a GetObservation, how do you set up MapServer so that that request pulls data from the database, e.g. OVF file configuration? ?Thanks in advance for any assistance. ?Best regards,Carsen _______________________________________________ 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 fl_v at inbox.ru Fri Nov 28 04:31:02 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 28 Nov 2014 15:31:02 +0300 Subject: [mapserver-users] =?utf-8?q?MapCache=3A_substitution_in_GetMap?= Message-ID: <1417177862.973821653@f435.i.mail.ru> Hi All! I have getMap request to MapCache from OL3 with additional dynamic ZOOM parameter. http://myhost/mapcache/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test&WIDTH=384&HEIGHT=384&CRS=EPSG%3A3857&STYLES=&MAP_RESOLUTION=135&BBOX=8520588.417005166%2C5338362.055436708%2C8521811.40945773%2C5339585.047889271&ZOOM=15 Further MapCache send request to my WMS service accordingly the configuration: image/png mylayer http://myhost/wms But the additional ZOOM parameter is lost at this stage. Adding in adds empty key without value. How can I substitute this parameter to final request ? Thanks & best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Nov 28 05:07:10 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 28 Nov 2014 14:07:10 +0100 Subject: [mapserver-users] MapCache: substitution in GetMap In-Reply-To: <1417177862.973821653@f435.i.mail.ru> References: <1417177862.973821653@f435.i.mail.ru> Message-ID: You need to add ZOOM as a dimension at the tileset level. It will be validated in incoming requests and propagated to the WMS server. -- thomas On 28 November 2014 at 13:31, Vladimir wrote: > Hi All! > > I have getMap request to MapCache from OL3 with additional dynamic ZOOM > parameter. > > > http://myhost/mapcache/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test&WIDTH=384&HEIGHT=384&CRS=EPSG%3A3857&STYLES=&MAP_RESOLUTION=135&BBOX=8520588.417005166%2C5338362.055436708%2C8521811.40945773%2C5339585.047889271&ZOOM=15 > > Further MapCache send request to my WMS service accordingly the > configuration: > > > > > image/png > mylayer > > > > http://myhost/wms > > > > But the additional ZOOM parameter is lost at this stage. > Adding in adds empty key without value. > How can I substitute this parameter to final request ? > > Thanks & best regards > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From carsen.banister at gmail.com Fri Nov 28 08:16:37 2014 From: carsen.banister at gmail.com (Carsen Banister) Date: Fri, 28 Nov 2014 11:16:37 -0500 Subject: [mapserver-users] MapServer SOS setup questions In-Reply-To: <1097684753.1260856.1417155513995.JavaMail.yahoo@jws10074.mail.ne1.yahoo.com> References: <001e01d00852$233fab20$69bf0160$@gmail.com> <1097684753.1260856.1417155513995.JavaMail.yahoo@jws10074.mail.ne1.yahoo.com> Message-ID: <003701d00b26$b04f6380$10ee2a80$@gmail.com> Brent, Thank you, Hibernate looks promising! 52North was the first SOS implementation I considered, but it was not evident that it could be used with a custom db structure. I will look into this, as using MapServer just for SOS is clearly a headache! Regards, Carsen From: Brent Wood [mailto:pcreso at pcreso.com] Sent: November 28, 2014 1:19 AM To: Carsen Banister; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer SOS setup questions Mapservers SOS implementation is pretty minimal these days. You might look at 52N for their FOSS SOS server. You can either harvest you data into the internal db, or use Hibernate to build a middleware tool that can access your db directly. Brent Wood _____ From: Carsen Banister > To: mapserver-users at lists.osgeo.org Sent: Tuesday, November 25, 2014 2:50 PM Subject: [mapserver-users] MapServer SOS setup questions Hi, I would appreciate any help on some items associated with setting up MapServer SOS. I am quite new to MapServer, and am trying to get up to speed as quickly as possible. The reason for using MapServer?s SOS is that the database structure is custom and I?m not aware of any other SOS servers that support custom MySQL databases (if you can point me in a direction easier than MapServer, please do!). So, the questions I am hoping to get clarification on are: 1. How do you connect different layers together? e.g. layer and sublayer. What is the syntax for that in the mapfile? 2. Is there a way to dynamically generate layers (e.g. from database query result), or does the layer structure have to be hardcoded? 3. When you do a GetObservation, how do you set up MapServer so that that request pulls data from the database, e.g. OVF file configuration? Thanks in advance for any assistance. Best regards, Carsen _______________________________________________ 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: