From pereng at gmail.com Thu Nov 1 05:22:09 2012 From: pereng at gmail.com (=?ISO-8859-1?Q?Per_Engstr=F6m?=) Date: Thu, 1 Nov 2012 13:22:09 +0100 Subject: [mapserver-users] Validation of mapfiles Message-ID: Hi! I work at the Swedish Meteorological and Hydrological Institute where we use MapServer to make meteorological maps available through WMS. Data is read from many sources and we make heavy use of the INCLUDE tag to combine various layer definitions into a Mother-Of-Mapfile: mom.map. What we need to do is find a way to validate the files that mom.map includes - if one of the included files have bad syntax it will break the entire mom.map. Is there a way to validate the syntax of a map-file (other than trying to make a request on one of the layers it defines)? Is there a list of tags requires a closing END tag - thus making it possible to check programmatically that opening and closing tags are balanced? Regards, Per -- Per Engstr?m SMHI -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Nov 1 06:17:37 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 01 Nov 2012 09:17:37 -0400 Subject: [mapserver-users] Validation of mapfiles In-Reply-To: References: Message-ID: <50927671.9050208@swoodbridge.com> On 11/1/2012 8:22 AM, Per Engstr?m wrote: > Hi! > > I work at theSwedish Meteorological and Hydrological Institute where we > use MapServer to make meteorological maps available through WMS. Data > is read from many sources and we make heavy use of the INCLUDE tag to > combine various layer definitions into a Mother-Of-Mapfile: mom.map. > What we need to do is find a way to validate the files that mom.map > includes - if one of the included files have bad syntax it will break > the entire mom.map. > > Is there a way to validate the syntax of a map-file (other than trying > to make a request on one of the layers it defines)? > Is there a list of tags requires a closing END tag - thus making it > possible to check programmatically that opening and closing tags are > balanced? No there is not validation tool to date. BUT here are some thing I have done in the past to deal with this: 1. wrote a perl script to check tags, worked great, but too much trouble to keep it up to date with changes in the mapfile over time 2. create and empty baby of mapfile: bom.map with the minimum header abd footer and one include, like: MAP ... INCLUDE "test.inc" END then copy you include to test.inc and use shp2img to test it: shp2img -m bom.map -o junk.png and it should report any errors. -Steve W From pereng at gmail.com Thu Nov 1 09:32:32 2012 From: pereng at gmail.com (=?utf-8?Q?Per_Engstr=C3=B6m?=) Date: Thu, 1 Nov 2012 17:32:32 +0100 Subject: [mapserver-users] Validation of mapfiles In-Reply-To: References: Message-ID: Mapscripts look really interesting! I will definitly look inte that. Thanks a bunch :) Regards, Per 1 nov 2012 kl. 16:44 skrev Ivan Mincik : > you can use mapscript script. see some earlier post about this topic. > > On Nov 1, 2012 1:22 PM, "Per Engstr?m" wrote: >> Hi! >> >> I work at the Swedish Meteorological and Hydrological Institute where we use MapServer to make meteorological maps available through WMS. Data is read from many sources and we make heavy use of the INCLUDE tag to combine various layer definitions into a Mother-Of-Mapfile: mom.map. What we need to do is find a way to validate the files that mom.map includes - if one of the included files have bad syntax it will break the entire mom.map. >> >> Is there a way to validate the syntax of a map-file (other than trying to make a request on one of the layers it defines)? >> Is there a list of tags requires a closing END tag - thus making it possible to check programmatically that opening and closing tags are balanced? >> >> Regards, >> Per >> >> -- >> Per Engstr?m >> SMHI >> -- >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Nov 1 12:57:25 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 1 Nov 2012 19:57:25 +0000 Subject: [mapserver-users] SDE 10.x support... Message-ID: Hi all: Has anyone successfully used the SDE 10.x client libs with MapServer 6.0+? Compiles ok but I've had no luck actually using SDE layers. Steve StEVE LIME | DATA & Applications MANAGER MN.IT Services @ MnDNR 651-259-5473 (w) | 651-297-4946 (f) | steve.lime at state.mn.us [cid:image001.jpg at 01CDB841.3337EAA0] Information Technology for Minnesota Government | mn.gov/oet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1624 bytes Desc: image001.jpg URL: From pschweitzer at usgs.gov Thu Nov 1 13:35:22 2012 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Thu, 01 Nov 2012 16:35:22 -0400 Subject: [mapserver-users] tracking the origin of errors Message-ID: <5092DD0A.2080605@usgs.gov> Help! I see a variety of messages in my mapserver log file with debug off. Some, like these, prompt me to ask what parameters were used when the error condition occurred: msProcessProjection(): Projection library error. projection not named msProjectRect(): some points failed to reproject, doing internal sampling. But despite changing debug to 5, I don't see any information in the log that would indicate what the input was. I use mapserv exclusively to provide OGC WMS and WFS, so it would help to have the URL for the requests in which there was an error. Is there any way to get mapserv to provide this information? Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From jmckenna at gatewaygeomatics.com Thu Nov 1 14:00:37 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 01 Nov 2012 18:00:37 -0300 Subject: [mapserver-users] tracking the origin of errors In-Reply-To: <5092DD0A.2080605@usgs.gov> References: <5092DD0A.2080605@usgs.gov> Message-ID: <5092E2F5.4010108@gatewaygeomatics.com> On 12-11-01 5:35 PM, Peter N. Schweitzer wrote: > Help! > > I see a variety of messages in my mapserver log file with debug off. > Some, like these, prompt me to ask what parameters were used when the > error condition occurred: > > msProcessProjection(): Projection library error. projection not named > msProjectRect(): some points failed to reproject, doing internal sampling. > > But despite changing debug to 5, I don't see any information in the log > that would indicate what the input was. > > I use mapserv exclusively to provide OGC WMS and WFS, so it would help > to have the URL for the requests in which there was an error. > > Is there any way to get mapserv to provide this information? > > Peter > I would try adding DEBUG 5 at the layer level as well; failing that, I would turn to the Apache logs to grab the exact request causing the error. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From forum.email.a at googlemail.com Fri Nov 2 01:53:23 2012 From: forum.email.a at googlemail.com (aho) Date: Fri, 02 Nov 2012 09:53:23 +0100 Subject: [mapserver-users] tinyows Message-ID: <50938A03.7000009@googlemail.com> hello! I have a problem with the configuration of tinyows. I have the following settings in my xml file: if I enter tinyows --check I get the following back: C:\ms4w\Apache\cgi-bin>tinyows --check TinyOWS version: 1.0.0rc3 FCGI support: Yes Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) PostGIS Version: 2.0.0 PostGIS dsn: host=localhost user=postgres password=postgres dbname=watergi s port=5432 Output Encoding: UTF-8 Database Encoding: UTF8 Schema dir: C:\ms4w\apps\tinyows\schema\ Display bbox: Yes Estimated extent: No Check schema: Yes Check valid geoms: Yes Available layers: - water.pipeline_segment (32740) -> water.pipeline_segment [RW] which looks acutally quite good. But when i am trying to include that into my openlayer map - I always get 0 features back! Here the code for openlayers: wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:31467"), protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:32740", url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", featureNS : "tows", featureType: "pipeline_segment", geometryName: "geometry", schema: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" }) }); Someone an idea? From Jukka.Rahkonen at mmmtike.fi Fri Nov 2 02:21:25 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 2 Nov 2012 09:21:25 +0000 Subject: [mapserver-users] tinyows In-Reply-To: <50938A03.7000009@googlemail.com> References: <50938A03.7000009@googlemail.com> Message-ID: <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> Hi, You must capture the traffic between OpenLayers and TinyOWS. I am using myself Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers is sending and high enough TinyOWS logging level will also gather requests into tinyows log. The software is not important but you just have to get the requests so you can resend them with a browser or some other tool that yuo can control and see what happens. You can also include the requests in your further mails. Then the question will be "OpenLayers is sending this and TinyOWS is sending back that, what's wrong?" and it will be much easier to answer. As always with WFS, start with these requests with a browser before doing anything with OpenLayers: http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 If all those requests work you know that TinyOWS works with those basic requests and if OpenLayers application does not get data the reason in probably in the application code. -Jukka Rahkonen- aho wrote: > hello! > I have a problem with the configuration of tinyows. I have the following settings in my xml file: > >if I enter tinyows --check I get the following back: > C:\ms4w\Apache\cgi-bin>tinyows --check TinyOWS version: 1.0.0rc3 FCGI support: Yes Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) PostGIS Version: 2.0.0 PostGIS dsn: host=localhost user=postgres password=postgres dbname=watergi s port=5432 Output Encoding: UTF-8 Database Encoding: UTF8 Schema dir: C:\ms4w\apps\tinyows\schema\ Display bbox: Yes Estimated extent: No Check schema: Yes Check valid geoms: Yes Available layers: - water.pipeline_segment (32740) -> water.pipeline_segment [RW] > which looks acutally quite good. But when i am trying to include that into my openlayer map - I always get 0 features back! Here the code for openlayers: wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:31467"), protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:32740", url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", featureNS : "tows", featureType: "pipeline_segment", geometryName: "geometry", schema: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" }) }); Someone an idea? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From forum.email.a at googlemail.com Fri Nov 2 02:41:37 2012 From: forum.email.a at googlemail.com (aho) Date: Fri, 02 Nov 2012 10:41:37 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> Message-ID: <50939551.9040001@googlemail.com> Hi Jukka, thanks a lot for your answer and the good tips! I tried all of the links and they are working. Also I checked it in QGIS and there I can load it too. So I guess it will be better to write again to the openlayers mailinglist?! Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: > Hi, > > You must capture the traffic between OpenLayers and TinyOWS. I am using myself Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers is sending and high enough TinyOWS logging level will also gather requests into tinyows log. The software is not important but you just have to get the requests so you can resend them with a browser or some other tool that yuo can control and see what happens. You can also include the requests in your further mails. Then the question will be "OpenLayers is sending this and TinyOWS is sending back that, what's wrong?" and it will be much easier to answer. > > As always with WFS, start with these requests with a browser before doing anything with OpenLayers: > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 > > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment > > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 > > If all those requests work you know that TinyOWS works with those basic requests and if OpenLayers application does not get data the reason in probably in the application code. > > > -Jukka Rahkonen- > > aho wrote: > >> hello! >> I have a problem with the configuration of tinyows. I have the following > settings in my xml file: > >> schema_dir="C:\ms4w\apps\tinyows\schema\"> > dbname="watergis" port="5432"/> > title="TinyOWS Server - WFS-T Frida Service" /> > site="http://www.tinyows.org/" > email="tinyows-users at lists.maptools.org" /> > writable="1" > ns_prefix="water" > ns_uri="http://localhost/" > name="pipeline_segment" > title="pipeline_segment" > table= "pipeline_segment" > srid="32740" > schema="water"/> > > > >if I enter tinyows --check I get the following back: > >> C:\ms4w\Apache\cgi-bin>tinyows --check > TinyOWS version: 1.0.0rc3 > FCGI support: Yes > Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) > PostGIS Version: 2.0.0 > PostGIS dsn: host=localhost user=postgres password=postgres > dbname=watergi > s port=5432 > Output Encoding: UTF-8 > Database Encoding: UTF8 > Schema dir: C:\ms4w\apps\tinyows\schema\ > Display bbox: Yes > Estimated extent: No > Check schema: Yes > Check valid geoms: Yes > Available layers: > - water.pipeline_segment (32740) -> water.pipeline_segment [RW] > > >> which looks acutally quite good. But when i am trying to include that > into my openlayer map - I always get 0 features back! Here the code for > openlayers: > > wfs = new OpenLayers.Layer.Vector("Editable Features", { > strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > projection: new OpenLayers.Projection("EPSG:31467"), > protocol: new OpenLayers.Protocol.WFS({ > version: "1.1.0", > srsName: "EPSG:32740", > url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", > featureNS : "tows", > featureType: "pipeline_segment", > geometryName: "geometry", > schema: > "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" > }) > }); > > Someone an idea? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Fri Nov 2 02:56:58 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 2 Nov 2012 09:56:58 +0000 Subject: [mapserver-users] tinyows In-Reply-To: <50939551.9040001@googlemail.com> References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi>, <50939551.9040001@googlemail.com> Message-ID: <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> Hi, Yes, it seems to be OpenLayers question then. However, do still capture the requests because without them you cannot understand what happens really. My guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used and OpenLayers is requesting data from a place where there are no data. -Jukka- aho wrote: > Hi Jukka, > thanks a lot for your answer and the good tips! I tried all of the links and they are working. Also I checked it in QGIS and there I can load it too. > So I guess it will be better to write again to the openlayers mailinglist?! Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: > Hi, > > You must capture the traffic between OpenLayers and TinyOWS. I am using myself Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers is sending and high enough TinyOWS logging level will also gather requests into tinyows log. The software is not important but you just have to get the requests so you can resend them with a browser or some other tool that yuo can control and see what happens. You can also include the requests in your further mails. Then the question will be "OpenLayers is sending this and TinyOWS is sending back that, what's wrong?" and it will be much easier to answer. > > As always with WFS, start with these requests with a browser before doing anything with OpenLayers: > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 > > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment > > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 > > If all those requests work you know that TinyOWS works with those basic requests and if OpenLayers application does not get data the reason in probably in the application code. > > > -Jukka Rahkonen- > > aho wrote: > >> hello! >> I have a problem with the configuration of tinyows. I have the following > settings in my xml file: > >> schema_dir="C:\ms4w\apps\tinyows\schema\"> > dbname="watergis" port="5432"/> > title="TinyOWS Server - WFS-T Frida Service" /> > site="http://www.tinyows.org/" > email="tinyows-users at lists.maptools.org" /> > writable="1" > ns_prefix="water" > ns_uri="http://localhost/" > name="pipeline_segment" > title="pipeline_segment" > table= "pipeline_segment" > srid="32740" > schema="water"/> > > > >if I enter tinyows --check I get the following back: > >> C:\ms4w\Apache\cgi-bin>tinyows --check > TinyOWS version: 1.0.0rc3 > FCGI support: Yes > Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) > PostGIS Version: 2.0.0 > PostGIS dsn: host=localhost user=postgres password=postgres > dbname=watergi > s port=5432 > Output Encoding: UTF-8 > Database Encoding: UTF8 > Schema dir: C:\ms4w\apps\tinyows\schema\ > Display bbox: Yes > Estimated extent: No > Check schema: Yes > Check valid geoms: Yes > Available layers: > - water.pipeline_segment (32740) -> water.pipeline_segment [RW] > > >> which looks acutally quite good. But when i am trying to include that > into my openlayer map - I always get 0 features back! Here the code for > openlayers: > > wfs = new OpenLayers.Layer.Vector("Editable Features", { > strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > projection: new OpenLayers.Projection("EPSG:31467"), > protocol: new OpenLayers.Protocol.WFS({ > version: "1.1.0", > srsName: "EPSG:32740", > url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", > featureNS : "tows", > featureType: "pipeline_segment", > geometryName: "geometry", > schema: > "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" > }) > }); > > Someone an idea? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From forum.email.a at googlemail.com Fri Nov 2 03:43:25 2012 From: forum.email.a at googlemail.com (aho) Date: Fri, 02 Nov 2012 11:43:25 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi>, <50939551.9040001@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> Message-ID: <5093A3CD.4080905@googlemail.com> Hi, mh - I changed the srid. That was not very nice, but not the problem. I think its really a problem of the request. I am actually using another framework and there I defined a proxy for the redir. Usually this works in my browser, but maybe openlayers has a problem with that. I downloaded fiddler and the strange thing is that there is actually not a single request listed to that proxy. Also usually when I load thes WFS in QGIS there is something logged in the tinyows.log - but not with OpenLayers. So there goes nothing out at all! Thanks for your help! Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: > Hi, > > Yes, it seems to be OpenLayers question then. However, do still capture the requests because without them you cannot understand what happens really. My guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used and OpenLayers is requesting data from a place where there are no data. > > -Jukka- > > aho wrote: > > >> Hi Jukka, >> thanks a lot for your answer and the good tips! I tried all of the links > and they are working. Also I checked it in QGIS and there I can load it > too. > >> So I guess it will be better to write again to the openlayers mailinglist?! > > Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: >> Hi, >> >> You must capture the traffic between OpenLayers and TinyOWS. I am using myself Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers is sending and high enough TinyOWS logging level will also gather requests into tinyows log. The software is not important but you just have to get the requests so you can resend them with a browser or some other tool that yuo can control and see what happens. You can also include the requests in your further mails. Then the question will be "OpenLayers is sending this and TinyOWS is sending back that, what's wrong?" and it will be much easier to answer. >> >> As always with WFS, start with these requests with a browser before doing anything with OpenLayers: >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 >> >> If all those requests work you know that TinyOWS works with those basic requests and if OpenLayers application does not get data the reason in probably in the application code. >> >> >> -Jukka Rahkonen- >> >> aho wrote: >> >>> hello! >>> I have a problem with the configuration of tinyows. I have the following >> settings in my xml file: >> >>> > schema_dir="C:\ms4w\apps\tinyows\schema\"> >> > dbname="watergis" port="5432"/> >> > title="TinyOWS Server - WFS-T Frida Service" /> >> > site="http://www.tinyows.org/" >> email="tinyows-users at lists.maptools.org" /> >> > writable="1" >> ns_prefix="water" >> ns_uri="http://localhost/" >> name="pipeline_segment" >> title="pipeline_segment" >> table= "pipeline_segment" >> srid="32740" >> schema="water"/> >> >> >> >if I enter tinyows --check I get the following back: >> >>> C:\ms4w\Apache\cgi-bin>tinyows --check >> TinyOWS version: 1.0.0rc3 >> FCGI support: Yes >> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) >> PostGIS Version: 2.0.0 >> PostGIS dsn: host=localhost user=postgres password=postgres >> dbname=watergi >> s port=5432 >> Output Encoding: UTF-8 >> Database Encoding: UTF8 >> Schema dir: C:\ms4w\apps\tinyows\schema\ >> Display bbox: Yes >> Estimated extent: No >> Check schema: Yes >> Check valid geoms: Yes >> Available layers: >> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] >> >> >>> which looks acutally quite good. But when i am trying to include that >> into my openlayer map - I always get 0 features back! Here the code for >> openlayers: >> >> wfs = new OpenLayers.Layer.Vector("Editable Features", { >> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >> projection: new OpenLayers.Projection("EPSG:31467"), >> protocol: new OpenLayers.Protocol.WFS({ >> version: "1.1.0", >> srsName: "EPSG:32740", >> url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", >> featureNS : "tows", >> featureType: "pipeline_segment", >> geometryName: "geometry", >> schema: >> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" >> }) >> }); >> >> Someone an idea? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From fine_sharad at hotmail.com Fri Nov 2 04:50:11 2012 From: fine_sharad at hotmail.com (sharad) Date: Fri, 2 Nov 2012 04:50:11 -0700 (PDT) Subject: [mapserver-users] MapScript ShapFileObj In-Reply-To: <4A5F8F2E.1010707@rogers.com> References: <4A5F8F2E.1010707@rogers.com> Message-ID: <1351857011675-5013519.post@n6.nabble.com> I have same problem with C# mapscript. can you help me please? regards Sharad -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapScript-ShapFileObj-tp4237040p5013519.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fine_sharad at hotmail.com Fri Nov 2 05:13:09 2012 From: fine_sharad at hotmail.com (sharad) Date: Fri, 2 Nov 2012 05:13:09 -0700 (PDT) Subject: [mapserver-users] Create new shapefile using C# MapScript ShapFileObj Message-ID: <1351858389825-5013528.post@n6.nabble.com> ShapeFileObj class in C# mapscript I'm trying to export spatial data in esri shape file format. I am using to export a layer data of map object into separate shapefile. I'm not having any run-time failures but my result has only .SHP, .SHX files. layerObj lyrObj12 = baseMap.getLayerByName("District"); // baseMap is mapObj and District is the layerObject name of baseMap shapeObj shapeObj = new OSGeo.MapServer.shapeObj(-1); resultObj robje = new resultObj(0); lyrObj12.open(); shapeObj = lyrObj12.getShape(robje); // lineObj lobj= baseMap.g shapefileObj shapeFIle = new shapefileObj(csvFilePath + "\\testShapeFile.shp", (int)MS_SHAPE_TYPE.MS_SHAPE_LINE); //csvFilePath is the location of the local drive shapeFIle.add(shapeObj); shapeObj.Dispose(); shapeFIle.Dispose(); Any suggestions would be appreciated. Regards Sharad Subedi -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Create-new-shapefile-using-C-MapScript-ShapFileObj-tp5013528.html Sent from the Mapserver - User mailing list archive at Nabble.com. From forum.email.a at googlemail.com Fri Nov 2 07:15:48 2012 From: forum.email.a at googlemail.com (aho) Date: Fri, 02 Nov 2012 15:15:48 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi>, <50939551.9040001@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> Message-ID: <5093D594.2010709@googlemail.com> Hi Jukka, ok, I solved the problem with the requests. The following returns from tinyOWS: | || || || XML request isn't valid || ||| Here is the errorlog: Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == [Fri Nov 02 15:11:46 2012] [QUERY] geometry-2866.3885602952,-1910.9257068634 2866.3885602952,1910.9257068634 [Fri Nov 02 15:11:46 2012] [ERROR] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'localhost/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'. Skipping the import. [Fri Nov 02 15:11:46 2012] [ERROR] Element '{http://www.opengis.net/wfs}GetFeature': No matching global declaration available for the validation root. [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid [Fri Nov 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == [Fri Nov 02 15:11:46 2012] [EVENT] == TINYOWS SHUTDOWN == Has it something to do with the schema? I found a post with something similar (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) and replaced all my old tinyows files and copied the ones from the ms4w homepage. Do you have some more ideas? Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: > Hi, > > Yes, it seems to be OpenLayers question then. However, do still capture the requests because without them you cannot understand what happens really. My guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used and OpenLayers is requesting data from a place where there are no data. > > -Jukka- > > aho wrote: > > >> Hi Jukka, >> thanks a lot for your answer and the good tips! I tried all of the links > and they are working. Also I checked it in QGIS and there I can load it > too. > >> So I guess it will be better to write again to the openlayers mailinglist?! > > Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: >> Hi, >> >> You must capture the traffic between OpenLayers and TinyOWS. I am using myself Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers is sending and high enough TinyOWS logging level will also gather requests into tinyows log. The software is not important but you just have to get the requests so you can resend them with a browser or some other tool that yuo can control and see what happens. You can also include the requests in your further mails. Then the question will be "OpenLayers is sending this and TinyOWS is sending back that, what's wrong?" and it will be much easier to answer. >> >> As always with WFS, start with these requests with a browser before doing anything with OpenLayers: >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 >> >> If all those requests work you know that TinyOWS works with those basic requests and if OpenLayers application does not get data the reason in probably in the application code. >> >> >> -Jukka Rahkonen- >> >> aho wrote: >> >>> hello! >>> I have a problem with the configuration of tinyows. I have the following >> settings in my xml file: >> >>> > schema_dir="C:\ms4w\apps\tinyows\schema\"> >> > dbname="watergis" port="5432"/> >> > title="TinyOWS Server - WFS-T Frida Service" /> >> > site="http://www.tinyows.org/" >> email="tinyows-users at lists.maptools.org" /> >> > writable="1" >> ns_prefix="water" >> ns_uri="http://localhost/" >> name="pipeline_segment" >> title="pipeline_segment" >> table= "pipeline_segment" >> srid="32740" >> schema="water"/> >> >> >> >if I enter tinyows --check I get the following back: >> >>> C:\ms4w\Apache\cgi-bin>tinyows --check >> TinyOWS version: 1.0.0rc3 >> FCGI support: Yes >> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) >> PostGIS Version: 2.0.0 >> PostGIS dsn: host=localhost user=postgres password=postgres >> dbname=watergi >> s port=5432 >> Output Encoding: UTF-8 >> Database Encoding: UTF8 >> Schema dir: C:\ms4w\apps\tinyows\schema\ >> Display bbox: Yes >> Estimated extent: No >> Check schema: Yes >> Check valid geoms: Yes >> Available layers: >> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] >> >> >>> which looks acutally quite good. But when i am trying to include that >> into my openlayer map - I always get 0 features back! Here the code for >> openlayers: >> >> wfs = new OpenLayers.Layer.Vector("Editable Features", { >> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >> projection: new OpenLayers.Projection("EPSG:31467"), >> protocol: new OpenLayers.Protocol.WFS({ >> version: "1.1.0", >> srsName: "EPSG:32740", >> url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", >> featureNS : "tows", >> featureType: "pipeline_segment", >> geometryName: "geometry", >> schema: >> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" >> }) >> }); >> >> Someone an idea? >> _______________________________________________ >> 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 sdikiy at volz.ua Fri Nov 2 07:29:04 2012 From: sdikiy at volz.ua (Serge Dikiy) Date: Fri, 2 Nov 2012 16:29:04 +0200 Subject: [mapserver-users] tinyows In-Reply-To: <5093D594.2010709@googlemail.com> References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> <50939551.9040001@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> <5093D594.2010709@googlemail.com> Message-ID: Hi, http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis-lab.info%2Fforum%2Fviewtopic.php%3Ff%3D41%26t%3D10329 BR On Fri, Nov 2, 2012 at 4:15 PM, aho wrote: > Hi Jukka, > > ok, I solved the problem with the requests. The following returns from > tinyOWS: > > > xmlns='http://www.opengis.net/ows' > xmlns:ows='http://www.opengis.net/ows' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xsi:schemaLocation='http://www.opengis.net/ows > http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' > version='1.1.0' language='en'> > > XML request isn't valid > > > > Here is the errorlog: > > Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == > [Fri Nov 02 15:11:46 2012] [QUERY] xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0.0&typename=water:armature" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> typeName="feature:armature" xmlns:feature="water"> xmlns:ogc="http://www.opengis.net/ogc">geometry xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:32740"> decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634 > 2866.3885602952,1910.9257068634 > [Fri Nov 02 15:11:46 2012] [ERROR] Element > '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at > location > 'localhost/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'. > Skipping the import. > > [Fri Nov 02 15:11:46 2012] [ERROR] Element > '{http://www.opengis.net/wfs}GetFeature': No matching global declaration > available for the validation root. > > [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid > [Fri Nov 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == > [Fri Nov 02 15:11:46 2012] [EVENT] == TINYOWS SHUTDOWN == > > Has it something to do with the schema? I found a post with something > similar > (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) > and replaced all my old tinyows files and copied the ones from the ms4w > homepage. > > Do you have some more ideas? > > Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: > > Hi, > > Yes, it seems to be OpenLayers question then. However, do still capture the > requests because without them you cannot understand what happens really. My > guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used > and OpenLayers is requesting data from a place where there are no data. > > -Jukka- > > aho wrote: > > > Hi Jukka, > > thanks a lot for your answer and the good tips! I tried all of the links > > and they are working. Also I checked it in QGIS and there I can load it > too. > > So I guess it will be better to write again to the openlayers mailinglist?! > > Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: > > Hi, > > You must capture the traffic between OpenLayers and TinyOWS. I am using > myself Fiddler2 proxy but I suppose that Firebug can show you what > OpenLayers is sending and high enough TinyOWS logging level will also gather > requests into tinyows log. The software is not important but you just have > to get the requests so you can resend them with a browser or some other tool > that yuo can control and see what happens. You can also include the requests > in your further mails. Then the question will be "OpenLayers is sending this > and TinyOWS is sending back that, what's wrong?" and it will be much easier > to answer. > > As always with WFS, start with these requests with a browser before doing > anything with OpenLayers: > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 > > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment > > http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 > > If all those requests work you know that TinyOWS works with those basic > requests and if OpenLayers application does not get data the reason in > probably in the application code. > > > -Jukka Rahkonen- > > aho wrote: > > hello! > I have a problem with the configuration of tinyows. I have the following > > settings in my xml file: > > > schema_dir="C:\ms4w\apps\tinyows\schema\"> > dbname="watergis" port="5432"/> > title="TinyOWS Server - WFS-T Frida Service" /> > site="http://www.tinyows.org/" > email="tinyows-users at lists.maptools.org" /> > writable="1" > ns_prefix="water" > ns_uri="http://localhost/" > name="pipeline_segment" > title="pipeline_segment" > table= "pipeline_segment" > srid="32740" > schema="water"/> > > > >if I enter tinyows --check I get the following back: > > C:\ms4w\Apache\cgi-bin>tinyows --check > > TinyOWS version: 1.0.0rc3 > FCGI support: Yes > Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) > PostGIS Version: 2.0.0 > PostGIS dsn: host=localhost user=postgres password=postgres > dbname=watergi > s port=5432 > Output Encoding: UTF-8 > Database Encoding: UTF8 > Schema dir: C:\ms4w\apps\tinyows\schema\ > Display bbox: Yes > Estimated extent: No > Check schema: Yes > Check valid geoms: Yes > Available layers: > - water.pipeline_segment (32740) -> water.pipeline_segment [RW] > > > which looks acutally quite good. But when i am trying to include that > > into my openlayer map - I always get 0 features back! Here the code for > openlayers: > > wfs = new OpenLayers.Layer.Vector("Editable Features", { > strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > projection: new OpenLayers.Projection("EPSG:31467"), > protocol: new OpenLayers.Protocol.WFS({ > version: "1.1.0", > srsName: "EPSG:32740", > url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", > featureNS : "tows", > featureType: "pipeline_segment", > geometryName: "geometry", > schema: > "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" > }) > }); > > Someone an idea? > _______________________________________________ > 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 forum.email.a at googlemail.com Fri Nov 2 08:15:20 2012 From: forum.email.a at googlemail.com (aho) Date: Fri, 02 Nov 2012 16:15:20 +0100 Subject: [mapserver-users] tinyows In-Reply-To: References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> <50939551.9040001@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> <5093D594.2010709@googlemail.com> Message-ID: <5093E388.7060107@googlemail.com> Hello, thanks for the suggestion, I think I am a step further! But here is the next problem: I found something that could make a problem: http://127.0.0.1:8000/WNT/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8000%2Fredir%2Fcgi-bin%2Ftinyows.exe 500 (Internal Server Error) what do I need to set in the prox.cgi and for what is the OpenLayers.ProxyHost = "proxy.cgi?url=" good? Could that be the problem? Am 11/2/2012 3:29 PM, schrieb Serge Dikiy: > Hi, > > http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis-lab.info%2Fforum%2Fviewtopic.php%3Ff%3D41%26t%3D10329 > > BR > > On Fri, Nov 2, 2012 at 4:15 PM, aho wrote: >> Hi Jukka, >> >> ok, I solved the problem with the requests. The following returns from >> tinyOWS: >> >> >> > xmlns='http://www.opengis.net/ows' >> xmlns:ows='http://www.opengis.net/ows' >> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >> xsi:schemaLocation='http://www.opengis.net/ows >> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' >> version='1.1.0' language='en'> >> >> XML request isn't valid >> >> >> >> Here is the errorlog: >> >> Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == >> [Fri Nov 02 15:11:46 2012] [QUERY] > xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" >> xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0.0&typename=water:armature" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> typeName="feature:armature" xmlns:feature="water">> xmlns:ogc="http://www.opengis.net/ogc">geometry> xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:32740">> decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634 >> 2866.3885602952,1910.9257068634 >> [Fri Nov 02 15:11:46 2012] [ERROR] Element >> '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at >> location >> 'localhost/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'. >> Skipping the import. >> >> [Fri Nov 02 15:11:46 2012] [ERROR] Element >> '{http://www.opengis.net/wfs}GetFeature': No matching global declaration >> available for the validation root. >> >> [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid >> [Fri Nov 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == >> [Fri Nov 02 15:11:46 2012] [EVENT] == TINYOWS SHUTDOWN == >> >> Has it something to do with the schema? I found a post with something >> similar >> (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) >> and replaced all my old tinyows files and copied the ones from the ms4w >> homepage. >> >> Do you have some more ideas? >> >> Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: >> >> Hi, >> >> Yes, it seems to be OpenLayers question then. However, do still capture the >> requests because without them you cannot understand what happens really. My >> guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used >> and OpenLayers is requesting data from a place where there are no data. >> >> -Jukka- >> >> aho wrote: >> >> >> Hi Jukka, >> >> thanks a lot for your answer and the good tips! I tried all of the links >> >> and they are working. Also I checked it in QGIS and there I can load it >> too. >> >> So I guess it will be better to write again to the openlayers mailinglist?! >> >> Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: >> >> Hi, >> >> You must capture the traffic between OpenLayers and TinyOWS. I am using >> myself Fiddler2 proxy but I suppose that Firebug can show you what >> OpenLayers is sending and high enough TinyOWS logging level will also gather >> requests into tinyows log. The software is not important but you just have >> to get the requests so you can resend them with a browser or some other tool >> that yuo can control and see what happens. You can also include the requests >> in your further mails. Then the question will be "OpenLayers is sending this >> and TinyOWS is sending back that, what's wrong?" and it will be much easier >> to answer. >> >> As always with WFS, start with these requests with a browser before doing >> anything with OpenLayers: >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 >> >> If all those requests work you know that TinyOWS works with those basic >> requests and if OpenLayers application does not get data the reason in >> probably in the application code. >> >> >> -Jukka Rahkonen- >> >> aho wrote: >> >> hello! >> I have a problem with the configuration of tinyows. I have the following >> >> settings in my xml file: >> >> > >> schema_dir="C:\ms4w\apps\tinyows\schema\"> >> > dbname="watergis" port="5432"/> >> > title="TinyOWS Server - WFS-T Frida Service" /> >> > site="http://www.tinyows.org/" >> email="tinyows-users at lists.maptools.org" /> >> > writable="1" >> ns_prefix="water" >> ns_uri="http://localhost/" >> name="pipeline_segment" >> title="pipeline_segment" >> table= "pipeline_segment" >> srid="32740" >> schema="water"/> >> >> >> >if I enter tinyows --check I get the following back: >> >> C:\ms4w\Apache\cgi-bin>tinyows --check >> >> TinyOWS version: 1.0.0rc3 >> FCGI support: Yes >> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) >> PostGIS Version: 2.0.0 >> PostGIS dsn: host=localhost user=postgres password=postgres >> dbname=watergi >> s port=5432 >> Output Encoding: UTF-8 >> Database Encoding: UTF8 >> Schema dir: C:\ms4w\apps\tinyows\schema\ >> Display bbox: Yes >> Estimated extent: No >> Check schema: Yes >> Check valid geoms: Yes >> Available layers: >> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] >> >> >> which looks acutally quite good. But when i am trying to include that >> >> into my openlayer map - I always get 0 features back! Here the code for >> openlayers: >> >> wfs = new OpenLayers.Layer.Vector("Editable Features", { >> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >> projection: new OpenLayers.Projection("EPSG:31467"), >> protocol: new OpenLayers.Protocol.WFS({ >> version: "1.1.0", >> srsName: "EPSG:32740", >> url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", >> featureNS : "tows", >> featureType: "pipeline_segment", >> geometryName: "geometry", >> schema: >> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" >> }) >> }); >> >> Someone an idea? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Nov 2 08:54:30 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 2 Nov 2012 15:54:30 +0000 Subject: [mapserver-users] MapCache (6.2) Backwards Compatability Message-ID: Trying to test the new version of mapcache, specifically the seeder, against a slightly older mapcache configuration file. I'm seeing an error like: "metatile size is not set to a power of two, rerun with e.g -M 8,8" It's true that the tilesets in my config file have metatile set to 5,5. I don't recall why that size, probably just copied directly from example configs... Those values haven't cause an issue to date. I'm wondering why the requirement (power of 2) and what the effects will be if I do some limited tile regeneration on an existing tileset using a different metatile size. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucio at cismid-uni.org Sat Nov 3 17:58:27 2012 From: lucio at cismid-uni.org (Lucio Estacio) Date: Sat, 03 Nov 2012 19:58:27 -0500 Subject: [mapserver-users] One question of tinyows SELECT in postgis Message-ID: <5095BDB3.5070809@cismid-uni.org> Hello friends. I install and testing tinyows and OpenLayers client .. I work all ok. But I see in the log tinyows ...and that for each transaction from client javascript is performed scanned all aggregate tables in the file "/etc/tinyows.xml" ... this is necessary? I see in my JavaScript code that is sent as a parameter to table name where I do the request, but however I see in the log file that are "SELECT" of all tables defined in the tinyows.xml There is no way that the tinyows receive as parameter the table that I will use it and not have to include it in the tinyows.xml?? ... Thank you very much or your help and sorry for my English. (I native speaking spanish) Lucio Estacio -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Sun Nov 4 01:38:31 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Sun, 4 Nov 2012 10:38:31 +0100 Subject: [mapserver-users] One question of tinyows SELECT in postgis In-Reply-To: <5095BDB3.5070809@cismid-uni.org> References: <5095BDB3.5070809@cismid-uni.org> Message-ID: On Sun, Nov 4, 2012 at 1:58 AM, Lucio Estacio wrote: Hi Lucio, I install and testing tinyows and OpenLayers client .. I work all ok. > Great to hear it ! > **** > > But I see in the log tinyows ?and that for each transaction from client > javascript is performed scanned all aggregate tables in the file > "/etc/tinyows.xml" ... this is necessary?**** > > I guess that you're using TinyOWS as CGI rather than in Fast-CGI. (with Fast-CGI a lot of stuff are kept in memory from one request to an another, as config file informations, database structure, or GML Schema) HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Sun Nov 4 05:37:36 2012 From: wal3 at mindspring.com (Worth Lutz) Date: Sun, 4 Nov 2012 08:37:36 -0500 Subject: [mapserver-users] mapserver and php References: <8325A61168AA42C7834B1D2141F19F34@worthlaptop> <1351973334.77357.YahooMailClassic@web121103.mail.ne1.yahoo.com> Message-ID: Hi Vince, If you keep the messages on the list it can help others. I don't mind you sending it to me directly if you are replying to a post of mine as I may see it sooner. I generally use the unstable repository as it gets updated faster (thus unstable). I run on the bleeding edge :-). Here is a script which I use to create postgreSQL templates for a PostGIS database and a pgRouting database. It is a modified version of one found in the pgRouting site. It assumes PostGIS version 2 and PostgreSQL may need to be version 9. This works on my setup using Ubuntu 12.04 and PostgreSQL 9.1 and the ubuntugis-unstable repository to get MapServer and PostGIS. You may need to run to get the "pg_config" utility which reports various config information for PostgreSQL: sudo apt-get install libpq-dev # /bin/bash # ---------------------------------------------------------------------------- -- # Setup template containing PostGIS and/or pgRouting # ---------------------------------------------------------------------------- -- # # To create a GIS database as non-superuser run: # # "createdb -h hostname -W -T template_postgis mydb # # Source: http://geospatial.nomad-labs.com/2006/12/24/postgis-template-database/ # # Note: "pg_config" requires "libpq-dev" package if [ -e `pg_config --sharedir` ] then echo "PostGIS installed in" `pg_config --sharedir` POSTGIS_SQL_PATH=`pg_config --sharedir`/contrib else POSTGIS_SQL_PATH=/usr/share/postgresql/9.1/contrib/postgis-2.0 echo "PostGIS path set as $POSTGIS_SQL_PATH" fi ROUTING_SQL_PATH=/usr/share/postlbs # Create "template_postgis" # ------------------------- if sudo -u postgres psql --list | grep -q template_postgis ; then echo "PostGIS template already exists!" else echo "Create PostGIS template ..." VERSION=$(basename $(pg_config --sharedir)) echo "PostgreSQL version is $VERSION" if [ $VERSION \< 9.1 ]; then # for PostgreSQL less than 9.1 sudo -u postgres createdb -E UTF8 -T template0 template_postgis sudo -u postgres createlang -d template_postgis plpgsql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/postgis.sql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/spatial_ref_sys.sql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/postgis_comments.sql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/postgis-2.0/rtpostgis.sql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/postgis-2.0/raster_comments.sql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/postgis-2.0/topology.sql sudo -u postgres psql --quiet -d template_postgis \ -f $POSTGIS_SQL_PATH/postgis-2.0/topology_comments.sql sudo -u postgres psql --quiet -d template_postgis \ -c "GRANT ALL ON geometry_columns TO PUBLIC;" sudo -u postgres psql --quiet -d template_postgis \ -c "GRANT ALL ON geography_columns TO PUBLIC;" sudo -u postgres psql --quiet -d template_postgis \ -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" sudo -u postgres psql --quiet -d template_postgis -c "VACUUM FULL;" sudo -u postgres psql --quiet -d template_postgis -c "VACUUM FREEZE;" else # for PostgreSQL 9.1+ sudo -u postgres createdb -E UTF8 -T template0 template_postgis sudo -u postgres psql -d template_postgis -c "CREATE EXTENSION postgis" sudo -u postgres psql -d template_postgis -c "CREATE EXTENSION postgis_topology" fi sudo -u postgres psql --quiet -d postgres \ -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';" sudo -u postgres psql --quiet -d postgres \ -c "UPDATE pg_database SET datallowconn='false' WHERE datname='template_postgis';" echo "... template_postgis created." fi # Create "template_routing" # ------------------------- if sudo -u postgres psql --list | grep -q template_routing ; then echo "pgRouting template already exists!" else echo "Create pgRouting template ..." sudo -u postgres createdb -E UTF8 -T template_postgis template_routing sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_core.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_core_wrappers.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_topology.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_tsp.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_tsp_wrappers.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_dd.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/routing_dd_wrappers.sql sudo -u postgres psql --quiet -d template_routing \ -f $ROUTING_SQL_PATH/matching.sql sudo -u postgres psql --quiet -d template_routing -c "VACUUM FULL;" sudo -u postgres psql --quiet -d template_routing -c "VACUUM FREEZE;" sudo -u postgres psql --quiet -d postgres \ -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_routing';" sudo -u postgres psql --quiet -d postgres \ -c "UPDATE pg_database SET datallowconn='false' WHERE datname='template_routing';" echo "... template_routing created." fi #------------------------------------------------------------------------- I hope this helps. Worth -------------- next part -------------- An HTML attachment was scrubbed... URL: From muradj at omnilink.com.au Sun Nov 4 22:15:33 2012 From: muradj at omnilink.com.au (Murad Jamal) Date: Mon, 5 Nov 2012 17:15:33 +1100 Subject: [mapserver-users] Adding an WMS Layer example Message-ID: <001c01cdbb1c$f6c92c30$e45b8490$@com.au> Hello I am having trouble adding an WMS layer in map files. Can anybody please send me an working example of this? Regards, Murad Jamal -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Sun Nov 4 23:46:47 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Mon, 5 Nov 2012 08:46:47 +0100 Subject: [mapserver-users] Adding an WMS Layer example In-Reply-To: <001c01cdbb1c$f6c92c30$e45b8490$@com.au> References: <001c01cdbb1c$f6c92c30$e45b8490$@com.au> Message-ID: <50976EE7.1040400@umb.no> Have you checked the WMS Client documentation page? http://mapserver.org/en/ogc/wms_client.html There is an example of a WMS layer there that looks OK. H?vard On 11/5/2012 7:15 AM, Murad Jamal wrote: > Hello > > I am having trouble adding an WMS layer in map files. Can anybody please send me an working example of this? > > */ Regards,/* > > */ Murad Jamal/* -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From hawk at aamdal.com Mon Nov 5 06:25:39 2012 From: hawk at aamdal.com (Hawk AA) Date: Mon, 5 Nov 2012 15:25:39 +0100 Subject: [mapserver-users] MapServer Layer Filter not applying to WFS Message-ID: <002001cdbb61$6e345e40$4a9d1ac0$@aamdal.com> Hi there, mailing list, We have a customer sending us data with sensitive information. The most convenient way for us is to receive the complete data set and applying a filter in the mapfile. The layer definition looks like this: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" FILTER('[type]' != "Bru") #Styling and more etc.... END This works flawlessly using PHP Mapscript and the mapserver WMS service. The data is not accessible. The problem occurs when querying by WFS. The Mapserver WFS service seems to omit the FILTER information and opens up for selecting items with the type ?Bru?, which is a serious security flaw. I?d consider this as a bug, although I?m not certain. If anyone please can confirm this, or show me how to make mapserver filter data in WFS as well, I?d be much obliged. Best Regards, H?kon -------------- next part -------------- An HTML attachment was scrubbed... URL: From hawk at aamdal.com Mon Nov 5 06:40:20 2012 From: hawk at aamdal.com (Hawk AA) Date: Mon, 5 Nov 2012 15:40:20 +0100 Subject: [mapserver-users] Connectiontype OGR with shapefile encoding Message-ID: <002d01cdbb63$7b58b560$720a2020$@aamdal.com> Hi, You?ve probably had it with encoding issues, but I can?t seem to figure it out. I sure hope the Mailing List can help me with this one. I have a shapefile encoded in latin1 . Until recently I have been able to use CONNECTIONTYPE OGR to access that table like this: CONNECTIONTYPE OGR CONNECTION "TM_Nett/TM_Traces.shp" You are probably wondering why I?m not using the DATA keyword instead of these lines, and that would indeed solve the encoding problem (I?ve tried). The reason why I use OGR is that I need a FILTER applied to the given layer, and to hide data from the WFS service, using OGR seemed like a nice workaround (I?ve recently sent an email regarding this issue). The problem started when I upgraded to PHP 5.4, replacing multiple DLLs in the cgi-bin directory of my MS4W installation. The OGR will now only return me attributes encoded in UTF-8 (I can see no other possibility that it converts the data from latin1 to UTF-8). The UTF-8 attributes are not compatible with the rest of the layers, which returns latin1 (using DATA). Anyone have got a clue of where the problem might be? Is it that the original shapefile have some wrong headers causing the OGR driver to do a conversion (I?ve tried saving the shapefile as both Latin1 and UTF-8 in QGIS with no luck)? Is it possible to tell the OGR driver what encoding to use? Best Regards, H?kon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Nov 5 07:51:52 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 5 Nov 2012 10:51:52 -0500 Subject: [mapserver-users] WMS layers - using port other than 80 Message-ID: Folks, Can anyone confirm that a WMS layer can use a port other than 80? >From some testing we did last week it appeared that they query capabilities could use any port but the actual requests needed to be on port 80. Does this make sense? We will test further today to confirm. Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Nov 5 08:34:40 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 05 Nov 2012 11:34:40 -0500 Subject: [mapserver-users] [mapserver-dev] WMS layers - using port other than 80 In-Reply-To: References: Message-ID: <5097EAA0.8040809@swoodbridge.com> Yes, it works fine. http://imaptools.com:8080/demo/tiger2011.html?zoom=2&lat=40.11169&lon=-95.18555&layers=B0 -Steve W On 11/5/2012 10:51 AM, Ian Walberg wrote: > Folks, > > Can anyone confirm that a WMS layer can use a port other than 80? > > From some testing we did last week it appeared that they query > capabilities could use any port but the actual requests needed to be on > port 80. > > Does this make sense? We will test further today to confirm. > > Thanks > > Ian > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From Steve.Lime at state.mn.us Mon Nov 5 09:18:46 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 5 Nov 2012 17:18:46 +0000 Subject: [mapserver-users] MapServer Layer Filter not applying to WFS In-Reply-To: <002001cdbb61$6e345e40$4a9d1ac0$@aamdal.com> References: <002001cdbb61$6e345e40$4a9d1ac0$@aamdal.com> Message-ID: This is known issue, but it's a bigger deal with shapefiles. The WFS filters essentially replace the defined filter, they are not additive. This is true for all drivers. This would need to be an enhancement, but It would be tricky to do so I think given the variety of filter types. With RDBMS you'd just encode the filter in the data/connection information. The workaround in this case would be to use an OGR layer to access the shapefile instead which will allow you to apply SQL-like syntax at the driver level. See http://mapserver.org/input/vector/ogr.html. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Hawk AA Sent: Monday, November 05, 2012 8:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer Layer Filter not applying to WFS Hi there, mailing list, We have a customer sending us data with sensitive information. The most convenient way for us is to receive the complete data set and applying a filter in the mapfile. The layer definition looks like this: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" FILTER('[type]' != "Bru") #Styling and more etc.... END This works flawlessly using PHP Mapscript and the mapserver WMS service. The data is not accessible. The problem occurs when querying by WFS. The Mapserver WFS service seems to omit the FILTER information and opens up for selecting items with the type "Bru", which is a serious security flaw. I'd consider this as a bug, although I'm not certain. If anyone please can confirm this, or show me how to make mapserver filter data in WFS as well, I'd be much obliged. Best Regards, H?kon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Nov 5 09:29:44 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 5 Nov 2012 17:29:44 +0000 Subject: [mapserver-users] MapServer Layer Filter not applying to WFS In-Reply-To: <002001cdbb61$6e345e40$4a9d1ac0$@aamdal.com> References: <002001cdbb61$6e345e40$4a9d1ac0$@aamdal.com> Message-ID: One other idea. I believe you can avoid using OGR by adding your filter to class expressions and setting a template (which enables queries) at the class level. Class expressions are always checked. If you have one class it's easy: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" CLASS EXPRESSION'[type]' != "Bru") # Styling and more etc.... TEMPLATE 'void' END # No template set at the layer level END Might consider WMS-only vs. WFS-only layer defs to simplify life if you have multiple classes. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Hawk AA Sent: Monday, November 05, 2012 8:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer Layer Filter not applying to WFS Hi there, mailing list, We have a customer sending us data with sensitive information. The most convenient way for us is to receive the complete data set and applying a filter in the mapfile. The layer definition looks like this: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" FILTER('[type]' != "Bru") #Styling and more etc.... END This works flawlessly using PHP Mapscript and the mapserver WMS service. The data is not accessible. The problem occurs when querying by WFS. The Mapserver WFS service seems to omit the FILTER information and opens up for selecting items with the type "Bru", which is a serious security flaw. I'd consider this as a bug, although I'm not certain. If anyone please can confirm this, or show me how to make mapserver filter data in WFS as well, I'd be much obliged. Best Regards, H?kon -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Nov 5 10:17:32 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 05 Nov 2012 14:17:32 -0400 Subject: [mapserver-users] Adding an WMS Layer example In-Reply-To: <50976EE7.1040400@umb.no> References: <001c01cdbb1c$f6c92c30$e45b8490$@com.au> <50976EE7.1040400@umb.no> Message-ID: <509802BC.5060408@gatewaygeomatics.com> H?vard is right, there is a WMS client layer that you should be able to paste into your mapfile as-as: http://mapserver.org/en/ogc/wms_client.html#adding-a-wms-layer (I try to keep that server online) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-11-05 3:46 AM, Havard Tveite wrote: > Have you checked the WMS Client documentation page? > > http://mapserver.org/en/ogc/wms_client.html > > There is an example of a WMS layer there that looks OK. > > H?vard > > On 11/5/2012 7:15 AM, Murad Jamal wrote: >> Hello >> >> I am having trouble adding an WMS layer in map files. Can anybody >> please send me an working example of this? >> >> */ Regards,/* >> >> */ Murad Jamal/* > From Bob.Bistrais at maine.gov Mon Nov 5 13:27:57 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 5 Nov 2012 21:27:57 +0000 Subject: [mapserver-users] getfeature problem Message-ID: I am trying to work with some feature results, and am getting an error returned on a layer->getFeature. I tried to research other posts about this, seems like there was some issues with WMS or something not quite related to where I am. I'm using MS4W 3.0.4 - MapServer 6.0.2 with PHP MapScript 6.1 My code: print "results = ". $layer->getNumResults(); //Verify that we get results, indeed one result returned as expected for($r = 0; $r < $layer->getNumResults(); $r++) { $result = $layer->getResult($r); $res = $layer->getResult(0); $firstResult = $layer->getFeature($res->shapeindex); //This is the line it fails on $parcelWkt = $firstResult->toWkt(); results = 1 Fatal error: Call to undefined method layerObj::getFeature() in C:\ms4w\apps\geoparcels\htdocs\php\selectParcelPt.php on line 280 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Nov 5 14:47:30 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 5 Nov 2012 22:47:30 +0000 Subject: [mapserver-users] getfeature problem In-Reply-To: References: Message-ID: Man are the docs out-of-date in this regard. See RFC 65 for an example, see the Proposed Technical Changes section (it's much simpler in 6.x)... http://mapserver.org/development/rfc/ms-rfc-65.html I'll get some documentation tickets in place to address the documentation shortcomings. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Monday, November 05, 2012 3:28 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] getfeature problem I am trying to work with some feature results, and am getting an error returned on a layer->getFeature. I tried to research other posts about this, seems like there was some issues with WMS or something not quite related to where I am. I'm using MS4W 3.0.4 - MapServer 6.0.2 with PHP MapScript 6.1 My code: print "results = ". $layer->getNumResults(); //Verify that we get results, indeed one result returned as expected for($r = 0; $r < $layer->getNumResults(); $r++) { $result = $layer->getResult($r); $res = $layer->getResult(0); $firstResult = $layer->getFeature($res->shapeindex); //This is the line it fails on $parcelWkt = $firstResult->toWkt(); results = 1 Fatal error: Call to undefined method layerObj::getFeature() in C:\ms4w\apps\geoparcels\htdocs\php\selectParcelPt.php on line 280 -------------- next part -------------- An HTML attachment was scrubbed... URL: From forest21000 at yahoo.cn Mon Nov 5 20:06:10 2012 From: forest21000 at yahoo.cn (Forest) Date: Tue, 6 Nov 2012 12:06:10 +0800 (CST) Subject: [mapserver-users] Projection values of mapfile In-Reply-To: Message-ID: <1352174770.10720.YahooMailClassic@web92108.mail.cnh.yahoo.com> Hello everyone, ???? I've been using shp2img tools to generate tile image by mapfile. And the project is by default,which is epsg:4326.Now I want to use Web Mercator Projection,Can you tell me how to write the mapfile's projection label?And Do I need to change my shpfile's projection? ??? Waiting for your answers,thanks very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From David at itbeyond.com.au Mon Nov 5 23:33:20 2012 From: David at itbeyond.com.au (David Martin) Date: Tue, 6 Nov 2012 07:33:20 +0000 Subject: [mapserver-users] OGR & MSSQL Server on specified Port Number fails to connect Message-ID: Hi, I have a geodata source on SQLServer 2008 and have been using for a number of years the msplugin_mssql2008.dll plugin. I now want to use some stored procedures in my SQL server to render the geo data to MapServer. So I have been working with the OGR driver however I have found what I think is a problem when the SQL server is on a none standard TCP port as the comma in the server definition gets thrown away when rendering the layer using a map file via shp2img. I can use ogrinfo without problem but as soon as I carry the string to the OGR layer in the .map file and run shp2img -all_debug 1 I see that the tcp port of my SQL server is removed and hence the connection fails. So the working OGR syntax is: ogrinfo "MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)" -summary INFO: Open of `MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)' using driver `MSSQLSpatial' successful. 1: PointPlace_Waypoints NOTE: The TCP Port is 4670 - this is the same as used in the mssql2008.dll plug in. When I use shp2img this is what I get: shp2img -m latest.map -o test.png -all_debug 1 msDrawMap(): rendering using outputformat named png (AGG/PNG8). msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670)... OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server= MY_WEB-SqlServer.com) msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `latest1'. Unable to initialize connection to the server for MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com, [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. msDrawMap(): Image handling error. Failed to draw layer named 'latest1'. msDrawMap(): Image handling error. Failed to draw layer named 'latest1'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `latest1'. Unable to initialize connection to the server for MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com, [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. You will notice that two lines: msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670)... OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server= MY_WEB-SqlServer.com) The system is calling msOGRFileOpen with a ,4670 but the OGROPen has removed the comma and tcp port number hence my connection fails. Is there a resolution to this or is there another way to execute stored procedures with MapServer layers? David -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Nov 6 00:06:58 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 6 Nov 2012 09:06:58 +0100 Subject: [mapserver-users] OGR & MSSQL Server on specified Port Number fails to connect In-Reply-To: References: Message-ID: David, This might indeed be a bug in the OGR driver. Just file a ticket for that in the GDAL issue tracker . Best regards, Tamas 2012/11/6 David Martin > Hi,**** > > I have a geodata source on SQLServer 2008 and have been using for a number > of years the msplugin_mssql2008.dll plugin. I now want to use some stored > procedures in my SQL server to render the geo data to MapServer. So I have > been working with the OGR driver however I have found what I think is a > problem when the SQL server is on a none standard TCP port as the comma in > the server definition gets thrown away when rendering the layer using a map > file via shp2img. I can use ogrinfo without problem but as soon as I carry > the string to the OGR layer in the .map file and run shp2img ?all_debug 1 I > see that the tcp port of my SQL server is removed and hence the connection > fails. **** > > ** ** > > So the working OGR syntax is:**** > > ogrinfo "MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated > Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)" > -summary**** > > INFO: Open of `MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated > Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)' > **** > > using driver `MSSQLSpatial' successful.**** > > 1: PointPlace_Waypoints**** > > ** ** > > NOTE: The TCP Port is 4670 ? this is the same as used in the mssql2008.dll > plug in.**** > > ** ** > > When I use shp2img this is what I get:**** > > shp2img -m latest.map -o test.png -all_debug 1**** > > msDrawMap(): rendering using outputformat named png (AGG/PNG8).**** > > msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated > Security=false;server=MY_WEB-SqlServer.com,4670)...**** > > OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated > Security=false;server= MY_WEB-SqlServer.com)**** > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `latest1'.**** > > Unable to initialize connection to the server for > MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server= > MY_WEB-SqlServer.com,**** > > [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or > access denied.**** > > ** ** > > msDrawMap(): Image handling error. Failed to draw layer named 'latest1'.** > ** > > msDrawMap(): Image handling error. Failed to draw layer named 'latest1'. >
**** > > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `latest1'.**** > > Unable to initialize connection to the server for > MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server= > MY_WEB-SqlServer.com,**** > > [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or > access denied.**** > > ** ** > > You will notice that two lines:**** > > msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated > Security=false;server=MY_WEB-SqlServer.com,4670)...**** > > OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated > Security=false;server= MY_WEB-SqlServer.com)**** > > ** ** > > The system is calling msOGRFileOpen with a ,4670 but the OGROPen has > removed the comma and tcp port number hence my connection fails.**** > > ** ** > > Is there a resolution to this or is there another way to execute stored > procedures with MapServer layers?**** > > ** ** > > David**** > > _______________________________________________ > 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 David at itbeyond.com.au Tue Nov 6 00:27:49 2012 From: David at itbeyond.com.au (David Martin) Date: Tue, 6 Nov 2012 08:27:49 +0000 Subject: [mapserver-users] OGR & MSSQL Server on specified Port Number fails to connect In-Reply-To: References: Message-ID: Ticket #4885 Created. David From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, 6 November 2012 4:07 PM To: David Martin Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR & MSSQL Server on specified Port Number fails to connect David, This might indeed be a bug in the OGR driver. Just file a ticket for that in the GDAL issue tracker. Best regards, Tamas 2012/11/6 David Martin > Hi, I have a geodata source on SQLServer 2008 and have been using for a number of years the msplugin_mssql2008.dll plugin. I now want to use some stored procedures in my SQL server to render the geo data to MapServer. So I have been working with the OGR driver however I have found what I think is a problem when the SQL server is on a none standard TCP port as the comma in the server definition gets thrown away when rendering the layer using a map file via shp2img. I can use ogrinfo without problem but as soon as I carry the string to the OGR layer in the .map file and run shp2img ?all_debug 1 I see that the tcp port of my SQL server is removed and hence the connection fails. So the working OGR syntax is: ogrinfo "MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)" -summary INFO: Open of `MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)' using driver `MSSQLSpatial' successful. 1: PointPlace_Waypoints NOTE: The TCP Port is 4670 ? this is the same as used in the mssql2008.dll plug in. When I use shp2img this is what I get: shp2img -m latest.map -o test.png -all_debug 1 msDrawMap(): rendering using outputformat named png (AGG/PNG8). msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670)... OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server= MY_WEB-SqlServer.com) msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `latest1'. Unable to initialize connection to the server for MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com, [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. msDrawMap(): Image handling error. Failed to draw layer named 'latest1'. msDrawMap(): Image handling error. Failed to draw layer named 'latest1'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `latest1'. Unable to initialize connection to the server for MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com, [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. You will notice that two lines: msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=MY_WEB-SqlServer.com,4670)... OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server= MY_WEB-SqlServer.com) The system is calling msOGRFileOpen with a ,4670 but the OGROPen has removed the comma and tcp port number hence my connection fails. Is there a resolution to this or is there another way to execute stored procedures with MapServer layers? David _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Nov 6 04:05:48 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 06 Nov 2012 08:05:48 -0400 Subject: [mapserver-users] Projection values of mapfile In-Reply-To: <1352174770.10720.YahooMailClassic@web92108.mail.cnh.yahoo.com> References: <1352174770.10720.YahooMailClassic@web92108.mail.cnh.yahoo.com> Message-ID: <5098FD1C.5020406@gatewaygeomatics.com> On 12-11-06 12:06 AM, Forest wrote: > Hello everyone, > I've been using shp2img tools to generate tile image by mapfile. > And the project is by default,which is epsg:4326.Now I want to use Web > Mercator Projection,Can you tell me how to write the mapfile's > projection label?And Do I need to change my shpfile's projection? > Waiting for your answers,thanks very much! > You should review the PROJECTION documentation (http://www.mapserver.org/mapfile/projection.html), and especially the "Important Notes" at the bottom of that page. Use epsg:3857 as your "output" projection. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From cnieman at dmsolutions.ca Tue Nov 6 04:06:44 2012 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 06 Nov 2012 07:06:44 -0500 Subject: [mapserver-users] Projection values of mapfile In-Reply-To: <1352174770.10720.YahooMailClassic@web92108.mail.cnh.yahoo.com> References: <1352174770.10720.YahooMailClassic@web92108.mail.cnh.yahoo.com> Message-ID: <5098FD54.2090607@dmsolutions.ca> Hello, If you are using a recent version of PROJ.4, you should be able to use epsg:3857 for Web Mercator. MapServer can reproject your data on-the-fly if you also have projection blocks in your layer definitions to say what projection the data are (i.e. epsg:4326). This will slow down the map draws somewhat, so if you are planning to always display this map in Web Mercator, it's a good idea to reproject your shapefiles. ... oh, it looks like Jeff beat me to it :) Christy On 11/05/2012 11:06 PM, Forest wrote: > Hello everyone, > I've been using shp2img tools to generate tile image by mapfile. > And the project is by default,which is epsg:4326.Now I want to use Web > Mercator Projection,Can you tell me how to write the mapfile's > projection label?And Do I need to change my shpfile's projection? > Waiting for your answers,thanks very much! > > > > _______________________________________________ > 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 forum.email.a at googlemail.com Tue Nov 6 04:30:35 2012 From: forum.email.a at googlemail.com (aho) Date: Tue, 06 Nov 2012 13:30:35 +0100 Subject: [mapserver-users] tinyows In-Reply-To: References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> <50939551.9040001@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> <5093D594.2010709@googlemail.com> Message-ID: <509902EB.5070603@googlemail.com> Hey, I still havn?t found the problem with the tinyows - but at the moment there is no error message when i am loading the wfs. Also fiddler doesn?t list the tinyows.exe anymore. But my proxy is correct - I can load it via uDig and ArcMap. QGIS has a problem, but there is not a single error in the tinyows log file - just events and sqls are listed, that looks quite good. With Open layers there is nothing logged - it seems like the request is not send. Is there any limitation for the version? I downloaded the latest (2.12) one, but on the tinyows page is version 2.09 listed?! Kind regards Am 11/2/2012 3:29 PM, schrieb Serge Dikiy: > Hi, > > http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis-lab.info%2Fforum%2Fviewtopic.php%3Ff%3D41%26t%3D10329 > > BR > > On Fri, Nov 2, 2012 at 4:15 PM, aho wrote: >> Hi Jukka, >> >> ok, I solved the problem with the requests. The following returns from >> tinyOWS: >> >> >> > xmlns='http://www.opengis.net/ows' >> xmlns:ows='http://www.opengis.net/ows' >> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >> xsi:schemaLocation='http://www.opengis.net/ows >> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' >> version='1.1.0' language='en'> >> >> XML request isn't valid >> >> >> >> Here is the errorlog: >> >> Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == >> [Fri Nov 02 15:11:46 2012] [QUERY] > xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" >> xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0.0&typename=water:armature" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> typeName="feature:armature" xmlns:feature="water">> xmlns:ogc="http://www.opengis.net/ogc">geometry> xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:32740">> decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634 >> 2866.3885602952,1910.9257068634 >> [Fri Nov 02 15:11:46 2012] [ERROR] Element >> '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at >> location >> 'localhost/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'. >> Skipping the import. >> >> [Fri Nov 02 15:11:46 2012] [ERROR] Element >> '{http://www.opengis.net/wfs}GetFeature': No matching global declaration >> available for the validation root. >> >> [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid >> [Fri Nov 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == >> [Fri Nov 02 15:11:46 2012] [EVENT] == TINYOWS SHUTDOWN == >> >> Has it something to do with the schema? I found a post with something >> similar >> (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) >> and replaced all my old tinyows files and copied the ones from the ms4w >> homepage. >> >> Do you have some more ideas? >> >> Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: >> >> Hi, >> >> Yes, it seems to be OpenLayers question then. However, do still capture the >> requests because without them you cannot understand what happens really. My >> guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used >> and OpenLayers is requesting data from a place where there are no data. >> >> -Jukka- >> >> aho wrote: >> >> >> Hi Jukka, >> >> thanks a lot for your answer and the good tips! I tried all of the links >> >> and they are working. Also I checked it in QGIS and there I can load it >> too. >> >> So I guess it will be better to write again to the openlayers mailinglist?! >> >> Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: >> >> Hi, >> >> You must capture the traffic between OpenLayers and TinyOWS. I am using >> myself Fiddler2 proxy but I suppose that Firebug can show you what >> OpenLayers is sending and high enough TinyOWS logging level will also gather >> requests into tinyows log. The software is not important but you just have >> to get the requests so you can resend them with a browser or some other tool >> that yuo can control and see what happens. You can also include the requests >> in your further mails. Then the question will be "OpenLayers is sending this >> and TinyOWS is sending back that, what's wrong?" and it will be much easier >> to answer. >> >> As always with WFS, start with these requests with a browser before doing >> anything with OpenLayers: >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment >> >> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 >> >> If all those requests work you know that TinyOWS works with those basic >> requests and if OpenLayers application does not get data the reason in >> probably in the application code. >> >> >> -Jukka Rahkonen- >> >> aho wrote: >> >> hello! >> I have a problem with the configuration of tinyows. I have the following >> >> settings in my xml file: >> >> > >> schema_dir="C:\ms4w\apps\tinyows\schema\"> >> > dbname="watergis" port="5432"/> >> > title="TinyOWS Server - WFS-T Frida Service" /> >> > site="http://www.tinyows.org/" >> email="tinyows-users at lists.maptools.org" /> >> > writable="1" >> ns_prefix="water" >> ns_uri="http://localhost/" >> name="pipeline_segment" >> title="pipeline_segment" >> table= "pipeline_segment" >> srid="32740" >> schema="water"/> >> >> >> >if I enter tinyows --check I get the following back: >> >> C:\ms4w\Apache\cgi-bin>tinyows --check >> >> TinyOWS version: 1.0.0rc3 >> FCGI support: Yes >> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) >> PostGIS Version: 2.0.0 >> PostGIS dsn: host=localhost user=postgres password=postgres >> dbname=watergi >> s port=5432 >> Output Encoding: UTF-8 >> Database Encoding: UTF8 >> Schema dir: C:\ms4w\apps\tinyows\schema\ >> Display bbox: Yes >> Estimated extent: No >> Check schema: Yes >> Check valid geoms: Yes >> Available layers: >> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] >> >> >> which looks acutally quite good. But when i am trying to include that >> >> into my openlayer map - I always get 0 features back! Here the code for >> openlayers: >> >> wfs = new OpenLayers.Layer.Vector("Editable Features", { >> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >> projection: new OpenLayers.Projection("EPSG:31467"), >> protocol: new OpenLayers.Protocol.WFS({ >> version: "1.1.0", >> srsName: "EPSG:32740", >> url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", >> featureNS : "tows", >> featureType: "pipeline_segment", >> geometryName: "geometry", >> schema: >> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" >> }) >> }); >> >> Someone an idea? >> _______________________________________________ >> 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 sumyjose1983 at gmail.com Tue Nov 6 06:41:09 2012 From: sumyjose1983 at gmail.com (sumy jose) Date: Tue, 6 Nov 2012 18:41:09 +0400 Subject: [mapserver-users] Fwd: CP1256 Encoding not supporting in IIS7.0 In-Reply-To: References: Message-ID: Hello, I am using MAPSerevr 5.6.6 for showing both English and Arabic MAP. We are using compiled binaries that downloaded from http://www.gisinternals.com/sdk/ . it is working fine for both English and Arabic when i run it from my Visual studio 2008 and 2010. But When i Uploaded it to our windows server 2008 Server it is not working. If the encoding is ISO-8859-{6,8}, CP{1255,1256}, and CP862 the page is not displaying.It ried with "CP1256//TRANSLIT" but getting same result . If i change encoding "to windows-1256". the page will display but Arabic labels not showing right to left. Below my sample code of .map LAYER NAME "admin_tourplanner" TYPE POLYGON MINSCALE 0 MAXSCALE 1000000 #30000000 STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "admin_tourplanner.TAB" #LABELITEM "country" LABELITEM "Country_Ar" CLASS NAME "admin" COLOR 242 239 232 OUTLINECOLOR 0 0 0 LABEL COLOR 0 120 255 # COLOR 255-255-0 FONT TITUSCBZ// (worked with arial, tahoma...) TYPE TRUETYPE SIZE 12 POSITION LC WRAP " " ENCODING "CP1256" END#LABEL END # Class section END # LAYER Section Please give suggestion. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From stupidzt at yahoo.com Tue Nov 6 19:26:59 2012 From: stupidzt at yahoo.com (stupidzt) Date: Tue, 6 Nov 2012 19:26:59 -0800 (PST) Subject: [mapserver-users] PHP mapscript and OGR problem Message-ID: <1352258819555-5014436.post@n6.nabble.com> Hi, I need help on OGR connectiontype part of my php script : for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++){ $oLayer = $gpoMap->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); and my map file : LAYER NAME "Kota/Kabupaten" GROUP "POLYGON" STATUS OFF TYPE POLYGON #CONNECTIONTYPE OGR #CONNECTION "../data/KotaKabupaten_region.shp" DATA "KotaKabupaten_region.shp" when I click on map (querybypoint) the script $numResults gets value 1. but if I change my map file to : LAYER NAME "Kota/Kabupaten" GROUP "POLYGON" STATUS OFF TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "../data/KotaKabupaten_region.shp" DATA "KotaKabupaten_region" $numResults gets value 0 both mapfile works fine, it show the map correctly. Even the function zoom in, zoom out and recenter work fine. But when i use querybypoint, it's not working for the second mapfile. Please help. MapServer version 6.0.1,PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27 11:23:07 -0400 (Wed, 27 Apr 2011) $),PHP Version 5.3.10-1ubuntu3.3 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/PHP-mapscript-and-OGR-problem-tp5014436.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ready945 at gmail.com Tue Nov 6 23:53:43 2012 From: ready945 at gmail.com (Spirifer) Date: Tue, 6 Nov 2012 23:53:43 -0800 (PST) Subject: [mapserver-users] Mapfile VS MapScript performance Message-ID: <1352274823649-5014463.post@n6.nabble.com> Hi, I would to use MapServer to create WMS/WFS services. I think to compare 2 systems to produce services: 1) Apache + MapServer CGI + static mapfile (.map) 2) Apache + MapScript PHP + map configuration in cache Somebody has tested the performance between the mapfile and MapScript ? Thanks. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.html Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at gmail.com Wed Nov 7 00:42:35 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 7 Nov 2012 09:42:35 +0100 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: <1352274823649-5014463.post@n6.nabble.com> References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: I have tested cgi against python mapscript (with mod_python) and the performance improvement, as expected, is massive. On Wed, Nov 7, 2012 at 8:53 AM, Spirifer wrote: > Hi, > > I would to use MapServer to create WMS/WFS services. > > I think to compare 2 systems to produce services: > 1) Apache + MapServer CGI + static mapfile (.map) > 2) Apache + MapScript PHP + map configuration in cache > > Somebody has tested the performance between the mapfile and MapScript ? > > Thanks. > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.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 mikesaunt at gmail.com Wed Nov 7 00:47:58 2012 From: mikesaunt at gmail.com (Mike Saunt) Date: Wed, 7 Nov 2012 08:47:58 +0000 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: As the cgi is robust and heavily tested I would think you would save massive amounts of developer time in not writing python wrapper code too! On Nov 7, 2012 8:42 AM, "Umberto Nicoletti" wrote: > I have tested cgi against python mapscript (with mod_python) and the > performance improvement, as expected, is massive. > > > On Wed, Nov 7, 2012 at 8:53 AM, Spirifer wrote: > >> Hi, >> >> I would to use MapServer to create WMS/WFS services. >> >> I think to compare 2 systems to produce services: >> 1) Apache + MapServer CGI + static mapfile (.map) >> 2) Apache + MapScript PHP + map configuration in cache >> >> Somebody has tested the performance between the mapfile and MapScript ? >> >> Thanks. >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.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 >> > > > _______________________________________________ > 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 umberto.nicoletti at gmail.com Wed Nov 7 00:50:06 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 7 Nov 2012 09:50:06 +0100 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: The python wrapper is actually ~ 6 lines ;-) On Wed, Nov 7, 2012 at 9:47 AM, Mike Saunt wrote: > As the cgi is robust and heavily tested I would think you would save > massive amounts of developer time in not writing python wrapper code too! > On Nov 7, 2012 8:42 AM, "Umberto Nicoletti" > wrote: > >> I have tested cgi against python mapscript (with mod_python) and the >> performance improvement, as expected, is massive. >> >> >> On Wed, Nov 7, 2012 at 8:53 AM, Spirifer wrote: >> >>> Hi, >>> >>> I would to use MapServer to create WMS/WFS services. >>> >>> I think to compare 2 systems to produce services: >>> 1) Apache + MapServer CGI + static mapfile (.map) >>> 2) Apache + MapScript PHP + map configuration in cache >>> >>> Somebody has tested the performance between the mapfile and MapScript ? >>> >>> Thanks. >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.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 >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 7 01:15:13 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Nov 2012 10:15:13 +0100 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: - testing against cgi isn't really an objective test, but even so the differences will iron out as soon as the actual workloads are not trivial (i.e. if you're just benchmarking getcapabilities then sure, mapscript keeping in memory your mapfile will be orders of magnitude faster than cgi. switching to complex map draws will show very similar performance between both options) - using fastcgi will somewhat iron out the differences on trivial workloads - certain mapscript scripts will leak non trivial amounts of memory, forcing server restarts periodically if you don't have an infinite amount of memory available. with all that said, my recommendation is to stick with cgi/fastcgi unless you have very specific needs that force you to use mapscript. -- thomas On Wed, Nov 7, 2012 at 9:42 AM, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > I have tested cgi against python mapscript (with mod_python) and the > performance improvement, as expected, is massive. > > > On Wed, Nov 7, 2012 at 8:53 AM, Spirifer wrote: > >> Hi, >> >> I would to use MapServer to create WMS/WFS services. >> >> I think to compare 2 systems to produce services: >> 1) Apache + MapServer CGI + static mapfile (.map) >> 2) Apache + MapScript PHP + map configuration in cache >> >> Somebody has tested the performance between the mapfile and MapScript ? >> >> Thanks. >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.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 >> > > > _______________________________________________ > 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 peter.hopfgartner at r3-gis.com Wed Nov 7 01:36:37 2012 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 07 Nov 2012 10:36:37 +0100 Subject: [mapserver-users] MapScript leaks, was Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: <509A2BA5.2010203@r3-gis.com> On 11/07/2012 10:15 AM, thomas bonfort wrote: Hi Thomas ( ... ) > - certain mapscript scripts will leak non trivial amounts of memory, > forcing server restarts periodically if you don't have an infinite > amount of memory available. > This is indeed an issue. It can inelegantly be handled limitig the process reuses in apaches's httpd.conf. Anway, do you have any hint where these leaks happen or if and how they can be plugged? Are these leaks visible to valgrind? Could we provide a simple recipe, to allow people to valgrind their particular setup and provide feedback? > with all that said, my recommendation is to stick with cgi/fastcgi > unless you have very specific needs that force you to use mapscript. From personal experience, I fully embrace this. > > -- > thomas > Thanks, Peter (...) -- Peter Hopfgartner web : http://www.r3-gis.com From j.l.h.hartmann at uva.nl Wed Nov 7 01:44:03 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 07 Nov 2012 10:44:03 +0100 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: <509A2D63.9090403@uva.nl> On 11/07/2012 10:15 AM, thomas bonfort wrote: > - certain mapscript scripts will leak non trivial amounts of memory, > forcing server restarts periodically if you don't have an infinite > amount of memory available. > > Hi Thomas, can you give more information about those memory leaks in MapScript? Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Wed Nov 7 02:10:25 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 7 Nov 2012 11:10:25 +0100 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: The performance point being made clear by Thomas I think I should mention a couple of (mostly in functionality) advantages that the WxS wrappers might have against cgi/fastcgi: 1. it is easy to extend the wrapper to add accounting, logging, caching. True, accounting and logging can also be accomplished simply by processing the web server log files but that requires extra software and might not be easy to impement in complex situations (think a cached request costs x and a non-cached y) 2. request preprocessing: filtering layers, redirecting 3. image/response prostprocessing: caching, assembling, watermarking,... Umberto On Wed, Nov 7, 2012 at 10:15 AM, thomas bonfort wrote: > - testing against cgi isn't really an objective test, but even so the > differences will iron out as soon as the actual workloads are not trivial > (i.e. if you're just benchmarking getcapabilities then sure, mapscript > keeping in memory your mapfile will be orders of magnitude faster than cgi. > switching to complex map draws will show very similar performance between > both options) > - using fastcgi will somewhat iron out the differences on trivial workloads > - certain mapscript scripts will leak non trivial amounts of memory, > forcing server restarts periodically if you don't have an infinite amount > of memory available. > > with all that said, my recommendation is to stick with cgi/fastcgi unless > you have very specific needs that force you to use mapscript. > > -- > thomas > > > On Wed, Nov 7, 2012 at 9:42 AM, Umberto Nicoletti < > umberto.nicoletti at gmail.com> wrote: > >> I have tested cgi against python mapscript (with mod_python) and the >> performance improvement, as expected, is massive. >> >> >> On Wed, Nov 7, 2012 at 8:53 AM, Spirifer wrote: >> >>> Hi, >>> >>> I would to use MapServer to create WMS/WFS services. >>> >>> I think to compare 2 systems to produce services: >>> 1) Apache + MapServer CGI + static mapfile (.map) >>> 2) Apache + MapScript PHP + map configuration in cache >>> >>> Somebody has tested the performance between the mapfile and MapScript ? >>> >>> Thanks. >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.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 >>> >> >> >> _______________________________________________ >> 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 sumariva at gmail.com Wed Nov 7 03:06:05 2012 From: sumariva at gmail.com (Cristiano Sumariva) Date: Wed, 7 Nov 2012 09:06:05 -0200 Subject: [mapserver-users] Mapfile VS MapScript performance In-Reply-To: References: <1352274823649-5014463.post@n6.nabble.com> Message-ID: Also using mapscript you can integrate mapserver with application by saving mapfile into database and letting application manage the mapserver configuration, grant access to authenticaded session clients You will lose speed but win maintenance. I do not really like to update the mapfile, then the tilecache then seed tiles again for each small change. 2012/11/7 Umberto Nicoletti > The performance point being made clear by Thomas I think I should mention > a couple of (mostly in functionality) advantages that the WxS wrappers > might have against cgi/fastcgi: > > 1. it is easy to extend the wrapper to add accounting, logging, caching. > True, accounting and logging can also be accomplished simply by processing > the web server log files but that requires extra software and might not be > easy to impement in complex situations (think a cached request costs x and > a non-cached y) > > 2. request preprocessing: filtering layers, redirecting > > 3. image/response prostprocessing: caching, assembling, watermarking,... > > Umberto > > > > > On Wed, Nov 7, 2012 at 10:15 AM, thomas bonfort wrote: > >> - testing against cgi isn't really an objective test, but even so the >> differences will iron out as soon as the actual workloads are not trivial >> (i.e. if you're just benchmarking getcapabilities then sure, mapscript >> keeping in memory your mapfile will be orders of magnitude faster than cgi. >> switching to complex map draws will show very similar performance between >> both options) >> - using fastcgi will somewhat iron out the differences on trivial >> workloads >> - certain mapscript scripts will leak non trivial amounts of memory, >> forcing server restarts periodically if you don't have an infinite amount >> of memory available. >> >> with all that said, my recommendation is to stick with cgi/fastcgi unless >> you have very specific needs that force you to use mapscript. >> >> -- >> thomas >> >> >> On Wed, Nov 7, 2012 at 9:42 AM, Umberto Nicoletti < >> umberto.nicoletti at gmail.com> wrote: >> >>> I have tested cgi against python mapscript (with mod_python) and the >>> performance improvement, as expected, is massive. >>> >>> >>> On Wed, Nov 7, 2012 at 8:53 AM, Spirifer wrote: >>> >>>> Hi, >>>> >>>> I would to use MapServer to create WMS/WFS services. >>>> >>>> I think to compare 2 systems to produce services: >>>> 1) Apache + MapServer CGI + static mapfile (.map) >>>> 2) Apache + MapScript PHP + map configuration in cache >>>> >>>> Somebody has tested the performance between the mapfile and MapScript ? >>>> >>>> Thanks. >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://osgeo-org.1560.n6.nabble.com/Mapfile-VS-MapScript-performance-tp5014463.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 >>>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hawk at aamdal.com Wed Nov 7 07:38:53 2012 From: hawk at aamdal.com (Hawk AA) Date: Wed, 7 Nov 2012 16:38:53 +0100 Subject: [mapserver-users] MapServer Layer Filter not applying to WFS In-Reply-To: References: <002001cdbb61$6e345e40$4a9d1ac0$@aamdal.com> Message-ID: <000301cdbcfd$feb9a720$fc2cf560$@aamdal.com> Hi, Thanks for the help. Using filter in the CLASS did nothing more than adding FILTER to the layer tag. I tried this definition: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" minscaledenom 0 maxscaledenom 5500000 CLASS EXPRESSION ('[type]' != "LUFT") TEMPLATE 'void' NAME "TelMe_Traseer" STYLE COLOR 255 0 0 WIDTH 2 END END # Layer It does not display the data, nor queryable in MapScript, but I can get the feature geometry with WFS. I?ve until now used CONNECTIONTYPE OGR with CONNECTION, and it has worked flawlessly. Recently, when upgrading to PHP 5.4, it started UTF-8 encoding my tables. I?ve addressed the issue here: http://comments.gmane.org/gmane.comp.gis.mapserver.user/49756 . I have some more research to do regarding the issue, but I?d be very thankful for any hints. H?kon From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 5. november 2012 18:30 To: Hawk AA; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapServer Layer Filter not applying to WFS One other idea. I believe you can avoid using OGR by adding your filter to class expressions and setting a template (which enables queries) at the class level. Class expressions are always checked. If you have one class it?s easy: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" CLASS EXPRESSION'[type]' != "Bru") # Styling and more etc.... TEMPLATE ?void? END # No template set at the layer level END Might consider WMS-only vs. WFS-only layer defs to simplify life if you have multiple classes. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Hawk AA Sent: Monday, November 05, 2012 8:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer Layer Filter not applying to WFS Hi there, mailing list, We have a customer sending us data with sensitive information. The most convenient way for us is to receive the complete data set and applying a filter in the mapfile. The layer definition looks like this: LAYER NAME Traseer GROUP TelMe TYPE LINE DATA "TM_Nett/TM_Traces" FILTER('[type]' != "Bru") #Styling and more etc.... END This works flawlessly using PHP Mapscript and the mapserver WMS service. The data is not accessible. The problem occurs when querying by WFS. The Mapserver WFS service seems to omit the FILTER information and opens up for selecting items with the type ?Bru?, which is a serious security flaw. I?d consider this as a bug, although I?m not certain. If anyone please can confirm this, or show me how to make mapserver filter data in WFS as well, I?d be much obliged. Best Regards, H?kon -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.sufiev at acti.ru Wed Nov 7 08:13:10 2012 From: t.sufiev at acti.ru (=?utf-8?Q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80_=D0=93=D0=B0=D0=BB=D0=B8?= =?utf-8?Q?=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=BE=D0=B2=D0=B8=D1=87=20?= =?utf-8?Q?=D0=A1=D1=83=D1=84=D0=B8=D0=B5=D0=B2?=) Date: Wed, 07 Nov 2012 19:13:10 +0300 Subject: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation Message-ID: <20121107161310.b20d0715@newmail.acti.ru> Hi! This isn't the first question here about inserting features in TinyOWS, but I haven't found solution to my problem in archives. The working environment is OpenLayers 2.13dev + TinyOWS from github + PostGIS 2.0 + PostgreSQL 9.2 Relevant js-code is: var POINT = 1; var save_objs_strategy = new OpenLayers.Strategy.Save( { "saves_what": "cities" }); var cities = new OpenLayers.Layer.Vector( '??????', { strategies: [new OpenLayers.Strategy.BBOX(), save_objs_strategy], protocol: new OpenLayers.Protocol.WFS( { version: "1.1.0", url: "http://localhost/mapserver/tinyows", featureType: "cities", featureNS: "http://www.tinyows.org", geometryName: "geom", outputFormat: "JSON", schema: "http://localhost/mapserver/tinyows?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:cities" }) } ); var draw = new OpenLayers.Control.DrawFeature( cities, OpenLayers.Handler.Point, { title: "???????? ????????", displayClass: "olControlDrawFeaturePoint" } ); draw.events.on( { "featureadded": function(e) { var attrs = e.feature.attributes; attrs.pop_hk = 99; attrs.city_name = "????? ?????"; attrs.type_id = POINT; save_objs_strategy.save(); } }); Adding a vector point feature (city) somewhere on the map creates the following XML request to tinyows: 37.962548828124 55.22265625 99 ????? ????? 1 The request fails with the following string in tinyows.log: [Wed Nov 7 19:55:01 2012] [ERROR] Element '{http://www.tinyows.org}cities': This element is not expected. Expected is one of ( {http://www.opengis.net/gml}_Feature, {http://www.opengis.net/gml}FeatureCollection, {http://www.opengis.net/gml}MultiPointCoverage, {http://www.opengis.net/gml}MultiCurveCoverage, {http://www.opengis.net/gml}MultiSurfaceCoverage, {http://www.opengis.net/gml}MultiSolidCoverage, {http://www.opengis.net/gml}GridCoverage, {http://www.opengis.net/gml}RectifiedGridCoverage, {http://www.opengis.net/gml}Observation, {http://www.opengis.net/gml}DirectedObservation ). This seems a little bit cryptic to me because the "schema" parameter in js-code (http://localhost/mapserver/tinyows?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:cities) returns the following xsd: and this xsd should make tinyows use element '{http://www.tinyows.org}cities' like '{http://www.opengis.net/gml}_Feature' Where am I wrong and what should be changed in my setup? Best regards, Timur Sufiev -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Wed Nov 7 10:24:24 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Wed, 7 Nov 2012 19:24:24 +0100 Subject: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation In-Reply-To: <20121107161310.b20d0715@newmail.acti.ru> References: <20121107161310.b20d0715@newmail.acti.ru> Message-ID: On Wed, Nov 7, 2012 at 5:13 PM, ????? ????????????? ?????? wrote: Hi Timur, > This isn't the first question here about inserting features in TinyOWS, > but I haven't found solution to my problem in archives. > > and this xsd should make tinyows use element '{http://www.tinyows.org}cities' > like '{http://www.opengis.net/gml}_Feature' > > Where am I wrong and what should be changed in my setup? > Thanks for your detailled report, first naive question, what about the tinyows.xml config file, and online_resource property ? Next question, what happen, if you bypass schema validation, with: check_schema = "0" (in tinyows element) -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaops at hotmail.com Wed Nov 7 13:47:07 2012 From: zhaops at hotmail.com (Peisheng Zhao) Date: Wed, 7 Nov 2012 21:47:07 +0000 Subject: [mapserver-users] legend rendering Message-ID: Hi all, By default the legend is created on the fly and rendered in vertical when sending getLegendGraphic request. How could we set up to render it horizontal? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at terragis.net Wed Nov 7 22:07:22 2012 From: karsten at terragis.net (karsten) Date: Wed, 7 Nov 2012 22:07:22 -0800 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with a wms getmap request Message-ID: <649760E749824F85A739838AB62A467D@terragis2> Hey there, I just tested fast cgi MapServer (version 6.0.3) vs cgi with a wms getmap request againtst a map file with 73 postgis layers (and PROCESSING "CLOSE_CONNECTION=DEFER" setting for each layer.) However simple manual timing of the getmap request testing in Firebug of rendering speed shows that fastcgi is bascially at the same speed or slower than cgi so far , any ideas why that could be , any more tweaks need to speed it up ? It is all on same linux server. Will I need to fiddle with any of the FastCgiConfig settings ? Cheers Karsten Karsten Vennemann Principal Terra GIS LTD 2119 Boyer Ave E Seattle, WA 98112 USA www.terragis.net Phone ++1 206 905 1711 Fax ++1 925 905 1711 ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.2308, Virus/Spyware Database: 6.20820) http://www.pctools.com/ ======= From Andreas.Eichner at sid.sachsen.de Wed Nov 7 23:43:02 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 8 Nov 2012 08:43:02 +0100 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request References: <649760E749824F85A739838AB62A467D@terragis2> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de> Hello Karsten, > I just tested fast cgi MapServer (version 6.0.3) vs cgi with > a wms getmap > request againtst a map file with 73 postgis layers (and PROCESSING > "CLOSE_CONNECTION=DEFER" setting for each layer.) IMHO that processing option avoids reopening a connection to the same database for a single request. Once the request is done the the connection will be closed. > rendering speed shows that fastcgi is bascially at the same > speed or slower than cgi so far FastCGI only reduces the startup time (as the processes are already running) and therefore improves mostly simple requests where startup time is significant compared to content generation - like GetCapabilities and GetLegendGraphic. In your case parsing the map file with 73 layers already introduces a significant workload for every request, independent of the request type. That gap should be closed by mod_mapserver which associates a map file with an URI and keeps a copy of the parsed object in memory wich usually keeps database connections open. HTH From t.sufiev at acti.ru Thu Nov 8 00:53:13 2012 From: t.sufiev at acti.ru (=?utf-8?Q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80_=D0=93=D0=B0=D0=BB=D0=B8?= =?utf-8?Q?=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=BE=D0=B2=D0=B8=D1=87=20?= =?utf-8?Q?=D0=A1=D1=83=D1=84=D0=B8=D0=B5=D0=B2?=) Date: Thu, 08 Nov 2012 11:53:13 +0300 Subject: [mapserver-users] =?iso-8859-1?q?=5BTinyOWS=5D_Inserting_feature_?= =?iso-8859-1?q?and_XML_schema=09validation?= In-Reply-To: Message-ID: <20121108085313.0234cd93@newmail.acti.ru> Hi, Olivier Here is most part of my tinyows.xml (online_resource is ok, also I set check_schema to "0"): After disabling schema_check I get the following record in logfile: [Thu Nov 8 12:42:15 2012] [EVENT] == Filling Storage == [Thu Nov 8 12:42:15 2012] [EVENT] == FCGI START == [Thu Nov 8 12:42:15 2012] [QUERY] 38.10537109375 55.36547851562599????? ?????1 [Thu Nov 8 12:42:15 2012] [SQL] BEGIN; [Thu Nov 8 12:42:15 2012] [SQL] SELECT nextval('public.cities_obj_id_seq'); [Thu Nov 8 12:42:15 2012] [SQL] INSERT INTO "public"."cities" ("obj_id") VALUES ('693') [Thu Nov 8 12:42:15 2012] [SQL] COMMIT; [Thu Nov 8 12:42:15 2012] [EVENT] == FCGI SHUTDOWN == [Thu Nov 8 12:42:15 2012] [EVENT] == TINYOWS SHUTDOWN == And that is not exactly the right thing because none of the 'cities' table's fields are filled (values for them are provided in query above). I'm putting 'cities' table definition here for the whole picture: -----------+------------------------+------------------------------------------- obj_id | integer | NOT NULL DEFAULT nextval('cities_obj_id_seq'::regclass) pop_hk | integer | city_name | character varying(100) | geom | geometry(Point,4326) | "cities_pkey" PRIMARY KEY, btree (obj_id) "cities_type_id_fkey" FOREIGN KEY (type_id) REFERENCES types(type_id) Best regards, Timur Sufiev _____ From: Olivier Courtin [mailto:olivier.courtin at gmail.com] To: mapserver-users at lists.osgeo.org Sent: Wed, 07 Nov 2012 21:24:24 +0300 Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation On Wed, Nov 7, 2012 at 5:13 PM, ????? ????????????? ?????? wrote: Hi Timur, This isn't the first question here about inserting features in TinyOWS, but I haven't found solution to my problem in archives. and this xsd should make tinyows use element '{http://www.tinyows.org}cities' like '{http://www.opengis.net/gml}_Feature' Where am I wrong and what should be changed in my setup? Thanks for your detailled report, first naive question, what about the tinyows.xml config file, and online_resource property ? Next question, what happen, if you bypass schema validation, with: check_schema = "0" (in tinyows element) -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at terragis.net Thu Nov 8 10:15:13 2012 From: karsten at terragis.net (karsten) Date: Thu, 8 Nov 2012 10:15:13 -0800 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de> References: <649760E749824F85A739838AB62A467D@terragis2> <56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de> Message-ID: <4CCDE59ED49F4FB081214EBE3492FE7C@terragis2> Hi Andreas, >> I just tested fast cgi MapServer (version 6.0.3) vs cgi with a wms >> getmap request againtst a map file with 73 postgis layers (and >> PROCESSING "CLOSE_CONNECTION=DEFER" setting for each layer.) > IMHO that processing option avoids reopening a connection to the same database for a single request. Once the request is done the the connection will be closed. I thought that setting allows to open the db connection only once , keep it open until all layers data are read and will prevent closing and opening connections in between layers ? > FastCGI only reduces the startup time (as the processes are already running) and therefore improves mostly simple requests where startup time is significant compared to content generation - like GetCapabilities and GetLegendGraphic. In your case parsing the map file with 73 layers already introduces a significant workload for every request, independent of the request type. > That gap should be closed by mod_mapserver which associates a map file with an URI and keeps a copy of the parsed object in memory wich usually keeps database connections open. I searched the list and the MapServer doc about the Apache ? Module mod_mapserver, however I could not find almost any reference to it other than it is on the wish list for v 6.2 ? Does it already exist in MapServer 6.0.3 And if so - is there any info how to configure that feature ? Cheers Karsten ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.2308, Virus/Spyware Database: 6.20820) http://www.pctools.com/ ======= From Andreas.Eichner at sid.sachsen.de Fri Nov 9 00:16:59 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 9 Nov 2012 09:16:59 +0100 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request References: <649760E749824F85A739838AB62A467D@terragis2> <56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de> <4CCDE59ED49F4FB081214EBE3492FE7C@terragis2> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF454@KS-EVS1.smi.sachsen.de> >> Once the request is done the the connection >> will be closed. > I thought that setting allows to open the db connection only > once , keep it open until all layers data are read and will > prevent closing and opening connections in between layers ? That's right. You can query more than one layer per GetMap request and MapServer will open the database connection only once for all layers involved. But once the request is done AFAIK the database connection will be closed. > I searched the list and the MapServer doc about the Apache ? Module > mod_mapserver, however I could not find almost any reference > to it other than it is on the wish list for v 6.2 ? Does it already > exist in MapServer 6.0.3 The module is only available in the 6-2 branch and should be build when supplying the --with-apache-module switch and configuration should be a snippet in the apache config: Mapfile /path/to/wms.map But I'm sure it's not well tested and only supports WxS services. You might ask Thomas Bonfort in what stage it is. Even if it's currently not suitable for productive use you might give it a try and provide some feedback. If it can solve your performance issues it might get more attention by the developers. HTH From peter.hopfgartner at r3-gis.com Fri Nov 9 00:21:35 2012 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 09 Nov 2012 09:21:35 +0100 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF454@KS-EVS1.smi.sachsen.de> References: <649760E749824F85A739838AB62A467D@terragis2> <56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de> <4CCDE59ED49F4FB081214EBE3492FE7C@terragis2> <56B587E7C40D2F43B54FDC1BA897AC6D037AF454@KS-EVS1.smi.sachsen.de> Message-ID: <509CBD0F.10009@r3-gis.com> On 11/09/2012 09:16 AM, Eichner, Andreas - SID-NLKM wrote: >>> Once the request is done the the connection >>> will be closed. >> I thought that setting allows to open the db connection only >> once , keep it open until all layers data are read and will >> prevent closing and opening connections in between layers ? > That's right. You can query more than one layer per GetMap request and > MapServer will open the database connection only once for all layers > involved. But once the request is done AFAIK the database connection > will be closed. If you think that the time needed to establish the connection to PostgreSQL is relevant in your case, you might consider to use of a connection pooler, like http://wiki.postgresql.org/wiki/PgBouncer. (...) > HTH > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Peter -- Peter Hopfgartner R3 GIS Srl - GmbH web : http://www.r3-gis.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Nov 9 00:38:39 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 9 Nov 2012 09:38:39 +0100 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF454@KS-EVS1.smi.sachsen.de> References: <649760E749824F85A739838AB62A467D@terragis2> <56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de> <4CCDE59ED49F4FB081214EBE3492FE7C@terragis2> <56B587E7C40D2F43B54FDC1BA897AC6D037AF454@KS-EVS1.smi.sachsen.de> Message-ID: On Fri, Nov 9, 2012 at 9:16 AM, Eichner, Andreas - SID-NLKM < Andreas.Eichner at sid.sachsen.de> wrote: > >> Once the request is done the the connection > >> will be closed. > > I thought that setting allows to open the db connection only > > once , keep it open until all layers data are read and will > > prevent closing and opening connections in between layers ? > > That's right. You can query more than one layer per GetMap request and > MapServer will open the database connection only once for all layers > involved. But once the request is done AFAIK the database connection > will be closed. > In CGI mode, a single connection will be reused across all layers of the request. In FastCGI mode, a connection will be kept open during the lifecycle of the fastcgi process, i.e. the connection will not be closed at the end of a request. > > I searched the list and the MapServer doc about the Apache ? Module > > mod_mapserver, however I could not find almost any reference > > to it other than it is on the wish list for v 6.2 ? Does it already > > exist in MapServer 6.0.3 > > The module is only available in the 6-2 branch and should be build when > supplying the --with-apache-module switch and configuration should be a > snippet in the apache config: > > > Mapfile /path/to/wms.map > > > But I'm sure it's not well tested and only supports WxS services. You > might ask Thomas Bonfort in what stage it is. Even if it's currently > not suitable for productive use you might give it a try and provide some > feedback. If it can solve your performance issues it might get more > attention by the developers. > It's there in 6.2 but we will not be advertising it as being ready for production. In practice the same mapfile is reused across requests, which makes for very good performance but has the following implications: - WFS requests with FILTERs set should not be used, as the FILTERITEM/FILTER will continue to be applied to the subsequent requests, even if FILTER was not supplied on the subsequent requests. - CGI substitutions and mapfile url overrides should not be used, as they would also be applied to subsequent requests - WMS SLD requests should not be used, for the same reason. Basically, the only safe usages are capabilities and plain GetMap or mode=map requests. Overcoming the previous limitations isn't planned for, so would need to be funded. It should be noted that these limitations would also apply to a homemade mapscript script that reuses a mapObj for multiple requests. regards, thomas > > > HTH > _______________________________________________ > 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 forum.email.a at googlemail.com Fri Nov 9 01:27:04 2012 From: forum.email.a at googlemail.com (aho) Date: Fri, 09 Nov 2012 10:27:04 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <509902EB.5070603@googlemail.com> References: <50938A03.7000009@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79A5@suutari.haapa.mmm.fi> <50939551.9040001@googlemail.com> <84446DEF76453C439E9E97E438E13A637A79B9@suutari.haapa.mmm.fi> <5093D594.2010709@googlemail.com> <509902EB.5070603@googlemail.com> Message-ID: <509CCC68.8020505@googlemail.com> Hi again, I am still searching and not finding something. I setup everything again with the WFS-T tutorial. Now I am getting the following error message: [Thu Nov 08 16:32:21 2012] [ERROR] local list type: A type, derived by list or union, must have the simple ur-type definition as base type, not '{http://www.opengis.net/gml}doubleOrNullList'. Am I right with this forum? Because actually nobody replies. Am 11/6/2012 1:30 PM, schrieb aho: > Hey, > > I still havn?t found the problem with the tinyows - but at the moment > there is no error message when i am loading the wfs. Also fiddler > doesn?t list the tinyows.exe anymore. But my proxy is correct - I can > load it via uDig and ArcMap. QGIS has a problem, but there is not a > single error in the tinyows log file - just events and sqls are > listed, that looks quite good. With Open layers there is nothing > logged - it seems like the request is not send. > > Is there any limitation for the version? I downloaded the latest > (2.12) one, but on the tinyows page is version 2.09 listed?! > > Kind regards > > Am 11/2/2012 3:29 PM, schrieb Serge Dikiy: >> Hi, >> >> http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis-lab.info%2Fforum%2Fviewtopic.php%3Ff%3D41%26t%3D10329 >> >> >> BR >> >> On Fri, Nov 2, 2012 at 4:15 PM, aho >> wrote: >>> Hi Jukka, >>> >>> ok, I solved the problem with the requests. The following returns from >>> tinyOWS: >>> >>> >>> >> xmlns='http://www.opengis.net/ows' >>> xmlns:ows='http://www.opengis.net/ows' >>> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >>> xsi:schemaLocation='http://www.opengis.net/ows >>> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' >>> version='1.1.0' language='en'> >>> >> locator='request'> >>> XML request isn't valid >>> >>> >>> >>> Here is the errorlog: >>> >>> Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == >>> [Fri Nov 02 15:11:46 2012] [QUERY] >> xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0.0&typename=water:armature" >>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">>> typeName="feature:armature" xmlns:feature="water">>> xmlns:ogc="http://www.opengis.net/ogc">geometry>> >>> xmlns:gml="http://www.opengis.net/gml" >>> srsName="EPSG:32740">>> decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634 >>> 2866.3885602952,1910.9257068634 >>> >>> [Fri Nov 02 15:11:46 2012] [ERROR] Element >>> '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a >>> schema at >>> location >>> 'localhost/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'. >>> >>> Skipping the import. >>> >>> [Fri Nov 02 15:11:46 2012] [ERROR] Element >>> '{http://www.opengis.net/wfs}GetFeature': No matching global >>> declaration >>> available for the validation root. >>> >>> [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid >>> [Fri Nov 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == >>> [Fri Nov 02 15:11:46 2012] [EVENT] == TINYOWS SHUTDOWN == >>> >>> Has it something to do with the schema? I found a post with something >>> similar >>> (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) >>> >>> and replaced all my old tinyows files and copied the ones from the ms4w >>> homepage. >>> >>> Do you have some more ideas? >>> >>> Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: >>> >>> Hi, >>> >>> Yes, it seems to be OpenLayers question then. However, do still >>> capture the >>> requests because without them you cannot understand what happens >>> really. My >>> guess is that something in wrong in how EPSG:31467 and EPSG:32740 >>> are used >>> and OpenLayers is requesting data from a place where there are no data. >>> >>> -Jukka- >>> >>> aho wrote: >>> >>> >>> Hi Jukka, >>> >>> thanks a lot for your answer and the good tips! I tried all of the >>> links >>> >>> and they are working. Also I checked it in QGIS and there I can load it >>> too. >>> >>> So I guess it will be better to write again to the openlayers >>> mailinglist?! >>> >>> Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: >>> >>> Hi, >>> >>> You must capture the traffic between OpenLayers and TinyOWS. I am using >>> myself Fiddler2 proxy but I suppose that Firebug can show you what >>> OpenLayers is sending and high enough TinyOWS logging level will >>> also gather >>> requests into tinyows log. The software is not important but you >>> just have >>> to get the requests so you can resend them with a browser or some >>> other tool >>> that yuo can control and see what happens. You can also include the >>> requests >>> in your further mails. Then the question will be "OpenLayers is >>> sending this >>> and TinyOWS is sending back that, what's wrong?" and it will be much >>> easier >>> to answer. >>> >>> As always with WFS, start with these requests with a browser before >>> doing >>> anything with OpenLayers: >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0 >>> >>> >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment >>> >>> >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10 >>> >>> >>> If all those requests work you know that TinyOWS works with those basic >>> requests and if OpenLayers application does not get data the reason in >>> probably in the application code. >>> >>> >>> -Jukka Rahkonen- >>> >>> aho wrote: >>> >>> hello! >>> I have a problem with the configuration of tinyows. I have the >>> following >>> >>> settings in my xml file: >>> >>> >> >>> schema_dir="C:\ms4w\apps\tinyows\schema\"> >>> >> dbname="watergis" port="5432"/> >>> >> title="TinyOWS Server - WFS-T Frida Service" /> >>> >> site="http://www.tinyows.org/" >>> email="tinyows-users at lists.maptools.org" /> >>> >> writable="1" >>> ns_prefix="water" >>> ns_uri="http://localhost/" >>> name="pipeline_segment" >>> title="pipeline_segment" >>> table= "pipeline_segment" >>> srid="32740" >>> schema="water"/> >>> >>> >>> >if I enter tinyows --check I get the following back: >>> >>> C:\ms4w\Apache\cgi-bin>tinyows --check >>> >>> TinyOWS version: 1.0.0rc3 >>> FCGI support: Yes >>> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) >>> PostGIS Version: 2.0.0 >>> PostGIS dsn: host=localhost user=postgres password=postgres >>> dbname=watergi >>> s port=5432 >>> Output Encoding: UTF-8 >>> Database Encoding: UTF8 >>> Schema dir: C:\ms4w\apps\tinyows\schema\ >>> Display bbox: Yes >>> Estimated extent: No >>> Check schema: Yes >>> Check valid geoms: Yes >>> Available layers: >>> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] >>> >>> >>> which looks acutally quite good. But when i am trying to include that >>> >>> into my openlayer map - I always get 0 features back! Here the code for >>> openlayers: >>> >>> wfs = new OpenLayers.Layer.Vector("Editable Features", { >>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >>> projection: new OpenLayers.Projection("EPSG:31467"), >>> protocol: new OpenLayers.Protocol.WFS({ >>> version: "1.1.0", >>> srsName: "EPSG:32740", >>> url: >>> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", >>> featureNS : "tows", >>> featureType: "pipeline_segment", >>> geometryName: "geometry", >>> schema: >>> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" >>> >>> }) >>> }); >>> >>> Someone an idea? >>> _______________________________________________ >>> 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 Jukka.Rahkonen at mmmtike.fi Fri Nov 9 02:04:11 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 9 Nov 2012 10:04:11 +0000 Subject: [mapserver-users] tinyows Message-ID: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> Hi, Forum is right but obviously there are not many people doing WFS-T with OpenLayers against TinyOWS installed on Windows. If you are totally jammed I would recommend you to leave TinyOWS aside for a while and try to make your OpenLayers application to work with Geoserver WFS-T. I believe you will have success with it. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: aho [mailto:forum.email.a at googlemail.com] > L?hetetty: 9. marraskuuta 2012 11:27 > Vastaanottaja: sdikiy at volz.ua > Kopio: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] tinyows > > Hi again, > > I am still searching and not finding something. I setup everything again with > the WFS-T tutorial. Now I am getting the following error message: > > [Thu Nov 08 16:32:21 2012] [ERROR] local list type: A type, derived by list or > union, must have the simple ur-type definition as base type, not > '{http://www.opengis.net/gml}doubleOrNullList'. > > Am I right with this forum? Because actually nobody replies. > > > > > Am 11/6/2012 1:30 PM, schrieb aho: > > Hey, > > > > I still havn?t found the problem with the tinyows - but at the moment > > there is no error message when i am loading the wfs. Also fiddler > > doesn?t list the tinyows.exe anymore. But my proxy is correct - I can > > load it via uDig and ArcMap. QGIS has a problem, but there is not a > > single error in the tinyows log file - just events and sqls are > > listed, that looks quite good. With Open layers there is nothing > > logged - it seems like the request is not send. > > > > Is there any limitation for the version? I downloaded the latest > > (2.12) one, but on the tinyows page is version 2.09 listed?! > > > > Kind regards > > > > Am 11/2/2012 3:29 PM, schrieb Serge Dikiy: > >> Hi, > >> > >> > http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en& > >> ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis- > lab.info%2Fforum%2Fviewto > >> pic.php%3Ff%3D41%26t%3D10329 > >> > >> > >> BR > >> > >> On Fri, Nov 2, 2012 at 4:15 PM, aho > >> wrote: > >>> Hi Jukka, > >>> > >>> ok, I solved the problem with the requests. The following returns > >>> from > >>> tinyOWS: > >>> > >>> >>> xmlns='http://www.opengis.net/ows' > >>> xmlns:ows='http://www.opengis.net/ows' > >>> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > >>> xsi:schemaLocation='http://www.opengis.net/ows > >>> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' > >>> version='1.1.0' language='en'> > >>> >>> locator='request'> > >>> XML request isn't valid > >>> > >>> > >>> > >>> Here is the errorlog: > >>> > >>> Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == [Fri Nov 02 > >>> 15:11:46 2012] [QUERY] >>> xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > version="1.0.0" > >>> xsi:schemaLocation="http://www.opengis.net/wfs > >>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water > >>> http://127.0.0.1:8000/redir/cgi- > bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0. > 0&typename=water:armature" > >>> > >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema- > instance"> >>> typeName="feature:armature" xmlns:feature="water"> >>> > xmlns:ogc="http://www.opengis.net/ogc"> >g > >>> eometry >>> > >>> xmlns:gml="http://www.opengis.net/gml" > >>> srsName="EPSG:32740"> >>> decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634 > >>> > 2866.3885602952,1910.9257068634 >>> X> > >>> > >>> [Fri Nov 02 15:11:46 2012] [ERROR] Element > >>> '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a > >>> schema at location > >>> 'localhost/cgi- > bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0. > 0'. > >>> > >>> Skipping the import. > >>> > >>> [Fri Nov 02 15:11:46 2012] [ERROR] Element > >>> '{http://www.opengis.net/wfs}GetFeature': No matching global > >>> declaration available for the validation root. > >>> > >>> [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid [Fri Nov > >>> 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == [Fri Nov 02 15:11:46 > >>> 2012] [EVENT] == TINYOWS SHUTDOWN == > >>> > >>> Has it something to do with the schema? I found a post with > >>> something similar > >>> (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in- > OpenLayer > >>> s-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) > >>> > >>> and replaced all my old tinyows files and copied the ones from the > >>> ms4w homepage. > >>> > >>> Do you have some more ideas? > >>> > >>> Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: > >>> > >>> Hi, > >>> > >>> Yes, it seems to be OpenLayers question then. However, do still > >>> capture the requests because without them you cannot understand > what > >>> happens really. My guess is that something in wrong in how > >>> EPSG:31467 and EPSG:32740 are used and OpenLayers is requesting data > >>> from a place where there are no data. > >>> > >>> -Jukka- > >>> > >>> aho wrote: > >>> > >>> > >>> Hi Jukka, > >>> > >>> thanks a lot for your answer and the good tips! I tried all of the > >>> links > >>> > >>> and they are working. Also I checked it in QGIS and there I can load > >>> it too. > >>> > >>> So I guess it will be better to write again to the openlayers > >>> mailinglist?! > >>> > >>> Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: > >>> > >>> Hi, > >>> > >>> You must capture the traffic between OpenLayers and TinyOWS. I am > >>> using myself Fiddler2 proxy but I suppose that Firebug can show you > >>> what OpenLayers is sending and high enough TinyOWS logging level > >>> will also gather requests into tinyows log. The software is not > >>> important but you just have to get the requests so you can resend > >>> them with a browser or some other tool that yuo can control and see > >>> what happens. You can also include the requests in your further > >>> mails. Then the question will be "OpenLayers is sending this and > >>> TinyOWS is sending back that, what's wrong?" and it will be much > >>> easier to answer. > >>> > >>> As always with WFS, start with these requests with a browser before > >>> doing anything with OpenLayers: > >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request= > >>> GetCapabilities&version=1.1.0 > >>> > >>> > >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request= > >>> > DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment > >>> > >>> > >>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request= > >>> > GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatu > res > >>> =10 > >>> > >>> > >>> If all those requests work you know that TinyOWS works with those > >>> basic requests and if OpenLayers application does not get data the > >>> reason in probably in the application code. > >>> > >>> > >>> -Jukka Rahkonen- > >>> > >>> aho wrote: > >>> > >>> hello! > >>> I have a problem with the configuration of tinyows. I have the > >>> following > >>> > >>> settings in my xml file: > >>> > >>> >>> > >>> schema_dir="C:\ms4w\apps\tinyows\schema\"> > >>> >>> dbname="watergis" port="5432"/> > >>> >>> title="TinyOWS Server - WFS-T Frida Service" /> > >>> >>> site="http://www.tinyows.org/" > >>> email="tinyows-users at lists.maptools.org" /> >>> retrievable="1" > >>> writable="1" > >>> ns_prefix="water" > >>> ns_uri="http://localhost/" > >>> name="pipeline_segment" > >>> title="pipeline_segment" > >>> table= "pipeline_segment" > >>> srid="32740" > >>> schema="water"/> > >>> > >>> > >>> >if I enter tinyows --check I get the following back: > >>> > >>> C:\ms4w\Apache\cgi-bin>tinyows --check > >>> > >>> TinyOWS version: 1.0.0rc3 > >>> FCGI support: Yes > >>> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) > >>> PostGIS Version: 2.0.0 > >>> PostGIS dsn: host=localhost user=postgres password=postgres > >>> dbname=watergi > >>> s port=5432 > >>> Output Encoding: UTF-8 > >>> Database Encoding: UTF8 > >>> Schema dir: C:\ms4w\apps\tinyows\schema\ > >>> Display bbox: Yes > >>> Estimated extent: No > >>> Check schema: Yes > >>> Check valid geoms: Yes > >>> Available layers: > >>> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] > >>> > >>> > >>> which looks acutally quite good. But when i am trying to include > >>> that > >>> > >>> into my openlayer map - I always get 0 features back! Here the code > >>> for > >>> openlayers: > >>> > >>> wfs = new OpenLayers.Layer.Vector("Editable Features", { > >>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > >>> projection: new OpenLayers.Projection("EPSG:31467"), > >>> protocol: new OpenLayers.Protocol.WFS({ > >>> version: "1.1.0", > >>> srsName: "EPSG:32740", > >>> url: > >>> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", > >>> featureNS : "tows", > >>> featureType: "pipeline_segment", > >>> geometryName: "geometry", > >>> schema: > >>> "http://127.0.0.1:8000/redir/cgi- > bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0 > &typename=water:pipeline_segment" > >>> > >>> }) > >>> }); > >>> > >>> Someone an idea? > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > > From Andreas.Eichner at sid.sachsen.de Fri Nov 9 02:16:02 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 9 Nov 2012 11:16:02 +0100 Subject: [mapserver-users] fast cgi MapServer (version 6.0.3) vs cgi with awms getmap request References: <649760E749824F85A739838AB62A467D@terragis2><56B587E7C40D2F43B54FDC1BA897AC6D037AF450@KS-EVS1.smi.sachsen.de><4CCDE59ED49F4FB081214EBE3492FE7C@terragis2><56B587E7C40D2F43B54FDC1BA897AC6D037AF454@KS-EVS1.smi.sachsen.de> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF455@KS-EVS1.smi.sachsen.de> Hello Thomas, > In FastCGI mode, a connection will be kept open during the > lifecycle of the fastcgi process, i.e. the connection will > not be closed at the end of a request. Damn, you're right. Had a look at the code and tracking down the chain I saw: mapserv.c: msFreeMapServObj() maptemplate.c: msFreeMap() mapobject.c: msCloseConnections() mapfile.c: vtable->LayerCloseConnection() [for each layer] But PostGIS layers don't provide a LayerCloseConnection() and use the pooling API instead - and that is the magic that keeps the connection. Sorry for the confusion. > It should be noted that these limitations would also apply to a > homemade mapscript script that reuses a mapObj for multiple requests. I overcame that problem by using msCopyMap(). It's not that elegant than using separate datastructure for service config and work data but still avoids the costly invocation of the parser. Regards From adube at mapgears.com Fri Nov 9 05:50:08 2012 From: adube at mapgears.com (=?ISO-8859-1?Q?Alexandre_Dub=E9?=) Date: Fri, 09 Nov 2012 08:50:08 -0500 Subject: [mapserver-users] tinyows In-Reply-To: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> Message-ID: <509D0A10.4020106@mapgears.com> Hi, Yeah, playing with WFS in OpenLayers and TinyOWS can be tricky. I've had similar problem to yours in the past and I'm on Linux platforms, so I don't think it's related to Windows. Jukka gave good advices, but I wouldn't give up trying using TinyOWS yet. Here's some more advices. First, I'd recommend that you create a small OpenLayers demo map with less tools possible only to test your layer. Then, choose EPSG:32740 as your demo projection. Worry about reprojection later. Double-check each configuration elements : use a full url : http://localhost/cgi-bin/tinyows schema_dir="C:\ms4w\apps\tinyows\schema\"> use a word you would use for all your layers. The tinyows demo config proposes "tows". Make sure it's also used in your OpenLayers.Protocol.WFS configuration ns_uri="http://localhost/" name="pipeline_segment" title="pipeline_segment" table= "pipeline_segment" srid="32740" schema="water"/> wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:31467"), // use 32740 instead protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", // ----> try with 1.0.0 too srsName: "EPSG:32740", url: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", // Use the exact same url host has you have setup as your layer ns_uri featureNS : "tows", // the featureNS has to be equal to the 'ns_uri' you defined in your config, so "http://localhost/" featureType: "pipeline_segment", geometryName: "geometry", schema: "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment" // I usually don't define the schema property at all assuming that the config 'schema_dir' is properly set (you should make sure its value is ok) }) }); For comparison, here's a tows config and OL layer definition that worked for me. ### TinyOWS config ### The apache config used to bind TinyOWS to this config using a different url FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi -initial-env TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" ### The OpenLayers.Layer object using the OpenLayers.Protocol.WFS var layer = new OpenLayers.Layer.Vector("Sites", { strategies: [new OpenLayers.Strategy.BBOX()], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.WFS({ version: "1.0.0", srsName: "EPSG:4326", url: 'http://labs.mapgears.com/weather-sites-tinyows-1.0.0.fcgi', featureNS : 'http://labs.mapgears.com/', featureType: "sites_view", outputFormat: "application/json", readFormat: new OpenLayers.Format.GeoJSON(), geometryName: "pos" }) }); Finally, here's a trick I use when debuggin POST requests. I use the wget command to quickly launch requests and see their result using the --post-data argument to send the GML GetFeature request. wget "http://localhost/cgi-bin/tinyows" --post-data='' --header="Content-Type: application/xml; charset=UTF-8" -O /tmp/ttt.txt HTH, Alexandre On 12-11-09 05:04 AM, Rahkonen Jukka wrote: > Hi, > > Forum is right but obviously there are not many people doing WFS-T with OpenLayers against TinyOWS installed on Windows. If you are totally jammed I would recommend you to leave TinyOWS aside for a while and try to make your OpenLayers application to work with Geoserver WFS-T. I believe you will have success with it. > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: aho [mailto:forum.email.a at googlemail.com] >> L?hetetty: 9. marraskuuta 2012 11:27 >> Vastaanottaja: sdikiy at volz.ua >> Kopio: Rahkonen Jukka; mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] tinyows >> >> Hi again, >> >> I am still searching and not finding something. I setup everything again with >> the WFS-T tutorial. Now I am getting the following error message: >> >> [Thu Nov 08 16:32:21 2012] [ERROR] local list type: A type, derived by list or >> union, must have the simple ur-type definition as base type, not >> '{http://www.opengis.net/gml}doubleOrNullList'. >> >> Am I right with this forum? Because actually nobody replies. >> >> >> >> >> Am 11/6/2012 1:30 PM, schrieb aho: >>> Hey, >>> >>> I still havn?t found the problem with the tinyows - but at the moment >>> there is no error message when i am loading the wfs. Also fiddler >>> doesn?t list the tinyows.exe anymore. But my proxy is correct - I can >>> load it via uDig and ArcMap. QGIS has a problem, but there is not a >>> single error in the tinyows log file - just events and sqls are >>> listed, that looks quite good. With Open layers there is nothing >>> logged - it seems like the request is not send. >>> >>> Is there any limitation for the version? I downloaded the latest >>> (2.12) one, but on the tinyows page is version 2.09 listed?! >>> >>> Kind regards >>> >>> Am 11/2/2012 3:29 PM, schrieb Serge Dikiy: >>>> Hi, >>>> >>>> >> http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en& >>>> ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis- >> lab.info%2Fforum%2Fviewto >>>> pic.php%3Ff%3D41%26t%3D10329 >>>> >>>> >>>> BR >>>> >>>> On Fri, Nov 2, 2012 at 4:15 PM, aho >>>> wrote: >>>>> Hi Jukka, >>>>> >>>>> ok, I solved the problem with the requests. The following returns >>>>> from >>>>> tinyOWS: >>>>> >>>>> >>>> xmlns='http://www.opengis.net/ows' >>>>> xmlns:ows='http://www.opengis.net/ows' >>>>> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >>>>> xsi:schemaLocation='http://www.opengis.net/ows >>>>> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' >>>>> version='1.1.0' language='en'> >>>>> >>>> locator='request'> >>>>> XML request isn't valid >>>>> >>>>> >>>>> >>>>> Here is the errorlog: >>>>> >>>>> Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == [Fri Nov 02 >>>>> 15:11:46 2012] [QUERY] >>>> xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >> version="1.0.0" >>>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water >>>>> http://127.0.0.1:8000/redir/cgi- >> bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0. >> 0&typename=water:armature" >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema- >> instance">>>>> typeName="feature:armature" xmlns:feature="water">>>>> >> xmlns:ogc="http://www.opengis.net/ogc">>> g >>>>> eometry>>>> >>>>> xmlns:gml="http://www.opengis.net/gml" >>>>> srsName="EPSG:32740">>>>> decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634 >>>>> >> 2866.3885602952,1910.9257068634>>>> X> >>>>> >>>>> [Fri Nov 02 15:11:46 2012] [ERROR] Element >>>>> '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a >>>>> schema at location >>>>> 'localhost/cgi- >> bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0. >> 0'. >>>>> Skipping the import. >>>>> >>>>> [Fri Nov 02 15:11:46 2012] [ERROR] Element >>>>> '{http://www.opengis.net/wfs}GetFeature': No matching global >>>>> declaration available for the validation root. >>>>> >>>>> [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid [Fri Nov >>>>> 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == [Fri Nov 02 15:11:46 >>>>> 2012] [EVENT] == TINYOWS SHUTDOWN == >>>>> >>>>> Has it something to do with the schema? I found a post with >>>>> something similar >>>>> (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in- >> OpenLayer >>>>> s-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html) >>>>> >>>>> and replaced all my old tinyows files and copied the ones from the >>>>> ms4w homepage. >>>>> >>>>> Do you have some more ideas? >>>>> >>>>> Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka: >>>>> >>>>> Hi, >>>>> >>>>> Yes, it seems to be OpenLayers question then. However, do still >>>>> capture the requests because without them you cannot understand >> what >>>>> happens really. My guess is that something in wrong in how >>>>> EPSG:31467 and EPSG:32740 are used and OpenLayers is requesting data >>>>> from a place where there are no data. >>>>> >>>>> -Jukka- >>>>> >>>>> aho wrote: >>>>> >>>>> >>>>> Hi Jukka, >>>>> >>>>> thanks a lot for your answer and the good tips! I tried all of the >>>>> links >>>>> >>>>> and they are working. Also I checked it in QGIS and there I can load >>>>> it too. >>>>> >>>>> So I guess it will be better to write again to the openlayers >>>>> mailinglist?! >>>>> >>>>> Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka: >>>>> >>>>> Hi, >>>>> >>>>> You must capture the traffic between OpenLayers and TinyOWS. I am >>>>> using myself Fiddler2 proxy but I suppose that Firebug can show you >>>>> what OpenLayers is sending and high enough TinyOWS logging level >>>>> will also gather requests into tinyows log. The software is not >>>>> important but you just have to get the requests so you can resend >>>>> them with a browser or some other tool that yuo can control and see >>>>> what happens. You can also include the requests in your further >>>>> mails. Then the question will be "OpenLayers is sending this and >>>>> TinyOWS is sending back that, what's wrong?" and it will be much >>>>> easier to answer. >>>>> >>>>> As always with WFS, start with these requests with a browser before >>>>> doing anything with OpenLayers: >>>>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request= >>>>> GetCapabilities&version=1.1.0 >>>>> >>>>> >>>>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request= >>>>> >> DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment >>>>> >>>>> http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request= >>>>> >> GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatu >> res >>>>> =10 >>>>> >>>>> >>>>> If all those requests work you know that TinyOWS works with those >>>>> basic requests and if OpenLayers application does not get data the >>>>> reason in probably in the application code. >>>>> >>>>> >>>>> -Jukka Rahkonen- >>>>> >>>>> aho wrote: >>>>> >>>>> hello! >>>>> I have a problem with the configuration of tinyows. I have the >>>>> following >>>>> >>>>> settings in my xml file: >>>>> >>>>> >>>> >>>>> schema_dir="C:\ms4w\apps\tinyows\schema\"> >>>>> >>>> dbname="watergis" port="5432"/> >>>>> >>>> title="TinyOWS Server - WFS-T Frida Service" /> >>>>> >>>> site="http://www.tinyows.org/" >>>>> email="tinyows-users at lists.maptools.org" /> >>>> retrievable="1" >>>>> writable="1" >>>>> ns_prefix="water" >>>>> ns_uri="http://localhost/" >>>>> name="pipeline_segment" >>>>> title="pipeline_segment" >>>>> table= "pipeline_segment" >>>>> srid="32740" >>>>> schema="water"/> >>>>> >>>>> >>>>> >if I enter tinyows --check I get the following back: >>>>> >>>>> C:\ms4w\Apache\cgi-bin>tinyows --check >>>>> >>>>> TinyOWS version: 1.0.0rc3 >>>>> FCGI support: Yes >>>>> Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML) >>>>> PostGIS Version: 2.0.0 >>>>> PostGIS dsn: host=localhost user=postgres password=postgres >>>>> dbname=watergi >>>>> s port=5432 >>>>> Output Encoding: UTF-8 >>>>> Database Encoding: UTF8 >>>>> Schema dir: C:\ms4w\apps\tinyows\schema\ >>>>> Display bbox: Yes >>>>> Estimated extent: No >>>>> Check schema: Yes >>>>> Check valid geoms: Yes >>>>> Available layers: >>>>> - water.pipeline_segment (32740) -> water.pipeline_segment [RW] >>>>> >>>>> >>>>> which looks acutally quite good. But when i am trying to include >>>>> that >>>>> >>>>> into my openlayer map - I always get 0 features back! Here the code >>>>> for >>>>> openlayers: >>>>> >>>>> wfs = new OpenLayers.Layer.Vector("Editable Features", { >>>>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >>>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>>> protocol: new OpenLayers.Protocol.WFS({ >>>>> version: "1.1.0", >>>>> srsName: "EPSG:32740", >>>>> url: >>>>> "http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe", >>>>> featureNS : "tows", >>>>> featureType: "pipeline_segment", >>>>> geometryName: "geometry", >>>>> schema: >>>>> "http://127.0.0.1:8000/redir/cgi- >> bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0 >> &typename=water:pipeline_segment" >>>>> }) >>>>> }); >>>>> >>>>> Someone an idea? >>>>> _______________________________________________ >>>>> 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 -- Alexandre Dub? Mapgears www.mapgears.com From jmckenna at gatewaygeomatics.com Fri Nov 9 06:19:27 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 09 Nov 2012 10:19:27 -0400 Subject: [mapserver-users] tinyows In-Reply-To: <509D0A10.4020106@mapgears.com> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> <509D0A10.4020106@mapgears.com> Message-ID: <509D10EF.3030401@gatewaygeomatics.com> On 12-11-09 9:50 AM, Alexandre Dub? wrote: > Finally, here's a trick I use when debuggin POST requests. I use the > wget command to quickly launch requests and see their result using the > --post-data argument to send the GML GetFeature request. > > wget "http://localhost/cgi-bin/tinyows" > --post-data='' > --header="Content-Type: application/xml; charset=UTF-8" -O /tmp/ttt.txt > Cool trick Alexandre! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From fernando at globalgeo.com.br Fri Nov 9 09:05:49 2012 From: fernando at globalgeo.com.br (Fernando Norte) Date: Fri, 9 Nov 2012 15:05:49 -0200 Subject: [mapserver-users] SVG Symbol -v 6.0.3 Message-ID: Hi all, To use SVG Symbol I need the OUTPUT=SVG in my mapserver? I'm use the 6.0.3 version. And try to use the symbol in that way bellow, but doesn't show nothing: SYMBOL NAME "pont" TYPE svg IMAGE "symbols/pont.svg" END ... CLASS STYLE SYMBOL "pont_22" END END Thanks, *Fernando Norte* Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.kanegae at gmail.com Fri Nov 9 11:25:03 2012 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Fri, 9 Nov 2012 17:25:03 -0200 Subject: [mapserver-users] MapCache - how to avoid errors that stops the seeder Message-ID: hi there, I'm using latest stable MapServer and MapCache on CentOS 6.x but after 1 hour running the seeder, it dumped to: ***** msDrawMap(): Image handling error. Failed to draw layer named 'pol_my_layer'. msOGRFileNextShape(): OGR error. IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or >= 4 Is there any way to avoid the seeder stopping this execution? eg.: just log or output the message on terminal and then fill the current request with some specific file like /my/path/image_with_general_error_msg.png. thanks for any help Eduardo Patto Kanegae http://www.webmapit.com | @webmapit From akoel at freemail.hu Fri Nov 9 16:11:05 2012 From: akoel at freemail.hu (akoel) Date: Fri, 9 Nov 2012 16:11:05 -0800 (PST) Subject: [mapserver-users] PHP run-time substitute CGI parameter problem Message-ID: <1352506265557-5015290.post@n6.nabble.com> I have this part of a MAP file: /LAYER ... DATA ..... =%selected_nid% .... --- VALIDATION "selected_nid" "^[0-9]+$" END ... END/ I want to substitute the "selected_nid" variable in run-time under PHP script. (I can do it with Openlayers) The problem is that I could not find any Layer-function for this. Somebody has any idea what can I do? I thought that there was an alternative for this problem. I put the variable into the METADATA section like this: /LAYER ... DATA ..... =%selected_nid% .... --- METADATA "selected_nid*_validation_pattern*" "^[0-9]+$" END ... END/ And in the PHP script I wrote this: /... $selected_layer->setMetaData( "selected_nid", $selected_nid ); ... / But it did not substituted the variable. thanks in advance -- View this message in context: http://osgeo-org.1560.n6.nabble.com/PHP-run-time-substitute-CGI-parameter-problem-tp5015290.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Fri Nov 9 17:13:23 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 10 Nov 2012 01:13:23 +0000 Subject: [mapserver-users] PHP run-time substitute CGI parameter problem In-Reply-To: <1352506265557-5015290.post@n6.nabble.com> References: <1352506265557-5015290.post@n6.nabble.com> Message-ID: Substitution is only done via the CGI. If you're using MapScript just change the value directly. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of akoel [akoel at freemail.hu] Sent: Friday, November 09, 2012 6:11 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PHP run-time substitute CGI parameter problem I have this part of a MAP file: /LAYER ... DATA ..... =%selected_nid% .... --- VALIDATION "selected_nid" "^[0-9]+$" END ... END/ I want to substitute the "selected_nid" variable in run-time under PHP script. (I can do it with Openlayers) The problem is that I could not find any Layer-function for this. Somebody has any idea what can I do? I thought that there was an alternative for this problem. I put the variable into the METADATA section like this: /LAYER ... DATA ..... =%selected_nid% .... --- METADATA "selected_nid*_validation_pattern*" "^[0-9]+$" END ... END/ And in the PHP script I wrote this: /... $selected_layer->setMetaData( "selected_nid", $selected_nid ); ... / But it did not substituted the variable. thanks in advance -- View this message in context: http://osgeo-org.1560.n6.nabble.com/PHP-run-time-substitute-CGI-parameter-problem-tp5015290.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 forest21000 at yahoo.cn Sat Nov 10 04:07:11 2012 From: forest21000 at yahoo.cn (Forest) Date: Sat, 10 Nov 2012 20:07:11 +0800 (CST) Subject: [mapserver-users] mapserver GraphicEngine--GD In-Reply-To: Message-ID: <1352549231.47870.YahooMailClassic@web92102.mail.cnh.yahoo.com> Hello everyone, ????? I want to build the mapserver in windows.And I need to get the source code of GD,but the main site of GD is not present now.Do anyone has the source code and some examples of GD graphics?If you have,can you send it to me?my email is: forest21000 at yahoo.cn. ???? Wait for your email or answers!Thanks very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at knowhow-la.de Sat Nov 10 14:44:56 2012 From: info at knowhow-la.de (Helmut Seidel M.A.) Date: Sat, 10 Nov 2012 23:44:56 +0100 Subject: [mapserver-users] Large scale PDF output on Windows References: f902f9840804241935v3c61b1d6ma16272e2a7e3e1d4@mail.gmail.com Message-ID: <509ED8E8.3000806@knowhow-la.de> Hello everybody, dear Mr Anderson, on the web I found your post regarding pdf-output to scale: http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055586.html In your post you said you would supply the php-code. I'm currently working om a similar project, where I need a pdf-output to scale. Therefore I would be highly interested in your code. Would you be willing to share it. Kind regards Helmut From forest21000 at yahoo.cn Sun Nov 11 05:03:30 2012 From: forest21000 at yahoo.cn (Forest) Date: Sun, 11 Nov 2012 21:03:30 +0800 (CST) Subject: [mapserver-users] GD compile problem In-Reply-To: Message-ID: <1352639010.51177.YahooMailClassic@web92107.mail.cnh.yahoo.com> Hi everyone, I've downloaded the source code from the website.And I've generated the vs2008 project,but when I built the project in vs2008,I came across a problem,it showed below: 1>gd_filter.c 1>..\..\pierrejoye-gd-libgd-733361a31aab\src\gd_filter.c(71) : error C2440: ?=?: can not convert ?int (__stdcall *)(gdImagePtr,int,int)? into ?int (__cdecl *)(gdImagePtr,int,int)? ? I don't know?how to solve the problem! Have you come the problem before?And if you have,please tell me the solution,thanks very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From forum.email.a at googlemail.com Mon Nov 12 01:05:50 2012 From: forum.email.a at googlemail.com (aho) Date: Mon, 12 Nov 2012 10:05:50 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <509D0A10.4020106@mapgears.com> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> <509D0A10.4020106@mapgears.com> Message-ID: <50A0BBEE.8060709@googlemail.com> Hi Alexandre, thanks for the good hints! This is really great! I think its not my tinyows.xml or the Openlayers... but the error message tells something else somehow... :(... I changed it to the following: xml configuration of tinyows: and the OpenLayers code: map = new OpenLayers.Map('map', { projection: new OpenLayers.Projection("EPSG:31467"), units: "m", maxResolution: "auto", maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000), controls: [ new OpenLayers.Control.PanZoom() ] }); var osm = new OpenLayers.Layer.WMS( "OSM by Omniscale WMS", "http://osm.omniscale.net/proxy/service", {layers: 'osm', format: 'image/jpeg'}, {projection:"EPSG:31467", units: "m", maxResolution: "auto", maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000)} ); var saveStrategy = new OpenLayers.Strategy.Save(); saveStrategy.events.register("success", '', showSuccessMsg); saveStrategy.events.register("fail", '', showFailureMsg); var wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:31467"), protocol: new OpenLayers.Protocol.WFS({ version:"1.1.0", url: "http://127.0.0.1/cgi-bin/tinyows.exe", featureType: "frida", outputformat:"application/json", readFormat: new OpenLayers.Format.GeoJSON(), featureNS: "http://127.0.0.1/", geometryName: "the_geom" }) }); map.addLayers([osm, wfs]); map.zoomToMaxExtent(); The layer is actually in 31467 - I want to get it working for the frida parks example. I reduced everything else in my javascript file. But I think I have a problem with my configuration. I am setting the following in OpenLayers: OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; and I saw that you were actually refering to a fcgi file in your config.xml. I thought I could define there the path to the tinyows.exe like this: http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? Could you send me the content of your weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t follow your instructions for setting the environment variable - I made that via the control Panel :) - and the ScriptAlias. I have to install the wget first on windows, but thanks for that hint - I will try it after the restart now! Thanks in advance, Anna Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: > ### The apache config used to bind TinyOWS to this config using a > different url > FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi > -initial-env > TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml > ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" > "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" From adube at mapgears.com Mon Nov 12 05:23:44 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Mon, 12 Nov 2012 08:23:44 -0500 Subject: [mapserver-users] SVG Symbol -v 6.0.3 In-Reply-To: References: Message-ID: <50A0F860.4000104@mapgears.com> The SVG symbols support is a new feature available in MapServer 6.2. You also need it to be compiled with libsvg-cairo enabled, see http://mapserver.org/development/rfc/ms-rfc-73.html#backwards-compatibility-issues Regards, Alexandre On 12-11-09 12:05 PM, Fernando Norte wrote: > Hi all, > > To use SVG Symbol I need the OUTPUT=SVG in my mapserver? I'm use the > 6.0.3 version. > > And try to use the symbol in that way bellow, but doesn't show nothing: > > SYMBOL > NAME "pont" > TYPE svg > IMAGE "symbols/pont.svg" > END > ... > CLASS > STYLE > SYMBOL "pont_22" > END > END > > Thanks, > > *Fernando Norte* > > Desenvolvedor SIGWeb > > tel.(31) 2533.9900 > > cel.(31) 9119.8814 > > skype: fernandoglobalgeo > > > > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno > > Nova Lima/MG - CEP: 34.000-000 > > www.globalgeo.com.br > > "O presente documento pode conter material confidencial ou seu sigilo > ? protegido por lei. > Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) > seu(s) destinat?rio(s) > n?o devendo em nenhuma hip?tese ser repassado a terceiros". > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Mon Nov 12 05:30:02 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Mon, 12 Nov 2012 08:30:02 -0500 Subject: [mapserver-users] SVG Symbol -v 6.0.3 In-Reply-To: <50A0F860.4000104@mapgears.com> References: <50A0F860.4000104@mapgears.com> Message-ID: <50A0F9DA.10305@mapgears.com> One more detail : some svg may not work and there's currently no way of detecting them within MapServer. The issue is explained here: https://github.com/mapserver/mapserver/issues/4518 I suggest you try the mapfile showing the issue as explained in the ticket. It has a working svg file, so you could use it to test your MapServer installed. http://dl.mapgears.com/msbug/4518.tar.gz Regards, Alexandre On 12-11-12 08:23 AM, Alexandre Dub? wrote: > The SVG symbols support is a new feature available in MapServer 6.2. > You also need it to be compiled with libsvg-cairo enabled, see > http://mapserver.org/development/rfc/ms-rfc-73.html#backwards-compatibility-issues > > Regards, > > Alexandre > > > > On 12-11-09 12:05 PM, Fernando Norte wrote: >> Hi all, >> >> To use SVG Symbol I need the OUTPUT=SVG in my mapserver? I'm use the >> 6.0.3 version. >> >> And try to use the symbol in that way bellow, but doesn't show nothing: >> >> SYMBOL >> NAME "pont" >> TYPE svg >> IMAGE "symbols/pont.svg" >> END >> ... >> CLASS >> STYLE >> SYMBOL "pont_22" >> END >> END >> >> Thanks, >> >> *Fernando Norte* >> >> Desenvolvedor SIGWeb >> >> tel.(31) 2533.9900 >> >> cel.(31) 9119.8814 >> >> skype: fernandoglobalgeo >> >> >> >> Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno >> >> Nova Lima/MG - CEP: 34.000-000 >> >> www.globalgeo.com.br >> >> "O presente documento pode conter material confidencial ou seu sigilo >> ? protegido por lei. >> Quaisquer informa??es nele contida s?o destinadas exclusivamente >> ao(s) seu(s) destinat?rio(s) >> n?o devendo em nenhuma hip?tese ser repassado a terceiros". >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Mon Nov 12 05:42:08 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Mon, 12 Nov 2012 08:42:08 -0500 Subject: [mapserver-users] tinyows In-Reply-To: <50A0BBEE.8060709@googlemail.com> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> <509D0A10.4020106@mapgears.com> <50A0BBEE.8060709@googlemail.com> Message-ID: <50A0FCB0.7010209@mapgears.com> Hi Anna, While working locally, you don't need to set an OpenLayers.ProxyHost. Put comments // in front of it for now. tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file giving it the name you want. In Linux, you could use a symbolic link, like I did. Here's the apache config for it. It does 2 things : it enables FastCgi and set the TINYOWS_CONFIG_FILE env variable for this link to use a specific .xml config file. ### FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi -initial-env TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" ### Once you start using wget, the idea is to edit the xml GetFeature request sent and/or the config.xml file as you try it to quickly see what causes things to not work. Point to tinyows for now, you your proxy (yet), i.e. make your tinyows work first. Best regards, Alexandre On 12-11-12 04:05 AM, aho wrote: > Hi Alexandre, > > thanks for the good hints! This is really great! I think its not my > tinyows.xml or the Openlayers... but the error message tells something > else somehow... :(... I changed it to the following: > xml configuration of tinyows: > > schema_dir="C:\ms4w\apps\tinyows\schema\" > log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> > dbname="tinyows" port="5432"/> > title="TinyOWS Server - WFS-T Frida Service" /> > site="http://www.tinyows.org/" > email="tinyows-users at lists.maptools.org" /> > writable="1" > ns_prefix="tows" > ns_uri="http://127.0.0.1/" > name="frida" > title="Frida Parks" /> > > > and the OpenLayers code: > > map = new OpenLayers.Map('map', { > projection: new OpenLayers.Projection("EPSG:31467"), > units: "m", > maxResolution: "auto", > maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000), > controls: [ > new OpenLayers.Control.PanZoom() > ] > }); > var osm = new OpenLayers.Layer.WMS( > "OSM by Omniscale WMS", > "http://osm.omniscale.net/proxy/service", > {layers: 'osm', format: 'image/jpeg'}, > {projection:"EPSG:31467", units: "m", maxResolution: "auto", > maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000)} > ); > var saveStrategy = new OpenLayers.Strategy.Save(); > saveStrategy.events.register("success", '', showSuccessMsg); > saveStrategy.events.register("fail", '', showFailureMsg); > var wfs = new OpenLayers.Layer.Vector("Editable Features", { > strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > projection: new OpenLayers.Projection("EPSG:31467"), > protocol: new OpenLayers.Protocol.WFS({ > version:"1.1.0", > url: "http://127.0.0.1/cgi-bin/tinyows.exe", > featureType: "frida", > outputformat:"application/json", > readFormat: new OpenLayers.Format.GeoJSON(), > featureNS: "http://127.0.0.1/", > geometryName: "the_geom" > }) > }); > map.addLayers([osm, wfs]); > > map.zoomToMaxExtent(); > > The layer is actually in 31467 - I want to get it working for the > frida parks example. I reduced everything else in my javascript file. > > But I think I have a problem with my configuration. I am setting the > following in OpenLayers: OpenLayers.ProxyHost = > "/cgi-bin/proxy.cgi?url="; and I saw that you were actually refering > to a fcgi file in your config.xml. I thought I could define there the > path to the tinyows.exe like this: > http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? > Could you send me the content of your weather-sites-tinyows-1.0.0.fcgi > file? I have to say that I can?t follow your instructions for setting > the environment variable - I made that via the control Panel :) - and > the ScriptAlias. > > I have to install the wget first on windows, but thanks for that hint > - I will try it after the restart now! > > Thanks in advance, > Anna > > > > > > Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: >> ### The apache config used to bind TinyOWS to this config using a >> different url >> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >> -initial-env >> TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml >> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" > -- Alexandre Dub? Mapgears www.mapgears.com From forum.email.a at googlemail.com Mon Nov 12 07:31:31 2012 From: forum.email.a at googlemail.com (aho) Date: Mon, 12 Nov 2012 16:31:31 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <50A0FCB0.7010209@mapgears.com> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> <509D0A10.4020106@mapgears.com> <50A0BBEE.8060709@googlemail.com> <50A0FCB0.7010209@mapgears.com> Message-ID: <50A11653.8090805@googlemail.com> Hi Alexandre, I already reinstalled pyhton and made the configuration of the apache server again. At least one thing I can exclude - specially because sooner or later I have to include it in another project which needs to run on a certain port. Anyhow... I also installed the wget and you are right, it helps a lot. I took the GetFeature xml from chrome and constructed the following line: wget "http://localhost/cgi-bin/tinyows.exe" --post-data=" the_geom3413084,5782000 3457916,5806000< /gml:coordinates> " --header="Content-Type: application/xml; charset=UTF-8" -O C:/test.txt wget returned: SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\OSGeo4W\GnuWin32/etc/wgetrc --2012-11-12 16:17:16-- http://localhost/cgi-bin/tinyows.exe Resolving localhost... 127.0.0.1, ::1 Connecting to localhost|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/xml] Saving to: `C:/test.txt' [ <=> ] 503 --.-K/s in 0s 2012-11-12 16:17:16 (11.4 MB/s) - `C:/test.txt' saved [503] --2012-11-12 16:17:16-- http://%3E3413084,5782000%203457916,5806000%3C/gml:coor dinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%3C/wfs:Query%3E%3C/wfs: GetFeature%3E Resolving >3413084,5782000 3457916,5806000<... failed: No data record of request ed type. wget: unable to resolve host address `>3413084,5782000 3457916,5806000<' FINISHED --2012-11-12 16:17:17-- Downloaded: 1 files, 503 in 0s (11.4 MB/s) I have really no idea why it is using the coordinates of the bounding box for the host?! I thought it would be a problem of wget and the quotation marks... but changing that to ' did not solve the problem. In my test.txt is still the same response: invalid xml. Nothing else unfortunately. I think its a problem in my openlayers configuration - I check the spatial reference again; maybe I can also set the bbox or something. I will see... If you or anyone else has an idea I will be very happy! Anna Am 11/12/2012 2:42 PM, schrieb Alexandre Dub?: > Hi Anna, > > While working locally, you don't need to set an > OpenLayers.ProxyHost. Put comments // in front of it for now. > > tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file > giving it the name you want. In Linux, you could use a symbolic link, > like I did. Here's the apache config for it. It does 2 things : it > enables FastCgi and set the TINYOWS_CONFIG_FILE env variable for this > link to use a specific .xml config file. > > ### > FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi > -initial-env > TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml > ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" > "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" > ### > > Once you start using wget, the idea is to edit the xml GetFeature > request sent and/or the config.xml file as you try it to quickly see > what causes things to not work. Point to tinyows for now, you your > proxy (yet), i.e. make your tinyows work first. > > Best regards, > > Alexandre > > > On 12-11-12 04:05 AM, aho wrote: >> Hi Alexandre, >> >> thanks for the good hints! This is really great! I think its not my >> tinyows.xml or the Openlayers... but the error message tells >> something else somehow... :(... I changed it to the following: >> xml configuration of tinyows: >> >> > schema_dir="C:\ms4w\apps\tinyows\schema\" >> log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> >> > dbname="tinyows" port="5432"/> >> > title="TinyOWS Server - WFS-T Frida Service" /> >> > site="http://www.tinyows.org/" >> email="tinyows-users at lists.maptools.org" /> >> > writable="1" >> ns_prefix="tows" >> ns_uri="http://127.0.0.1/" >> name="frida" >> title="Frida Parks" /> >> >> >> and the OpenLayers code: >> >> map = new OpenLayers.Map('map', { >> projection: new OpenLayers.Projection("EPSG:31467"), >> units: "m", >> maxResolution: "auto", >> maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000), >> controls: [ >> new OpenLayers.Control.PanZoom() >> ] >> }); >> var osm = new OpenLayers.Layer.WMS( >> "OSM by Omniscale WMS", >> "http://osm.omniscale.net/proxy/service", >> {layers: 'osm', format: 'image/jpeg'}, >> {projection:"EPSG:31467", units: "m", maxResolution: "auto", >> maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000)} >> ); >> var saveStrategy = new OpenLayers.Strategy.Save(); >> saveStrategy.events.register("success", '', showSuccessMsg); >> saveStrategy.events.register("fail", '', showFailureMsg); >> var wfs = new OpenLayers.Layer.Vector("Editable Features", { >> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >> projection: new OpenLayers.Projection("EPSG:31467"), >> protocol: new OpenLayers.Protocol.WFS({ >> version:"1.1.0", >> url: "http://127.0.0.1/cgi-bin/tinyows.exe", >> featureType: "frida", >> outputformat:"application/json", >> readFormat: new OpenLayers.Format.GeoJSON(), >> featureNS: "http://127.0.0.1/", >> geometryName: "the_geom" >> }) >> }); >> map.addLayers([osm, wfs]); >> >> map.zoomToMaxExtent(); >> >> The layer is actually in 31467 - I want to get it working for the >> frida parks example. I reduced everything else in my javascript file. >> >> But I think I have a problem with my configuration. I am setting the >> following in OpenLayers: OpenLayers.ProxyHost = >> "/cgi-bin/proxy.cgi?url="; and I saw that you were actually refering >> to a fcgi file in your config.xml. I thought I could define there the >> path to the tinyows.exe like this: >> http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? >> Could you send me the content of your >> weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t >> follow your instructions for setting the environment variable - I >> made that via the control Panel :) - and the ScriptAlias. >> >> I have to install the wget first on windows, but thanks for that hint >> - I will try it after the restart now! >> >> Thanks in advance, >> Anna >> >> >> >> >> >> Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: >>> ### The apache config used to bind TinyOWS to this config using a >>> different url >>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>> -initial-env >>> TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml >>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >> > > From eduardo.kanegae at gmail.com Mon Nov 12 07:41:04 2012 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Mon, 12 Nov 2012 13:41:04 -0200 Subject: [mapserver-users] MapCache - how to avoid errors that stops the seeder In-Reply-To: References: Message-ID: Solved with: application/vnd.ogc.se_blank Eduardo Patto Kanegae http://www.webmapit.com | @webmapit 2012/11/9 Eduardo Kanegae : > hi there, > > I'm using latest stable MapServer and MapCache on CentOS 6.x but after > 1 hour running the seeder, it dumped to: > ***** > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'pol_my_layer'. > msOGRFileNextShape(): OGR error. IllegalArgumentException: Invalid > number of points in LinearRing found 3 - must be 0 or >= 4 > > > > Is there any way to avoid the seeder stopping this execution? eg.: > just log or output the message on terminal and then fill the current > request with some specific file like > /my/path/image_with_general_error_msg.png. > > thanks for any help > > > Eduardo Patto Kanegae > http://www.webmapit.com | @webmapit From adube at mapgears.com Mon Nov 12 08:05:58 2012 From: adube at mapgears.com (=?UTF-8?B?QWxleGFuZHJlIER1YsOp?=) Date: Mon, 12 Nov 2012 11:05:58 -0500 Subject: [mapserver-users] tinyows In-Reply-To: <50A11653.8090805@googlemail.com> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> <509D0A10.4020106@mapgears.com> <50A0BBEE.8060709@googlemail.com> <50A0FCB0.7010209@mapgears.com> <50A11653.8090805@googlemail.com> Message-ID: <50A11E66.3040901@mapgears.com> Anna, What does your C:\ms4w\Apache\logs\tinows.log file contain ? Also yeah you should use --post-data=' node. Also, try replacing xmlns:feature="http://127.0.0.1/" by xmlns:tows="http://127.0.0.1/". HTH, Alexandre On 12-11-12 10:31 AM, aho wrote: > Hi Alexandre, > > I already reinstalled pyhton and made the configuration of the apache > server again. At least one thing I can exclude - specially because > sooner or later I have to include it in another project which needs to > run on a certain port. Anyhow... I also installed the wget and you are > right, it helps a lot. > I took the GetFeature xml from chrome and constructed the following line: > > wget "http://localhost/cgi-bin/tinyows.exe" --post-data=" eature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > version="1.0.0" outp > utFormat="application/json" > xsi:schemaLocation="http://schemas.opengis.net/wfs/1 > .0.0/WFS-transaction.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:feature="http://127.0.0.1/"> r > xmlns:ogc="http://www.opengis.net/ogc">the_geom gc:PropertyName> srsName="EPSG:31 > 467">3413084,5782000 > 3457916,5806000< > /gml:coordinates> > > " --header="Content-Type: application/xml; charset=UTF-8" -O C:/test.txt > > wget returned: > > SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc > syswgetrc = C:\OSGeo4W\GnuWin32/etc/wgetrc > --2012-11-12 16:17:16-- http://localhost/cgi-bin/tinyows.exe > Resolving localhost... 127.0.0.1, ::1 > Connecting to localhost|127.0.0.1|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: unspecified [application/xml] > Saving to: `C:/test.txt' > [ <=> ] 503 --.-K/s in 0s > > 2012-11-12 16:17:16 (11.4 MB/s) - `C:/test.txt' saved [503] > --2012-11-12 16:17:16-- > http://%3E3413084,5782000%203457916,5806000%3C/gml:coor > dinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%3C/wfs:Query%3E%3C/wfs: > > GetFeature%3E > Resolving >3413084,5782000 3457916,5806000<... failed: No data record > of request > ed type. > wget: unable to resolve host address `>3413084,5782000 3457916,5806000<' > FINISHED --2012-11-12 16:17:17-- > Downloaded: 1 files, 503 in 0s (11.4 MB/s) > > > I have really no idea why it is using the coordinates of the bounding > box for the host?! I thought it would be a problem of wget and the > quotation marks... but changing that to ' did not solve the problem. > In my test.txt is still the same response: invalid xml. Nothing else > unfortunately. I think its a problem in my openlayers configuration - > I check the spatial reference again; maybe I can also set the bbox or > something. I will see... > > If you or anyone else has an idea I will be very happy! > Anna > > Am 11/12/2012 2:42 PM, schrieb Alexandre Dub?: >> Hi Anna, >> >> While working locally, you don't need to set an >> OpenLayers.ProxyHost. Put comments // in front of it for now. >> >> tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file >> giving it the name you want. In Linux, you could use a symbolic >> link, like I did. Here's the apache config for it. It does 2 things >> : it enables FastCgi and set the TINYOWS_CONFIG_FILE env variable for >> this link to use a specific .xml config file. >> >> ### >> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >> -initial-env >> TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml >> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >> ### >> >> Once you start using wget, the idea is to edit the xml GetFeature >> request sent and/or the config.xml file as you try it to quickly see >> what causes things to not work. Point to tinyows for now, you your >> proxy (yet), i.e. make your tinyows work first. >> >> Best regards, >> >> Alexandre >> >> >> On 12-11-12 04:05 AM, aho wrote: >>> Hi Alexandre, >>> >>> thanks for the good hints! This is really great! I think its not my >>> tinyows.xml or the Openlayers... but the error message tells >>> something else somehow... :(... I changed it to the following: >>> xml configuration of tinyows: >>> >>> >> schema_dir="C:\ms4w\apps\tinyows\schema\" >>> log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> >>> >> dbname="tinyows" port="5432"/> >>> >> title="TinyOWS Server - WFS-T Frida Service" /> >>> >> site="http://www.tinyows.org/" >>> email="tinyows-users at lists.maptools.org" /> >>> >> writable="1" >>> ns_prefix="tows" >>> ns_uri="http://127.0.0.1/" >>> name="frida" >>> title="Frida Parks" /> >>> >>> >>> and the OpenLayers code: >>> >>> map = new OpenLayers.Map('map', { >>> projection: new OpenLayers.Projection("EPSG:31467"), >>> units: "m", >>> maxResolution: "auto", >>> maxExtent: new >>> OpenLayers.Bounds(3427000,5788000,3444000,5800000), >>> controls: [ >>> new OpenLayers.Control.PanZoom() >>> ] >>> }); >>> var osm = new OpenLayers.Layer.WMS( >>> "OSM by Omniscale WMS", >>> "http://osm.omniscale.net/proxy/service", >>> {layers: 'osm', format: 'image/jpeg'}, >>> {projection:"EPSG:31467", units: "m", maxResolution: "auto", >>> maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000)} >>> ); >>> var saveStrategy = new OpenLayers.Strategy.Save(); >>> saveStrategy.events.register("success", '', showSuccessMsg); >>> saveStrategy.events.register("fail", '', showFailureMsg); >>> var wfs = new OpenLayers.Layer.Vector("Editable Features", { >>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >>> projection: new OpenLayers.Projection("EPSG:31467"), >>> protocol: new OpenLayers.Protocol.WFS({ >>> version:"1.1.0", >>> url: "http://127.0.0.1/cgi-bin/tinyows.exe", >>> featureType: "frida", >>> outputformat:"application/json", >>> readFormat: new OpenLayers.Format.GeoJSON(), >>> featureNS: "http://127.0.0.1/", >>> geometryName: "the_geom" >>> }) >>> }); >>> map.addLayers([osm, wfs]); >>> >>> map.zoomToMaxExtent(); >>> >>> The layer is actually in 31467 - I want to get it working for the >>> frida parks example. I reduced everything else in my javascript file. >>> >>> But I think I have a problem with my configuration. I am setting the >>> following in OpenLayers: OpenLayers.ProxyHost = >>> "/cgi-bin/proxy.cgi?url="; and I saw that you were actually refering >>> to a fcgi file in your config.xml. I thought I could define there >>> the path to the tinyows.exe like this: >>> http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? >>> Could you send me the content of your >>> weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t >>> follow your instructions for setting the environment variable - I >>> made that via the control Panel :) - and the ScriptAlias. >>> >>> I have to install the wget first on windows, but thanks for that >>> hint - I will try it after the restart now! >>> >>> Thanks in advance, >>> Anna >>> >>> >>> >>> >>> >>> Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: >>>> ### The apache config used to bind TinyOWS to this config using a >>>> different url >>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>>> -initial-env >>>> TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml >>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>> >> >> > -- Alexandre Dub? Mapgears www.mapgears.com From ian.walberg at airborne.aero Mon Nov 12 10:11:38 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 12 Nov 2012 13:11:38 -0500 Subject: [mapserver-users] Displaying multiple labels with the same lat/long Message-ID: Folks, We have some data we need to display which has a number of companies in the same city so the same lat/long. So in these cases only one of the labels is displayed. Can this be done using the cluster functionality and where do we find an easy example? Thanks Ian From traviskirstine at gmail.com Mon Nov 12 12:09:58 2012 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 12 Nov 2012 15:09:58 -0500 Subject: [mapserver-users] mapcache - rendering higher level tiles from lower level tilesets Message-ID: I have a fully seeded cache of tiles to level 19 and no longer can access the original WMS source. Is it possible to generate a tileset using a memcache for layer above level 19 using the seeded cache as source? Something like this /home/caches localhost 11211 disk gmaps mixed 1 1 0 memcache gmaps mixed 1 1 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From forum.email.a at googlemail.com Tue Nov 13 01:11:40 2012 From: forum.email.a at googlemail.com (aho) Date: Tue, 13 Nov 2012 10:11:40 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <50A11E66.3040901@mapgears.com> References: <84446DEF76453C439E9E97E438E13A637A8CD3@suutari.haapa.mmm.fi> <509D0A10.4020106@mapgears.com> <50A0BBEE.8060709@googlemail.com> <50A0FCB0.7010209@mapgears.com> <50A11653.8090805@googlemail.com> <50A11E66.3040901@mapgears.com> Message-ID: <50A20ECC.4080203@googlemail.com> Hi Alexandre, ok, I changed to ' xml isn't valid This is always the same actually. This was the result and the adjusted wget command: C:\Users\Anna>wget "http://localhost/cgi-bin/tinyows.exe --post-data='' --header="Content-Type: application/xml; charset=UTF-8" -O C:\test.txt SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\OSGeo4W\GnuWin32/etc/wgetrc --2012-11-13 10:07:35-- http://localhost/cgi-bin/tinyows.exe%20--post-data='%3C wfs:GetFeature%20xmlns:wfs=http://www.opengis.net/wfs%20service=WFS%20version=1. 1.0%20xsi:schemaLocation=http://www.opengis.net/wfs Resolving localhost... 127.0.0.1, ::1 Connecting to localhost|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-11-13 10:07:35 ERROR 404: Not Found. --2012-11-13 10:07:35-- http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%20xmlns:xs i=http://www.w3.org/2001/XMLSchema-instance%3E%3Cwfs:Query%20typeName=feature:fr ida%20srsName=EPSG:31467%20xmlns:feature=http://127.0.0.1/%3E%3C/wfs:Query%3E%3C /wfs:GetFeature%3E'%20--header=Content-Type: Resolving schemas.opengis.net... 66.244.86.52 Connecting to schemas.opengis.net|66.244.86.52|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-11-13 10:07:35 ERROR 404: Not Found. --2012-11-13 10:07:35-- http://application/xml; Resolving application... failed: No data record of requested type. wget: unable to resolve host address `application' --2012-11-13 10:07:38-- ftp://charset=utf-8%20-o%20c/%5Ctest.txt => `%5Ctest.txt' Resolving charset=utf-8 -o c... failed: No data record of requested type. wget: unable to resolve host address `charset=utf-8 -o c' Something is wrong with the host - maybe there is something missing in the tinyows configuration. Because now wget takes the application as the address instead of the coordinates of the bounding box!? I took the same ns_prefix: feature because its also defined like that in my xml -- I changed it, because i read that recommendation somewhere - made no difference. Am 11/12/2012 5:05 PM, schrieb Alexandre Dub?: > Anna, > > What does your C:\ms4w\Apache\logs\tinows.log file contain ? > > Also yeah you should use --post-data=' --post-data=" could remove the node. Also, try replacing > xmlns:feature="http://127.0.0.1/" by xmlns:tows="http://127.0.0.1/". > > HTH, > > Alexandre > > > On 12-11-12 10:31 AM, aho wrote: >> Hi Alexandre, >> >> I already reinstalled pyhton and made the configuration of the apache >> server again. At least one thing I can exclude - specially because >> sooner or later I have to include it in another project which needs >> to run on a certain port. Anyhow... I also installed the wget and you >> are right, it helps a lot. >> I took the GetFeature xml from chrome and constructed the following >> line: >> >> wget "http://localhost/cgi-bin/tinyows.exe" --post-data="> eature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >> version="1.0.0" outp >> utFormat="application/json" >> xsi:schemaLocation="http://schemas.opengis.net/wfs/1 >> .0.0/WFS-transaction.xsd" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> > xmlns:feature="http://127.0.0.1/">> r >> xmlns:ogc="http://www.opengis.net/ogc">the_geom> gc:PropertyName>> srsName="EPSG:31 >> 467">3413084,5782000 >> 3457916,5806000< >> /gml:coordinates> >> >> " --header="Content-Type: application/xml; charset=UTF-8" -O C:/test.txt >> >> wget returned: >> >> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc >> syswgetrc = C:\OSGeo4W\GnuWin32/etc/wgetrc >> --2012-11-12 16:17:16-- http://localhost/cgi-bin/tinyows.exe >> Resolving localhost... 127.0.0.1, ::1 >> Connecting to localhost|127.0.0.1|:80... connected. >> HTTP request sent, awaiting response... 200 OK >> Length: unspecified [application/xml] >> Saving to: `C:/test.txt' >> [ <=> ] 503 --.-K/s in 0s >> >> 2012-11-12 16:17:16 (11.4 MB/s) - `C:/test.txt' saved [503] >> --2012-11-12 16:17:16-- >> http://%3E3413084,5782000%203457916,5806000%3C/gml:coor >> dinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%3C/wfs:Query%3E%3C/wfs: >> >> GetFeature%3E >> Resolving >3413084,5782000 3457916,5806000<... failed: No data record >> of request >> ed type. >> wget: unable to resolve host address `>3413084,5782000 3457916,5806000<' >> FINISHED --2012-11-12 16:17:17-- >> Downloaded: 1 files, 503 in 0s (11.4 MB/s) >> >> >> I have really no idea why it is using the coordinates of the bounding >> box for the host?! I thought it would be a problem of wget and the >> quotation marks... but changing that to ' did not solve the problem. >> In my test.txt is still the same response: invalid xml. Nothing else >> unfortunately. I think its a problem in my openlayers configuration - >> I check the spatial reference again; maybe I can also set the bbox or >> something. I will see... >> >> If you or anyone else has an idea I will be very happy! >> Anna >> >> Am 11/12/2012 2:42 PM, schrieb Alexandre Dub?: >>> Hi Anna, >>> >>> While working locally, you don't need to set an >>> OpenLayers.ProxyHost. Put comments // in front of it for now. >>> >>> tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file >>> giving it the name you want. In Linux, you could use a symbolic >>> link, like I did. Here's the apache config for it. It does 2 things >>> : it enables FastCgi and set the TINYOWS_CONFIG_FILE env variable >>> for this link to use a specific .xml config file. >>> >>> ### >>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>> -initial-env >>> TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml >>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>> ### >>> >>> Once you start using wget, the idea is to edit the xml GetFeature >>> request sent and/or the config.xml file as you try it to quickly see >>> what causes things to not work. Point to tinyows for now, you your >>> proxy (yet), i.e. make your tinyows work first. >>> >>> Best regards, >>> >>> Alexandre >>> >>> >>> On 12-11-12 04:05 AM, aho wrote: >>>> Hi Alexandre, >>>> >>>> thanks for the good hints! This is really great! I think its not my >>>> tinyows.xml or the Openlayers... but the error message tells >>>> something else somehow... :(... I changed it to the following: >>>> xml configuration of tinyows: >>>> >>>> >>> schema_dir="C:\ms4w\apps\tinyows\schema\" >>>> log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> >>>> >>> dbname="tinyows" port="5432"/> >>>> >>> title="TinyOWS Server - WFS-T Frida Service" /> >>>> >>> site="http://www.tinyows.org/" >>>> email="tinyows-users at lists.maptools.org" /> >>>> >>> writable="1" >>>> ns_prefix="tows" >>>> ns_uri="http://127.0.0.1/" >>>> name="frida" >>>> title="Frida Parks" /> >>>> >>>> >>>> and the OpenLayers code: >>>> >>>> map = new OpenLayers.Map('map', { >>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>> units: "m", >>>> maxResolution: "auto", >>>> maxExtent: new >>>> OpenLayers.Bounds(3427000,5788000,3444000,5800000), >>>> controls: [ >>>> new OpenLayers.Control.PanZoom() >>>> ] >>>> }); >>>> var osm = new OpenLayers.Layer.WMS( >>>> "OSM by Omniscale WMS", >>>> "http://osm.omniscale.net/proxy/service", >>>> {layers: 'osm', format: 'image/jpeg'}, >>>> {projection:"EPSG:31467", units: "m", maxResolution: "auto", >>>> maxExtent: new OpenLayers.Bounds(3427000,5788000,3444000,5800000)} >>>> ); >>>> var saveStrategy = new OpenLayers.Strategy.Save(); >>>> saveStrategy.events.register("success", '', showSuccessMsg); >>>> saveStrategy.events.register("fail", '', showFailureMsg); >>>> var wfs = new OpenLayers.Layer.Vector("Editable Features", { >>>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>> protocol: new OpenLayers.Protocol.WFS({ >>>> version:"1.1.0", >>>> url: "http://127.0.0.1/cgi-bin/tinyows.exe", >>>> featureType: "frida", >>>> outputformat:"application/json", >>>> readFormat: new OpenLayers.Format.GeoJSON(), >>>> featureNS: "http://127.0.0.1/", >>>> geometryName: "the_geom" >>>> }) >>>> }); >>>> map.addLayers([osm, wfs]); >>>> >>>> map.zoomToMaxExtent(); >>>> >>>> The layer is actually in 31467 - I want to get it working for the >>>> frida parks example. I reduced everything else in my javascript file. >>>> >>>> But I think I have a problem with my configuration. I am setting >>>> the following in OpenLayers: OpenLayers.ProxyHost = >>>> "/cgi-bin/proxy.cgi?url="; and I saw that you were actually >>>> refering to a fcgi file in your config.xml. I thought I could >>>> define there the path to the tinyows.exe like this: >>>> http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? >>>> Could you send me the content of your >>>> weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t >>>> follow your instructions for setting the environment variable - I >>>> made that via the control Panel :) - and the ScriptAlias. >>>> >>>> I have to install the wget first on windows, but thanks for that >>>> hint - I will try it after the restart now! >>>> >>>> Thanks in advance, >>>> Anna >>>> >>>> >>>> >>>> >>>> >>>> Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: >>>>> ### The apache config used to bind TinyOWS to this config using a >>>>> different url >>>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>>>> -initial-env >>>>> TINYOWS_CONFIG_FILE=/opt/labs/weather-sites/etc/tinyows/config.xml >>>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>>> >>> >>> >> > > From Jukka.Rahkonen at mmmtike.fi Tue Nov 13 01:41:03 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Nov 2012 09:41:03 +0000 Subject: [mapserver-users] tinyows Message-ID: <84446DEF76453C439E9E97E438E13A637A97FA@suutari.haapa.mmm.fi> Hi, On this page there are some WFS calls which do work against my TinyOWS server http://188.64.1.61/cgi-bin/tinyows. Feel free to use it for testing. http://latuviitta.org/Http-POST-ja-Filter.php A very easy to use tool for testing POST requests is the Poster Firefox extension. This image shows how to use it. It is so simple that it should not matter that the texts I have added are in Finnish http://latuviitta.org/documents/WFS_POST_Poster.png. -Jukka Rahkonen- aho wrote: > Hi Alexandre, > > ok, I changed to ' file: > > > xmlns='http://www.opengis.net/ows' > xmlns:ows='http://www.opengis.net/ows' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xsi:schemaLocation='http://www.opengis.net/ows > http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' > version='1.1.0' language='en'> > > xml isn't valid > > > > This is always the same actually. > > This was the result and the adjusted wget command: > > C:\Users\Anna>wget "http://localhost/cgi-bin/tinyows.exe > --post-data=' ature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > version="1.1.0" xsi:s > chemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/w > fs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema- > instance"> typeNam > e="feature:frida" srsName="EPSG:31467" > xmlns:feature="http://127.0.0.1/"> uery>' --header="Content-Type: application/xml; > charset=UTF-8" > -O C:\test.txt > > SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = > C:\OSGeo4W\GnuWin32/etc/wgetrc > --2012-11-13 10:07:35-- > http://localhost/cgi-bin/tinyows.exe%20--post-data='%3C > wfs:GetFeature%20xmlns:wfs=http://www.opengis.net/wfs%20service=WF > S%20version=1. > 1.0%20xsi:schemaLocation=http://www.opengis.net/wfs > Resolving localhost... 127.0.0.1, ::1 > Connecting to localhost|127.0.0.1|:80... connected. > HTTP request sent, awaiting response... 404 Not Found > 2012-11-13 10:07:35 ERROR 404: Not Found. > > --2012-11-13 10:07:35-- > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%20xmlns:xs > i=http://www.w3.org/2001/XMLSchema- > instance%3E%3Cwfs:Query%20typeName=feature:fr > ida%20srsName=EPSG:31467%20xmlns:feature=http://127.0.0.1/%3E%3C/wf > s:Query%3E%3C > /wfs:GetFeature%3E'%20--header=Content-Type: > Resolving schemas.opengis.net... 66.244.86.52 Connecting to > schemas.opengis.net|66.244.86.52|:80... connected. > HTTP request sent, awaiting response... 404 Not Found > 2012-11-13 10:07:35 ERROR 404: Not Found. > > --2012-11-13 10:07:35-- http://application/xml; Resolving application... failed: > No data record of requested type. > wget: unable to resolve host address `application' > --2012-11-13 10:07:38-- ftp://charset=utf-8%20-o%20c/%5Ctest.txt > => `%5Ctest.txt' > Resolving charset=utf-8 -o c... failed: No data record of requested type. > wget: unable to resolve host address `charset=utf-8 -o c' > > Something is wrong with the host - maybe there is something missing in the > tinyows configuration. Because now wget takes the application as the > address instead of the coordinates of the bounding box!? > I took the same ns_prefix: feature because its also defined like that in my > xml -- I changed it, because i read that recommendation somewhere - made > no difference. > > > > > Am 11/12/2012 5:05 PM, schrieb Alexandre Dub?: > > Anna, > > > > What does your C:\ms4w\Apache\logs\tinows.log file contain ? > > > > Also yeah you should use --post-data=' > --post-data=" > could remove the node. Also, try replacing > > xmlns:feature="http://127.0.0.1/" by xmlns:tows="http://127.0.0.1/". > > > > HTH, > > > > Alexandre > > > > > > On 12-11-12 10:31 AM, aho wrote: > >> Hi Alexandre, > >> > >> I already reinstalled pyhton and made the configuration of the apache > >> server again. At least one thing I can exclude - specially because > >> sooner or later I have to include it in another project which needs > >> to run on a certain port. Anyhow... I also installed the wget and you > >> are right, it helps a lot. > >> I took the GetFeature xml from chrome and constructed the following > >> line: > >> > >> wget "http://localhost/cgi-bin/tinyows.exe" --post-data=" >> eature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > >> version="1.0.0" outp > >> utFormat="application/json" > >> xsi:schemaLocation="http://schemas.opengis.net/wfs/1 > >> .0.0/WFS-transaction.xsd" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > >> >> xmlns:feature="http://127.0.0.1/"> >> r > >> > xmlns:ogc="http://www.opengis.net/ogc"> >th > >> e_geom >> xmlns:gml="http://www.opengis.net/gml" > >> srsName="EPSG:31 > >> 467">3413084,5782000 > >> 3457916,5806000< > >> > /gml:coordinates> >> GetFeature> > >> > >> " --header="Content-Type: application/xml; charset=UTF-8" -O > >> C:/test.txt > >> > >> wget returned: > >> > >> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = > >> C:\OSGeo4W\GnuWin32/etc/wgetrc > >> --2012-11-12 16:17:16-- http://localhost/cgi-bin/tinyows.exe > >> Resolving localhost... 127.0.0.1, ::1 Connecting to > >> localhost|127.0.0.1|:80... connected. > >> HTTP request sent, awaiting response... 200 OK > >> Length: unspecified [application/xml] Saving to: `C:/test.txt' > >> [ <=> ] 503 --.-K/s in 0s > >> > >> 2012-11-12 16:17:16 (11.4 MB/s) - `C:/test.txt' saved [503] > >> --2012-11-12 16:17:16-- > >> http://%3E3413084,5782000%203457916,5806000%3C/gml:coor > >> > dinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%3C/wfs: > Query%3E%3C/wfs: > >> > >> GetFeature%3E > >> Resolving >3413084,5782000 3457916,5806000<... failed: No data record > >> of request ed type. > >> wget: unable to resolve host address `>3413084,5782000 > 3457916,5806000<' > >> FINISHED --2012-11-12 16:17:17-- > >> Downloaded: 1 files, 503 in 0s (11.4 MB/s) > >> > >> > >> I have really no idea why it is using the coordinates of the bounding > >> box for the host?! I thought it would be a problem of wget and the > >> quotation marks... but changing that to ' did not solve the problem. > >> In my test.txt is still the same response: invalid xml. Nothing else > >> unfortunately. I think its a problem in my openlayers configuration - > >> I check the spatial reference again; maybe I can also set the bbox or > >> something. I will see... > >> > >> If you or anyone else has an idea I will be very happy! > >> Anna > >> > >> Am 11/12/2012 2:42 PM, schrieb Alexandre Dub?: > >>> Hi Anna, > >>> > >>> While working locally, you don't need to set an > >>> OpenLayers.ProxyHost. Put comments // in front of it for now. > >>> > >>> tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file > >>> giving it the name you want. In Linux, you could use a symbolic > >>> link, like I did. Here's the apache config for it. It does 2 things > >>> : it enables FastCgi and set the TINYOWS_CONFIG_FILE env variable > >>> for this link to use a specific .xml config file. > >>> > >>> ### > >>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi > >>> -initial-env > >>> TINYOWS_CONFIG_FILE=/opt/labs/weather- > sites/etc/tinyows/config.xml > >>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" > >>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" > >>> ### > >>> > >>> Once you start using wget, the idea is to edit the xml GetFeature > >>> request sent and/or the config.xml file as you try it to quickly see > >>> what causes things to not work. Point to tinyows for now, you your > >>> proxy (yet), i.e. make your tinyows work first. > >>> > >>> Best regards, > >>> > >>> Alexandre > >>> > >>> > >>> On 12-11-12 04:05 AM, aho wrote: > >>>> Hi Alexandre, > >>>> > >>>> thanks for the good hints! This is really great! I think its not my > >>>> tinyows.xml or the Openlayers... but the error message tells > >>>> something else somehow... :(... I changed it to the following: > >>>> xml configuration of tinyows: > >>>> > >>>> >>>> schema_dir="C:\ms4w\apps\tinyows\schema\" > >>>> log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> > >>>> >>>> dbname="tinyows" port="5432"/> > >>>> >>>> title="TinyOWS Server - WFS-T Frida Service" /> > >>>> >>>> site="http://www.tinyows.org/" > >>>> email="tinyows-users at lists.maptools.org" /> > >>>> >>>> writable="1" > >>>> ns_prefix="tows" > >>>> ns_uri="http://127.0.0.1/" > >>>> name="frida" > >>>> title="Frida Parks" /> > >>>> > >>>> > >>>> and the OpenLayers code: > >>>> > >>>> map = new OpenLayers.Map('map', { > >>>> projection: new OpenLayers.Projection("EPSG:31467"), > >>>> units: "m", > >>>> maxResolution: "auto", > >>>> maxExtent: new > >>>> OpenLayers.Bounds(3427000,5788000,3444000,5800000), > >>>> controls: [ > >>>> new OpenLayers.Control.PanZoom() > >>>> ] > >>>> }); > >>>> var osm = new OpenLayers.Layer.WMS( > >>>> "OSM by Omniscale WMS", > >>>> "http://osm.omniscale.net/proxy/service", > >>>> {layers: 'osm', format: 'image/jpeg'}, > >>>> {projection:"EPSG:31467", units: "m", maxResolution: "auto", > >>>> maxExtent: new > OpenLayers.Bounds(3427000,5788000,3444000,5800000)} > >>>> ); > >>>> var saveStrategy = new OpenLayers.Strategy.Save(); > >>>> saveStrategy.events.register("success", '', showSuccessMsg); > >>>> saveStrategy.events.register("fail", '', showFailureMsg); > >>>> var wfs = new OpenLayers.Layer.Vector("Editable Features", { > >>>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > >>>> projection: new OpenLayers.Projection("EPSG:31467"), > >>>> protocol: new OpenLayers.Protocol.WFS({ > >>>> version:"1.1.0", > >>>> url: "http://127.0.0.1/cgi-bin/tinyows.exe", > >>>> featureType: "frida", > >>>> outputformat:"application/json", > >>>> readFormat: new OpenLayers.Format.GeoJSON(), > >>>> featureNS: "http://127.0.0.1/", > >>>> geometryName: "the_geom" > >>>> }) > >>>> }); > >>>> map.addLayers([osm, wfs]); > >>>> > >>>> map.zoomToMaxExtent(); > >>>> > >>>> The layer is actually in 31467 - I want to get it working for the > >>>> frida parks example. I reduced everything else in my javascript file. > >>>> > >>>> But I think I have a problem with my configuration. I am setting > >>>> the following in OpenLayers: OpenLayers.ProxyHost = > >>>> "/cgi-bin/proxy.cgi?url="; and I saw that you were actually > >>>> refering to a fcgi file in your config.xml. I thought I could > >>>> define there the path to the tinyows.exe like this: > >>>> http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? > >>>> Could you send me the content of your > >>>> weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t > >>>> follow your instructions for setting the environment variable - I > >>>> made that via the control Panel :) - and the ScriptAlias. > >>>> > >>>> I have to install the wget first on windows, but thanks for that > >>>> hint - I will try it after the restart now! > >>>> > >>>> Thanks in advance, > >>>> Anna > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: > >>>>> ### The apache config used to bind TinyOWS to this config using a > >>>>> different url > >>>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi > >>>>> -initial-env > >>>>> TINYOWS_CONFIG_FILE=/opt/labs/weather- > sites/etc/tinyows/config.xml > >>>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" > >>>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" > >>>> > >>> > >>> > >> > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From forum.email.a at googlemail.com Tue Nov 13 01:58:17 2012 From: forum.email.a at googlemail.com (aho) Date: Tue, 13 Nov 2012 10:58:17 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <84446DEF76453C439E9E97E438E13A637A97FA@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637A97FA@suutari.haapa.mmm.fi> Message-ID: <50A219B9.2040308@googlemail.com> Hi Jukka, thanks for your tips! But I don?t know where I am now. I think the host-problem was because of a wrong usage of wget. Anyhow - now it seems like I don?t have a problem anymore, which is not much better. Or at least I can say its a problem of openlayers?!... I send: the_geom3413173.306773 57820003457826.693227 5806000 to http://127.0.0.1/cgi-bin/tinyows.exe and got back: 5788323.500000 3427065.2500005800691.500000 3443999.250000 1 1 3429858 5799440 3429874 5799496 3429905 5799504 3429973 5799561 3430035 5799577 3430032 5799639 3430140 5799691 3430147... and so on... so now I know - my problem is not in the configuration of my tinyows.xml and the get request is constructed correctly from my openlayers code. So where is this error that there is an invalid parameter which is always returned in my test.html when i am sending the same get feature request? Am 11/13/2012 10:41 AM, schrieb Rahkonen Jukka: > Hi, > > On this page there are some WFS calls which do work against my TinyOWS server http://188.64.1.61/cgi-bin/tinyows. Feel free to use it for testing. > http://latuviitta.org/Http-POST-ja-Filter.php > > A very easy to use tool for testing POST requests is the Poster Firefox extension. This image shows how to use it. It is so simple that it should not matter that the texts I have added are in Finnish http://latuviitta.org/documents/WFS_POST_Poster.png. > > -Jukka Rahkonen- > > aho wrote: > >> Hi Alexandre, >> >> ok, I changed to '> file: >> >> >> > xmlns='http://www.opengis.net/ows' >> xmlns:ows='http://www.opengis.net/ows' >> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >> xsi:schemaLocation='http://www.opengis.net/ows >> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' >> version='1.1.0' language='en'> >> >> xml isn't valid >> >> >> >> This is always the same actually. >> >> This was the result and the adjusted wget command: >> >> C:\Users\Anna>wget "http://localhost/cgi-bin/tinyows.exe >> --post-data='> ature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >> version="1.1.0" xsi:s >> chemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.1.0/w >> fs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema- >> instance">> typeNam >> e="feature:frida" srsName="EPSG:31467" >> xmlns:feature="http://127.0.0.1/">> uery>' --header="Content-Type: application/xml; >> charset=UTF-8" >> -O C:\test.txt >> >> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = >> C:\OSGeo4W\GnuWin32/etc/wgetrc >> --2012-11-13 10:07:35-- >> http://localhost/cgi-bin/tinyows.exe%20--post-data='%3C >> wfs:GetFeature%20xmlns:wfs=http://www.opengis.net/wfs%20service=WF >> S%20version=1. >> 1.0%20xsi:schemaLocation=http://www.opengis.net/wfs >> Resolving localhost... 127.0.0.1, ::1 >> Connecting to localhost|127.0.0.1|:80... connected. >> HTTP request sent, awaiting response... 404 Not Found >> 2012-11-13 10:07:35 ERROR 404: Not Found. >> >> --2012-11-13 10:07:35-- >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%20xmlns:xs >> i=http://www.w3.org/2001/XMLSchema- >> instance%3E%3Cwfs:Query%20typeName=feature:fr >> ida%20srsName=EPSG:31467%20xmlns:feature=http://127.0.0.1/%3E%3C/wf >> s:Query%3E%3C >> /wfs:GetFeature%3E'%20--header=Content-Type: >> Resolving schemas.opengis.net... 66.244.86.52 Connecting to >> schemas.opengis.net|66.244.86.52|:80... connected. >> HTTP request sent, awaiting response... 404 Not Found >> 2012-11-13 10:07:35 ERROR 404: Not Found. >> >> --2012-11-13 10:07:35-- http://application/xml; Resolving application... failed: >> No data record of requested type. >> wget: unable to resolve host address `application' >> --2012-11-13 10:07:38-- ftp://charset=utf-8%20-o%20c/%5Ctest.txt >> => `%5Ctest.txt' >> Resolving charset=utf-8 -o c... failed: No data record of requested type. >> wget: unable to resolve host address `charset=utf-8 -o c' >> >> Something is wrong with the host - maybe there is something missing in the >> tinyows configuration. Because now wget takes the application as the >> address instead of the coordinates of the bounding box!? >> I took the same ns_prefix: feature because its also defined like that in my >> xml -- I changed it, because i read that recommendation somewhere - made >> no difference. >> >> >> >> >> Am 11/12/2012 5:05 PM, schrieb Alexandre Dub?: >>> Anna, >>> >>> What does your C:\ms4w\Apache\logs\tinows.log file contain ? >>> >>> Also yeah you should use --post-data='>> --post-data=">> could remove the node. Also, try replacing >>> xmlns:feature="http://127.0.0.1/" by xmlns:tows="http://127.0.0.1/". >>> >>> HTH, >>> >>> Alexandre >>> >>> >>> On 12-11-12 10:31 AM, aho wrote: >>>> Hi Alexandre, >>>> >>>> I already reinstalled pyhton and made the configuration of the apache >>>> server again. At least one thing I can exclude - specially because >>>> sooner or later I have to include it in another project which needs >>>> to run on a certain port. Anyhow... I also installed the wget and you >>>> are right, it helps a lot. >>>> I took the GetFeature xml from chrome and constructed the following >>>> line: >>>> >>>> wget "http://localhost/cgi-bin/tinyows.exe" --post-data=">>> eature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >>>> version="1.0.0" outp >>>> utFormat="application/json" >>>> xsi:schemaLocation="http://schemas.opengis.net/wfs/1 >>>> .0.0/WFS-transaction.xsd" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>>> >>> xmlns:feature="http://127.0.0.1/">>>> r >>>> >> xmlns:ogc="http://www.opengis.net/ogc">>> th >>>> e_geom>>> xmlns:gml="http://www.opengis.net/gml" >>>> srsName="EPSG:31 >>>> 467">3413084,5782000 >>>> 3457916,5806000< >>>> >> /gml:coordinates>>>> GetFeature> >>>> >>>> " --header="Content-Type: application/xml; charset=UTF-8" -O >>>> C:/test.txt >>>> >>>> wget returned: >>>> >>>> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = >>>> C:\OSGeo4W\GnuWin32/etc/wgetrc >>>> --2012-11-12 16:17:16-- http://localhost/cgi-bin/tinyows.exe >>>> Resolving localhost... 127.0.0.1, ::1 Connecting to >>>> localhost|127.0.0.1|:80... connected. >>>> HTTP request sent, awaiting response... 200 OK >>>> Length: unspecified [application/xml] Saving to: `C:/test.txt' >>>> [ <=> ] 503 --.-K/s in 0s >>>> >>>> 2012-11-12 16:17:16 (11.4 MB/s) - `C:/test.txt' saved [503] >>>> --2012-11-12 16:17:16-- >>>> http://%3E3413084,5782000%203457916,5806000%3C/gml:coor >>>> >> dinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%3C/wfs: >> Query%3E%3C/wfs: >>>> GetFeature%3E >>>> Resolving >3413084,5782000 3457916,5806000<... failed: No data record >>>> of request ed type. >>>> wget: unable to resolve host address `>3413084,5782000 >> 3457916,5806000<' >>>> FINISHED --2012-11-12 16:17:17-- >>>> Downloaded: 1 files, 503 in 0s (11.4 MB/s) >>>> >>>> >>>> I have really no idea why it is using the coordinates of the bounding >>>> box for the host?! I thought it would be a problem of wget and the >>>> quotation marks... but changing that to ' did not solve the problem. >>>> In my test.txt is still the same response: invalid xml. Nothing else >>>> unfortunately. I think its a problem in my openlayers configuration - >>>> I check the spatial reference again; maybe I can also set the bbox or >>>> something. I will see... >>>> >>>> If you or anyone else has an idea I will be very happy! >>>> Anna >>>> >>>> Am 11/12/2012 2:42 PM, schrieb Alexandre Dub?: >>>>> Hi Anna, >>>>> >>>>> While working locally, you don't need to set an >>>>> OpenLayers.ProxyHost. Put comments // in front of it for now. >>>>> >>>>> tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file >>>>> giving it the name you want. In Linux, you could use a symbolic >>>>> link, like I did. Here's the apache config for it. It does 2 things >>>>> : it enables FastCgi and set the TINYOWS_CONFIG_FILE env variable >>>>> for this link to use a specific .xml config file. >>>>> >>>>> ### >>>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>>>> -initial-env >>>>> TINYOWS_CONFIG_FILE=/opt/labs/weather- >> sites/etc/tinyows/config.xml >>>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>>>> ### >>>>> >>>>> Once you start using wget, the idea is to edit the xml GetFeature >>>>> request sent and/or the config.xml file as you try it to quickly see >>>>> what causes things to not work. Point to tinyows for now, you your >>>>> proxy (yet), i.e. make your tinyows work first. >>>>> >>>>> Best regards, >>>>> >>>>> Alexandre >>>>> >>>>> >>>>> On 12-11-12 04:05 AM, aho wrote: >>>>>> Hi Alexandre, >>>>>> >>>>>> thanks for the good hints! This is really great! I think its not my >>>>>> tinyows.xml or the Openlayers... but the error message tells >>>>>> something else somehow... :(... I changed it to the following: >>>>>> xml configuration of tinyows: >>>>>> >>>>>> >>>>> schema_dir="C:\ms4w\apps\tinyows\schema\" >>>>>> log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> >>>>>> >>>>> dbname="tinyows" port="5432"/> >>>>>> >>>>> title="TinyOWS Server - WFS-T Frida Service" /> >>>>>> >>>>> site="http://www.tinyows.org/" >>>>>> email="tinyows-users at lists.maptools.org" /> >>>>>> >>>>> writable="1" >>>>>> ns_prefix="tows" >>>>>> ns_uri="http://127.0.0.1/" >>>>>> name="frida" >>>>>> title="Frida Parks" /> >>>>>> >>>>>> >>>>>> and the OpenLayers code: >>>>>> >>>>>> map = new OpenLayers.Map('map', { >>>>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>>>> units: "m", >>>>>> maxResolution: "auto", >>>>>> maxExtent: new >>>>>> OpenLayers.Bounds(3427000,5788000,3444000,5800000), >>>>>> controls: [ >>>>>> new OpenLayers.Control.PanZoom() >>>>>> ] >>>>>> }); >>>>>> var osm = new OpenLayers.Layer.WMS( >>>>>> "OSM by Omniscale WMS", >>>>>> "http://osm.omniscale.net/proxy/service", >>>>>> {layers: 'osm', format: 'image/jpeg'}, >>>>>> {projection:"EPSG:31467", units: "m", maxResolution: "auto", >>>>>> maxExtent: new >> OpenLayers.Bounds(3427000,5788000,3444000,5800000)} >>>>>> ); >>>>>> var saveStrategy = new OpenLayers.Strategy.Save(); >>>>>> saveStrategy.events.register("success", '', showSuccessMsg); >>>>>> saveStrategy.events.register("fail", '', showFailureMsg); >>>>>> var wfs = new OpenLayers.Layer.Vector("Editable Features", { >>>>>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >>>>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>>>> protocol: new OpenLayers.Protocol.WFS({ >>>>>> version:"1.1.0", >>>>>> url: "http://127.0.0.1/cgi-bin/tinyows.exe", >>>>>> featureType: "frida", >>>>>> outputformat:"application/json", >>>>>> readFormat: new OpenLayers.Format.GeoJSON(), >>>>>> featureNS: "http://127.0.0.1/", >>>>>> geometryName: "the_geom" >>>>>> }) >>>>>> }); >>>>>> map.addLayers([osm, wfs]); >>>>>> >>>>>> map.zoomToMaxExtent(); >>>>>> >>>>>> The layer is actually in 31467 - I want to get it working for the >>>>>> frida parks example. I reduced everything else in my javascript file. >>>>>> >>>>>> But I think I have a problem with my configuration. I am setting >>>>>> the following in OpenLayers: OpenLayers.ProxyHost = >>>>>> "/cgi-bin/proxy.cgi?url="; and I saw that you were actually >>>>>> refering to a fcgi file in your config.xml. I thought I could >>>>>> define there the path to the tinyows.exe like this: >>>>>> http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? >>>>>> Could you send me the content of your >>>>>> weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t >>>>>> follow your instructions for setting the environment variable - I >>>>>> made that via the control Panel :) - and the ScriptAlias. >>>>>> >>>>>> I have to install the wget first on windows, but thanks for that >>>>>> hint - I will try it after the restart now! >>>>>> >>>>>> Thanks in advance, >>>>>> Anna >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: >>>>>>> ### The apache config used to bind TinyOWS to this config using a >>>>>>> different url >>>>>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>>>>>> -initial-env >>>>>>> TINYOWS_CONFIG_FILE=/opt/labs/weather- >> sites/etc/tinyows/config.xml >>>>>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>>>>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>>>> >>> >> _______________________________________________ >> 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 eduardo.kanegae at gmail.com Tue Nov 13 04:27:39 2012 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 13 Nov 2012 10:27:39 -0200 Subject: [mapserver-users] How to access MapServer MapCache tile without using WMS layers Message-ID: hi, At http://www.webmapit.com.br/inpe/topodata/?lang=en I'm using OpenLayers 2.12 + WMS layers to display layers rendered by mod MapCache (seeder). The PNG grid folder now looks like: ************************************************* gridfolder 00 000 000 001 002 ... 060 000 000 000.png 001.png ... 062.png 01 02 03 000 000 002 000 000 000.png 001.png ... blanks ************************************************* But, at this moment using WMS layer MapCache/Apache module is treating WMS requests and returning correct image for each access. What kind of layer should I use with OpenLayers to be able to turn off MapCache module and then use a common Apache installation? thanks, in advance Eduardo Patto Kanegae http://www.webmapit.com | @webmapit From forum.email.a at googlemail.com Tue Nov 13 04:43:13 2012 From: forum.email.a at googlemail.com (aho) Date: Tue, 13 Nov 2012 13:43:13 +0100 Subject: [mapserver-users] tinyows In-Reply-To: <84446DEF76453C439E9E97E438E13A637A97FA@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637A97FA@suutari.haapa.mmm.fi> Message-ID: <50A24061.8080900@googlemail.com> Ok, I left the poster and I am back to the tinyows.log file: [Tue Nov 13 13:35:51 2012] [ERROR] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'http://127.0.0.1/cgi-bin/tinyows.xml?service=WFS&request=DescribeFeatureType&version=1.1.0'. Skipping the import. I actually defined my tinyows.xml in C:/ms4w/Apache/apps/tinyows.xml in the httpd_tinyows.conf. Do you think this could be the problem? Am 11/13/2012 10:41 AM, schrieb Rahkonen Jukka: > Hi, > > On this page there are some WFS calls which do work against my TinyOWS server http://188.64.1.61/cgi-bin/tinyows. Feel free to use it for testing. > http://latuviitta.org/Http-POST-ja-Filter.php > > A very easy to use tool for testing POST requests is the Poster Firefox extension. This image shows how to use it. It is so simple that it should not matter that the texts I have added are in Finnish http://latuviitta.org/documents/WFS_POST_Poster.png. > > -Jukka Rahkonen- > > aho wrote: > >> Hi Alexandre, >> >> ok, I changed to '> file: >> >> >> > xmlns='http://www.opengis.net/ows' >> xmlns:ows='http://www.opengis.net/ows' >> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >> xsi:schemaLocation='http://www.opengis.net/ows >> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' >> version='1.1.0' language='en'> >> >> xml isn't valid >> >> >> >> This is always the same actually. >> >> This was the result and the adjusted wget command: >> >> C:\Users\Anna>wget "http://localhost/cgi-bin/tinyows.exe >> --post-data='> ature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >> version="1.1.0" xsi:s >> chemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.1.0/w >> fs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema- >> instance">> typeNam >> e="feature:frida" srsName="EPSG:31467" >> xmlns:feature="http://127.0.0.1/">> uery>' --header="Content-Type: application/xml; >> charset=UTF-8" >> -O C:\test.txt >> >> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = >> C:\OSGeo4W\GnuWin32/etc/wgetrc >> --2012-11-13 10:07:35-- >> http://localhost/cgi-bin/tinyows.exe%20--post-data='%3C >> wfs:GetFeature%20xmlns:wfs=http://www.opengis.net/wfs%20service=WF >> S%20version=1. >> 1.0%20xsi:schemaLocation=http://www.opengis.net/wfs >> Resolving localhost... 127.0.0.1, ::1 >> Connecting to localhost|127.0.0.1|:80... connected. >> HTTP request sent, awaiting response... 404 Not Found >> 2012-11-13 10:07:35 ERROR 404: Not Found. >> >> --2012-11-13 10:07:35-- >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%20xmlns:xs >> i=http://www.w3.org/2001/XMLSchema- >> instance%3E%3Cwfs:Query%20typeName=feature:fr >> ida%20srsName=EPSG:31467%20xmlns:feature=http://127.0.0.1/%3E%3C/wf >> s:Query%3E%3C >> /wfs:GetFeature%3E'%20--header=Content-Type: >> Resolving schemas.opengis.net... 66.244.86.52 Connecting to >> schemas.opengis.net|66.244.86.52|:80... connected. >> HTTP request sent, awaiting response... 404 Not Found >> 2012-11-13 10:07:35 ERROR 404: Not Found. >> >> --2012-11-13 10:07:35-- http://application/xml; Resolving application... failed: >> No data record of requested type. >> wget: unable to resolve host address `application' >> --2012-11-13 10:07:38-- ftp://charset=utf-8%20-o%20c/%5Ctest.txt >> => `%5Ctest.txt' >> Resolving charset=utf-8 -o c... failed: No data record of requested type. >> wget: unable to resolve host address `charset=utf-8 -o c' >> >> Something is wrong with the host - maybe there is something missing in the >> tinyows configuration. Because now wget takes the application as the >> address instead of the coordinates of the bounding box!? >> I took the same ns_prefix: feature because its also defined like that in my >> xml -- I changed it, because i read that recommendation somewhere - made >> no difference. >> >> >> >> >> Am 11/12/2012 5:05 PM, schrieb Alexandre Dub?: >>> Anna, >>> >>> What does your C:\ms4w\Apache\logs\tinows.log file contain ? >>> >>> Also yeah you should use --post-data='>> --post-data=">> could remove the node. Also, try replacing >>> xmlns:feature="http://127.0.0.1/" by xmlns:tows="http://127.0.0.1/". >>> >>> HTH, >>> >>> Alexandre >>> >>> >>> On 12-11-12 10:31 AM, aho wrote: >>>> Hi Alexandre, >>>> >>>> I already reinstalled pyhton and made the configuration of the apache >>>> server again. At least one thing I can exclude - specially because >>>> sooner or later I have to include it in another project which needs >>>> to run on a certain port. Anyhow... I also installed the wget and you >>>> are right, it helps a lot. >>>> I took the GetFeature xml from chrome and constructed the following >>>> line: >>>> >>>> wget "http://localhost/cgi-bin/tinyows.exe" --post-data=">>> eature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >>>> version="1.0.0" outp >>>> utFormat="application/json" >>>> xsi:schemaLocation="http://schemas.opengis.net/wfs/1 >>>> .0.0/WFS-transaction.xsd" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>>> >>> xmlns:feature="http://127.0.0.1/">>>> r >>>> >> xmlns:ogc="http://www.opengis.net/ogc">>> th >>>> e_geom>>> xmlns:gml="http://www.opengis.net/gml" >>>> srsName="EPSG:31 >>>> 467">3413084,5782000 >>>> 3457916,5806000< >>>> >> /gml:coordinates>>>> GetFeature> >>>> >>>> " --header="Content-Type: application/xml; charset=UTF-8" -O >>>> C:/test.txt >>>> >>>> wget returned: >>>> >>>> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = >>>> C:\OSGeo4W\GnuWin32/etc/wgetrc >>>> --2012-11-12 16:17:16-- http://localhost/cgi-bin/tinyows.exe >>>> Resolving localhost... 127.0.0.1, ::1 Connecting to >>>> localhost|127.0.0.1|:80... connected. >>>> HTTP request sent, awaiting response... 200 OK >>>> Length: unspecified [application/xml] Saving to: `C:/test.txt' >>>> [ <=> ] 503 --.-K/s in 0s >>>> >>>> 2012-11-12 16:17:16 (11.4 MB/s) - `C:/test.txt' saved [503] >>>> --2012-11-12 16:17:16-- >>>> http://%3E3413084,5782000%203457916,5806000%3C/gml:coor >>>> >> dinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%3C/wfs: >> Query%3E%3C/wfs: >>>> GetFeature%3E >>>> Resolving >3413084,5782000 3457916,5806000<... failed: No data record >>>> of request ed type. >>>> wget: unable to resolve host address `>3413084,5782000 >> 3457916,5806000<' >>>> FINISHED --2012-11-12 16:17:17-- >>>> Downloaded: 1 files, 503 in 0s (11.4 MB/s) >>>> >>>> >>>> I have really no idea why it is using the coordinates of the bounding >>>> box for the host?! I thought it would be a problem of wget and the >>>> quotation marks... but changing that to ' did not solve the problem. >>>> In my test.txt is still the same response: invalid xml. Nothing else >>>> unfortunately. I think its a problem in my openlayers configuration - >>>> I check the spatial reference again; maybe I can also set the bbox or >>>> something. I will see... >>>> >>>> If you or anyone else has an idea I will be very happy! >>>> Anna >>>> >>>> Am 11/12/2012 2:42 PM, schrieb Alexandre Dub?: >>>>> Hi Anna, >>>>> >>>>> While working locally, you don't need to set an >>>>> OpenLayers.ProxyHost. Put comments // in front of it for now. >>>>> >>>>> tinyows-1.0.0-weather-sites.fcgi -> copy your tinyows.exe file >>>>> giving it the name you want. In Linux, you could use a symbolic >>>>> link, like I did. Here's the apache config for it. It does 2 things >>>>> : it enables FastCgi and set the TINYOWS_CONFIG_FILE env variable >>>>> for this link to use a specific .xml config file. >>>>> >>>>> ### >>>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>>>> -initial-env >>>>> TINYOWS_CONFIG_FILE=/opt/labs/weather- >> sites/etc/tinyows/config.xml >>>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>>>> ### >>>>> >>>>> Once you start using wget, the idea is to edit the xml GetFeature >>>>> request sent and/or the config.xml file as you try it to quickly see >>>>> what causes things to not work. Point to tinyows for now, you your >>>>> proxy (yet), i.e. make your tinyows work first. >>>>> >>>>> Best regards, >>>>> >>>>> Alexandre >>>>> >>>>> >>>>> On 12-11-12 04:05 AM, aho wrote: >>>>>> Hi Alexandre, >>>>>> >>>>>> thanks for the good hints! This is really great! I think its not my >>>>>> tinyows.xml or the Openlayers... but the error message tells >>>>>> something else somehow... :(... I changed it to the following: >>>>>> xml configuration of tinyows: >>>>>> >>>>>> >>>>> schema_dir="C:\ms4w\apps\tinyows\schema\" >>>>>> log="C:\ms4w\Apache\logs\tinows.log" log_level="15"> >>>>>> >>>>> dbname="tinyows" port="5432"/> >>>>>> >>>>> title="TinyOWS Server - WFS-T Frida Service" /> >>>>>> >>>>> site="http://www.tinyows.org/" >>>>>> email="tinyows-users at lists.maptools.org" /> >>>>>> >>>>> writable="1" >>>>>> ns_prefix="tows" >>>>>> ns_uri="http://127.0.0.1/" >>>>>> name="frida" >>>>>> title="Frida Parks" /> >>>>>> >>>>>> >>>>>> and the OpenLayers code: >>>>>> >>>>>> map = new OpenLayers.Map('map', { >>>>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>>>> units: "m", >>>>>> maxResolution: "auto", >>>>>> maxExtent: new >>>>>> OpenLayers.Bounds(3427000,5788000,3444000,5800000), >>>>>> controls: [ >>>>>> new OpenLayers.Control.PanZoom() >>>>>> ] >>>>>> }); >>>>>> var osm = new OpenLayers.Layer.WMS( >>>>>> "OSM by Omniscale WMS", >>>>>> "http://osm.omniscale.net/proxy/service", >>>>>> {layers: 'osm', format: 'image/jpeg'}, >>>>>> {projection:"EPSG:31467", units: "m", maxResolution: "auto", >>>>>> maxExtent: new >> OpenLayers.Bounds(3427000,5788000,3444000,5800000)} >>>>>> ); >>>>>> var saveStrategy = new OpenLayers.Strategy.Save(); >>>>>> saveStrategy.events.register("success", '', showSuccessMsg); >>>>>> saveStrategy.events.register("fail", '', showFailureMsg); >>>>>> var wfs = new OpenLayers.Layer.Vector("Editable Features", { >>>>>> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], >>>>>> projection: new OpenLayers.Projection("EPSG:31467"), >>>>>> protocol: new OpenLayers.Protocol.WFS({ >>>>>> version:"1.1.0", >>>>>> url: "http://127.0.0.1/cgi-bin/tinyows.exe", >>>>>> featureType: "frida", >>>>>> outputformat:"application/json", >>>>>> readFormat: new OpenLayers.Format.GeoJSON(), >>>>>> featureNS: "http://127.0.0.1/", >>>>>> geometryName: "the_geom" >>>>>> }) >>>>>> }); >>>>>> map.addLayers([osm, wfs]); >>>>>> >>>>>> map.zoomToMaxExtent(); >>>>>> >>>>>> The layer is actually in 31467 - I want to get it working for the >>>>>> frida parks example. I reduced everything else in my javascript file. >>>>>> >>>>>> But I think I have a problem with my configuration. I am setting >>>>>> the following in OpenLayers: OpenLayers.ProxyHost = >>>>>> "/cgi-bin/proxy.cgi?url="; and I saw that you were actually >>>>>> refering to a fcgi file in your config.xml. I thought I could >>>>>> define there the path to the tinyows.exe like this: >>>>>> http://127.0.0.1/cgi-bin/tinyows.exe - do I also give the proxy there? >>>>>> Could you send me the content of your >>>>>> weather-sites-tinyows-1.0.0.fcgi file? I have to say that I can?t >>>>>> follow your instructions for setting the environment variable - I >>>>>> made that via the control Panel :) - and the ScriptAlias. >>>>>> >>>>>> I have to install the wget first on windows, but thanks for that >>>>>> hint - I will try it after the restart now! >>>>>> >>>>>> Thanks in advance, >>>>>> Anna >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Am 11/9/2012 2:50 PM, schrieb Alexandre Dub?: >>>>>>> ### The apache config used to bind TinyOWS to this config using a >>>>>>> different url >>>>>>> FastCgiServer /usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi >>>>>>> -initial-env >>>>>>> TINYOWS_CONFIG_FILE=/opt/labs/weather- >> sites/etc/tinyows/config.xml >>>>>>> ScriptAlias "/weather-sites-tinyows-1.0.0.fcgi" >>>>>>> "/usr/lib/cgi-bin/tinyows-1.0.0-weather-sites.fcgi" >>>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Nov 13 06:14:57 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 13 Nov 2012 14:14:57 +0000 Subject: [mapserver-users] Displaying multiple labels with the same lat/long In-Reply-To: References: Message-ID: Not sure about clustering, but there may be other options as well: You might be able to simply use POSITION AUTO and give these labels a high priority. MapServer will place them. If you need markers in this case you'll need to draw those separately to avoid marker collisions. So, one layer for points and the other for high-priority labels. Version 6.2 supports multiple labels per feature. If you can de-normalize your data so you have 1 point plus multiple columns of companies (e.g. company1, company2, etc...) then you can use this approach. There's also leader support when things get really tight. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Ian Walberg [ian.walberg at airborne.aero] Sent: Monday, November 12, 2012 12:11 PM To: List (MapServer Users) Subject: [mapserver-users] Displaying multiple labels with the same lat/long Folks, We have some data we need to display which has a number of companies in the same city so the same lat/long. So in these cases only one of the labels is displayed. Can this be done using the cluster functionality and where do we find an easy example? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Tue Nov 13 06:18:02 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 13 Nov 2012 09:18:02 -0500 Subject: [mapserver-users] Displaying multiple labels with the same lat/long In-Reply-To: References: Message-ID: Steve, I thought with a layer type of point or annotation with label mode as auto that if there were 2 points with same lat/long only 1 would be displayed. Thanks Ian -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, November 13, 2012 6:15 AM To: Ian Walberg; List (MapServer Users) Subject: RE: Displaying multiple labels with the same lat/long Not sure about clustering, but there may be other options as well: You might be able to simply use POSITION AUTO and give these labels a high priority. MapServer will place them. If you need markers in this case you'll need to draw those separately to avoid marker collisions. So, one layer for points and the other for high-priority labels. Version 6.2 supports multiple labels per feature. If you can de-normalize your data so you have 1 point plus multiple columns of companies (e.g. company1, company2, etc...) then you can use this approach. There's also leader support when things get really tight. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Ian Walberg [ian.walberg at airborne.aero] Sent: Monday, November 12, 2012 12:11 PM To: List (MapServer Users) Subject: [mapserver-users] Displaying multiple labels with the same lat/long Folks, We have some data we need to display which has a number of companies in the same city so the same lat/long. So in these cases only one of the labels is displayed. Can this be done using the cluster functionality and where do we find an easy example? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue Nov 13 06:20:18 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Nov 2012 15:20:18 +0100 Subject: [mapserver-users] Displaying multiple labels with the same lat/long In-Reply-To: References: Message-ID: On Tue, Nov 13, 2012 at 3:18 PM, Ian Walberg wrote: > Steve, > > I thought with a layer type of point or annotation with label mode as > auto that if there were 2 points with same lat/long only 1 would be > displayed. > Not if they don't have a marker symbol attached. (as in that case the marker would collide, and second label would be rejected) > > Thanks > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Tuesday, November 13, 2012 6:15 AM > To: Ian Walberg; List (MapServer Users) > Subject: RE: Displaying multiple labels with the same lat/long > > Not sure about clustering, but there may be other options as well: > > You might be able to simply use POSITION AUTO and give these labels a > high priority. MapServer will place them. If you need markers in this > case you'll need to draw those separately to avoid marker collisions. > So, one layer for points and the other for high-priority labels. > > Version 6.2 supports multiple labels per feature. If you can > de-normalize your data so you have 1 point plus multiple columns of > companies (e.g. company1, company2, etc...) then you can use this > approach. There's also leader support when things get really tight. > > Steve > > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] on behalf of Ian Walberg > [ian.walberg at airborne.aero] > Sent: Monday, November 12, 2012 12:11 PM > To: List (MapServer Users) > Subject: [mapserver-users] Displaying multiple labels with the same > lat/long > > Folks, > > We have some data we need to display which has a number of companies in > the same city so the same lat/long. > > So in these cases only one of the labels is displayed. > > Can this be done using the cluster functionality and where do we find an > easy example? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Nov 13 06:31:05 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Nov 2012 14:31:05 +0000 Subject: [mapserver-users] Can I control laber FORCE [true|false] with SLD? Message-ID: <84446DEF76453C439E9E97E438E13A637AAA6A@suutari.haapa.mmm.fi> Hi, Our users are generally happy with non-overlapping labels but sometimes they would rather see all the labels. Can it be controlled with SLD_BODY or do I need to do a separate layer for drawing all the labels? We can turn the default labels off with SLD so for users eyes the result would look the same. -Jukka Rahkonen- From olivier.courtin at gmail.com Tue Nov 13 16:55:55 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Wed, 14 Nov 2012 01:55:55 +0100 Subject: [mapserver-users] TinyOWS 1.1.0 release Message-ID: Hi all, The 1.1.0 TinyOWS version is out. Source code: http://www.tinyows.org/release/tinyows-1.1.0.tar.bz2 >From 1.0.0 release the key point was to bugfixe, to improve again performances and strict OGC standard implementation, and few userland improvements on config file. 1.1.0 Changelog: - Add include_items and exclude_items config handling. To choose exactly which columns to retrieve (Serge Dikiy) - XSD max length and enumeration constraint handling (Serge Dikiy & Alan Boudreault) - First real support of typename namespace provided in request (Olivier Courtin) - Generate PK value using PostgresSQL DEFAULT value if present (Serge Dikiy) - Add pkey configuration in layer config. Usefull for instance when retrieving data from a VIEW. (Serge Dikiy) - Buffer copy performance improve (Serge Dikiy) - Rewrite/fix max features handling (Olivier Courtin) - Extent layer's properties allowed to inherit (Olivier Courtin) - Several bugfixes as usual (special thanks to Andreas Peri, Serge Dikiy and Jukka Rahkonen for detailled reports) Documentation was also refresh, including the OpenLayers HowTo. http://ci.mapserver.org/job/docsmaster/lastSuccessfulBuild/artifact/build/html/en/tinyows/index.html#tinyows Enjoy, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 14 00:49:02 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Nov 2012 09:49:02 +0100 Subject: [mapserver-users] How to access MapServer MapCache tile without using WMS layers In-Reply-To: References: Message-ID: a TileCache layer should work, you'll have to suffix the supplied url with the name of the grid though of the grid, so something like http://server/cache/WGS84 -- thomas On Tue, Nov 13, 2012 at 1:27 PM, Eduardo Kanegae wrote: > hi, > > At http://www.webmapit.com.br/inpe/topodata/?lang=en I'm using > OpenLayers 2.12 + WMS layers to display layers rendered by mod > MapCache (seeder). > > The PNG grid folder now looks like: > ************************************************* > gridfolder > 00 > 000 > 000 > 001 > 002 > ... > 060 > 000 > 000 > 000.png > 001.png > ... > 062.png > 01 > 02 > 03 > 000 > 000 > 002 > 000 > 000 > 000.png > 001.png > ... > blanks > > ************************************************* > But, at this moment using WMS layer MapCache/Apache module is treating > WMS requests and returning correct image for each access. > > What kind of layer should I use with OpenLayers to be able to turn off > MapCache module and then use a common Apache installation? > > thanks, in advance > > Eduardo Patto Kanegae > http://www.webmapit.com | @webmapit > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 14 00:54:21 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Nov 2012 09:54:21 +0100 Subject: [mapserver-users] mapcache - rendering higher level tiles from lower level tilesets In-Reply-To: References: Message-ID: Should be possible, although you'll be more than doubling your cache size without actually providing new information. Setup a source that references the wms service offerered by your seeded mapcache: in pseudo code: localhost/mapcache Fully_Seeded_to_19_cache s19 memcache gmaps mixed 1 1 0 disk gmaps mixed 1 1 0 -- thomas On Mon, Nov 12, 2012 at 9:09 PM, Travis Kirstine wrote: > I have a fully seeded cache of tiles to level 19 and no longer can access > the original WMS source. Is it possible to generate a tileset using a > memcache for layer above level 19 using the seeded cache as source? > > Something like this > > > > /home/caches > > > > > > localhost > 11211 > > > > > > > disk > gmaps > mixed > 1 1 > 0 > > > > > memcache > gmaps > mixed > 1 1 > 0 > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Nov 14 01:01:54 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Nov 2012 10:01:54 +0100 Subject: [mapserver-users] MapCache (6.2) Backwards Compatability In-Reply-To: References: Message-ID: The power of two requirement is due to the "drill-down" seeding mode where we want to seed the child metatiles of a given metatile. It works as expected for the wgs84 and google grids as their resolutions are multiplied by two at each zoom level, but the behavior is less optimal for custom grids that do not enforce this constraint. All in all, I'm not completely satisfied about this constraint, and it might effectively cause an uncomplete seed if you reseed a tileset that was previously accessed with a different metatile size. -- thomas On Fri, Nov 2, 2012 at 4:54 PM, Lime, Steve D (DNR) wrote: > Trying to test the new version of mapcache, specifically the seeder, > against a slightly older mapcache configuration file. I?m seeing an error > like:**** > > ** ** > > ?metatile size is not set to a power of two, rerun with e.g -M 8,8?**** > > ** ** > > It?s true that the tilesets in my config file have metatile set to 5,5. I > don?t recall why that size, probably just copied directly from example > configs? Those values haven?t cause an issue to date.**** > > ** ** > > I?m wondering why the requirement (power of 2) and what the effects will > be if I do some limited tile regeneration on an existing tileset using a > different metatile size.**** > > ** ** > > Steve**** > > _______________________________________________ > 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 forum.email.a at googlemail.com Wed Nov 14 01:04:22 2012 From: forum.email.a at googlemail.com (aho) Date: Wed, 14 Nov 2012 10:04:22 +0100 Subject: [mapserver-users] TinyOWS 1.1.0 release In-Reply-To: References: Message-ID: <50A35E96.2030803@googlemail.com> This is working for me on Windows with OpenLayers! Really beautiful! :) Thanks for helping Alexandre and Jukka! Anna Am 11/14/2012 1:55 AM, schrieb Olivier Courtin: > Hi all, > > The 1.1.0 TinyOWS version is out. > Source code: http://www.tinyows.org/release/tinyows-1.1.0.tar.bz2 > > From 1.0.0 release the key point was to bugfixe, to improve again > performances > and strict OGC standard implementation, and few userland improvements > on config file. > > > 1.1.0 Changelog: > - Add include_items and exclude_items config handling. To choose > exactly which columns to retrieve (Serge Dikiy) > - XSD max length and enumeration constraint handling (Serge Dikiy & > Alan Boudreault) > - First real support of typename namespace provided in request > (Olivier Courtin) > - Generate PK value using PostgresSQL DEFAULT value if present (Serge > Dikiy) > - Add pkey configuration in layer config. Usefull for instance when > retrieving data from a VIEW. (Serge Dikiy) > - Buffer copy performance improve (Serge Dikiy) > - Rewrite/fix max features handling (Olivier Courtin) > - Extent layer's properties allowed to inherit (Olivier Courtin) > - Several bugfixes as usual (special thanks to Andreas Peri, Serge > Dikiy and Jukka Rahkonen for detailled reports) > > Documentation was also refresh, including the OpenLayers HowTo. > http://ci.mapserver.org/job/docsmaster/lastSuccessfulBuild/artifact/build/html/en/tinyows/index.html#tinyows > > > > Enjoy, > > -- > Olivier > > > _______________________________________________ > 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 groups at sq9mev.info Wed Nov 14 02:33:20 2012 From: groups at sq9mev.info (SQ9MEV) Date: Wed, 14 Nov 2012 11:33:20 +0100 Subject: [mapserver-users] TMS layer via GDAL minidriver, drawing shapeObj.fromWKT() and limiting extent to random size gives distorted image Message-ID: <50A37370.20405@sq9mev.info> Hi everybody. I'm using python mapscript bindings to draw my feature (wkt) on "base layer" - this one is TMS available via GDAL minidriver. What i want to get is custom size image of my feature drawn on the background of "base layer". Mapscript i use is like this: 1. shape=shapeObj.fromWKT(elements.wkt) 2. layer = mapobj.getLayerByName(layername) 3. layer.addFeature(shape) 4. extent=shape.bounds 5. mapobj.setExtent(extent.minx, extent.miny, extent.maxx, extent.maxy) 6. mapobj.draw() Mapfile and minidriver code is here: http://www.olpiny.pl/ump.map http://www.olpiny.pl/frmt_wms_ump_tms.xml This works almost well, map is drawn, but "base layer" is resampled, and due to this image is a little distorted: http://www.olpiny.pl/000000001354.png I was playing with several resampling processing options (you can see it in mapfile), but after rethinking my problem i think i know the reason: I set more or less random extent (line 5), and it will not be multiple size of basemap tiles, and it has to be scaled somehow to my custom image size, so base layer will be resampled almost always. I think i should calculate extent basing on extent fo my feature, and size of my image somehow, to ensure that base layer will not be rescaled. Any ideas how to solve this problem? Thanx in advance guys. -- Bartek Radwan From thomas.bonfort at gmail.com Wed Nov 14 07:03:13 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Nov 2012 16:03:13 +0100 Subject: [mapserver-users] MapServer 6.2 released Message-ID: The MapServer team is pleased to announce the release of MapServer 6.2, along with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/6-2.html . cheers, The MapServer PSC -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Nov 14 07:15:02 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 14 Nov 2012 15:15:02 +0000 Subject: [mapserver-users] [mapserver-dev] MapServer 6.2 released In-Reply-To: References: Message-ID: And on GIS Day no less? nice timing. Fabulous work by all those that contributed code. A special shout out to Thomas for handling the release manager role. Thanks everyone! Steve From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, November 14, 2012 9:03 AM To: MapServer Dev Mailing List; MapserverList OSGEO; osgeo-discuss (discuss at lists.osgeo.org) Subject: [mapserver-dev] MapServer 6.2 released The MapServer team is pleased to announce the release of MapServer 6.2, along with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/6-2.html . cheers, The MapServer PSC -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Wed Nov 14 07:22:06 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 14 Nov 2012 07:22:06 -0800 Subject: [mapserver-users] [mapserver-dev] MapServer 6.2 released In-Reply-To: References: Message-ID: <1E33E66B-C7A4-4F7C-B408-63DB1CF0185A@gmail.com> As my work focuses more and more on the outer envelope of science and data, this reminds me more and more of how much we all owe to the work you guys do at the core. Much gratitude and respect. -- Puneet Kishor Science and Data Policy at Creative Commons On Nov 14, 2012, at 7:15 AM, "Lime, Steve D (DNR)" wrote: > And on GIS Day no less? nice timing. Fabulous work by all those that contributed code. A special shout out to Thomas for handling the release manager role. Thanks everyone! > > Steve > > From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of thomas bonfort > Sent: Wednesday, November 14, 2012 9:03 AM > To: MapServer Dev Mailing List; MapserverList OSGEO; osgeo-discuss (discuss at lists.osgeo.org) > Subject: [mapserver-dev] MapServer 6.2 released > > The MapServer team is pleased to announce the release of MapServer 6.2, along with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0. > > Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/6-2.html . > > cheers, > The MapServer PSC From j.l.h.hartmann at uva.nl Wed Nov 14 07:44:17 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 14 Nov 2012 16:44:17 +0100 Subject: [mapserver-users] [mapserver-dev] MapServer 6.2 released In-Reply-To: References: Message-ID: <50A3BC51.5010304@uva.nl> Hi Steve, what on earth is GIS Day? Congratulations with the new version, almost ten years after MapServer went really public at the first MapServer congres in Minneapolis! Jan On 11/14/2012 04:15 PM, Lime, Steve D (DNR) wrote: > > And on GIS Day no less... nice timing. Fabulous work by all those that > contributed code. A special shout out to Thomas for handling the > release manager role. Thanks everyone! > > Steve > > *From:*mapserver-dev-bounces at lists.osgeo.org > [mailto:mapserver-dev-bounces at lists.osgeo.org] *On Behalf Of *thomas > bonfort > *Sent:* Wednesday, November 14, 2012 9:03 AM > *To:* MapServer Dev Mailing List; MapserverList OSGEO; osgeo-discuss > (discuss at lists.osgeo.org) > *Subject:* [mapserver-dev] MapServer 6.2 released > > The MapServer team is pleased to announce the release of MapServer > 6.2, along with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0. > > Details of the new features, migration instructions, and download > links can be found on the dedicated announcement page at > http://www.mapserver.org/development/announce/6-2.html . > > cheers, > > The MapServer PSC > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From gcpp.kalxas at gmail.com Wed Nov 14 07:50:50 2012 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Wed, 14 Nov 2012 17:50:50 +0200 Subject: [mapserver-users] [mapserver-dev] MapServer 6.2 released In-Reply-To: <50A3BC51.5010304@uva.nl> References: <50A3BC51.5010304@uva.nl> Message-ID: <50A3BDDA.7050708@gmail.com> Hi all, I just updated openSUSE repositories with 6.2.0. I am thinking to create a Mapserver Suite rpm file. Congrats to all for this release! Cheers, Angelos On 11/14/2012 05:44 PM, Jan Hartmann wrote: > Hi Steve, what on earth is GIS Day? > > Congratulations with the new version, almost ten years after MapServer > went really public at the first MapServer congres in Minneapolis! > > Jan > > > On 11/14/2012 04:15 PM, Lime, Steve D (DNR) wrote: >> >> And on GIS Day no less... nice timing. Fabulous work by all those >> that contributed code. A special shout out to Thomas for handling the >> release manager role. Thanks everyone! >> >> Steve >> >> *From:*mapserver-dev-bounces at lists.osgeo.org >> [mailto:mapserver-dev-bounces at lists.osgeo.org] *On Behalf Of *thomas >> bonfort >> *Sent:* Wednesday, November 14, 2012 9:03 AM >> *To:* MapServer Dev Mailing List; MapserverList OSGEO; osgeo-discuss >> (discuss at lists.osgeo.org) >> *Subject:* [mapserver-dev] MapServer 6.2 released >> >> The MapServer team is pleased to announce the release of MapServer >> 6.2, along with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0. >> >> Details of the new features, migration instructions, and download >> links can be found on the dedicated announcement page at >> http://www.mapserver.org/development/announce/6-2.html . >> >> cheers, >> >> The MapServer PSC >> >> >> >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at knowhow-la.de Wed Nov 14 10:20:48 2012 From: info at knowhow-la.de (Helmut Seidel M.A.) Date: Wed, 14 Nov 2012 19:20:48 +0100 Subject: [mapserver-users] PerlMapscript on Windows Message-ID: <50A3E100.5020400@knowhow-la.de> Hello everybody, I've just started on Mapserver again - I normaly use (opensuse 12.2-/ ubuntu 12.04-) Linux and and would like to use perl scripting. On both Linuxes it is no problem to install Perl Mapscript but as far as I've seen MS4W and OSGEO don't come with Perl Mapscript. As my Scripts have to run on Windows I wonder whether there is an easy way to install it or does it mean compiling for Windows? Is there some kind of howto for installing PerlMapscript? Thanks very much From wal3 at mindspring.com Wed Nov 14 09:43:40 2012 From: wal3 at mindspring.com (Worth Lutz) Date: Wed, 14 Nov 2012 12:43:40 -0500 Subject: [mapserver-users] [mapserver-dev] MapServer 6.2 released In-Reply-To: <50A3BC51.5010304@uva.nl> References: <50A3BC51.5010304@uva.nl> Message-ID: <5B2C978652DB4AFD8654A8B75F63156B@worthlaptop> http://www.gisday.com/ And tomorrow will be PostGIS day. :-) Worth _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Wednesday, November 14, 2012 10:44 AM To: Lime, Steve D (DNR) Cc: MapserverList OSGEO Subject: Re: [mapserver-users] [mapserver-dev] MapServer 6.2 released Hi Steve, what on earth is GIS Day? Congratulations with the new version, almost ten years after MapServer went really public at the first MapServer congres in Minneapolis! Jan On 11/14/2012 04:15 PM, Lime, Steve D (DNR) wrote: And on GIS Day no less. nice timing. Fabulous work by all those that contributed code. A special shout out to Thomas for handling the release manager role. Thanks everyone! Steve From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, November 14, 2012 9:03 AM To: MapServer Dev Mailing List; MapserverList OSGEO; osgeo-discuss (discuss at lists.osgeo.org) Subject: [mapserver-dev] MapServer 6.2 released The MapServer team is pleased to announce the release of MapServer 6.2, along with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/6-2.html . cheers, The MapServer PSC _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2793 / Virus Database: 2629/5894 - Release Date: 11/14/12 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Wed Nov 14 12:30:38 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 14 Nov 2012 15:30:38 -0500 Subject: [mapserver-users] SDE 10.x support... In-Reply-To: References: Message-ID: <50A3FF6E.5050804@mapgears.com> Steve, I was looking to use SDE 10 too, have you been able to get it to work? Alan On 12-11-01 03:57 PM, Lime, Steve D (DNR) wrote: > Hi all: Has anyone successfully used the SDE 10.x client libs with > MapServer 6.0+? Compiles ok but I?ve had no luck actually using SDE layers. > > Steve > > *StEVE LIME | *DATA & Applications MANAGER > > MN.IT Services @ MnDNR > > 651-259-5473 (w) *|* 651-297-4946 (f) *|* steve.lime at state.mn.us > > > // // > > > > Information Technology for Minnesota Government *|* mn.gov/oet > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault http://www.mapgears.com/ From Steve.Lime at state.mn.us Wed Nov 14 12:43:58 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 14 Nov 2012 20:43:58 +0000 Subject: [mapserver-users] SDE 10.x support... In-Reply-To: <50A3FF6E.5050804@mapgears.com> References: <50A3FF6E.5050804@mapgears.com> Message-ID: Yes. I'm on a 64-bit Linux box and mapsde.c compiled fine against the 10.0 client libs. Problem was it didn't work until I did two things: - Add "CFLAGS=-DSDE64" to configure call. - Fix most of warnings (all but one) that result in the above change (change long's to ms_int32), see https://github.com/mapserver/mapserver/issues/4521. I was working against 6.0 and it looks like 6.2 will require the same changes. If you're on a 32-bit OS you probably don't need to change anything. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alan Boudreault Sent: Wednesday, November 14, 2012 2:31 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] SDE 10.x support... Steve, I was looking to use SDE 10 too, have you been able to get it to work? Alan On 12-11-01 03:57 PM, Lime, Steve D (DNR) wrote: > Hi all: Has anyone successfully used the SDE 10.x client libs with > MapServer 6.0+? Compiles ok but I've had no luck actually using SDE layers. > > Steve > > *StEVE LIME | *DATA & Applications MANAGER > > MN.IT Services @ MnDNR > > 651-259-5473 (w) *|* 651-297-4946 (f) *|* steve.lime at state.mn.us > > > // // > > > > Information Technology for Minnesota Government *|* mn.gov/oet > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From lfilak at medinaco.org Wed Nov 14 12:34:50 2012 From: lfilak at medinaco.org (lfilak at medinaco.org) Date: Wed, 14 Nov 2012 15:34:50 -0500 Subject: [mapserver-users] PerlMapscript on Windows (Helmut Seidel M.A.) In-Reply-To: References: Message-ID: <20121114203450.A934F4C8FE@webmail.medinaco.org> > Date: Wed, 14 Nov 2012 19:20:48 +0100 > From: "Helmut Seidel M.A." > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] PerlMapscript on Windows > Message-ID: <50A3E100.5020400 at knowhow-la.de> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hello everybody, > > I've just started on Mapserver again - I normaly use (opensuse 12.2-/ > ubuntu 12.04-) Linux and and would like to use perl scripting. On both > Linuxes it is no problem to install Perl Mapscript but as far as I've > seen MS4W and OSGEO don't come with Perl Mapscript. As my Scripts have > to run on Windows I wonder whether there is an easy way to install it or > does it mean compiling for Windows? Is there some kind of howto for > installing PerlMapscript? > > Thanks very much In the source directory mapscript/perl the README file explains the compilation process. I've never tried on Windows however and don't know if it will work. From punk.kish at gmail.com Wed Nov 14 14:01:19 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Wed, 14 Nov 2012 14:01:19 -0800 Subject: [mapserver-users] PerlMapscript on Windows (Helmut Seidel M.A.) In-Reply-To: <20121114203450.A934F4C8FE@webmail.medinaco.org> References: <20121114203450.A934F4C8FE@webmail.medinaco.org> Message-ID: <4076FBB5-70D9-4517-87F9-79B1A9D336C8@gmail.com> On Nov 14, 2012, at 12:34 PM, lfilak at medinaco.org wrote: >> Date: Wed, 14 Nov 2012 19:20:48 +0100 >> From: "Helmut Seidel M.A." >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] PerlMapscript on Windows >> Message-ID: <50A3E100.5020400 at knowhow-la.de> >> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hello everybody, I've just started on Mapserver again - I normaly use (opensuse 12.2-/ ubuntu 12.04-) Linux and and would like to use perl scripting. On both Linuxes it is no problem to install Perl Mapscript but as far as I've seen MS4W and OSGEO don't come with Perl Mapscript. As my Scripts have to run on Windows I wonder whether there is an easy way to install it or does it mean compiling for Windows? Is there some kind of howto for installing PerlMapscript? Thanks very much > > In the source directory mapscript/perl the README file explains the compilation process. I've never tried on Windows however and don't know if it will work. (Hi Lowell). I am pretty sure it won't work as compiling it requires SWIG, and, of course, a compiler. So, someone has to make the module (or dll or whatever it is called on Windows) and provide it. -- Puneet Kishor From woklist at kyngchaos.com Wed Nov 14 19:52:56 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 14 Nov 2012 21:52:56 -0600 Subject: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress? Message-ID: <87A210D4-A0AF-4FFD-AFF5-17B5ED0716B0@kyngchaos.com> It's my understanding that when running PHP-Mapscript with PHP as an Apache DSO, under heavy loads it can randomly hiccup/trip/crash or otherwise not perform correctly. So I've been maintaining an OS X PHP-CGI package to go along with my MapServer package. Is this still a problem? Maybe I missed a fix for this? Or is it being worked on (or not being worked on)? Or is it an unsolvable problem (maybe due to the nature of a DSO)? I'm thinking about simplifying my OS X GIS/carto stack and dropping my PHP-CGI package in favor of the OS X system PHP-DSO (a bit old) or some other better-maintained PHP package for OS X (which will likely be a DSO). ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From t.sufiev at acti.ru Fri Nov 16 03:32:13 2012 From: t.sufiev at acti.ru (=?utf-8?Q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80_=D0=93=D0=B0=D0=BB=D0=B8?= =?utf-8?Q?=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=BE=D0=B2=D0=B8=D1=87=20?= =?utf-8?Q?=D0=A1=D1=83=D1=84=D0=B8=D0=B5=D0=B2?=) Date: Fri, 16 Nov 2012 14:32:13 +0300 Subject: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation In-Reply-To: Message-ID: <20121116113213.453d30aa@newmail.acti.ru> I found the problem (just in case it may be useful for someone): wfs layers in Javascript were using featureNS: "http://www.tinyows.org" while all layers in tinyows.xml used ns_uri="http://www.tinyows.org/" Every symbol matters in deciding whether xml namespaces are the same, so adding trailing slash to Javascript solved my issue. Best regards, Timur Sufiev _____ From: Olivier Courtin [mailto:olivier.courtin at gmail.com] To: mapserver-users at lists.osgeo.org Sent: Wed, 07 Nov 2012 21:24:24 +0300 Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation On Wed, Nov 7, 2012 at 5:13 PM, ????? ????????????? ?????? wrote: Hi Timur, This isn't the first question here about inserting features in TinyOWS, but I haven't found solution to my problem in archives. and this xsd should make tinyows use element '{http://www.tinyows.org}cities' like '{http://www.opengis.net/gml}_Feature' Where am I wrong and what should be changed in my setup? Thanks for your detailled report, first naive question, what about the tinyows.xml config file, and online_resource property ? Next question, what happen, if you bypass schema validation, with: check_schema = "0" (in tinyows element) -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Fri Nov 16 03:35:59 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Fri, 16 Nov 2012 12:35:59 +0100 Subject: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation In-Reply-To: <20121116113213.453d30aa@newmail.acti.ru> References: <20121116113213.453d30aa@newmail.acti.ru> Message-ID: On Fri, Nov 16, 2012 at 12:32 PM, ????? ????????????? ?????? < t.sufiev at acti.ru> wrote: > ** > I found the problem (just in case it may be useful for someone): wfs > layers in Javascript were using > > featureNS: "http://www.tinyows.org" > > while all layers in tinyows.xml used > > ns_uri="http://www.tinyows.org/" > > Every symbol matters in deciding whether xml namespaces are the same, so > adding trailing slash to Javascript solved my issue. > Thanks Timur to post, for the record, your own answer ! And yes as it's an URI (and not a URL) every symbol matters... Cheers, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at hydrotec.de Fri Nov 16 03:28:06 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Fri, 16 Nov 2012 12:28:06 +0100 Subject: [mapserver-users] Mapserver 6.2 with proj 4.7 Message-ID: Hi I tried to compile Mapserver 6.2 with proj 4.7. I'm having a problem with a function called "pj_clear_initcache" As far as I can see, this function was introduced in proj 4.8 and is not part of proj 4.7. In Mapserver 6.2 maputil.c has code # if PJ_VERSION >= 470 pj_clear_initcache(); # endif ... #endif where Mapserver 6.0 used. # if PJ_VERSION >= 480 pj_clear_initcache(); # endif ... #endif I changed the "# if PJ_VERSION" back to 6.0... Benedikt proj_api in 4.7: http://svn.osgeo.org/metacrs/proj/branches/4.7/proj/src/proj_api.h proj_api in 4.8: http://svn.osgeo.org/metacrs/proj/branches/4.8/proj/src/proj_api.h From alasarr at gmail.com Fri Nov 16 04:11:57 2012 From: alasarr at gmail.com (Alberto Asuero) Date: Fri, 16 Nov 2012 13:11:57 +0100 Subject: [mapserver-users] Compile mapserver with custom external libs Message-ID: I've compiled mapserver 5.6.7 with a custom version of geos, postgis, gdal and proj4. Here is the configure command: *./configure --prefix=/usr/local/gis/mapserver-5.6.7 --with-pdf --with-freetype --with-agg --with-eppl --with-proj=/usr/local/gis/proj-4.7.0 --with-threads --with-sde --with-geos=/usr/local/gis/geos-3.2.2/bin/geos-config --with-ogr=/usr/local/gis/gdal-1.9.2/bin/gdal-config --with-gdal=/usr/local/gis/gdal-1.9.0/bin/gdal-config --with-tiff --with-postgis=/usr/local/gis/postgresql-9.1.2/bin/pg_config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-fribidi-config --with-gd * Everything works fine but when I do: "*ldd mapserv*" it says: ... *libproj.so.0 => /usr/lib/libproj.so.0 (0xb7504000)* *libgdal.so.1 => not found* *libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0xb74ec000)* *libpq.so.5 => /usr/lib/libpq.so.5* ... Why these libraries don't use the path specified in the configure command. it'd be make senses to me if ldd output looks like: ... *libproj.so.0 => /usr/local/gis/proj-4.7.0/lib/libproj.so.0 (0xb7504000)* *libgdal.so.1 => not found* *libgeos_c.so.1 => /**usr/local/gis/geos-3.2.2**/lib/libgeos_c.so.1 (0xb74ec000)* *libpq.so.5 => /usr/lib/libpq.so.5* ... What's wrong here? Am I forced to do symbol links or set the custom libraries in LD_PATH? Thanks! Alberto Asuero Ingeniero Inform?tico alberto.asuero at gstgis.com 654 190 888 Rodio 35 41007 Sevilla Spain T +34 954 437 818 F +34 955 110 441 Visita nuestra web *www.gstgis.com* -------------- next part -------------- An HTML attachment was scrubbed... URL: From alasarr at gmail.com Fri Nov 16 04:29:56 2012 From: alasarr at gmail.com (Alberto Asuero) Date: Fri, 16 Nov 2012 13:29:56 +0100 Subject: [mapserver-users] Compile mapserver with custom external libs In-Reply-To: References: Message-ID: What I've done is a wrapper with an export like that before: export LD_LIBRARY_PATH=/export LD_LIBRARY_PATH=/usr/local/gis/postgresql-9.1.2/lib:/usr/local/gis/geos-3.3.2/lib:/usr/local/gis/proj-4.7.0/lib:/usr/local/gis/gdal-1.9.0/lib/ How can I tell mapserver to do it automatically in mapserv executable itself? Is that possible? Alberto Asuero Ingeniero Inform?tico alberto.asuero at gstgis.com 654 190 888 Rodio 35 41007 Sevilla Spain T +34 954 437 818 F +34 955 110 441 Visita nuestra web *www.gstgis.com* On Fri, Nov 16, 2012 at 1:11 PM, Alberto Asuero wrote: > I've compiled mapserver 5.6.7 with a custom version of geos, postgis, > gdal and proj4. > > Here is the configure command: > > *./configure --prefix=/usr/local/gis/mapserver-5.6.7 > --with-pdf --with-freetype --with-agg > --with-eppl --with-proj=/usr/local/gis/proj-4.7.0 > --with-threads --with-sde > --with-geos=/usr/local/gis/geos-3.2.2/bin/geos-config > --with-ogr=/usr/local/gis/gdal-1.9.2/bin/gdal-config > --with-gdal=/usr/local/gis/gdal-1.9.0/bin/gdal-config --with-tiff > --with-postgis=/usr/local/gis/postgresql-9.1.2/bin/pg_config > --with-wfs --with-wcs --with-wmsclient > --with-wfsclient --with-sos --with-fribidi-config --with-gd > * > > Everything works fine but when I do: > > "*ldd mapserv*" it says: > ... > *libproj.so.0 => /usr/lib/libproj.so.0 (0xb7504000)* > *libgdal.so.1 => not found* > *libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0xb74ec000)* > *libpq.so.5 => /usr/lib/libpq.so.5* > ... > > Why these libraries don't use the path specified in the configure command. > it'd be make senses to me if ldd output looks like: > > ... > *libproj.so.0 => /usr/local/gis/proj-4.7.0/lib/libproj.so.0 (0xb7504000)* > *libgdal.so.1 => not found* > *libgeos_c.so.1 => /**usr/local/gis/geos-3.2.2**/lib/libgeos_c.so.1 > (0xb74ec000)* > *libpq.so.5 => /usr/lib/libpq.so.5* > ... > > What's wrong here? > > Am I forced to do symbol links or set the custom libraries in LD_PATH? > > > Thanks! > Alberto Asuero > Ingeniero Inform?tico > alberto.asuero at gstgis.com > 654 190 888 > Rodio 35 > 41007 Sevilla > Spain > > T +34 954 437 818 > F +34 955 110 441 > Visita nuestra web > *www.gstgis.com* > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at michiganwxsystem.com Fri Nov 16 04:42:37 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Fri, 16 Nov 2012 07:42:37 -0500 Subject: [mapserver-users] Compile mapserver with custom external libs In-Reply-To: References: Message-ID: <50A634BD.5050508@michiganwxsystem.com> I may be mistaken here, But when you compiled geos, gdal,and pgsql you specified the install path of the program. the libraries will go where libraries are suppose to go eg '/usr/lib' '/usr/local/lib' etc... so other programs can find them.. -Jeff Lake MichiganWxSystem.com AllisonHouse.com TheWeatherCenter.net GRLevelXStuff.com On 11/16/2012 7:29, Alberto Asuero wrote: > What I've done is a wrapper with an export like that before: > > export LD_LIBRARY_PATH=/export > LD_LIBRARY_PATH=/usr/local/gis/postgresql-9.1.2/lib:/usr/local/gis/geos-3.3.2/lib:/usr/local/gis/proj-4.7.0/lib:/usr/local/gis/gdal-1.9.0/lib/ > > How can I tell mapserver to do it automatically in mapserv executable > itself? Is that possible? > > > > > > Alberto Asuero > Ingeniero Inform?tico > alberto.asuero at gstgis.com > 654 190 888 > Rodio 35 > 41007 Sevilla > Spain > > T +34 954 437 818 > F +34 955 110 441 > Visita nuestra web > *www.gstgis.com* > > > > > On Fri, Nov 16, 2012 at 1:11 PM, Alberto Asuero > wrote: > > I've compiled mapserver 5.6.7 with a custom version of geos, > postgis, gdal and proj4. > > Here is the configure command: > > /./configure --prefix=/usr/local/gis/mapserver-5.6.7 --with-pdf > --with-freetype --with-agg --with-eppl > --with-proj=/usr/local/gis/proj-4.7.0 --with-threads > --with-sde --with-geos=/usr/local/gis/geos-3.2.2/bin/geos-config > --with-ogr=/usr/local/gis/gdal-1.9.2/bin/gdal-config > --with-gdal=/usr/local/gis/gdal-1.9.0/bin/gdal-config > --with-tiff > --with-postgis=/usr/local/gis/postgresql-9.1.2/bin/pg_config > --with-wfs --with-wcs --with-wmsclient > --with-wfsclient --with-sos --with-fribidi-config > --with-gd/ > > Everything works fine but when I do: > > "/ldd mapserv/" it says: > ... > /libproj.so.0 => /usr/lib/libproj.so.0 (0xb7504000)/ > /libgdal.so.1 => not found/ > /libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0xb74ec000)/ > /libpq.so.5 => /usr/lib/libpq.so.5/ > ... > > Why these libraries don't use the path specified in the configure > command. it'd be make senses to me if ldd output looks like: > > ... > /libproj.so.0 => /usr/local/gis/proj-4.7.0/lib/libproj.so.0 > (0xb7504000)/ > /libgdal.so.1 => not found/ > /libgeos_c.so.1 => > ///usr/local/gis/geos-3.2.2///lib/libgeos_c.so.1 (0xb74ec000)/ > /libpq.so.5 => /usr/lib/libpq.so.5/ > ... > > What's wrong here? > > Am I forced to do symbol links or set the custom libraries in LD_PATH? > > > Thanks! > Alberto Asuero > Ingeniero Inform?tico > alberto.asuero at gstgis.com > 654 190 888 > Rodio 35 > 41007 Sevilla > Spain > > T +34 954 437 818 > F +34 955 110 441 > Visita nuestra web > *www.gstgis.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 thomas.bonfort at gmail.com Fri Nov 16 06:18:49 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 16 Nov 2012 15:18:49 +0100 Subject: [mapserver-users] Mapserver 6.2 with proj 4.7 In-Reply-To: References: Message-ID: Benedikt, please open an issue for this. thanks, thomas On Fri, Nov 16, 2012 at 12:28 PM, wrote: > > Hi > > I tried to compile Mapserver 6.2 with proj 4.7. I'm having a problem with a > function called "pj_clear_initcache" > As far as I can see, this function was introduced in proj 4.8 and is not > part of proj 4.7. > > In Mapserver 6.2 maputil.c has code > # if PJ_VERSION >= 470 > pj_clear_initcache(); > # endif > ... > #endif > > where Mapserver 6.0 used. > # if PJ_VERSION >= 480 > pj_clear_initcache(); > # endif > ... > #endif > > I changed the "# if PJ_VERSION" back to 6.0... > > Benedikt > > proj_api in 4.7: > http://svn.osgeo.org/metacrs/proj/branches/4.7/proj/src/proj_api.h > proj_api in 4.8: > http://svn.osgeo.org/metacrs/proj/branches/4.8/proj/src/proj_api.h > > > _______________________________________________ > 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 gaston.lucerom at gmail.com Fri Nov 16 06:56:55 2012 From: gaston.lucerom at gmail.com (Gaston Lucero) Date: Fri, 16 Nov 2012 11:56:55 -0300 Subject: [mapserver-users] Mapscript java 6.2 Message-ID: I get this error root at Gaston:/home/gaston/mapserver-6.2.0/mapscript/java# make install /bin/bash ../../libtool --mode=install /usr/bin/install -c libjavamapscript.la /usr/local/lib libtool: install: warning: relinking `libjavamapscript.la' libtool: install: (cd /home/gaston/mapserver-6.2.0/mapscript/java; /bin/bash /home/gaston/mapserver-6.2.0/libtool --tag CXX --mode=relink g++ -rpath /usr/local/lib -module -release 6.2.0 -o libjavamapscript.lajavamapscript_wrap.lo ../../ libmapserver.la ) libtool: relink: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.7/crtbeginS.o .libs/javamapscript_wrap.o -L/usr/local/lib -lmapserver -L/usr/lib -lproj -ljpeg -lpng -L/usr/lib/x86_64-linux-gnu -lgif -lgdal -lpq -lcurl -lgeos_c -lpthread -lxml2 -ldl -lfreetype -lz -lcairo -lpng12 -L/usr/lib/gcc/x86_64-linux-gnu/4.7 -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crtn.o -Wl,-soname -Wl,libjavamapscript-6.2.0.so -o .libs/ libjavamapscript-6.2.0.so /usr/bin/ld: cannot find -lmapserver collect2: error: ld returned 1 exit status libtool: install: error: relink `libjavamapscript.la' with the above command before installing it make: *** [install] Error 1 Any idea? -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Fri Nov 16 07:02:48 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 16 Nov 2012 16:02:48 +0100 Subject: [mapserver-users] Mapscript java 6.2 In-Reply-To: References: Message-ID: Did you run make install after make in the mapserver top-level directory? On Fri, Nov 16, 2012 at 3:56 PM, Gaston Lucero wrote: > I get this error > > root at Gaston:/home/gaston/mapserver-6.2.0/mapscript/java# make install > /bin/bash ../../libtool --mode=install /usr/bin/install -c > libjavamapscript.la /usr/local/lib > libtool: install: warning: relinking `libjavamapscript.la' > libtool: install: (cd /home/gaston/mapserver-6.2.0/mapscript/java; > /bin/bash /home/gaston/mapserver-6.2.0/libtool --tag CXX --mode=relink g++ > -rpath /usr/local/lib -module -release 6.2.0 -o libjavamapscript.lajavamapscript_wrap.lo ../../ > libmapserver.la ) > libtool: relink: g++ -fPIC -DPIC -shared -nostdlib > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crti.o > /usr/lib/gcc/x86_64-linux-gnu/4.7/crtbeginS.o .libs/javamapscript_wrap.o > -L/usr/local/lib -lmapserver -L/usr/lib -lproj -ljpeg -lpng > -L/usr/lib/x86_64-linux-gnu -lgif -lgdal -lpq -lcurl -lgeos_c -lpthread > -lxml2 -ldl -lfreetype -lz -lcairo -lpng12 > -L/usr/lib/gcc/x86_64-linux-gnu/4.7 > -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu > -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu > -L/lib/../lib -L/usr/lib/../lib > -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lstdc++ -lm -lc -lgcc_s > /usr/lib/gcc/x86_64-linux-gnu/4.7/crtendS.o > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crtn.o > -Wl,-soname -Wl,libjavamapscript-6.2.0.so -o .libs/ > libjavamapscript-6.2.0.so > /usr/bin/ld: cannot find -lmapserver > collect2: error: ld returned 1 exit status > libtool: install: error: relink `libjavamapscript.la' with the above > command before installing it > make: *** [install] Error 1 > > > Any idea? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Fri Nov 16 17:23:47 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 16 Nov 2012 20:23:47 -0500 Subject: [mapserver-users] WMS layer image format parameters Message-ID: Folks, I can only see the image type in the WMS request, say png or jpeg. Can we configure the compression level of the images in the wms server map file? I cannot see any mention of how to do this anywhere. Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdavies at sdc.com.au Fri Nov 16 20:55:35 2012 From: sdavies at sdc.com.au (Stephen Davies) Date: Sat, 17 Nov 2012 15:25:35 +1030 Subject: [mapserver-users] Mapserver 6.2.0 undefined reference to `__sync_sub_and_fetch_4' Message-ID: <201211171525.36007.sdavies@sdc.com.au> I have found the discussion of this issue from mid-October but the source code that I downloaded from mapserver.org yesterday still gives the error. Where can I get a version that does not give this error? I am trying to build on Linux with GCC 4.4.3. Cheers and thanks, Stephen -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From Jukka.Rahkonen at mmmtike.fi Fri Nov 16 23:55:21 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 17 Nov 2012 07:55:21 +0000 Subject: [mapserver-users] WMS layer image format parameters In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A637ADBBA@suutari.haapa.mmm.fi> Hi, You can define your own outputformat for AGG/JPEG and use formatoption "quality" http://www.mapserver.org/mapfile/outputformat.html I do not know if variable substitution works in this place so that users could add an extra parameter to the request as &QUALITY=100 but you can have a try. At least you can make new outputformats with different names, for example "image/jpegHQ" for high quality. -Jukka Rahkonen- ________________________________ Ian Walberg wrote: > Folks, > I can only see the image type in the WMS request, say png or jpeg. > Can we configure the compression level of the images in the wms server map file? > I cannot see any mention of how to do this anywhere. > Thanks Ian From ian.walberg at airborne.aero Sat Nov 17 08:21:24 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 17 Nov 2012 11:21:24 -0500 Subject: [mapserver-users] WMS layer image format parameters Message-ID: Jukka, Thanks, so the WMS request does use the normal output format definition. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, November 16, 2012 11:55 PM To: mapserver Subject: Re: [mapserver-users] WMS layer image format parameters Hi, You can define your own outputformat for AGG/JPEG and use formatoption "quality" http://www.mapserver.org/mapfile/outputformat.html I do not know if variable substitution works in this place so that users could add an extra parameter to the request as &QUALITY=100 but you can have a try. At least you can make new outputformats with different names, for example "image/jpegHQ" for high quality. -Jukka Rahkonen- ________________________________ Ian Walberg wrote: > Folks, > I can only see the image type in the WMS request, say png or jpeg. > Can we configure the compression level of the images in the wms server map file? > I cannot see any mention of how to do this anywhere. > Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From t.sufiev at acti.ru Mon Nov 19 04:35:59 2012 From: t.sufiev at acti.ru (=?utf-8?Q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80_=D0=93=D0=B0=D0=BB=D0=B8?= =?utf-8?Q?=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=BE=D0=B2=D0=B8=D1=87=20?= =?utf-8?Q?=D0=A1=D1=83=D1=84=D0=B8=D0=B5=D0=B2?=) Date: Mon, 19 Nov 2012 15:35:59 +0300 Subject: [mapserver-users] =?iso-8859-1?q?=5BTinyOWS=5D_Inserting_feature_?= =?iso-8859-1?q?and_XML_schema=09validation?= In-Reply-To: Message-ID: <20121119123559.2dea88f5@newmail.acti.ru> Hello, Olivier! XML validation is such issue-rich subject, so I have another question considering it :). Recent TinyOWS commits (from 1st Nov till 13th, I don't know which one exactly is responsible) introduced some changes to feature ids naming, now I have the following error on features update/delete from OpenLayers: [Mon Nov 19 16:03:30 2012] [ERROR] Element '{http://www.opengis.net/ogc}FeatureId', attribute 'fid': 'http://www.tinyows.org/:cities.719' is not a valid value of the atomic type 'xs:ID'. Is ':.' a new feature-id by design or something went wrong? Best regards, Timur Sufiev _____ From: Olivier Courtin [mailto:olivier.courtin at gmail.com] To: mapserver-users at lists.osgeo.org Sent: Fri, 16 Nov 2012 14:35:59 +0300 Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation On Fri, Nov 16, 2012 at 12:32 PM, ????? ????????????? ?????? wrote: I found the problem (just in case it may be useful for someone): wfs layers in Javascript were using featureNS: "http://www.tinyows.org" while all layers in tinyows.xml used ns_uri="http://www.tinyows.org/" Every symbol matters in deciding whether xml namespaces are the same, so adding trailing slash to Javascript solved my issue. Thanks Timur to post, for the record, your own answer ! And yes as it's an URI (and not a URL) every symbol matters... Cheers, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Mon Nov 19 04:48:20 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Mon, 19 Nov 2012 13:48:20 +0100 Subject: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation In-Reply-To: References: <20121119123559.2dea88f5@newmail.acti.ru> Message-ID: Hi Timur, XML validation is such issue-rich subject, so I have another question > considering it :). > You noticed also this one ^^ > Recent TinyOWS commits (from 1st Nov till 13th, I don't know which one > exactly is responsible) introduced some changes to feature ids naming, now > I have the following error on features update/delete from OpenLayers: > #19 introduced that namespaces are also to be checked from Typename parameter. (prior (wrong) behaviour was just to ignore namespace prefix) > [Mon Nov 19 16:03:30 2012] [ERROR] Element '{ > http://www.opengis.net/ogc}FeatureId', attribute 'fid': ' > http://www.tinyows.org/:cities.719' is not a valid value of the atomic > type 'xs:ID'. > > Is ':.' a new feature-id by design > or something went wrong? > Should be only . (as ever) Could you confirm that you are using current trunk version or 1.1.0 ? -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.sufiev at acti.ru Mon Nov 19 05:33:36 2012 From: t.sufiev at acti.ru (=?utf-8?Q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80_=D0=93=D0=B0=D0=BB=D0=B8?= =?utf-8?Q?=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=BE=D0=B2=D0=B8=D1=87=20?= =?utf-8?Q?=D0=A1=D1=83=D1=84=D0=B8=D0=B5=D0=B2?=) Date: Mon, 19 Nov 2012 16:33:36 +0300 Subject: [mapserver-users] =?iso-8859-1?q?=5BTinyOWS=5D_Inserting_feature_?= =?iso-8859-1?q?and_XML_schema=09validation?= In-Reply-To: Message-ID: <20121119133336.0c0db0b9@newmail.acti.ru> Yes, it is 1.1.0. The head commit I'm building on is commit 4e6220b43ffd33fb649afc9c954046e7bcbe185d Author: Olivier Courtin Date: Wed Nov 14 01:07:34 2012 +0100 update NEWS since previous rc1 Best regards, Timur Sufiev _____ From: Olivier Courtin [mailto:olivier.courtin at gmail.com] To: mapserver-users at lists.osgeo.org Sent: Mon, 19 Nov 2012 15:48:20 +0300 Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation Hi Timur, XML validation is such issue-rich subject, so I have another question considering it :). You noticed also this one ^^ Recent TinyOWS commits (from 1st Nov till 13th, I don't know which one exactly is responsible) introduced some changes to feature ids naming, now I have the following error on features update/delete from OpenLayers: #19 introduced that namespaces are also to be checked from Typename parameter. (prior (wrong) behaviour was just to ignore namespace prefix) [Mon Nov 19 16:03:30 2012] [ERROR] Element '{http://www.opengis.net/ogc}FeatureId', attribute 'fid': 'http://www.tinyows.org/:cities.719' is not a valid value of the atomic type 'xs:ID'. Is ':.' a new feature-id by design or something went wrong? Should be only . (as ever) Could you confirm that you are using current trunk version or 1.1.0 ? -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.sufiev at acti.ru Mon Nov 19 05:46:50 2012 From: t.sufiev at acti.ru (=?utf-8?Q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80_=D0=93=D0=B0=D0=BB=D0=B8?= =?utf-8?Q?=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=BE=D0=B2=D0=B8=D1=87=20?= =?utf-8?Q?=D0=A1=D1=83=D1=84=D0=B8=D0=B5=D0=B2?=) Date: Mon, 19 Nov 2012 16:46:50 +0300 Subject: [mapserver-users] =?iso-8859-1?q?=5BTinyOWS=5D_Inserting_feature_?= =?iso-8859-1?q?and_XML_schema=09validation?= In-Reply-To: Message-ID: <20121119134650.c890ba7a@newmail.acti.ru> Olivier, I got the point: this is exactly the same fragment I've committed on Nov 01, string src/wfs_get_feature.c:825: buffer_copy(id_name, ll->value); Previously (before commits from #19) ll->value contained layer's name, and now it contains :. Should return from : to somehow... Best regards, Timur Sufiev _____ From: Olivier Courtin [mailto:olivier.courtin at gmail.com] To: mapserver-users at lists.osgeo.org Sent: Mon, 19 Nov 2012 15:48:20 +0300 Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation Hi Timur, XML validation is such issue-rich subject, so I have another question considering it :). You noticed also this one ^^ Recent TinyOWS commits (from 1st Nov till 13th, I don't know which one exactly is responsible) introduced some changes to feature ids naming, now I have the following error on features update/delete from OpenLayers: #19 introduced that namespaces are also to be checked from Typename parameter. (prior (wrong) behaviour was just to ignore namespace prefix) [Mon Nov 19 16:03:30 2012] [ERROR] Element '{http://www.opengis.net/ogc}FeatureId', attribute 'fid': 'http://www.tinyows.org/:cities.719' is not a valid value of the atomic type 'xs:ID'. Is ':.' a new feature-id by design or something went wrong? Should be only . (as ever) Could you confirm that you are using current trunk version or 1.1.0 ? -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Nov 19 06:45:54 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 19 Nov 2012 09:45:54 -0500 Subject: [mapserver-users] Setting extent to map image file extent Message-ID: Folks, Is there a way of mapserver reading the extent of a single map image file and then using that as the overall extent to render other layers? Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Nov 19 06:47:19 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 19 Nov 2012 09:47:19 -0500 Subject: [mapserver-users] [mapserver-dev] WMS layers - using port other than 80 In-Reply-To: <5097EAA0.8040809@swoodbridge.com> References: <5097EAA0.8040809@swoodbridge.com> Message-ID: Steve, We finally tested this last week and unsurprisingly it was our error and everything works fine. Thanks Ian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 05, 2012 8:35 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Yes, it works fine. http://imaptools.com:8080/demo/tiger2011.html?zoom=2&lat=40.11169&lon=-9 5.18555&layers=B0 -Steve W On 11/5/2012 10:51 AM, Ian Walberg wrote: > Folks, > > Can anyone confirm that a WMS layer can use a port other than 80? > > From some testing we did last week it appeared that they query > capabilities could use any port but the actual requests needed to be > on port 80. > > Does this make sense? We will test further today to confirm. > > Thanks > > Ian > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From leeb at linkline.com Mon Nov 19 06:56:51 2012 From: leeb at linkline.com (Lee Breisacher) Date: Mon, 19 Nov 2012 06:56:51 -0800 Subject: [mapserver-users] online readonly database of street map info Message-ID: <50AA48B3.3030703@linkline.com> Hi. I apologize if this is not the right place to ask this kind of question, but I wasn't sure where exactly is the right place. Maybe you can point me in the right direction. I want to do some simple queries of United States street map info, so I'm wanting to find an online (readonly) database. I was hoping there's a JDBC or ODBC connection string I can use, so I don't have to setup my own database, download the data (from, say, www.census.gov), etc. Does such a thing exist? Thanks, Lee From ian.walberg at airborne.aero Mon Nov 19 12:39:07 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 19 Nov 2012 15:39:07 -0500 Subject: [mapserver-users] [mapserver-dev] WMS layers - using port other than 80 In-Reply-To: References: <5097EAA0.8040809@swoodbridge.com> Message-ID: It does seem however that QGIS does not like the wms layers to be on any port other than 80 which is where we are confused. Ian -----Original Message----- From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Monday, November 19, 2012 6:47 AM To: Stephen Woodbridge Cc: mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Steve, We finally tested this last week and unsurprisingly it was our error and everything works fine. Thanks Ian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 05, 2012 8:35 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Yes, it works fine. http://imaptools.com:8080/demo/tiger2011.html?zoom=2&lat=40.11169&lon=-9 5.18555&layers=B0 -Steve W On 11/5/2012 10:51 AM, Ian Walberg wrote: > Folks, > > Can anyone confirm that a WMS layer can use a port other than 80? > > From some testing we did last week it appeared that they query > capabilities could use any port but the actual requests needed to be > on port 80. > > Does this make sense? We will test further today to confirm. > > Thanks > > Ian > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev From Jukka.Rahkonen at mmmtike.fi Mon Nov 19 14:03:43 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 19 Nov 2012 22:03:43 +0000 Subject: [mapserver-users] [mapserver-dev] WMS layers - using port other than 80 In-Reply-To: References: <5097EAA0.8040809@swoodbridge.com> , Message-ID: <84446DEF76453C439E9E97E438E13A637BBFBE@suutari.haapa.mmm.fi> Hi, I had a try with QGIS dev. and default Geoserver installation running on localhost:8080. No trouble at all with WMS. One thing I would check is if your Mapserver is sending correct onlineresource for including the correct port with the GetCapabilities. You can override the announced GetMap url in the QGIS WMS dialogue so that it will use the same URL as used for making the connection with QGIS but that is not the default. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Ian Walberg [ian.walberg at airborne.aero] puolesta L?hetetty: 19. marraskuuta 2012 22:39 Vastaanottaja: Ian Walberg; Stephen Woodbridge Kopio: mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] [mapserver-dev] WMS layers - using port other than 80 It does seem however that QGIS does not like the wms layers to be on any port other than 80 which is where we are confused. Ian -----Original Message----- From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Monday, November 19, 2012 6:47 AM To: Stephen Woodbridge Cc: mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Steve, We finally tested this last week and unsurprisingly it was our error and everything works fine. Thanks Ian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 05, 2012 8:35 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Yes, it works fine. http://imaptools.com:8080/demo/tiger2011.html?zoom=2&lat=40.11169&lon=-9 5.18555&layers=B0 -Steve W On 11/5/2012 10:51 AM, Ian Walberg wrote: > Folks, > > Can anyone confirm that a WMS layer can use a port other than 80? > > From some testing we did last week it appeared that they query > capabilities could use any port but the actual requests needed to be > on port 80. > > Does this make sense? We will test further today to confirm. > > Thanks > > Ian > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From olivier.courtin at gmail.com Tue Nov 20 04:46:05 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Tue, 20 Nov 2012 13:46:05 +0100 Subject: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation In-Reply-To: <20121119134650.c890ba7a@newmail.acti.ru> References: <20121119134650.c890ba7a@newmail.acti.ru> Message-ID: On Mon, Nov 19, 2012 at 2:46 PM, ????? ????????????? ?????? < t.sufiev at acti.ru> wrote: Timur, ** > I got the point: this is exactly the same fragment I've committed on Nov > 01, string src/wfs_get_feature.c:825: > buffer_copy(id_name, ll->value); > Previously (before commits from #19) ll->value contained layer's name, and > now it contains :. Should return from > : to somehow... > Thanks for the report and your code patch provided throught GitHub (and commited) For the record, this issue is relevant for GeoJSON id (GML one is safe) -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Tue Nov 20 09:38:14 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 20 Nov 2012 12:38:14 -0500 Subject: [mapserver-users] [mapserver-dev] WMS layers - using port otherthan 80 Message-ID: Jukka, The problem does appear to be that the GetCapabilitiesUrl is correct and the GetMapUrl and the GetFeatureInfoUrl values have the port set twice. GetCapabilitiesUrl http://192.168.2.160:16001/cgi-bin ...... GetMapUrl http://192.168.2.160:16001:16001/cgi-bin ..... GetFeatureInfoUrl http://192.168.2.160:16001:16001/cgi-bin ... Where do I correct this? Not sure if this is a mapserver wms setup question or a QGIS user question. Thanks Ian -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Monday, November 19, 2012 2:04 PM To: Ian Walberg Cc: mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org Subject: VS: [mapserver-users] [mapserver-dev] WMS layers - using port otherthan 80 Hi, I had a try with QGIS dev. and default Geoserver installation running on localhost:8080. No trouble at all with WMS. One thing I would check is if your Mapserver is sending correct onlineresource for including the correct port with the GetCapabilities. You can override the announced GetMap url in the QGIS WMS dialogue so that it will use the same URL as used for making the connection with QGIS but that is not the default. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Ian Walberg [ian.walberg at airborne.aero] puolesta L?hetetty: 19. marraskuuta 2012 22:39 Vastaanottaja: Ian Walberg; Stephen Woodbridge Kopio: mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] [mapserver-dev] WMS layers - using port other than 80 It does seem however that QGIS does not like the wms layers to be on any port other than 80 which is where we are confused. Ian -----Original Message----- From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Monday, November 19, 2012 6:47 AM To: Stephen Woodbridge Cc: mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Steve, We finally tested this last week and unsurprisingly it was our error and everything works fine. Thanks Ian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 05, 2012 8:35 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-dev] WMS layers - using port other than 80 Yes, it works fine. http://imaptools.com:8080/demo/tiger2011.html?zoom=2&lat=40.11169&lon=-9 5.18555&layers=B0 -Steve W On 11/5/2012 10:51 AM, Ian Walberg wrote: > Folks, > > Can anyone confirm that a WMS layer can use a port other than 80? > > From some testing we did last week it appeared that they query > capabilities could use any port but the actual requests needed to be > on port 80. > > Does this make sense? We will test further today to confirm. > > Thanks > > Ian > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From armin.burger at gmx.net Tue Nov 20 10:37:51 2012 From: armin.burger at gmx.net (Armin Burger) Date: Tue, 20 Nov 2012 19:37:51 +0100 Subject: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress? In-Reply-To: <87A210D4-A0AF-4FFD-AFF5-17B5ED0716B0@kyngchaos.com> References: <87A210D4-A0AF-4FFD-AFF5-17B5ED0716B0@kyngchaos.com> Message-ID: <50ABCDFF.6010903@gmx.net> William I cannot say anything for Mac OS in this respect. But at least for Linux running Apache in the classical pre-fork MPM I did not experience problems with PHP-MapScript running as an Apache DSO. Also some stress tests with benchmarking using multiple WMS requests with on MapScript OWS as server backend did not cause problems. I sometimes noticed some irregular, strange, and difficult to reproduce problems with MS 6.0 and PHP Mapscript (Apache or CGI segfaults), but that was independent of PHP with Apache DSO or as CGI, and this never ever happened with MS 5.x. armin On 15/11/2012 04:52, William Kyngesburye wrote: > It's my understanding that when running PHP-Mapscript with PHP as an Apache DSO, under heavy loads it can randomly hiccup/trip/crash or otherwise not perform correctly. So I've been maintaining an OS X PHP-CGI package to go along with my MapServer package. > > Is this still a problem? Maybe I missed a fix for this? Or is it being worked on (or not being worked on)? Or is it an unsolvable problem (maybe due to the nature of a DSO)? > > I'm thinking about simplifying my OS X GIS/carto stack and dropping my PHP-CGI package in favor of the OS X system PHP-DSO (a bit old) or some other better-maintained PHP package for OS X (which will likely be a DSO). > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Tue Nov 20 12:45:12 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 20 Nov 2012 15:45:12 -0500 Subject: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress? In-Reply-To: <50ABCDFF.6010903@gmx.net> References: <87A210D4-A0AF-4FFD-AFF5-17B5ED0716B0@kyngchaos.com> <50ABCDFF.6010903@gmx.net> Message-ID: <50ABEBD8.6070001@mapgears.com> William, As Armin wrote, it seems that using PHP as an Apache DSO with the pre-fork MPM would be the way to go. I don't remember seeing reports of issues with that combination in quite a while (I mean several years, so much that we had forgotten about those issues from the old days). Daniel On 12-11-20 1:37 PM, Armin Burger wrote: > William > > I cannot say anything for Mac OS in this respect. But at least for Linux > running Apache in the classical pre-fork MPM I did not experience > problems with PHP-MapScript running as an Apache DSO. Also some stress > tests with benchmarking using multiple WMS requests with on MapScript > OWS as server backend did not cause problems. > > I sometimes noticed some irregular, strange, and difficult to reproduce > problems with MS 6.0 and PHP Mapscript (Apache or CGI segfaults), but > that was independent of PHP with Apache DSO or as CGI, and this never > ever happened with MS 5.x. > > armin > > > > On 15/11/2012 04:52, William Kyngesburye wrote: >> It's my understanding that when running PHP-Mapscript with PHP as an >> Apache DSO, under heavy loads it can randomly hiccup/trip/crash or >> otherwise not perform correctly. So I've been maintaining an OS X >> PHP-CGI package to go along with my MapServer package. >> >> Is this still a problem? Maybe I missed a fix for this? Or is it >> being worked on (or not being worked on)? Or is it an unsolvable >> problem (maybe due to the nature of a DSO)? >> >> I'm thinking about simplifying my OS X GIS/carto stack and dropping my >> PHP-CGI package in favor of the OS X system PHP-DSO (a bit old) or >> some other better-maintained PHP package for OS X (which will likely >> be a DSO). >> >> ----- >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "Time is an illusion - lunchtime doubly so." >> >> - Ford Prefect >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From woklist at kyngchaos.com Tue Nov 20 17:05:51 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 20 Nov 2012 19:05:51 -0600 Subject: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress? In-Reply-To: <76068A9D-FA13-408A-AF11-115FD5B97A4A@kyngchaos.com> References: <87A210D4-A0AF-4FFD-AFF5-17B5ED0716B0@kyngchaos.com> <50ABCDFF.6010903@gmx.net> <50ABEBD8.6070001@mapgears.com> <76068A9D-FA13-408A-AF11-115FD5B97A4A@kyngchaos.com> Message-ID: Google to the rescue. So it's a build option for Apache 2.2. It looks like Apache in OS X (10.6+) uses prefork. So I guess we're good to go on this. On Nov 20, 2012, at 6:41 PM, William Kyngesburye wrote: > What's this "pre-fork MPM"? > > On Nov 20, 2012, at 2:45 PM, Daniel Morissette wrote: > >> William, >> >> As Armin wrote, it seems that using PHP as an Apache DSO with the pre-fork MPM would be the way to go. I don't remember seeing reports of issues with that combination in quite a while (I mean several years, so much that we had forgotten about those issues from the old days). >> >> Daniel >> >> >> On 12-11-20 1:37 PM, Armin Burger wrote: >>> William >>> >>> I cannot say anything for Mac OS in this respect. But at least for Linux >>> running Apache in the classical pre-fork MPM I did not experience >>> problems with PHP-MapScript running as an Apache DSO. Also some stress >>> tests with benchmarking using multiple WMS requests with on MapScript >>> OWS as server backend did not cause problems. >>> >>> I sometimes noticed some irregular, strange, and difficult to reproduce >>> problems with MS 6.0 and PHP Mapscript (Apache or CGI segfaults), but >>> that was independent of PHP with Apache DSO or as CGI, and this never >>> ever happened with MS 5.x. >>> >>> armin >>> >>> >>> >>> On 15/11/2012 04:52, William Kyngesburye wrote: >>>> It's my understanding that when running PHP-Mapscript with PHP as an >>>> Apache DSO, under heavy loads it can randomly hiccup/trip/crash or >>>> otherwise not perform correctly. So I've been maintaining an OS X >>>> PHP-CGI package to go along with my MapServer package. >>>> >>>> Is this still a problem? Maybe I missed a fix for this? Or is it >>>> being worked on (or not being worked on)? Or is it an unsolvable >>>> problem (maybe due to the nature of a DSO)? >>>> >>>> I'm thinking about simplifying my OS X GIS/carto stack and dropping my >>>> PHP-CGI package in favor of the OS X system PHP-DSO (a bit old) or >>>> some other better-maintained PHP package for OS X (which will likely >>>> be a DSO). >>>> > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty." > > "Don't you even hate 'em?" > > "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day." > > "And it might give 'em all stomach ulcers." > > - Tarzan, on war > ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From woklist at kyngchaos.com Tue Nov 20 16:41:28 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 20 Nov 2012 18:41:28 -0600 Subject: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress? In-Reply-To: <50ABEBD8.6070001@mapgears.com> References: <87A210D4-A0AF-4FFD-AFF5-17B5ED0716B0@kyngchaos.com> <50ABCDFF.6010903@gmx.net> <50ABEBD8.6070001@mapgears.com> Message-ID: <76068A9D-FA13-408A-AF11-115FD5B97A4A@kyngchaos.com> What's this "pre-fork MPM"? On Nov 20, 2012, at 2:45 PM, Daniel Morissette wrote: > William, > > As Armin wrote, it seems that using PHP as an Apache DSO with the pre-fork MPM would be the way to go. I don't remember seeing reports of issues with that combination in quite a while (I mean several years, so much that we had forgotten about those issues from the old days). > > Daniel > > > On 12-11-20 1:37 PM, Armin Burger wrote: >> William >> >> I cannot say anything for Mac OS in this respect. But at least for Linux >> running Apache in the classical pre-fork MPM I did not experience >> problems with PHP-MapScript running as an Apache DSO. Also some stress >> tests with benchmarking using multiple WMS requests with on MapScript >> OWS as server backend did not cause problems. >> >> I sometimes noticed some irregular, strange, and difficult to reproduce >> problems with MS 6.0 and PHP Mapscript (Apache or CGI segfaults), but >> that was independent of PHP with Apache DSO or as CGI, and this never >> ever happened with MS 5.x. >> >> armin >> >> >> >> On 15/11/2012 04:52, William Kyngesburye wrote: >>> It's my understanding that when running PHP-Mapscript with PHP as an >>> Apache DSO, under heavy loads it can randomly hiccup/trip/crash or >>> otherwise not perform correctly. So I've been maintaining an OS X >>> PHP-CGI package to go along with my MapServer package. >>> >>> Is this still a problem? Maybe I missed a fix for this? Or is it >>> being worked on (or not being worked on)? Or is it an unsolvable >>> problem (maybe due to the nature of a DSO)? >>> >>> I'm thinking about simplifying my OS X GIS/carto stack and dropping my >>> PHP-CGI package in favor of the OS X system PHP-DSO (a bit old) or >>> some other better-maintained PHP package for OS X (which will likely >>> be a DSO). >>> ----- William Kyngesburye http://www.kyngchaos.com/ "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty." "Don't you even hate 'em?" "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day." "And it might give 'em all stomach ulcers." - Tarzan, on war From umberto.nicoletti at gmail.com Wed Nov 21 06:08:00 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 21 Nov 2012 15:08:00 +0100 Subject: [mapserver-users] Mapscript java 6.2 In-Reply-To: References: Message-ID: So what was different between the two? (adding mapserver-users back that got lost in the prev reply) On Wed, Nov 21, 2012 at 3:06 PM, Gaston Lucero wrote: > Umberto it's work. > > Thanks you very much!! > > > > 2012/11/21 Umberto Nicoletti > >> Gaston, >> could you please try and follow these steps to build it: >> >> cd mapserver-6.2.0 >> ./configure [add your options here] >> make >> sudo make install >> cd mapscript/java >> make >> make test >> >> Umberto >> >> >> On Fri, Nov 16, 2012 at 4:12 PM, Gaston Lucero wrote: >> >>> Hi thanks for the answer, yes i run it, after make mapserver on the top >>> level directory >>> >>> This is the mapserv file >>> MapServer version 6.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ >>> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=THREADS SUPPORTS=GEOS >>> INPUT=JPEG INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE >>> >>> Inside mapscript/java >>> >>> I run make, make test and make threadtests , without errors >>> >>> >>> My java version is 1.7.0_09, under Ubuntu 12.10 64-bit >>> >>> >>> >>> >>> >>> 2012/11/16 Umberto Nicoletti >>> >>>> Did you run make install after make in the mapserver top-level >>>> directory? >>>> >>>> >>>> On Fri, Nov 16, 2012 at 3:56 PM, Gaston Lucero < >>>> gaston.lucerom at gmail.com> wrote: >>>> >>>>> I get this error >>>>> >>>>> root at Gaston:/home/gaston/mapserver-6.2.0/mapscript/java# make install >>>>> /bin/bash ../../libtool --mode=install /usr/bin/install -c >>>>> libjavamapscript.la /usr/local/lib >>>>> libtool: install: warning: relinking `libjavamapscript.la' >>>>> libtool: install: (cd /home/gaston/mapserver-6.2.0/mapscript/java; >>>>> /bin/bash /home/gaston/mapserver-6.2.0/libtool --tag CXX --mode=relink g++ >>>>> -rpath /usr/local/lib -module -release 6.2.0 -o libjavamapscript.lajavamapscript_wrap.lo ../../ >>>>> libmapserver.la ) >>>>> libtool: relink: g++ -fPIC -DPIC -shared -nostdlib >>>>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crti.o >>>>> /usr/lib/gcc/x86_64-linux-gnu/4.7/crtbeginS.o .libs/javamapscript_wrap.o >>>>> -L/usr/local/lib -lmapserver -L/usr/lib -lproj -ljpeg -lpng >>>>> -L/usr/lib/x86_64-linux-gnu -lgif -lgdal -lpq -lcurl -lgeos_c -lpthread >>>>> -lxml2 -ldl -lfreetype -lz -lcairo -lpng12 >>>>> -L/usr/lib/gcc/x86_64-linux-gnu/4.7 >>>>> -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu >>>>> -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu >>>>> -L/lib/../lib -L/usr/lib/../lib >>>>> -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lstdc++ -lm -lc -lgcc_s >>>>> /usr/lib/gcc/x86_64-linux-gnu/4.7/crtendS.o >>>>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crtn.o >>>>> -Wl,-soname -Wl,libjavamapscript-6.2.0.so -o .libs/ >>>>> libjavamapscript-6.2.0.so >>>>> /usr/bin/ld: cannot find -lmapserver >>>>> collect2: error: ld returned 1 exit status >>>>> libtool: install: error: relink `libjavamapscript.la' with the above >>>>> command before installing it >>>>> make: *** [install] Error 1 >>>>> >>>>> >>>>> Any idea? >>>>> >>>>> _______________________________________________ >>>>> 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 gaston.lucerom at gmail.com Thu Nov 22 04:04:02 2012 From: gaston.lucerom at gmail.com (Gaston Lucero) Date: Thu, 22 Nov 2012 09:04:02 -0300 Subject: [mapserver-users] 4. Re: Mapscript java 6.2 Message-ID: Umberto I forgot to run te step 9 on Linux installation make install That's why I could not complete the installation correctly Thanks again!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From astrid.emde at wheregroup.com Thu Nov 22 23:59:11 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Fri, 23 Nov 2012 08:59:11 +0100 Subject: [mapserver-users] =?utf-8?q?Call_for_Papers_f=C3=BCr_die_FOSSGIS_?= =?utf-8?q?2013_in_Rapperswil_er=C3=B6ffnet?= Message-ID: <50AF2CCF.9010302@wheregroup.com> Hallo, (you can find the english translation at http://www.fossgis.de/konferenz/2013/callforpapers/) Du forschst, du entwickelst, du lehrst, du benutzt Open-Source-Geo-Software oder freie Geodaten? Du hast neue Ideen in diesem Themenbereich oder bist bereits dabei, freie Software und freie Geodaten zu nutzen oder zu entwickeln? Dann bist du auf unserer Konferenz - der FOSSGIS-Konferenz 2013 - genau richtig. WIR BIETEN: Eine Plattform f?r deine Idee, dein Projekt, deinen Erfahrungsbericht auf der gr??ten deutschsprachigen Anwenderkonferenz f?r freie Geoinformationssysteme und freie Geodaten. Im Jahr 2013 findet die FOSSGIS vom 12. bis 14. Juni auf dem Gel?nde der HSR Hochschule f?r Technik in Rapperswil in der Schweiz statt. An der Konferenz 2012 nahmen ca. 400 Besucher teil. WIR SUCHEN: Deine Idee. Dein Projekt. Deinen Erfahrungsbericht. Dein Thema. Genauer gesagt, suchen wir anspruchsvolle Vortr?ge, spannende Diskussionen, praxisorientierte Workshops f?r unser Programm. Vortr?ge zum Thema freie Geodaten, zum Beispiel OpenStreetMap, sind ebenso m?glich wie beispielsweise Beitr?ge zu Softwarel?sungen aus dem Bereich WebGIS, Desktop GIS, Geodatenbanken oder Location-Based-Services. Bewirb dich jetzt mit deinem Vortrag, deinem Lightning Talk oder deinem Workshop beim Call for Papers. ABSTRACT - Die Einreichung deines Abstracts f?r die FOSSGIS 2013 ist ab sofort bis zum 31. Januar 2013 m?glich. Beitrags-Einreichungen ohne Abstract m?ssen leider abgelehnt werden, da sich das Programm-Komitee so kein Bild von Inhalt und Relevanz deines Beitrags machen kann. Dein Abstract sollte ca. 1500 Zeichen umfassen. Ob deine Einreichung angenommen wurde, erf?hrst du ca. im Februar 2013. Neben einem kompletten Vortrag besteht auch die M?glichkeit einen Lightning Talk einzureichen. Dies ist eine Kurzpr?sentationen beschr?nkt auf 5 Minuten. Ein Lightning Talk dient der Auseinandersetzung mit einem Thema, dem ? gerne auch humorvoll gemeinten ? Hinweis auf eine Problemstellung oder zur Anregung einer Diskussion. Neben den beschriebenen Vortr?gen k?nnen auch Poster zur Konferenz eingereicht werden. WER WIR SIND - Veranstaltet wird die Konferenz vom FOSSGIS e.V., von der OSGeo Foundation und der HSR Hochschule f?r Technik Rapperswil Schweiz). Unsere Konferenz lebt von ihren deinen Beitr?gen und von deinem Besuch. Werde Teil der Konferenz - wir freuen uns auf dich! Aktuelle Informationen und die M?glichkeit deinen Vortrag einzureichen findest du unter: http://www.fossgis.de/konferenz/2013. Hast du noch Fragen? Wir haben versucht, in unseren FAQs alle wichtigen Fragen zu beantworten. Falls du noch weitere Fragen hast, schreib uns einfach eine E-Mail an info-at-fossgis-dot-de. Das FOSSGIS-Konferenz-Team freut sich auf Deine Beteiligung. -- ....................................................................................................... FOSSGIS 2013, Die Konferenz f?r Open Source GIS mit OpenData und OpenStreetMap erstmals in der Schweiz! 12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de .................................................... From astrid.emde at wheregroup.com Fri Nov 23 01:12:05 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Fri, 23 Nov 2012 10:12:05 +0100 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? Message-ID: <50AF3DE5.4080708@wheregroup.com> Hello, I have a shapefile with a column of type double that contains values like 2.54 or -2.03. When I label the geometrie with this column or display this column in my infotemplate I get the following notation of the values: 2.54000000000e+000 -2.03000000000e+000 If there a way to tell MapServer to display the "normal" notation of the value? Or do I have to change the shape? -- Mit freundlichen Gr??en Astrid Emde ******************************************** Where2B Konferenz 2012 13. Dezember 2012 in Bonn www.where2b-conference.com ******************************************** Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From gislars+list at googlemail.com Fri Nov 23 01:39:14 2012 From: gislars+list at googlemail.com (Lars Lingner) Date: Fri, 23 Nov 2012 10:39:14 +0100 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF3DE5.4080708@wheregroup.com> References: <50AF3DE5.4080708@wheregroup.com> Message-ID: <50AF4442.5090905@googlemail.com> On 23.11.2012 10:12, Astrid Emde wrote: > Hello, > > I have a shapefile with a column of type double that contains values > like 2.54 or -2.03. > > When I label the geometrie with this column or display this column in > my infotemplate I get the following notation of the values: > 2.54000000000e+000 -2.03000000000e+000 > > If there a way to tell MapServer to display the "normal" notation of > the value? Or do I have to change the shape? > You can define your own format by using ... CLASS ... TEXT (round[numbercolumn], 2) ... LABEL ... END END ... In RFC 64 [1] you'll find some informations. I'm pretty sure I used it for myself. But grepping through my current mapfiles say otherwise. So I can't give an working example. Lars [1] http://mapserver.org/development/rfc/ms-rfc-64.html From astrid.emde at wheregroup.com Fri Nov 23 02:04:08 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Fri, 23 Nov 2012 11:04:08 +0100 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF4442.5090905@googlemail.com> References: <50AF3DE5.4080708@wheregroup.com> <50AF4442.5090905@googlemail.com> Message-ID: <50AF4A18.1040502@wheregroup.com> Am 23.11.2012 10:39, schrieb Lars Lingner: > On 23.11.2012 10:12, Astrid Emde wrote: >> Hello, >> >> I have a shapefile with a column of type double that contains values >> like 2.54 or -2.03. >> >> When I label the geometrie with this column or display this column in >> my infotemplate I get the following notation of the values: >> 2.54000000000e+000 -2.03000000000e+000 >> >> If there a way to tell MapServer to display the "normal" notation of >> the value? Or do I have to change the shape? >> > You can define your own format by using > > ... > CLASS > ... > TEXT (round[numbercolumn], 2) > ... > LABEL > ... > END > END > ... > > In RFC 64 [1] you'll find some informations. > > I'm pretty sure I used it for myself. But grepping through my current > mapfiles say otherwise. So I can't give an working example. > > > Lars > > > [1] http://mapserver.org/development/rfc/ms-rfc-64.html Hi Lars, thanks for the information! It works fine for the label. Before I defined LABELITEM mycolumn and got the long notation: 2.54000000000e+000 with definition TEXT mycolumn the label looks fine (without using any function): 2.54 Is there a solution for the query result too? Astrid From havard.tveite at umb.no Fri Nov 23 02:26:45 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Fri, 23 Nov 2012 11:26:45 +0100 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF4442.5090905@googlemail.com> References: <50AF3DE5.4080708@wheregroup.com> <50AF4442.5090905@googlemail.com> Message-ID: <50AF4F65.80709@umb.no> According to http://www.mapserver.org/mapfile/class.html TEXT ("Area is: " + tostring([area],"%.2f")) could also be used. round and tostring are documented in http://www.mapserver.org/mapfile/expressions.html round ( n1 , n2 ) tostring ( n1, "Format1" ) H?vard On 11/23/2012 10:39 AM, Lars Lingner wrote: > On 23.11.2012 10:12, Astrid Emde wrote: >> Hello, >> >> I have a shapefile with a column of type double that contains values >> like 2.54 or -2.03. >> >> When I label the geometrie with this column or display this column in >> my infotemplate I get the following notation of the values: >> 2.54000000000e+000 -2.03000000000e+000 >> >> If there a way to tell MapServer to display the "normal" notation of >> the value? Or do I have to change the shape? >> > > You can define your own format by using > > ... > CLASS > ... > TEXT (round[numbercolumn], 2) > ... > LABEL > ... > END > END > ... > > In RFC 64 [1] you'll find some informations. > > I'm pretty sure I used it for myself. But grepping through my current > mapfiles say otherwise. So I can't give an working example. > > > Lars > > > [1] http://mapserver.org/development/rfc/ms-rfc-64.html > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From lars-goran.edholm at sandviken.se Fri Nov 23 03:03:06 2012 From: lars-goran.edholm at sandviken.se (=?UTF-8?B?TGFycy1Hw7ZyYW4=?= Edholm) Date: Fri, 23 Nov 2012 12:03:06 +0100 Subject: [mapserver-users] Mapserver and filter in version 6 Message-ID: Hi! I have a problem with filters in Mapserver 6. In Mapserver 5 I defined my filter as FILTER ([FNR] IN '%fasokex%') and made a call with a new parameter like var fastsok=210176493 http://172.20.1.218/cgi-bin/mapserv52/mapserv.exe?fasokex="+fastsok+"&map=.... layer metadata WMS_TITLE "S?kt fastighet" end #group "Grunddata" group "Fastigheter" classitem "FNR" connectiontype ogr connection "kartor2007/mapinfo/FASTIGHETSYTA.TAB" #maxscale 30000 name "fastvisa" status on type polygon TRANSPARENCY 40 FILTER ([FNR] IN '%fasokex%') # 1 class Fastighetsindelning class name "Fastighetsyta" #EXPRESSION ([FNR]=%fasokex%) #expression '%fasokex%' color 255 166 166 #SYMBOL 'circle' OVERLAYOUTLINECOLOR 255 0 0 OVERLAYSYMBOL 'circle' OVERLAYSIZE 12 end end Trying with the same Filter in Mapinfo 6 I cant change the filterparameter: var fastsok=210176493 http://172.20.1.218/cgi-bin/mapserv6/mapserv.exe?fasokex="+fastsok+"&map=.... FILTER ([FNR] IN '%fasokex%') with FILTER ([FNR] IN '210176493') its ok How to write a filter in Mapserver 6 that works like in Mapserver 5 so i can change the Filter parameter fr?n my application Is there something that should be added to the websection of the mapfile or some restrictions in Apache? Mvh Lars-G?ran Edholm tel 026/24 14 36, telefontid dagligen 08.30-09.30 1:e byggnadsinspekt?r Bygg- och milj?kontoret 811 80 Sandviken lars-goran.edholm at sandviken.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Nov 23 05:16:28 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 23 Nov 2012 13:16:28 +0000 Subject: [mapserver-users] Mapserver and filter in version 6 Message-ID: <84446DEF76453C439E9E97E438E13A637BCCF3@suutari.haapa.mmm.fi> Hi, Did you add the validation block that is needed in 6.x for ?fasokex?? http://mapserver.org/cgi/runsub.html You know for sure better than I why to use &fasokex=?+fastsok+? instead of &fasokex=210176493 -Jukka Rahkonen- Lars-G?ran Edholm wrote: Hi! I have a problem with filters in Mapserver 6. In Mapserver 5 I defined my filter as FILTER ([FNR] IN '%fasokex%') and made a call with a new parameter like var fastsok=210176493 http://172.20.1.218/cgi-bin/mapserv52/mapserv.exe?fasokex="+fastsok+"&map=.... layer metadata WMS_TITLE "S?kt fastighet" end #group "Grunddata" group "Fastigheter" classitem "FNR" connectiontype ogr connection "kartor2007/mapinfo/FASTIGHETSYTA.TAB" #maxscale 30000 name "fastvisa" status on type polygon TRANSPARENCY 40 FILTER ([FNR] IN '%fasokex%') # 1 class Fastighetsindelning class name "Fastighetsyta" #EXPRESSION ([FNR]=%fasokex%) #expression '%fasokex%' color 255 166 166 #SYMBOL 'circle' OVERLAYOUTLINECOLOR 255 0 0 OVERLAYSYMBOL 'circle' OVERLAYSIZE 12 end end Trying with the same Filter in Mapinfo 6 I cant change the filterparameter: var fastsok=210176493 http://172.20.1.218/cgi-bin/mapserv6/mapserv.exe?fasokex="+fastsok+"&map=.... FILTER ([FNR] IN '%fasokex%') with FILTER ([FNR] IN '210176493') its ok How to write a filter in Mapserver 6 that works like in Mapserver 5 so i can change the Filter parameter fr?n my application Is there something that should be added to the websection of the mapfile or some restrictions in Apache? Mvh Lars-G?ran Edholm tel 026/24 14 36, telefontid dagligen 08.30-09.30 1:e byggnadsinspekt?r Bygg- och milj?kontoret 811 80 Sandviken lars-goran.edholm at sandviken.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From gislars+list at googlemail.com Fri Nov 23 05:30:59 2012 From: gislars+list at googlemail.com (Lars Lingner) Date: Fri, 23 Nov 2012 14:30:59 +0100 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF4A18.1040502@wheregroup.com> References: <50AF3DE5.4080708@wheregroup.com> <50AF4442.5090905@googlemail.com> <50AF4A18.1040502@wheregroup.com> Message-ID: <50AF7A93.9030802@googlemail.com> > Hi Lars, > > thanks for the information! > > It works fine for the label. > > Before I defined LABELITEM mycolumn and got the long notation: > 2.54000000000e+000 > > with definition TEXT mycolumn the label looks fine (without using any > function): 2.54 > > Is there a solution for the query result too? > I assume that you cant use any of these functions in your template file. Would be nice if I'm wrong. An workaround could be to use the ogr connection type. This way, you can access and modify your features/attributes with SQL. Look at example #4 here [1]. I think you can use "SELECT ..., round(numbercolumn,2) as mycolumn FROM..." here. But than... if the performance isn't good enough, it might me worth to just preprocess the shape files. Or put them in a database to be more flexibel. Lars [1] http://mapserver.org/input/vector/ogr.html#examples-of-layer-definitions-using-ogr From astrid.emde at wheregroup.com Fri Nov 23 06:25:32 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Fri, 23 Nov 2012 15:25:32 +0100 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF7A93.9030802@googlemail.com> References: <50AF3DE5.4080708@wheregroup.com> <50AF4442.5090905@googlemail.com> <50AF4A18.1040502@wheregroup.com> <50AF7A93.9030802@googlemail.com> Message-ID: <50AF875C.3090908@wheregroup.com> Am 23.11.2012 14:30, schrieb Lars Lingner: >> Hi Lars, >> >> thanks for the information! >> >> It works fine for the label. >> >> Before I defined LABELITEM mycolumn and got the long notation: >> 2.54000000000e+000 >> >> with definition TEXT mycolumn the label looks fine (without using any >> function): 2.54 >> >> Is there a solution for the query result too? >> > I assume that you cant use any of these functions in your template file. > Would be nice if I'm wrong. > > An workaround could be to use the ogr connection type. This way, you can > access and modify your features/attributes with SQL. > > Look at example #4 here [1]. I think you can use "SELECT ..., > round(numbercolumn,2) as mycolumn FROM..." here. > > But than... if the performance isn't good enough, it might me worth to > just preprocess the shape files. Or put them in a database to be more > flexibel. > > > Lars > > > [1] > http://mapserver.org/input/vector/ogr.html#examples-of-layer-definitions-using-ogr > > ____________ Hi Lars, again - thanks for your answer. I got a solution. CONNECTIONTYPE OGR CONNECTION "double_test.shp" DATA "Select *, J_2010_201*1 as newcolumn from double_test" The function round(numbercolumn,2) was not found but with multiplication by 1 it works. Astrid From jmckenna at gatewaygeomatics.com Fri Nov 23 06:46:53 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 23 Nov 2012 10:46:53 -0400 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF875C.3090908@wheregroup.com> References: <50AF3DE5.4080708@wheregroup.com> <50AF4442.5090905@googlemail.com> <50AF4A18.1040502@wheregroup.com> <50AF7A93.9030802@googlemail.com> <50AF875C.3090908@wheregroup.com> Message-ID: <50AF8C5D.70509@gatewaygeomatics.com> On 12-11-23 10:25 AM, Astrid Emde wrote: > Hi Lars, > > again - thanks for your answer. I got a solution. > > CONNECTIONTYPE OGR > CONNECTION "double_test.shp" > DATA "Select *, J_2010_201*1 as newcolumn from double_test" > > The function round(numbercolumn,2) was not found but with multiplication by 1 it works. > > Astrid Hi Astrid, Sounds like you found a nice item for a new MapServer wiki page in the "Tricks, Tips, and HowTos" section (hint hint) https://github.com/mapserver/mapserver/wiki -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jcigar at ulb.ac.be Fri Nov 23 07:27:27 2012 From: jcigar at ulb.ac.be (Julien Cigar) Date: Fri, 23 Nov 2012 16:27:27 +0100 Subject: [mapserver-users] OGC spatial filter + SLD Message-ID: <50AF95DF.4030200@ulb.ac.be> Hello, I would like to know if Mapserver supports the spatial filter through SLD ? I have the following : http://pastie.org/5423520 but it doesn't work.. any idea ? Thank you, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From lars-goran.edholm at sandviken.se Fri Nov 23 08:03:01 2012 From: lars-goran.edholm at sandviken.se (=?UTF-8?B?TGFycy1Hw7ZyYW4=?= Edholm) Date: Fri, 23 Nov 2012 17:03:01 +0100 Subject: [mapserver-users] Mapserver and filter in version 6 solved Message-ID: Hi! Many thanks to Jukka Rahkonen. Solution: layer . . metadata WMS_TITLE "Ny S?kt fastighet" 'default_fasokex' '210176494' end . . VALIDATION 'fasokex' '^[0-9]' END . . classitem "FNR" . class name "Fastighetsyta" EXPRESSION ([FNR] IN ('%fasokex%')) .. call like: fastsok="210176493,210176495" http://172.20.1.218/cgi-bin/mapserv52/mapserv.exe?fasokex="+fastsok+"&map=.... or in calling mapfish print; "customParams":{"TRANSPARENT":true,"fasokex":'210176493,210176495'} Mvh Lars-G?ran Edholm tel 026/24 14 36, telefontid dagligen 08.30-09.30 1:e byggnadsinspekt?r Bygg- och milj?kontoret 811 80 Sandviken lars-goran.edholm at sandviken.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Fri Nov 23 08:11:45 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Fri, 23 Nov 2012 17:11:45 +0100 Subject: [mapserver-users] OGC spatial filter + SLD In-Reply-To: <50AF95DF.4030200@ulb.ac.be> References: <50AF95DF.4030200@ulb.ac.be> Message-ID: Hello, I haven' try but it's not available refering to the doc http://mapserver.org/ogc/sld.html#issues-found-during-implementation e.g "Limitation of the FilterEncoding to comparison and logical filters. The spatial filters were not made available since it required major changes in MapServer WMS support." "within" is a spatial filter so no luck it seems. Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From zpsantos1 at hotmail.com Fri Nov 23 09:07:51 2012 From: zpsantos1 at hotmail.com (Saint) Date: Fri, 23 Nov 2012 09:07:51 -0800 (PST) Subject: [mapserver-users] Image 24bits Message-ID: <1353690471140-5018436.post@n6.nabble.com> Dear all, I'm attempting to classify images of 24 bits but I always have the error saying this: ........Unable to access file. Attempt to classify 24bit image, this is unsupported. My Mapfile is this one: ........... IMAGETYPE "png24" .......... OUTPUTFORMAT # Parameter Output NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END # end of parameter Output and in the expression in the browser of GetMap is FORMAT=image/png In the Layer description I have the special processing directives to processed the 3 bands. But If put just 2 appear one empty image not the error. I already read some documentation but I can't succeed. any idea? Many thanks and best regards, Jos? Santos ----- Jos? Santos GIS Analyst -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Image-24bits-tp5018436.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jcigar at ulb.ac.be Fri Nov 23 09:47:33 2012 From: jcigar at ulb.ac.be (Julien Cigar) Date: Fri, 23 Nov 2012 18:47:33 +0100 Subject: [mapserver-users] OGC spatial filter + SLD In-Reply-To: References: <50AF95DF.4030200@ulb.ac.be> Message-ID: <50AFB6B5.102@ulb.ac.be> On 11/23/2012 17:11, Thomas Gratier wrote: > Hello, > Hello, > I haven' try but it's not available refering to the doc > http://mapserver.org/ogc/sld.html#issues-found-during-implementation e.g > "Limitation of the FilterEncoding to comparison and logical filters. > The spatial filters were not made available since it required major > changes in MapServer WMS support." > "within" is a spatial filter so no luck it seems. > Looks like I missed this part in the documentation .. and it's really a bad news that Mapserver doesn't support spatial WMS filtering through OGC filters. What would be the alternative way of doing it? My layer definition looks like: http://pastie.org/5424011 One solution would be to use Mapscript, rewrite the SQL query and use the ST_Within() function.. but I would like to avoid that. > Regards > > ThomasG Thank you, Julien From osgeo.mailinglist at gmail.com Fri Nov 23 10:12:12 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Fri, 23 Nov 2012 19:12:12 +0100 Subject: [mapserver-users] OGC spatial filter + SLD In-Reply-To: <50AFB6B5.102@ulb.ac.be> References: <50AF95DF.4030200@ulb.ac.be> <50AFB6B5.102@ulb.ac.be> Message-ID: Hello, Don't know exactly your case but you can maybe rely on runtime substitution http://mapserver.org/cgi/runsub.html and spatial abilities of your database e.g http://postgis.refractions.net/docs/ST_Within.html or on filter (support within http://mapserver.org/mapfile/expressions.html#spatial-expressions-that-return-a-logical-value-geos) + runtime substitution In all case, a bit dirty compare to SLD filter but no choice it seems. Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.c.cartwright at noaa.gov Fri Nov 23 10:37:22 2012 From: john.c.cartwright at noaa.gov (John Cartwright - NOAA Federal) Date: Fri, 23 Nov 2012 11:37:22 -0700 Subject: [mapserver-users] transparency in a geotiff Message-ID: Hello All, I have a geotiff w/ Float32 values ranging from -1.5 to 10329.613. I'd like to use this for a WMS layer and display pixel values <= 0 as transparent. I've tried various permutations of the WMS request options, LAYER processing directives, and OUTPUTFORMATs but seem to be unable to achieve my goal. This is mapserver 6.0.1 and I've listed below excerpts from the current config. I'd be very grateful for any help or suggestions! --john WMS request: http://mapserver3.ngdc.noaa.gov/cgi-bin/public/viirs?request=getmap&service=wms&layers=SVDNB_npp_d20120913_t0708483_e0721359_b00001_cspp_dev.rade9.tif&bbox=-180,0,0,90&srs=EPSG:4326&width=1000&height=500&styles=&version=1.1.1&format=png&bgcolor=0x000000&transparent=true OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "GAMMA=0.75" TRANSPARENT ON END LAYER DATA "/geotiffs/SVDNB_npp_d20120913_t0708483_e0721359_b00001_cspp_dev.rade9.tif" DUMP TRUE METADATA "wcs_label" "SVDNB_npp_d20120913_t0708483_e0721359_b00001_cspp_dev.rade9.tif" "wcs_rangeset_name" "Range 1" "wcs_rangeset_label" "viirs" "wcs_resolution" "0.008333 -0.008333" "ows_srs" "EPSG:4326" "wms_title" "SVDNB_npp_d20120913_t0708483_e0721359_b00001_cspp_dev.rade9.tif" END NAME "SVDNB_npp_d20120913_t0708483_e0721359_b00001_cspp_dev.rade9.tif" PROCESSING "SCALE=63,0" PROJECTION "init=epsg:4326" END TYPE RASTER UNITS DD END From wyattjoe40 at gmail.com Fri Nov 23 13:54:24 2012 From: wyattjoe40 at gmail.com (Wyatt Davis) Date: Fri, 23 Nov 2012 14:54:24 -0700 Subject: [mapserver-users] Building Mapserver with Memcachr Capability In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF444@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF444@KS-EVS1.smi.sachsen.de> Message-ID: This worked great, thanks! -Wyatt On Mon, Oct 29, 2012 at 12:54 AM, Eichner, Andreas - SID-NLKM < Andreas.Eichner at sid.sachsen.de> wrote: > > Seems to be a bug in the build system. When linking the test program > it instruct the linker to use a *.la file. Since you checked the > apr_memcache functions manually you can use the following workaround. > > $ echo "ac_cv_lib_aprutil_1_apr_memcache_hash=yes" > config.cache > $ echo "ac_cv_header_apr_memcache_h=yes" >> config.cache > $ ./configure -C --enable-memcache=yes > > > HTH > > > > -----Urspr?ngliche Nachricht----- > > Von: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > > von Wyatt Davis > > Gesendet: Donnerstag, 25. Oktober 2012 19:14 > > An: mapserver-users at lists.osgeo.org > > Betreff: [mapserver-users] Building Mapserver with Memcachr Capability > > > > Hello everyone, > > > > I am currently trying to build Mapcache from source with > > Memcache caching capabilities. The problem I am having is > > that when configuring Mapcache I receive this warning: > > > > configure: WARNING: supplied apr-util does not contain > > memcache functions. Memcache backend disable > > > > I have installed Apache and the apr and apu libraries through > > apt-get. I also tried on a separate machine building Apache, > > apr-1.4.6 and apu-1.4.1 from source with the same result. > > > > When I look inside of the apu static library it seems to have > > the memcache functions: > > > > $ nm libaprutil-1.a | grep memcache > > > > ..... > > 000000000000a00 T apr_memcache_hash > > ..... > > > > I am relatively new at this so it is quite possible I am > > making a simple, embarrassing mistake. > > > > If anyone has any suggestions I would be most grateful. > > > > Thank you, > > > > Wyatt > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcigar at ulb.ac.be Sat Nov 24 05:23:48 2012 From: jcigar at ulb.ac.be (Julien Cigar) Date: Sat, 24 Nov 2012 14:23:48 +0100 Subject: [mapserver-users] OGC spatial filter + SLD In-Reply-To: References: <50AF95DF.4030200@ulb.ac.be> <50AFB6B5.102@ulb.ac.be> Message-ID: <50B0CA64.4050201@ulb.ac.be> On 11/23/2012 19:12, Thomas Gratier wrote: > Hello, > Hello, > Don't know exactly your case but you can maybe rely on runtime > substitution http://mapserver.org/cgi/runsub.html and spatial > abilities of your database e.g > http://postgis.refractions.net/docs/ST_Within.html > or on filter (support within > http://mapserver.org/mapfile/expressions.html#spatial-expressions-that-return-a-logical-value-geos > ) + runtime substitution > In all case, a bit dirty compare to SLD filter but no choice it seems. > I'm slowly progressing on this issue: - I can confirm that Mapserver supports OGC spatial filters to filter WMS requests (so far I've tested with and . The filter is converted to an EXPRESSION clause in the Mapfile by Mapserver for example: EXPRESSION ([shape] within fromText('POLYGON ((24.2073126960992191 0.7680569582964826, 24.2968673039010241 0.7680569582964826, 24.2968673039010241 0.8576025453261950, 24.2073126960992191 0.8576025453261950, 24.2073126960992191 0.7680569582964826))')) - it seems that there is an obscure bug in the parsing code for the tag: The following works: geom 24.207313,0.768057 24.296867,0.857603 BUT, if there is a space (or a newline) in the content it doesn't work, so the followings don't work: 24.207313,0.768057 24.296867,0.857603 24.207313,0.768057 24.296867,0.857603 (...) HOWEVER, this problem doesn't appear in an , in any case the is parsed correctly: So the following works: geom 24.20731269609922 0.7680569582964826,24.296867303901024 0.7680569582964826,24.296867303901024 0.857602545326195,24.20731269609922 0.857602545326195,24.20731269609922 0.7680569582964826 For readability I've pasted the code on http://pastie.org/5427465 Could someone confirm this is a bug .. ? > Regards > > ThomasG Regards, Julien From Steve.Lime at state.mn.us Sun Nov 25 17:54:54 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Nov 2012 01:54:54 +0000 Subject: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? In-Reply-To: <50AF4A18.1040502@wheregroup.com> References: <50AF3DE5.4080708@wheregroup.com> <50AF4442.5090905@googlemail.com>,<50AF4A18.1040502@wheregroup.com> Message-ID: For completeness in a template you can use the item tag, e.g.: [item name="foo" precision="2"] There is also a commify option to make big numbers look nicer. (e.g. 2,123.23) Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Astrid Emde [astrid.emde at wheregroup.com] Sent: Friday, November 23, 2012 4:04 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How can I avoid long notation of double values in label or info template for shapes? Am 23.11.2012 10:39, schrieb Lars Lingner: > On 23.11.2012 10:12, Astrid Emde wrote: >> Hello, >> >> I have a shapefile with a column of type double that contains values >> like 2.54 or -2.03. >> >> When I label the geometrie with this column or display this column in >> my infotemplate I get the following notation of the values: >> 2.54000000000e+000 -2.03000000000e+000 >> >> If there a way to tell MapServer to display the "normal" notation of >> the value? Or do I have to change the shape? >> > You can define your own format by using > > ... > CLASS > ... > TEXT (round[numbercolumn], 2) > ... > LABEL > ... > END > END > ... > > In RFC 64 [1] you'll find some informations. > > I'm pretty sure I used it for myself. But grepping through my current > mapfiles say otherwise. So I can't give an working example. > > > Lars > > > [1] http://mapserver.org/development/rfc/ms-rfc-64.html Hi Lars, thanks for the information! It works fine for the label. Before I defined LABELITEM mycolumn and got the long notation: 2.54000000000e+000 with definition TEXT mycolumn the label looks fine (without using any function): 2.54 Is there a solution for the query result too? Astrid _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jcigar at ulb.ac.be Mon Nov 26 07:01:00 2012 From: jcigar at ulb.ac.be (Julien Cigar) Date: Mon, 26 Nov 2012 16:01:00 +0100 Subject: [mapserver-users] OGC spatial filter + SLD In-Reply-To: <50B0CA64.4050201@ulb.ac.be> References: <50AF95DF.4030200@ulb.ac.be> <50AFB6B5.102@ulb.ac.be> <50B0CA64.4050201@ulb.ac.be> Message-ID: <50B3842C.6070409@ulb.ac.be> On 11/24/2012 14:23, Julien Cigar wrote: > On 11/23/2012 19:12, Thomas Gratier wrote: >> Hello, >> > > Hello, > >> Don't know exactly your case but you can maybe rely on runtime >> substitution http://mapserver.org/cgi/runsub.html and spatial >> abilities of your database e.g >> http://postgis.refractions.net/docs/ST_Within.html >> or on filter (support within >> http://mapserver.org/mapfile/expressions.html#spatial-expressions-that-return-a-logical-value-geos >> ) + runtime substitution >> In all case, a bit dirty compare to SLD filter but no choice it seems. >> > > I'm slowly progressing on this issue: > > - I can confirm that Mapserver supports OGC spatial filters to filter > WMS requests (so far I've tested with and . The > filter is converted to an EXPRESSION clause in the Mapfile by Mapserver > for example: EXPRESSION ([shape] within fromText('POLYGON > ((24.2073126960992191 0.7680569582964826, 24.2968673039010241 > 0.7680569582964826, 24.2968673039010241 0.8576025453261950, > 24.2073126960992191 0.8576025453261950, 24.2073126960992191 > 0.7680569582964826))')) > > - it seems that there is an obscure bug in the parsing code for the > tag: > > The following works: > > geom > > 24.207313,0.768057 > 24.296867,0.857603 > > > > BUT, if there is a space (or a newline) in the decimal="." cs="," ts=" "> content it doesn't work, so the followings > don't work: > 24.207313,0.768057 > 24.296867,0.857603 > > > 24.207313,0.768057 24.296867,0.857603 > > > (...) > > HOWEVER, this problem doesn't appear in an , in any case > the is parsed correctly: > > So the following works: > > > geom > > > > > 24.20731269609922 0.7680569582964826,24.296867303901024 > 0.7680569582964826,24.296867303901024 > 0.857602545326195,24.20731269609922 > 0.857602545326195,24.20731269609922 0.7680569582964826 > > > > > > > For readability I've pasted the code on http://pastie.org/5427465 > > Could someone confirm this is a bug .. ? > Another problem now: it seems impossible to combine a spatial filter with a non-spatial filter (filters are simply ignored) Any idea ..? My SLD file is here: http://pastie.org/5437516 and I've tried with GML2 and GML3 Julien >> Regards >> >> ThomasG > > Regards, > Julien > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From delorme.ipgp at gmail.com Mon Nov 26 08:38:19 2012 From: delorme.ipgp at gmail.com (Arthur Delorme) Date: Mon, 26 Nov 2012 17:38:19 +0100 Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue Message-ID: <50B39AFB.2060505@gmail.com> Hello, A few years ago, I developed a web interface to access data (informations and download) through spatial queries. It was based on mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 and I don't get how spatial queries are working nowadays. As far as I understood, nquery mode is not supported anymore for URL templates (the error is "msReturnPage(): Web application error. Malformed template name") but I can't figure how it is supposed to work then. On mapserver 5.2.0, a selection were made by drawing a rectangle and sending the query with: The result was displayed through template files, with a table containing some informations for each object selected on each activated layer (one line per object). If someone could give me some informations about the "new" way to obtain such a result, it would be great, because I am quite lost. Many thanks, Arthur From Steve.Lime at state.mn.us Mon Nov 26 08:47:15 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Nov 2012 16:47:15 +0000 Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue In-Reply-To: <50B39AFB.2060505@gmail.com> References: <50B39AFB.2060505@gmail.com> Message-ID: The nquery mode is still supported, that hasn't changed. The error message is fairly informative, what are your templates named? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme Sent: Monday, November 26, 2012 10:38 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue Hello, A few years ago, I developed a web interface to access data (informations and download) through spatial queries. It was based on mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 and I don't get how spatial queries are working nowadays. As far as I understood, nquery mode is not supported anymore for URL templates (the error is "msReturnPage(): Web application error. Malformed template name") but I can't figure how it is supposed to work then. On mapserver 5.2.0, a selection were made by drawing a rectangle and sending the query with: The result was displayed through template files, with a table containing some informations for each object selected on each activated layer (one line per object). If someone could give me some informations about the "new" way to obtain such a result, it would be great, because I am quite lost. Many thanks, Arthur _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sdavies at sdc.com.au Mon Nov 26 14:49:59 2012 From: sdavies at sdc.com.au (Stephen Davies) Date: Tue, 27 Nov 2012 09:19:59 +1030 Subject: [mapserver-users] Mapserver 6.2.0 undefined reference to `__sync_sub_and_fetch_4' In-Reply-To: <201211171525.36007.sdavies@sdc.com.au> References: <201211171525.36007.sdavies@sdc.com.au> Message-ID: <201211270919.59197.sdavies@sdc.com.au> I've been in hospital for a week or so getting a new knee so have not been able to follow up on this issue. I have managed to get a working 6.2.0 executable by manually editing the outputs from configure before making but would still like to find a proper fix. What happened to Umberto's patch? How come it is not inthe current sources? Cheers and thanks, Stephen On Saturday, November 17, 2012 03:25:35 PM Stephen Davies wrote: > I have found the discussion of this issue from mid-October but the source > code that I downloaded from mapserver.org yesterday still gives the error. > > Where can I get a version that does not give this error? > > I am trying to build on Linux with GCC 4.4.3. > > Cheers and thanks, > Stephen -- ============================================================================= Stephen Davies Consulting P/L Phone: 08-8177 1595 Adelaide, South Australia. Mobile:040 304 0583 Records & Collections Management. From delorme.ipgp at gmail.com Tue Nov 27 01:53:42 2012 From: delorme.ipgp at gmail.com (Arthur Delorme) Date: Tue, 27 Nov 2012 10:53:42 +0100 Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue In-Reply-To: References: <50B39AFB.2060505@gmail.com> Message-ID: <50B48DA6.1080709@gmail.com> Thank you for your help Steve, you're right: after some testing, it seems that template files with a .php extension are not working. I have general header.php and footer.php files (described in the WEB section of the mapfile) and several header, body and footer php files for the layers. By replacing all the extensions with html, it's working but I'd like to execute some php, which were possible before. Is it still possible? Arthur Le 26/11/12 17:47, Lime, Steve D (DNR) a ?crit : > The nquery mode is still supported, that hasn't changed. The error message is fairly informative, what are your templates named? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme > Sent: Monday, November 26, 2012 10:38 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue > > Hello, > > A few years ago, I developed a web interface to access data (informations and download) through spatial queries. It was based on mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 and I don't get how spatial queries are working nowadays. > > As far as I understood, nquery mode is not supported anymore for URL templates (the error is "msReturnPage(): Web application error. > Malformed template name") but I can't figure how it is supposed to work then. > > On mapserver 5.2.0, a selection were made by drawing a rectangle and sending the query with: > > > > The result was displayed through template files, with a table containing some informations for each object selected on each activated layer (one line per object). > > If someone could give me some informations about the "new" way to obtain such a result, it would be great, because I am quite lost. > > Many thanks, > > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From woodbri at swoodbridge.com Tue Nov 27 06:11:36 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 27 Nov 2012 09:11:36 -0500 Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue In-Reply-To: <50B48DA6.1080709@gmail.com> References: <50B39AFB.2060505@gmail.com> <50B48DA6.1080709@gmail.com> Message-ID: <50B4CA18.5080506@swoodbridge.com> On 11/27/2012 4:53 AM, Arthur Delorme wrote: > Thank you for your help Steve, you're right: after some testing, it > seems that template files with a .php extension are not working. > > I have general header.php and footer.php files (described in the WEB > section of the mapfile) and several header, body and footer php files > for the layers. > > By replacing all the extensions with html, it's working but I'd like to > execute some php, which were possible before. Is it still possible? Hi Arthur, I do not believe executing php before or after a template has ever been possible because mapserver reads the temple from the disk so it would not be processed before mapserver gets it and mapserver sends it back to the client directly so php would never have a chance to intercept it. So I'm pretty sure this did not work in the past and will not work in the future. If you need computational smarts in the template, you should be looking at doing it in Javascript which executes after the template has been returned to the browser and runs in the browser not on the server. Hope this helps, -Steve W > Arthur > > Le 26/11/12 17:47, Lime, Steve D (DNR) a ?crit : >> The nquery mode is still supported, that hasn't changed. The error >> message is fairly informative, what are your templates named? >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur >> Delorme >> Sent: Monday, November 26, 2012 10:38 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Compatibility between mapserver versions: >> nquery issue >> >> Hello, >> >> A few years ago, I developed a web interface to access data >> (informations and download) through spatial queries. It was based on >> mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 >> and I don't get how spatial queries are working nowadays. >> >> As far as I understood, nquery mode is not supported anymore for URL >> templates (the error is "msReturnPage(): Web application error. >> Malformed template name") but I can't figure how it is supposed to >> work then. >> >> On mapserver 5.2.0, a selection were made by drawing a rectangle and >> sending the query with: >> >> >> >> The result was displayed through template files, with a table >> containing some informations for each object selected on each >> activated layer (one line per object). >> >> If someone could give me some informations about the "new" way to >> obtain such a result, it would be great, because I am quite lost. >> >> Many thanks, >> >> Arthur >> _______________________________________________ >> 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 aperi2007 at gmail.com Tue Nov 27 23:52:20 2012 From: aperi2007 at gmail.com (aperi2007) Date: Wed, 28 Nov 2012 08:52:20 +0100 Subject: [mapserver-users] Can I control laber FORCE [true|false] with SLD? In-Reply-To: <84446DEF76453C439E9E97E438E13A637AAA6A@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637AAA6A@suutari.haapa.mmm.fi> Message-ID: <50B5C2B4.8060806@gmail.com> Il 13/11/2012 15:31, Rahkonen Jukka ha scritto: > Hi, > > Our users are generally happy with non-overlapping labels but sometimes they would rather see all the labels. Can it be controlled with SLD_BODY or do I need to do a separate layer for drawing all the labels? We can turn the default labels off with SLD so for users eyes the result would look the same. > why not a separate style ? > -Jukka Rahkonen- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From delorme.ipgp at gmail.com Wed Nov 28 00:17:35 2012 From: delorme.ipgp at gmail.com (Arthur Delorme) Date: Wed, 28 Nov 2012 09:17:35 +0100 Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue In-Reply-To: <50B4CA18.5080506@swoodbridge.com> References: <50B39AFB.2060505@gmail.com> <50B48DA6.1080709@gmail.com> <50B4CA18.5080506@swoodbridge.com> Message-ID: <50B5C89F.3040602@gmail.com> Indeed, even though I had php files, no php were found inside... I don't remember why I used php extension but they are not accepted anymore. So everything is fine, I will just put an html extension. Thanks for the help Arthur Le 27/11/12 15:11, Stephen Woodbridge a ?crit : > On 11/27/2012 4:53 AM, Arthur Delorme wrote: >> Thank you for your help Steve, you're right: after some testing, it >> seems that template files with a .php extension are not working. >> >> I have general header.php and footer.php files (described in the WEB >> section of the mapfile) and several header, body and footer php files >> for the layers. >> >> By replacing all the extensions with html, it's working but I'd like to >> execute some php, which were possible before. Is it still possible? > > Hi Arthur, > > I do not believe executing php before or after a template has ever been > possible because mapserver reads the temple from the disk so it would > not be processed before mapserver gets it and mapserver sends it back to > the client directly so php would never have a chance to intercept it. So > I'm pretty sure this did not work in the past and will not work in the > future. > > If you need computational smarts in the template, you should be looking > at doing it in Javascript which executes after the template has been > returned to the browser and runs in the browser not on the server. > > Hope this helps, > -Steve W > > >> Arthur >> >> Le 26/11/12 17:47, Lime, Steve D (DNR) a ?crit : >>> The nquery mode is still supported, that hasn't changed. The error >>> message is fairly informative, what are your templates named? >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur >>> Delorme >>> Sent: Monday, November 26, 2012 10:38 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Compatibility between mapserver versions: >>> nquery issue >>> >>> Hello, >>> >>> A few years ago, I developed a web interface to access data >>> (informations and download) through spatial queries. It was based on >>> mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 >>> and I don't get how spatial queries are working nowadays. >>> >>> As far as I understood, nquery mode is not supported anymore for URL >>> templates (the error is "msReturnPage(): Web application error. >>> Malformed template name") but I can't figure how it is supposed to >>> work then. >>> >>> On mapserver 5.2.0, a selection were made by drawing a rectangle and >>> sending the query with: >>> >>> >>> >>> The result was displayed through template files, with a table >>> containing some informations for each object selected on each >>> activated layer (one line per object). >>> >>> If someone could give me some informations about the "new" way to >>> obtain such a result, it would be great, because I am quite lost. >>> >>> Many thanks, >>> >>> Arthur >>> _______________________________________________ >>> 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 Jukka.Rahkonen at mmmtike.fi Wed Nov 28 06:03:26 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 28 Nov 2012 14:03:26 +0000 Subject: [mapserver-users] Can I control laber FORCE [true|false] with SLD? Message-ID: <84446DEF76453C439E9E97E438E13A637BDD6E@suutari.haapa.mmm.fi> aperi2007 wrote: > Il 13/11/2012 15:31, Rahkonen Jukka ha scritto: > > Hi, > > > > Our users are generally happy with non-overlapping labels but sometimes > they would rather see all the labels. Can it be controlled with SLD_BODY or do > I need to do a separate layer for drawing all the labels? We can turn the > default labels off with SLD so for users eyes the result would look the same. > > > why not a separate style ? Our application is already using SLD_BODY for filtering objects and letting users to adjust colours as they wish. I am not sure what happens if styles and SLD_BODY are used together. -Jukka- From woodbri at swoodbridge.com Wed Nov 28 06:13:11 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 28 Nov 2012 09:13:11 -0500 Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue In-Reply-To: <50B5C89F.3040602@gmail.com> References: <50B39AFB.2060505@gmail.com> <50B48DA6.1080709@gmail.com> <50B4CA18.5080506@swoodbridge.com> <50B5C89F.3040602@gmail.com> Message-ID: <50B61BF7.9050907@swoodbridge.com> I suspect this has happened for security reasons, so a malicious mapfile cannot have a template file point to say /etc/password and expose that to the web user. A lot of file extensions and file signatures are now checked for validity to make mapserver more secure. Feel free to write a bug against documentation to clarify this. -Steve W On 11/28/2012 3:17 AM, Arthur Delorme wrote: > Indeed, even though I had php files, no php were found inside... I don't > remember why I used php extension but they are not accepted anymore. > > So everything is fine, I will just put an html extension. > > Thanks for the help > > Arthur > > Le 27/11/12 15:11, Stephen Woodbridge a ?crit : >> On 11/27/2012 4:53 AM, Arthur Delorme wrote: >>> Thank you for your help Steve, you're right: after some testing, it >>> seems that template files with a .php extension are not working. >>> >>> I have general header.php and footer.php files (described in the WEB >>> section of the mapfile) and several header, body and footer php files >>> for the layers. >>> >>> By replacing all the extensions with html, it's working but I'd like to >>> execute some php, which were possible before. Is it still possible? >> >> Hi Arthur, >> >> I do not believe executing php before or after a template has ever been >> possible because mapserver reads the temple from the disk so it would >> not be processed before mapserver gets it and mapserver sends it back to >> the client directly so php would never have a chance to intercept it. So >> I'm pretty sure this did not work in the past and will not work in the >> future. >> >> If you need computational smarts in the template, you should be looking >> at doing it in Javascript which executes after the template has been >> returned to the browser and runs in the browser not on the server. >> >> Hope this helps, >> -Steve W >> >> >>> Arthur >>> >>> Le 26/11/12 17:47, Lime, Steve D (DNR) a ?crit : >>>> The nquery mode is still supported, that hasn't changed. The error >>>> message is fairly informative, what are your templates named? >>>> >>>> Steve >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur >>>> Delorme >>>> Sent: Monday, November 26, 2012 10:38 AM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] Compatibility between mapserver versions: >>>> nquery issue >>>> >>>> Hello, >>>> >>>> A few years ago, I developed a web interface to access data >>>> (informations and download) through spatial queries. It was based on >>>> mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 >>>> and I don't get how spatial queries are working nowadays. >>>> >>>> As far as I understood, nquery mode is not supported anymore for URL >>>> templates (the error is "msReturnPage(): Web application error. >>>> Malformed template name") but I can't figure how it is supposed to >>>> work then. >>>> >>>> On mapserver 5.2.0, a selection were made by drawing a rectangle and >>>> sending the query with: >>>> >>>> >>>> >>>> The result was displayed through template files, with a table >>>> containing some informations for each object selected on each >>>> activated layer (one line per object). >>>> >>>> If someone could give me some informations about the "new" way to >>>> obtain such a result, it would be great, because I am quite lost. >>>> >>>> Many thanks, >>>> >>>> Arthur >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Wed Nov 28 07:41:43 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 28 Nov 2012 08:41:43 -0700 Subject: [mapserver-users] Image 24bits In-Reply-To: <1353690471140-5018436.post@n6.nabble.com> References: <1353690471140-5018436.post@n6.nabble.com> Message-ID: <50B630B7.5050901@geoanalytic.com> As I mentioned in the MS4W list, it sounds like a bug in Mapserver: WMS + Mapserver-with-CLASS + 24bit-raster-in-PostGIS = error You may want to show your mapfile here to get some feedback from others more experienced in using raster from PostGIS... Best Regards, Brent Fraser On 11/23/2012 10:07 AM, Saint wrote: > Dear all, > > I'm attempting to classify images of 24 bits but I always have the error > saying this: ........Unable to access file. Attempt to classify 24bit image, > this is unsupported. > > My Mapfile is this one: > > ........... > > IMAGETYPE "png24" > > .......... > > OUTPUTFORMAT # Parameter Output > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > IMAGEMODE RGBA > TRANSPARENT ON > END # end of parameter Output > > > and in the expression in the browser of GetMap is FORMAT=image/png > > In the Layer description I have the special processing directives to > processed the 3 bands. But If put just 2 appear one empty image not the > error. I already read some documentation but I can't succeed. > > any idea? > > Many thanks and best regards, > > Jos? Santos > > > > ----- > Jos? Santos > GIS Analyst > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Image-24bits-tp5018436.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 umberto.nicoletti at gmail.com Wed Nov 28 11:45:53 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 28 Nov 2012 20:45:53 +0100 Subject: [mapserver-users] Mapserver 6.2.0 undefined reference to `__sync_sub_and_fetch_4' In-Reply-To: <201211270919.59197.sdavies@sdc.com.au> References: <201211171525.36007.sdavies@sdc.com.au> <201211270919.59197.sdavies@sdc.com.au> Message-ID: Stephen, my bad. I though I had it backported, but not. It's in the 6.2 branch now: https://github.com/mapserver/mapserver/commit/6d2fe7de10b0c17204df1785737b3dcbf475d972 Umberto On Mon, Nov 26, 2012 at 11:49 PM, Stephen Davies wrote: > I've been in hospital for a week or so getting a new knee so have not been > able to follow up on this issue. > > I have managed to get a working 6.2.0 executable by manually editing the > outputs from configure before making but would still like to find a proper > fix. > > What happened to Umberto's patch? How come it is not inthe current sources? > > Cheers and thanks, > Stephen > > On Saturday, November 17, 2012 03:25:35 PM Stephen Davies wrote: > > I have found the discussion of this issue from mid-October but the source > > code that I downloaded from mapserver.org yesterday still gives the > error. > > > > Where can I get a version that does not give this error? > > > > I am trying to build on Linux with GCC 4.4.3. > > > > Cheers and thanks, > > Stephen > > -- > > ============================================================================= > Stephen Davies Consulting P/L Phone: 08-8177 1595 > Adelaide, South Australia. Mobile:040 304 > 0583 > Records & Collections Management. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Nov 28 13:43:58 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Nov 2012 21:43:58 +0000 Subject: [mapserver-users] Problem with attribute query, multiple attributes Message-ID: I am trying to set up an attribute query for a large parcel dataset (about 550,000 polygons). I am having trouble with the query exceeding the 30 second limit. I am trying to query on the map_bk_lot and town attributes. I can query on either one separately and get results, but I need to query on both at the same time. Here is my query expression: $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; ---Hardcoded for testing now, will eventually use variables $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); ----Query statement The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer 6.0.2, MapScript 6.1 for PHP One other thing worth mentioning- if I use a small subset of features (such as a town), the query will work without timing out. But I'm no longer convinced that dataset size is the problem since it will query on one attribute. Any ideas what's going wrong here? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Wed Nov 28 15:41:13 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 29 Nov 2012 00:41:13 +0100 Subject: [mapserver-users] ows_hidden_layer option still valid ? Message-ID: Hi, Googling to find a solution to hide a layer from the getcapabilities (to resolve an issue of arcgis). I found that mapserver should have a metadata option named: ows_hidden_layer I try it but it don't work. It was removed from mapserver 6.2 ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Wed Nov 28 15:41:13 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 28 Nov 2012 19:41:13 -0400 Subject: [mapserver-users] Problem with attribute query, multiple attributes In-Reply-To: References: Message-ID: <50B6A119.8090809@gatewaygeomatics.com> On 12-11-28 5:43 PM, Bistrais, Bob wrote: > I am trying to set up an attribute query for a large parcel dataset > (about 550,000 polygons). I am having trouble with the query exceeding > the 30 second limit. > > > > I am trying to query on the map_bk_lot and town attributes. I can query > on either one separately and get results, but I need to query on both at > the same time. > > > > Here is my query expression: > > $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; > ---Hardcoded for testing now, will eventually use variables > > $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); > ----Query statement > > > > The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer > 6.0.2, MapScript 6.1 for PHP > > > > One other thing worth mentioning- if I use a small subset of features > (such as a town), the query will work without timing out. But I?m no > longer convinced that dataset size is the problem since it will query on > one attribute. > > > > Any ideas what?s going wrong here? A tip that might come in handy someday, if not in this case, could be to create an "attribute index" on your vector field (see example in http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's improved attribute queries in MapServer significantly. You can generate one through an ogrinfo command with the "sql" switch. Sorry I cannot provide exact FileGDB examples at the moment. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From aperi2007 at gmail.com Wed Nov 28 16:05:31 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 29 Nov 2012 01:05:31 +0100 Subject: [mapserver-users] ows_hidden_layer option still valid ? In-Reply-To: References: Message-ID: I check also the issue https://github.com/mapserver/mapserver/issues/1952 And I notice that the option "wms_enable_request" "!*" don't work if the layer is inside a "wms_layer_group" Perhaps is this a bug ? 2012/11/29 Andrea Peri : > Hi, > Googling to find a solution to hide a layer from the getcapabilities > (to resolve an issue of arcgis). > I found that mapserver should have a metadata option named: > > ows_hidden_layer > > I try it but it don't work. > > It was removed from mapserver 6.2 ? > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From sangita.shirode at igate.com Thu Nov 29 03:05:02 2012 From: sangita.shirode at igate.com (Sangita M Shirode) Date: Thu, 29 Nov 2012 11:05:02 +0000 Subject: [mapserver-users] msLoadMap(): Unable to access file. Message-ID: <83F9C764336A594D811A8DEB580D01C604B03CF5@IGTEBLRMB13.igatecorp.com> This is my first example on mapserver Trying to simulate application given here http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/ I'm getting the following error msLoadMap(): Unable to access file. (/home/sangitas/softwares/ex1/world_mapfile.map) while opening the following link from the browser http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map where as http://10.210.43.209/cgi-bin/mapserv link works as expected. I made the changes in the map file as followes 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=/home/sangitas/softwares/ex1/world_mapfile.map&' LAYER NAME 'world_raster' TYPE RASTER DATA '/home/sangitas/softwares/ex1/img/world_raster.tif' LAYER NAME 'world_adm0' TYPE POLYGON DATA '/home/sangitas/softwares/ex1/data/world_adm0.shp' Also added following in httpd.conf Options Indexes MultiViews FollowSymLinks AllowOverride all Allow from all Order allow,deny AllowOverride all Allow from all AllowOverride all Allow from all Request you to guide me to run this so that I can move further & try the same application with openlayers. Thanks & Regards, Sangita ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com . iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan38495 at yahoo.com Thu Nov 29 04:14:51 2012 From: stefan38495 at yahoo.com (St St) Date: Thu, 29 Nov 2012 04:14:51 -0800 (PST) Subject: [mapserver-users] (no subject) Message-ID: <1354191291.90575.YahooMailNeo@web125806.mail.ne1.yahoo.com> to: aho forum.email.a at googlemail.com If the map is not draw in OpenLayers and in there is no tinyows-log entry and the reponse is something with ?no valix XML?: try to disable the XML-schema-check in tinyows (check_schema=?0?). If the WFS is then displayed in OpenLayers then you have some problems with the schema-validation in lxml (libxml2). Schema-validation should be enabled for security reasons! ? Check if you have underscores in your layer names. layername is the feature name which can be different from the table name in the DB. ?????????name="pipelinesegment " ???????? table=" pipeline_segment " without underscores in the schema-check should be fine -> turn schema check on again. ? (from: ????https://github.com/mapserver/mapserver/issues/4205 ) ? HTH Stefan From jt at mapmedia.de Thu Nov 29 04:26:50 2012 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Thu, 29 Nov 2012 13:26:50 +0100 Subject: [mapserver-users] msLoadMap(): Unable to access file. In-Reply-To: <83F9C764336A594D811A8DEB580D01C604B03CF5@IGTEBLRMB13.igatecorp.com> References: <83F9C764336A594D811A8DEB580D01C604B03CF5@IGTEBLRMB13.igatecorp.com> Message-ID: <50B7548A.40107@mapmedia.de> Hi, mapserver tells you what's wrong: > msLoadMap(): Unable to access file. > (/home/sangitas/softwares/ex1/world_mapfile.map) as your online-resource contains 'mapserv.exe' i think you are working on windows. The path to your mapfile looks like unix-path. On windows it should look like c:\path to your mapfile\yourmapfile.map regards, J?rg > while opening the following link from the browser > > http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map > > where as http://10.210.43.209/cgi-bin/mapserv > link > works as expected. > > I made the changes in the map file as followes > > *'wms_onlineresource' > 'http://localhost/cgi-bin/mapserv.exe?map=/home/sangitas/softwares/ex1/world_mapfile.map&'* > > > > LAYER > > NAME 'world_raster' > > TYPE RASTER > > *DATA '/home/sangitas/softwares/ex1/img/world_raster.tif'* > > ** > > LAYER > > NAME 'world_adm0' > > TYPE POLYGON > > *DATA '/home/sangitas/softwares/ex1/data/world_adm0.shp'* > > > > Also added following in httpd.conf > > > Options Indexes MultiViews FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > > > AllowOverride all > Allow from all > > > AllowOverride all > Allow from all > > > Request you to guide me to run this so that I can move further & try the > same application with openlayers. > > > > > > *Thanks & Regards,* > > *Sangita * > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Information contained and transmitted by this e-mail is confidential and > proprietary to iGATE and its affiliates and is intended for use only by > the recipient. If you are not the intended recipient, you are hereby > notified that any dissemination, distribution, copying or use of this > e-mail is strictly prohibited and you are requested to delete this > e-mail immediately and notify the originator or mailadmin at igate.com > . iGATE does not enter into any agreement > with any party by e-mail. Any views expressed by an individual do not > necessarily reflect the view of iGATE. iGATE is not responsible for the > consequences of any actions taken on the basis of information provided, > through this email. The contents of an attachment to this e-mail may > contain software viruses, which could damage your own computer system. > While iGATE has taken every reasonable precaution to minimise this risk, > we cannot accept liability for any damage which you sustain as a result > of software viruses. You should carry out your own virus checks before > opening an attachment. To know more about iGATE please visit > www.igate.com . > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From astrid.emde at wheregroup.com Thu Nov 29 07:16:12 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Thu, 29 Nov 2012 16:16:12 +0100 Subject: [mapserver-users] EXPRESSION error with MapServer 6.2 Message-ID: <20cd73fe2d265ede789ea89c67ca526d.squirrel@troubadix.wheregroup.com> Hello, I have a MapServer 6.2 question. I run MapServer 6.2 on Windows Server 2008. I noticed a strange behaviour with the EXPRESSION definition while I am migrating my mapfiles to MapServer 6.0 This is my table: CREATE TABLE ax_bauwerkoderanlagefuerindustrieundgewerbe ( ogc_fid serial NOT NULL, gml_id character(16), -- Identifikator, global eindeutig ... bauwerksfunktion integer, wkb_geometry geometry ... ); DATA "wkb_geometry from (SELECT ogc_fid, bauwerksfunktion, wkb_geometry FROM ax_bauwerkoderanlagefuerindustrieundgewerbe) as foo using unique ogc_fid USING SRID=25832" As bauwerksfunktion is an integer column my EXPRESSION definition was like this in MaServer < 6.0 EXPRESSION ([bauwerksfunktion] = 1210) EXPRESSION ([bauwerksfunktion] = 1215 OR [bauwerksfunktion] = 1220 OR [bauwerksfunktion] = 1250 OR [bauwerksfunktion] = 1260) Now with MapServer 6.2 it does not work anymore: * instead of a map I get an Internal Server Error My Logfile says: [Thu Nov 29 15:03:31 2012].824000 msEvalExpression(): General error message. Invalid item index. I also checked http://mapserver.org/mapfile/expressions.html Does anyone has an idea? -- Thanks for your help Astrid Emde .................................................................. FOSSGIS 2013, Die Konferenz f?r Open Source GIS mit OpenData und OpenStreetMap erstmals in der Schweiz! 12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de .................................................................. From Bob.Bistrais at maine.gov Thu Nov 29 06:44:59 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 29 Nov 2012 14:44:59 +0000 Subject: [mapserver-users] Problem with attribute query, multiple attributes In-Reply-To: <50B6A119.8090809@gatewaygeomatics.com> References: <50B6A119.8090809@gatewaygeomatics.com> Message-ID: Thanks Jeff. That link shows how to build an index on a shapefile. Is there an equivalent for File GDB? I'm looking at the GDAL document for GDB now, not seeing an index description. -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Wednesday, November 28, 2012 6:41 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes On 12-11-28 5:43 PM, Bistrais, Bob wrote: > I am trying to set up an attribute query for a large parcel dataset > (about 550,000 polygons). I am having trouble with the query > exceeding the 30 second limit. > > > > I am trying to query on the map_bk_lot and town attributes. I can > query on either one separately and get results, but I need to query on > both at the same time. > > > > Here is my query expression: > > $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; > ---Hardcoded for testing now, will eventually use variables > > $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); > ----Query statement > > > > The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer > 6.0.2, MapScript 6.1 for PHP > > > > One other thing worth mentioning- if I use a small subset of features > (such as a town), the query will work without timing out. But I'm no > longer convinced that dataset size is the problem since it will query > on one attribute. > > > > Any ideas what's going wrong here? A tip that might come in handy someday, if not in this case, could be to create an "attribute index" on your vector field (see example in http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's improved attribute queries in MapServer significantly. You can generate one through an ogrinfo command with the "sql" switch. Sorry I cannot provide exact FileGDB examples at the moment. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From David.Fawcett at state.mn.us Thu Nov 29 07:09:35 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 29 Nov 2012 15:09:35 +0000 Subject: [mapserver-users] Problem with attribute query, multiple attributes In-Reply-To: References: <50B6A119.8090809@gatewaygeomatics.com> Message-ID: Since OGR accesses the GDB via ESRI's API/Library, it may (should) take advantage of attribute indexes built on the data with ArcMap. You should make sure that the feature classes in the GDB have attribute indexes on any column that you want to use as query criteria and that they have good spatial indexes as well. If you don't have access to ESRI tools, you will likely want to pre-process the data by dumping it from the GDB to shapefiles or PostGIS, where you can create all of the indexes that you need. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, November 29, 2012 8:45 AM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Thanks Jeff. That link shows how to build an index on a shapefile. Is there an equivalent for File GDB? I'm looking at the GDAL document for GDB now, not seeing an index description. -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Wednesday, November 28, 2012 6:41 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes On 12-11-28 5:43 PM, Bistrais, Bob wrote: > I am trying to set up an attribute query for a large parcel dataset > (about 550,000 polygons). I am having trouble with the query > exceeding the 30 second limit. > > > > I am trying to query on the map_bk_lot and town attributes. I can > query on either one separately and get results, but I need to query on > both at the same time. > > > > Here is my query expression: > > $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; > ---Hardcoded for testing now, will eventually use variables > > $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); > ----Query statement > > > > The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer > 6.0.2, MapScript 6.1 for PHP > > > > One other thing worth mentioning- if I use a small subset of features > (such as a town), the query will work without timing out. But I'm no > longer convinced that dataset size is the problem since it will query > on one attribute. > > > > Any ideas what's going wrong here? A tip that might come in handy someday, if not in this case, could be to create an "attribute index" on your vector field (see example in http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's improved attribute queries in MapServer significantly. You can generate one through an ogrinfo command with the "sql" switch. Sorry I cannot provide exact FileGDB examples at the moment. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Nov 29 07:27:14 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 29 Nov 2012 15:27:14 +0000 Subject: [mapserver-users] EXPRESSION error with MapServer 6.2 In-Reply-To: <20cd73fe2d265ede789ea89c67ca526d.squirrel@troubadix.wheregroup.com> References: <20cd73fe2d265ede789ea89c67ca526d.squirrel@troubadix.wheregroup.com> Message-ID: Hmmm... Seems like bug. There weren't any major changes to the EXPRESSION code but I imagine at least small modifications were made. I have access to similar data here, let me try a local test. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Astrid Emde Sent: Thursday, November 29, 2012 9:16 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] EXPRESSION error with MapServer 6.2 Hello, I have a MapServer 6.2 question. I run MapServer 6.2 on Windows Server 2008. I noticed a strange behaviour with the EXPRESSION definition while I am migrating my mapfiles to MapServer 6.0 This is my table: CREATE TABLE ax_bauwerkoderanlagefuerindustrieundgewerbe ( ogc_fid serial NOT NULL, gml_id character(16), -- Identifikator, global eindeutig ... bauwerksfunktion integer, wkb_geometry geometry ... ); DATA "wkb_geometry from (SELECT ogc_fid, bauwerksfunktion, wkb_geometry FROM ax_bauwerkoderanlagefuerindustrieundgewerbe) as foo using unique ogc_fid USING SRID=25832" As bauwerksfunktion is an integer column my EXPRESSION definition was like this in MaServer < 6.0 EXPRESSION ([bauwerksfunktion] = 1210) EXPRESSION ([bauwerksfunktion] = 1215 OR [bauwerksfunktion] = 1220 OR [bauwerksfunktion] = 1250 OR [bauwerksfunktion] = 1260) Now with MapServer 6.2 it does not work anymore: * instead of a map I get an Internal Server Error My Logfile says: [Thu Nov 29 15:03:31 2012].824000 msEvalExpression(): General error message. Invalid item index. I also checked http://mapserver.org/mapfile/expressions.html Does anyone has an idea? -- Thanks for your help Astrid Emde .................................................................. FOSSGIS 2013, Die Konferenz f?r Open Source GIS mit OpenData und OpenStreetMap erstmals in der Schweiz! 12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de .................................................................. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From admin at michiganwxsystem.com Thu Nov 29 06:24:31 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Thu, 29 Nov 2012 09:24:31 -0500 Subject: [mapserver-users] EXPRESSION error with MapServer 6.2 In-Reply-To: <20cd73fe2d265ede789ea89c67ca526d.squirrel@troubadix.wheregroup.com> References: <20cd73fe2d265ede789ea89c67ca526d.squirrel@troubadix.wheregroup.com> Message-ID: <50B7701F.7070504@michiganwxsystem.com> shot in the dark .. But I believe the error your getting in an actual MySQL error .. your table name is a bit long ... -Jeff Lake MichiganWxSystem.com AllisonHouse.com TheWeatherCenter.net GRLevelXStuff.com On 11/29/2012 10:16, Astrid Emde wrote: > Hello, > > I have a MapServer 6.2 question. I run MapServer 6.2 on Windows Server 2008. > > I noticed a strange behaviour with the EXPRESSION definition while I am > migrating my mapfiles to MapServer 6.0 > > This is my table: > CREATE TABLE ax_bauwerkoderanlagefuerindustrieundgewerbe > ( > ogc_fid serial NOT NULL, > gml_id character(16), -- Identifikator, global eindeutig > ... > bauwerksfunktion integer, > wkb_geometry geometry > ... > ); > > > DATA "wkb_geometry from (SELECT ogc_fid, bauwerksfunktion, wkb_geometry > FROM ax_bauwerkoderanlagefuerindustrieundgewerbe) as foo using unique > ogc_fid USING SRID=25832" > > As bauwerksfunktion is an integer column my EXPRESSION definition was like > this in MaServer < 6.0 > > EXPRESSION ([bauwerksfunktion] = 1210) > EXPRESSION ([bauwerksfunktion] = 1215 OR [bauwerksfunktion] = 1220 OR > [bauwerksfunktion] = 1250 OR [bauwerksfunktion] = 1260) > > Now with MapServer 6.2 it does not work anymore: > * instead of a map I get an Internal Server Error > > My Logfile says: > [Thu Nov 29 15:03:31 2012].824000 msEvalExpression(): General error > message. Invalid item index. > > I also checked http://mapserver.org/mapfile/expressions.html > > Does anyone has an idea? > From Steve.Lime at state.mn.us Thu Nov 29 08:03:22 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 29 Nov 2012 16:03:22 +0000 Subject: [mapserver-users] Problem with attribute query, multiple attributes In-Reply-To: References: <50B6A119.8090809@gatewaygeomatics.com> Message-ID: Honestly I don't think an index is going to help unless the attribute filter is being passed to OGR processing. I'm not familiar enough with that driver to know if that's done or not. Usually attribute queries are written a form the driver understands. For PostGIS that means a bit of a where clause, for Shapefiles it's the normal expression syntax. Again, not sure about OGR. With large shapefiles attribute queries are inefficient, usually requiring full table scans. Bob's example: queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; will guarantee a full scan because the expression is invalid. The same feature can't have two values for TOWN. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, November 29, 2012 9:10 AM To: Bistrais, Bob; Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Since OGR accesses the GDB via ESRI's API/Library, it may (should) take advantage of attribute indexes built on the data with ArcMap. You should make sure that the feature classes in the GDB have attribute indexes on any column that you want to use as query criteria and that they have good spatial indexes as well. If you don't have access to ESRI tools, you will likely want to pre-process the data by dumping it from the GDB to shapefiles or PostGIS, where you can create all of the indexes that you need. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, November 29, 2012 8:45 AM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Thanks Jeff. That link shows how to build an index on a shapefile. Is there an equivalent for File GDB? I'm looking at the GDAL document for GDB now, not seeing an index description. -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Wednesday, November 28, 2012 6:41 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes On 12-11-28 5:43 PM, Bistrais, Bob wrote: > I am trying to set up an attribute query for a large parcel dataset > (about 550,000 polygons). I am having trouble with the query > exceeding the 30 second limit. > > > > I am trying to query on the map_bk_lot and town attributes. I can > query on either one separately and get results, but I need to query on > both at the same time. > > > > Here is my query expression: > > $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; > ---Hardcoded for testing now, will eventually use variables > > $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); > ----Query statement > > > > The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer > 6.0.2, MapScript 6.1 for PHP > > > > One other thing worth mentioning- if I use a small subset of features > (such as a town), the query will work without timing out. But I'm no > longer convinced that dataset size is the problem since it will query > on one attribute. > > > > Any ideas what's going wrong here? A tip that might come in handy someday, if not in this case, could be to create an "attribute index" on your vector field (see example in http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's improved attribute queries in MapServer significantly. You can generate one through an ogrinfo command with the "sql" switch. Sorry I cannot provide exact FileGDB examples at the moment. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Thu Nov 29 08:15:37 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 29 Nov 2012 16:15:37 +0000 Subject: [mapserver-users] Problem with attribute query, multiple attributes In-Reply-To: References: <50B6A119.8090809@gatewaygeomatics.com> Message-ID: Whoops! I sent the wrong expression, and I acknowledge that one was incorrect. Here is the correct expression: $queryExp = "(('[MAP_BK_LOT]' == '007-042') AND ('[TOWN]' == 'Acton'))"; -So we're selecting on items map_bk_lot and town. And again, I'm not using a shapefile here, it's a featureclass in an ESRI File Geodatabase. -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, November 29, 2012 11:03 AM To: Fawcett, David (MPCA); Bistrais, Bob; Jeff McKenna; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Problem with attribute query, multiple attributes Honestly I don't think an index is going to help unless the attribute filter is being passed to OGR processing. I'm not familiar enough with that driver to know if that's done or not. Usually attribute queries are written a form the driver understands. For PostGIS that means a bit of a where clause, for Shapefiles it's the normal expression syntax. Again, not sure about OGR. With large shapefiles attribute queries are inefficient, usually requiring full table scans. Bob's example: queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; will guarantee a full scan because the expression is invalid. The same feature can't have two values for TOWN. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, November 29, 2012 9:10 AM To: Bistrais, Bob; Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Since OGR accesses the GDB via ESRI's API/Library, it may (should) take advantage of attribute indexes built on the data with ArcMap. You should make sure that the feature classes in the GDB have attribute indexes on any column that you want to use as query criteria and that they have good spatial indexes as well. If you don't have access to ESRI tools, you will likely want to pre-process the data by dumping it from the GDB to shapefiles or PostGIS, where you can create all of the indexes that you need. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, November 29, 2012 8:45 AM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Thanks Jeff. That link shows how to build an index on a shapefile. Is there an equivalent for File GDB? I'm looking at the GDAL document for GDB now, not seeing an index description. -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Wednesday, November 28, 2012 6:41 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes On 12-11-28 5:43 PM, Bistrais, Bob wrote: > I am trying to set up an attribute query for a large parcel dataset > (about 550,000 polygons). I am having trouble with the query > exceeding the 30 second limit. > > > > I am trying to query on the map_bk_lot and town attributes. I can > query on either one separately and get results, but I need to query on > both at the same time. > > > > Here is my query expression: > > $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; > ---Hardcoded for testing now, will eventually use variables > > $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); > ----Query statement > > > > The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer > 6.0.2, MapScript 6.1 for PHP > > > > One other thing worth mentioning- if I use a small subset of features > (such as a town), the query will work without timing out. But I'm no > longer convinced that dataset size is the problem since it will query > on one attribute. > > > > Any ideas what's going wrong here? A tip that might come in handy someday, if not in this case, could be to create an "attribute index" on your vector field (see example in http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's improved attribute queries in MapServer significantly. You can generate one through an ogrinfo command with the "sql" switch. Sorry I cannot provide exact FileGDB examples at the moment. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aschenkel at kadenpartner.ch Thu Nov 29 07:59:32 2012 From: aschenkel at kadenpartner.ch (Alexander Schenkel) Date: Thu, 29 Nov 2012 16:59:32 +0100 Subject: [mapserver-users] Use STYLEITEM to style individual features? Message-ID: <50B78664.5000305@kadenpartner.ch> Dear all, We have the following setup: Our features come as DB records out of a PostGIS 1.5 database, which contains a column "mapserver_style" besides other data columns. We want to use that column to style the individual features. Since MapServer 6.0 (we use 6.0.2), the Mapserver LAYER config knows the "STYLEITEM" configuration attribute, which takes the name of an item (DB column, in our case), and, according to the documentation, should contain a STYLE ...END string. This seems not to be working or we use it the wrong way. Our Mapfile's LAYER definition looks as follows (cleaned out all irrelevant information): ###### LAYER NAME layername DATA "wkb_geometry from (SELECT wkb_geometry,mapserver_style,some_other_data) as foo using SRID=21781, using unique ogc_fid" TYPE POINT STATUS ON OPACITY 100 DUMP TRUE STYLEITEM "mapserver_style" CLASS END END ###### while "mapserver_style" corresponds to the database column containing the "STYLE .... END" string. As an example, the "mapserver_style" column for a single feature contains: STYLE SIZE 10 COLOR 135 255 135 OUTLINEWIDTH 2 OUTLINECOLOR 0 0 0 SYMBOL 'filled square' END which does NOT draw any visible feature on the map. If we just surround this example with "CLASS .... END", it basically works, BUT the class(es) then match every single feature, leading to overlapping feature symbols for every single feature appearing after the class has been defined: CLASS STYLE SIZE 10 COLOR 135 255 135 OUTLINEWIDTH 2 OUTLINECOLOR 0 0 0 SYMBOL 'filled square' END END So can anybody tell us how we can style features on a per-feature basis using the STYLEITEM config? Or is this the wrong way? Many thanks for your support, alex From Bob.Bistrais at maine.gov Thu Nov 29 11:06:28 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 29 Nov 2012 19:06:28 +0000 Subject: [mapserver-users] Problem with attribute query, multiple attributes In-Reply-To: References: <50B6A119.8090809@gatewaygeomatics.com> Message-ID: I tried a few things and have an interesting result- After trying the file GDB with multiple attributes, and no success there, I tried Jeff's suggestion and used a shapefile of the parcels, and added an index. I know that conventional wisdom says shapefile is a poor choice, but when I tried it, I got a query result within 7 or 8 seconds. So while this might not be the recommended approach, it gets the job done. Thanks Jeff! -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, November 29, 2012 11:03 AM To: Fawcett, David (MPCA); Bistrais, Bob; Jeff McKenna; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Problem with attribute query, multiple attributes Honestly I don't think an index is going to help unless the attribute filter is being passed to OGR processing. I'm not familiar enough with that driver to know if that's done or not. Usually attribute queries are written a form the driver understands. For PostGIS that means a bit of a where clause, for Shapefiles it's the normal expression syntax. Again, not sure about OGR. With large shapefiles attribute queries are inefficient, usually requiring full table scans. Bob's example: queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; will guarantee a full scan because the expression is invalid. The same feature can't have two values for TOWN. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, November 29, 2012 9:10 AM To: Bistrais, Bob; Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Since OGR accesses the GDB via ESRI's API/Library, it may (should) take advantage of attribute indexes built on the data with ArcMap. You should make sure that the feature classes in the GDB have attribute indexes on any column that you want to use as query criteria and that they have good spatial indexes as well. If you don't have access to ESRI tools, you will likely want to pre-process the data by dumping it from the GDB to shapefiles or PostGIS, where you can create all of the indexes that you need. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, November 29, 2012 8:45 AM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes Thanks Jeff. That link shows how to build an index on a shapefile. Is there an equivalent for File GDB? I'm looking at the GDAL document for GDB now, not seeing an index description. -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Wednesday, November 28, 2012 6:41 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes On 12-11-28 5:43 PM, Bistrais, Bob wrote: > I am trying to set up an attribute query for a large parcel dataset > (about 550,000 polygons). I am having trouble with the query > exceeding the 30 second limit. > > > > I am trying to query on the map_bk_lot and town attributes. I can > query on either one separately and get results, but I need to query on > both at the same time. > > > > Here is my query expression: > > $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; > ---Hardcoded for testing now, will eventually use variables > > $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE); > ----Query statement > > > > The data is in an ESRI File GDB. I am using MS4w 3.0.4m MapServer > 6.0.2, MapScript 6.1 for PHP > > > > One other thing worth mentioning- if I use a small subset of features > (such as a town), the query will work without timing out. But I'm no > longer convinced that dataset size is the problem since it will query > on one attribute. > > > > Any ideas what's going wrong here? A tip that might come in handy someday, if not in this case, could be to create an "attribute index" on your vector field (see example in http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's improved attribute queries in MapServer significantly. You can generate one through an ogrinfo command with the "sql" switch. Sorry I cannot provide exact FileGDB examples at the moment. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Thu Nov 29 13:36:19 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 29 Nov 2012 22:36:19 +0100 Subject: [mapserver-users] Use STYLEITEM to style individual features? In-Reply-To: <50B78664.5000305@kadenpartner.ch> References: <50B78664.5000305@kadenpartner.ch> Message-ID: Alex, This is indeed a bug in mapserver, symbol indexes are not resolved from symbol names when updating a style from string. You might want to file a ticket and assign that to me in the github issue tracker . Best regards, Tamas 2012/11/29 Alexander Schenkel > Dear all, > > We have the following setup: > > Our features come as DB records out of a PostGIS 1.5 database, which > contains a column "mapserver_style" besides other data columns. We want > to use that column to style the individual features. > > Since MapServer 6.0 (we use 6.0.2), the Mapserver LAYER config knows the > "STYLEITEM" configuration attribute, which takes the name of an > item (DB column, in our case), and, according to the documentation, > should contain a STYLE ...END string. > > This seems not to be working or we use it the wrong way. Our Mapfile's > LAYER definition looks as follows (cleaned out > all irrelevant information): > > > ###### > LAYER > NAME layername > DATA "wkb_geometry from (SELECT > wkb_geometry,mapserver_style,some_other_data) as foo using SRID=21781, > using unique ogc_fid" > > TYPE POINT > STATUS ON > OPACITY 100 > DUMP TRUE > STYLEITEM "mapserver_style" > > CLASS > END > END > ###### > > while "mapserver_style" corresponds to the database column containing > the "STYLE .... END" string. > > As an example, the "mapserver_style" column for a single feature contains: > > STYLE > SIZE 10 > COLOR 135 255 135 > OUTLINEWIDTH 2 > OUTLINECOLOR 0 0 0 > SYMBOL 'filled square' > END > > which does NOT draw any visible feature on the map. > > If we just surround this example with "CLASS .... END", it basically > works, BUT the class(es) then match every single feature, leading to > overlapping feature symbols > for every single feature appearing after the class has been defined: > > CLASS > STYLE > SIZE 10 > COLOR 135 255 135 > OUTLINEWIDTH 2 > OUTLINECOLOR 0 0 0 > SYMBOL 'filled square' > END > END > > So can anybody tell us how we can style features on a per-feature basis > using the STYLEITEM config? Or is this the wrong way? > > Many thanks for your support, > > alex > > > > > _______________________________________________ > 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 aschenkel at kadenpartner.ch Thu Nov 29 22:31:01 2012 From: aschenkel at kadenpartner.ch (Alexander Schenkel) Date: Fri, 30 Nov 2012 07:31:01 +0100 Subject: [mapserver-users] Use STYLEITEM to style individual features? In-Reply-To: References: <50B78664.5000305@kadenpartner.ch> Message-ID: <50B852A5.8000603@kadenpartner.ch> Dear Tamas, Thanks, I will do so. So if I understand correctly, it should work if we use the SYMBBOL index instead of the name? so e.g.: STYLE SIZE 10 COLOR 135 255 135 OUTLINEWIDTH 2 OUTLINECOLOR 0 0 0 SYMBOL 2 # ('filled square' is the 2nd symbon in our symboldef file) END instead of STYLE SIZE 10 COLOR 135 255 135 OUTLINEWIDTH 2 OUTLINECOLOR 0 0 0 SYMBOL 'filled square' END Unfortunately, this is also not working. And, as also written in my first post, it IS indeed working on class level, so if we surround our style definition with a CLASS ... END tag, but, yeah, this is not what we want as all those classes then gets defined and applied to all features. So I will file a bug, but perhaps this is not the root of the problem? Thanks alex Am 29.11.12 22:36, schrieb Tamas Szekeres: > Alex, > > This is indeed a bug in mapserver, symbol indexes are not resolved from > symbol names when updating a style from string. You might want to file a > ticket and assign that to me in the github issue > tracker > . > > Best regards, > > Tamas > > > > 2012/11/29 Alexander Schenkel > >> Dear all, >> >> We have the following setup: >> >> Our features come as DB records out of a PostGIS 1.5 database, which >> contains a column "mapserver_style" besides other data columns. We want >> to use that column to style the individual features. >> >> Since MapServer 6.0 (we use 6.0.2), the Mapserver LAYER config knows the >> "STYLEITEM" configuration attribute, which takes the name of an >> item (DB column, in our case), and, according to the documentation, >> should contain a STYLE ...END string. >> >> This seems not to be working or we use it the wrong way. Our Mapfile's >> LAYER definition looks as follows (cleaned out >> all irrelevant information): >> >> >> ###### >> LAYER >> NAME layername >> DATA "wkb_geometry from (SELECT >> wkb_geometry,mapserver_style,some_other_data) as foo using SRID=21781, >> using unique ogc_fid" >> >> TYPE POINT >> STATUS ON >> OPACITY 100 >> DUMP TRUE >> STYLEITEM "mapserver_style" >> >> CLASS >> END >> END >> ###### >> >> while "mapserver_style" corresponds to the database column containing >> the "STYLE .... END" string. >> >> As an example, the "mapserver_style" column for a single feature contains: >> >> STYLE >> SIZE 10 >> COLOR 135 255 135 >> OUTLINEWIDTH 2 >> OUTLINECOLOR 0 0 0 >> SYMBOL 'filled square' >> END >> >> which does NOT draw any visible feature on the map. >> >> If we just surround this example with "CLASS .... END", it basically >> works, BUT the class(es) then match every single feature, leading to >> overlapping feature symbols >> for every single feature appearing after the class has been defined: >> >> CLASS >> STYLE >> SIZE 10 >> COLOR 135 255 135 >> OUTLINEWIDTH 2 >> OUTLINECOLOR 0 0 0 >> SYMBOL 'filled square' >> END >> END >> >> So can anybody tell us how we can style features on a per-feature basis >> using the STYLEITEM config? Or is this the wrong way? >> >> Many thanks for your support, >> >> alex >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From szekerest at gmail.com Fri Nov 30 00:51:02 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 30 Nov 2012 09:51:02 +0100 Subject: [mapserver-users] Use STYLEITEM to style individual features? In-Reply-To: <50B852A5.8000603@kadenpartner.ch> References: <50B78664.5000305@kadenpartner.ch> <50B852A5.8000603@kadenpartner.ch> Message-ID: 2012/11/30 Alexander Schenkel > Dear Tamas, > > Thanks, I will do so. So if I understand correctly, it should work if we > use the SYMBBOL index instead of the name? > > I don't think so. That should be fixed in the code. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Fri Nov 30 02:09:03 2012 From: SSchantz at BfS.de (Stefan Schantz) Date: Fri, 30 Nov 2012 11:09:03 +0100 Subject: [mapserver-users] Dimension default doesn't work and documentation is patchy Message-ID: <50B885BF.50001@BfS.de> Hello everybody, I have setup a mapfile with 4 dimensions. As long as I have the dimension parameters in the request, it works fine. But if the dimension parameter are missing, the default parameters won't be used. What is wrong with my mapfile? mapfile: (...) METADATA "wms_title" "DWD Prognose Luft" "wms_abstract" "Darstellung der Ausbreitungsrechnung in der Luft; Der Layer muss ?ber die Variablen VID (Vorgangs-ID), MGR_ID (Messgr??en-ID), RIE (relatives Intervallende) abgefragt werden, ansonsten werden die Defaultwerte verwendet" "wms_enable_request" "*" INCLUDE "../../include/general/standard_extent_welt.map" "wms_dimensionlist" "MGR_ID,RIE,VID" "wms_MGR_ID_item" "MGR_ID" "wms_MGR_ID_extent" "373, 870, 384" "wms_MGR_ID_units" "none" "wms_MGR_ID_default" "373" "wms_RIE_item" "RIE" "wms_RIE_extent" "0, 6, 18, 30, 42, 54, 66, 78" "wms_RIE_units" "hour" "wms_RIE_default" "18" "wms_VID_item" "VID" "wms_VID_extent" "10000000/9999999999" "wms_VID_units" "none" "wms_VID_default" "984092599" "wms_timeitem" "TIME" "wms_timeextent" "2012-01-01 00:00/2012-12-31 00:00" "wms_timedefault" "2012-03-12 00:00" "default_MGR_ID" "373" "default_RIE" "18" "default_VID" "984092599" END By the way I think, there is a documentation error: In the documentation http://mapserver.org/ogc/wms_dimension.html under "Setting Up a WMS Layer with dimension support" the parameter "wms_[dimensionname]_units" is also mandatory, otherwise I didn't get it work. Best regards, Stefan From steven at minst.net Fri Nov 30 02:16:58 2012 From: steven at minst.net (Steven M. Ottens) Date: Fri, 30 Nov 2012 11:16:58 +0100 Subject: [mapserver-users] Slow mapfile Message-ID: <50B8879A.2030403@minst.net> Hi all, I'm having troubles generating tiles with mapserver, they take up to half an hour per tile (256x256pixels). The data is stored as a series of 32bit float GeoTIFFs, internally tiled with gdal and provided in four different levels (5meter, 25meter, 100meter and overview) as a series of files in separate directories which are indexed with gdaltindex. The data is a detailed height model of the Netherlands with a vertical resolution of 1cm - this way the Netherlands doesn't look so flat ;). I need to encode this data into a specially crafted PNG to be able to do dynamic classification in the browser. This means that for the range -12m to 350m I want each centimetre as a different colour. I end up with 36200 classes and a mapserver which is working for half an hour on 100% on a 2.6GHZ Quad-Xeon server with 8GB RAM, Ubuntu 12.04, gdal 1.9.2 and mapserver 6.2.0. The tiles are created by TileCache 2.11 and a tileseed.py run on the same server and the data is in the same projection as the tiles. I'm aware that 36200 classes are a lot, but I do need the 36200 values encoded in my PNG-tiles. Currently I use an include to include the classification for the different layers, since the classification alone is almost 3MB. Any suggestions on how to improve the render-speed, either in data preparation, the mapfile or a different approach all together? Regards, Steven Snippet of the included class.map: CLASSITEM "[pixel]" CLASS EXPRESSION ( [pixel] < -11.99 ) COLOR 0 0 0 END CLASS EXPRESSION ( [pixel] >= -11.99 AND [pixel] < -11.98 ) COLOR 0 0 1 END ###36000+ more classes### CLASS EXPRESSION ( [pixel] >= 349.99 AND [pixel] < 350 ) COLOR 0 141 103 END CLASS EXPRESSION ( [pixel] >= 350 ) COLOR 0 141 104 END The main mapfile: MAP EXTENT 10000 305000 280000 619000 UNITS METERS NAME "AHN hoogtes" SHAPEPATH "/var/data/hoogte/nederland" PROJECTION "init=epsg:28992" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 18 12 KEYSPACING 5 5 LABEL ANTIALIAS TRUE SIZE 9 TYPE TRUETYPE FONT "Arial" BUFFER 0 COLOR 0 0 89 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION UR STATUS ON TRANSPARENT TRUE END #legend QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS OFF STYLE HILITE END #querymap DEBUG 0 WEB # Path to the temporary directory fro writing temporary files and images. # Must be writable by the user the web server is running as. # Must end with a / or \ depending on your platform. IMAGEPATH "/tmp" # Base URL for IMAGEPATH. This is the URL that will take the web browser to # IMAGEPATH to get the images. IMAGEURL "/tmp/" MAXSCALE 30000000 MINSCALE 1000 METADATA WMS_TITLE "Algemeen Hoogtebestand Nederland" WMS_ABSTRACT "Algemeen Hoogtebestand Nederland" WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?map=maps/hoogte.map" WMS_SRS "EPSG:28992" WMS_ENABLE_REQUEST "*" END END # web OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END # outputformat LAYER GROUP "ahn2" NAME "ahn2_max" METADATA WMS_TITLE "Hoogte Max Res" WMS_ABSTRACT "Hoogte Max Res" WMS_NAME "Hoogte Max Res" WMS_SRS "EPSG:28992" WFS_TITLE "Hoogte Max Res" WMS_GROUP_TITLE "hoogte" END PROJECTION "init=epsg:28992" END DATA "ahn2-2012/overview.tif" STATUS ON DEBUG 0 TEMPLATE "blank.html" TYPE RASTER UNITS METERS PROCESSING "SCALE=-12,350" PROCESSING "SCALE_BUCKETS=36200" MINSCALE 500000 MAXSCALE 30000000 INCLUDE "class.map" END # layer ahn2 LAYER GROUP "ahn2" NAME "ahn2_100m" METADATA WMS_TITLE "Hoogte 100m" WMS_ABSTRACT "Hoogte 100m" WMS_NAME "Hoogte 100m" WMS_SRS "EPSG:28992" WFS_TITLE "Hoogte 100m" gml_include_items "value_0" gml_value_0_alias "hoogte" WMS_GROUP_TITLE "hoogte" "wcs_label" "Hoogte 100m" ### required "wcs_rangeset_name" "Hoogte 100m (rangeset name)" ### required to support DescribeCoverage request "wcs_rangeset_label" "Hoogte 100m (rangeset label)" ### required to support DescribeCoverage request END PROJECTION "init=epsg:28992" END TILEINDEX iahn2_raster100_index TILEITEM "location" STATUS ON DEBUG 0 TEMPLATE "blank.html" TYPE RASTER UNITS METERS PROCESSING "SCALE=-12,350" PROCESSING "SCALE_BUCKETS=36200" MINSCALE 150000 MAXSCALE 500000 INCLUDE "class.map" END # layer ahn2 LAYER GROUP "ahn2" NAME "ahn2_25m" METADATA WMS_TITLE "Hoogte 25m" WMS_ABSTRACT "Hoogte 25m" WMS_NAME "Hoogte 25m" WMS_SRS "EPSG:28992" WFS_TITLE "Hoogte 25m" gml_include_items "value_0" gml_value_0_alias "hoogte" WMS_GROUP_TITLE "hoogte" "wcs_label" "Hoogte 25m" ### required "wcs_rangeset_name" "Hoogte 25m (rangeset name)" ### required to support DescribeCoverage request "wcs_rangeset_label" "Hoogte 25m (rangeset label)" ### required to support DescribeCoverage request END PROJECTION "init=epsg:28992" END TILEINDEX iahn2_raster25_index TILEITEM "location" STATUS ON DEBUG 0 TEMPLATE "blank.html" TYPE RASTER UNITS METERS PROCESSING "SCALE=-12,350" PROCESSING "SCALE_BUCKETS=36200" MINSCALE 30000 MAXSCALE 150000 INCLUDE "class.map" END # layer ahn2 LAYER GROUP "ahn2" NAME "ahn2_5m" METADATA WMS_TITLE "Hoogte 5m" WMS_GROUP_TITLE "hoogte" WMS_NAME "Hoogte 5m" WMS_ABSTRACT "Hoogte 5m" WMS_SRS "EPSG:28992" WFS_TITLE "Hoogte 5m" gml_include_items "value_0" gml_value_0_alias "hoogte" "ows_srs" "EPSG:28992" END PROJECTION "init=epsg:28992" END TILEINDEX iahn2_raster5_index TILEITEM "Location" STATUS ON DEBUG 0 TEMPLATE "blank.html" TYPE RASTER UNITS METERS PROCESSING "SCALE=-12,350" PROCESSING "SCALE_BUCKETS=36200" MINSCALE 1000 MAXSCALE 30000 INCLUDE "class.map" END # layer ahn2 END #map From bfraser at geoanalytic.com Fri Nov 30 07:36:09 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 30 Nov 2012 08:36:09 -0700 Subject: [mapserver-users] Image 24bits In-Reply-To: <50B630B7.5050901@geoanalytic.com> References: <1353690471140-5018436.post@n6.nabble.com> <50B630B7.5050901@geoanalytic.com> Message-ID: <50B8D269.2050603@geoanalytic.com> After looking into the Mapserver code, the answer is simply "Classifying a 24 bit image is not currently supported in Mapserver". Perhaps the doc (http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file) could be a little clearer. Mapserver supports raster variables of [red], [green],and [blue] in a CLASS EXPRESSION, but these work only on the color values of palette of an 8-bit paletted image. Classifying a 24 bit image is not supported. Other than performance (and since each pixel would have to be put through the CLASS filters, it would be nasty), there's no reason I can see not to classify a 24 bit (or higher?) image; somebody just needs to write the code... :) Best Regards, Brent Fraser On 11/28/2012 8:41 AM, Brent Fraser wrote: > As I mentioned in the MS4W list, it sounds like a bug in Mapserver: > WMS + Mapserver-with-CLASS + 24bit-raster-in-PostGIS = error > > You may want to show your mapfile here to get some feedback from > others more experienced in using raster from PostGIS... > > Best Regards, > Brent Fraser > > On 11/23/2012 10:07 AM, Saint wrote: >> Dear all, >> >> I'm attempting to classify images of 24 bits but I always have the error >> saying this: ........Unable to access file. Attempt to classify 24bit >> image, >> this is unsupported. >> >> My Mapfile is this one: >> >> ........... >> >> IMAGETYPE "png24" >> >> .......... >> >> OUTPUTFORMAT # Parameter Output >> NAME png24 >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> EXTENSION PNG >> IMAGEMODE RGBA >> TRANSPARENT ON >> END # end of parameter Output >> >> >> and in the expression in the browser of GetMap is FORMAT=image/png >> >> In the Layer description I have the special processing directives to >> processed the 3 bands. But If put just 2 appear one empty image not the >> error. I already read some documentation but I can't succeed. >> >> any idea? >> >> Many thanks and best regards, >> >> Jos? Santos >> >> >> >> ----- >> Jos? Santos >> GIS Analyst >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Image-24bits-tp5018436.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 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Fri Nov 30 22:51:26 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 1 Dec 2012 07:51:26 +0100 Subject: [mapserver-users] Compatibility arcgis and mapserver named group layers - ex ows_hidden_layer option still valid ? Message-ID: Hi, I have the response . is "No". Infact I found this old ticket: http://trac.osgeo.org/mapserver/ticket/3931 It report that must no more use the ows_hidden. Instead should use the "ows_enable_request" "*" But for a bug on the MapServer code it don't work correctly is the layer is in a wms_layer_group. The bug was corrected for the GROUP clause, but don't was never correct for the wms_layer_group clause. I re-open this ticket on the new ticket-systems. Correct this ticket is really important because actually the arcgis 9.3 clients don't support correctly the Inspire requirements (named layer group). Infact arcgis don't call a layer is it has a sublayer thinking it is only "a folder". For working with arcgis clients, the only solution to avoid the remove of the named groups is to set the sublayers as hidden. Regards, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? -----------------