From webturtles at gmail.com Tue Jan 1 12:29:35 2013 From: webturtles at gmail.com (Chris Jackson) Date: Tue, 1 Jan 2013 20:29:35 +0000 Subject: [mapserver-users] .netCDF and MapServer Message-ID: Hi all Happy New Year! I wondered if anyone had used MapServer at all to extract and display data from .netCDFs (SWAN model format). Thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Jan 2 11:00:45 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 2 Jan 2013 19:00:45 +0000 Subject: [mapserver-users] Editing via Mapserver application? Message-ID: I would like to build a MapServer-based application which includes the ability to edit features, and am posting to see what others have done. Our current stack includes a GeoMoose front end, that is, MapServer/PHP MapScript, and Open Layers. Currently, we have a SQL Server/SDE database, and ArcGIS Server available, but have not implemented PostGIS. With that in mind, I was wondering what advice others have, and if anyone has a working application, could you direct me to it so that I could have a look? Any suggestions appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at geosar.ch Wed Jan 2 11:21:02 2013 From: mario at geosar.ch (Mario Jurcevic) Date: Wed, 2 Jan 2013 20:21:02 +0100 Subject: [mapserver-users] Editing via Mapserver application? In-Reply-To: References: Message-ID: Take a look here: www.soft-gis.com On Jan 2, 2013, at 8:00 PM, Bistrais, Bob wrote: > I would like to build a MapServer-based application which includes the ability to edit features, and am posting to see what others have done. Our current stack includes a GeoMoose front end, that is, MapServer/PHP MapScript, and Open Layers. Currently, we have a SQL Server/SDE database, and ArcGIS Server available, but have not implemented PostGIS. > > With that in mind, I was wondering what advice others have, and if anyone has a working application, could you direct me to it so that I could have a look? Any suggestions appreciated. > > > > _______________________________________________ > 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 dmorissette at mapgears.com Wed Jan 2 11:27:15 2013 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 02 Jan 2013 14:27:15 -0500 Subject: [mapserver-users] Editing via Mapserver application? In-Reply-To: References: Message-ID: <50E48A13.9060303@mapgears.com> On 13-01-02 2:00 PM, Bistrais, Bob wrote: > I would like to build a MapServer-based application which includes the > ability to edit features, and am posting to see what others have done. > Our current stack includes a GeoMoose front end, that is, MapServer/PHP > MapScript, and Open Layers. Currently, we have a SQL Server/SDE > database, and ArcGIS Server available, but have not implemented PostGIS. > > With that in mind, I was wondering what advice others have, and if > anyone has a working application, could you direct me to it so that I > could have a look? Any suggestions appreciated. > > Here are two examples supporting WFS-T editing via TinyOWS: http://labs.mapgears.com/en/archive/wfstfeatureediting-ux and http://labs.mapgears.com/en/archive/bdga-wfst Both examples come with a page listing the details of the components used. BTW, for anyone interested, there are more demos/samples/experiments in our Mapgears Labs site at http://labs.mapgears.com/ -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From woodbri at swoodbridge.com Wed Jan 2 11:28:10 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 02 Jan 2013 14:28:10 -0500 Subject: [mapserver-users] Editing via Mapserver application? In-Reply-To: References: Message-ID: <50E48A4A.3030908@swoodbridge.com> On 1/2/2013 2:00 PM, Bistrais, Bob wrote: > I would like to build a MapServer-based application which includes the > ability to edit features, and am posting to see what others have done. > Our current stack includes a GeoMoose front end, that is, MapServer/PHP > MapScript, and Open Layers. Currently, we have a SQL Server/SDE > database, and ArcGIS Server available, but have not implemented PostGIS. > > With that in mind, I was wondering what advice others have, and if > anyone has a working application, could you direct me to it so that I > could have a look? Any suggestions appreciated. Hi Bob, The answers to this are varied and depend on what requires you put on the problem. See if this helps: 1. if you want to do this in your GeoMoose client then the quest should really go to that support list. 2. If you just want to build a standalone editing application, then you could do something like: a. use OpenLayers as the front end, construct you drawing and editing tools as OL feature editing tools b. give you OL feature editing tools a save option that sends them to a WFS-T service on your server or write an somple Ajax handler that will do add, delete, modify of features to your favorite backing store. c. You can use TinyOWS or GeoServer as you WFS-T server Sorry, I don't use Arc* tools so I can not help there. SQL Server has most if not all the functionality of PostGIS so you should be able to use that with an Ajax service. The big issue with writing your own Ajax service instead of using WFS-T is that the later handles around multiple users trying to edit the same object at the same time. -Steve From bfraser at geoanalytic.com Wed Jan 2 12:49:25 2013 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 02 Jan 2013 13:49:25 -0700 Subject: [mapserver-users] Editing via Mapserver application? In-Reply-To: References: Message-ID: <50E49D55.5000208@geoanalytic.com> Bob, The previous GeoMoose 2.4 included a Feature Editor capability based on Mapscript and PostGIS. The new GeoMoose v2.6 uses WFS-T with a compatible server (e.g. GeoServer, TinyOWS) for editing features (see http://www.geomoose.org/docs/vector_layers/geoserver_setup.html). Best Regards, Brent Fraser On 1/2/2013 12:00 PM, Bistrais, Bob wrote: > > I would like to build a MapServer-based application which includes the > ability to edit features, and am posting to see what others have > done. Our current stack includes a GeoMoose front end, that is, > MapServer/PHP MapScript, and Open Layers. Currently, we have a SQL > Server/SDE database, and ArcGIS Server available, but have not > implemented PostGIS. > > With that in mind, I was wondering what advice others have, and if > anyone has a working application, could you direct me to it so that I > could have a look? Any suggestions appreciated. > > > > _______________________________________________ > 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.Toutant at inspq.qc.ca Thu Jan 3 08:43:23 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 3 Jan 2013 11:43:23 -0500 Subject: [mapserver-users] null value renders in pie chart Message-ID: Hi, I created a layer that renders pie chart with 4 classes. The problem is some classes are render in the pie even if there is no data (null). That means I always have 4 slices in the pie. How can I remove the slices with null value? I tried using EXPRESSION without success. I specified > 0 since I think "is not null" is not supported CLASS NAME "Cri" EXPRESSION ([cri] > 0) STYLE SIZE [cri] COLOR 215 48 39 END END thanks for your help, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu Jan 3 08:56:58 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 3 Jan 2013 11:56:58 -0500 Subject: [mapserver-users] RE null value renders in pie chart In-Reply-To: Message-ID: I also tried with EXPRESSION ([cri] != "") I still have 4 slices... Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-03 11:43 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] null value renders in pie chart Hi, I created a layer that renders pie chart with 4 classes. The problem is some classes are render in the pie even if there is no data (null). That means I always have 4 slices in the pie. How can I remove the slices with null value? I tried using EXPRESSION without success. I specified > 0 since I think "is not null" is not supported CLASS NAME "Cri" EXPRESSION ([cri] > 0) STYLE SIZE [cri] COLOR 215 48 39 END END thanks for your help, 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 Steve.Lime at state.mn.us Thu Jan 3 09:22:07 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 3 Jan 2013 17:22:07 +0000 Subject: [mapserver-users] RE null value renders in pie chart In-Reply-To: References: Message-ID: How about using a regex instead: CLASSITEM 'cri' CLASS EXPRESSION /./ ... END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, January 03, 2013 10:57 AM To: Steve.Toutant at inspq.qc.ca Cc: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org Subject: [mapserver-users] RE null value renders in pie chart I also tried with EXPRESSION ([cri] != "") I still have 4 slices... Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-03 11:43 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] null value renders in pie chart Hi, I created a layer that renders pie chart with 4 classes. The problem is some classes are render in the pie even if there is no data (null). That means I always have 4 slices in the pie. How can I remove the slices with null value? I tried using EXPRESSION without success. I specified > 0 since I think "is not null" is not supported CLASS NAME "Cri" EXPRESSION ([cri] > 0) STYLE SIZE [cri] COLOR 215 48 39 END END thanks for your help, 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 Steve.Toutant at inspq.qc.ca Thu Jan 3 10:17:35 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 3 Jan 2013 13:17:35 -0500 Subject: [mapserver-users] RE null value renders in pie chart In-Reply-To: Message-ID: More info... Using debug 5 here is what I get for my 4 classes when rendering the layer msPostGISReadShape: [regie] "" msPostGISReadShape: [municipal] "167" msPostGISReadShape: [cri] "" msPostGISReadShape: [other] "" I would expect to have only one slice (entire circle) for the municipal class "Lime, Steve D (DNR)" 2013-01-03 12:22 A "Steve.Toutant at inspq.qc.ca" cc "mapserver-users at lists.osgeo.org" , "mapserver-users-bounces at lists.osgeo.org" Objet RE: [mapserver-users] RE null value renders in pie chart How about using a regex instead: CLASSITEM ?cri? CLASS EXPRESSION /./ ? END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, January 03, 2013 10:57 AM To: Steve.Toutant at inspq.qc.ca Cc: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org Subject: [mapserver-users] RE null value renders in pie chart I also tried with EXPRESSION ([cri] != "") I still have 4 slices... Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-03 11:43 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] null value renders in pie chart Hi, I created a layer that renders pie chart with 4 classes. The problem is some classes are render in the pie even if there is no data (null). That means I always have 4 slices in the pie. How can I remove the slices with null value? I tried using EXPRESSION without success. I specified > 0 since I think "is not null" is not supported CLASS NAME "Cri" EXPRESSION ([cri] > 0) STYLE SIZE [cri] COLOR 215 48 39 END END thanks for your help, 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 Steve.Toutant at inspq.qc.ca Thu Jan 3 10:10:20 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 3 Jan 2013 13:10:20 -0500 Subject: [mapserver-users] RE null value renders in pie chart In-Reply-To: Message-ID: Thanks Steve, I can't use CLASSITEM since each class uses a different attribute I tried with these 2 regex and I still have 4 slices. EXPRESSION ([cri] ~ '/[0-9]/') EXPRESSION ([cri] ~ '/./') "Lime, Steve D (DNR)" 2013-01-03 12:22 A "Steve.Toutant at inspq.qc.ca" cc "mapserver-users at lists.osgeo.org" , "mapserver-users-bounces at lists.osgeo.org" Objet RE: [mapserver-users] RE null value renders in pie chart How about using a regex instead: CLASSITEM ?cri? CLASS EXPRESSION /./ ? END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, January 03, 2013 10:57 AM To: Steve.Toutant at inspq.qc.ca Cc: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org Subject: [mapserver-users] RE null value renders in pie chart I also tried with EXPRESSION ([cri] != "") I still have 4 slices... Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-03 11:43 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] null value renders in pie chart Hi, I created a layer that renders pie chart with 4 classes. The problem is some classes are render in the pie even if there is no data (null). That means I always have 4 slices in the pie. How can I remove the slices with null value? I tried using EXPRESSION without success. I specified > 0 since I think "is not null" is not supported CLASS NAME "Cri" EXPRESSION ([cri] > 0) STYLE SIZE [cri] COLOR 215 48 39 END END thanks for your help, 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 thomas.bonfort at gmail.com Thu Jan 3 10:18:56 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 3 Jan 2013 19:18:56 +0100 Subject: [mapserver-users] RE null value renders in pie chart In-Reply-To: References: Message-ID: Note that EXPRESSION support was added to pie layers in 6.2 only. I'd say your best bet is to preprocess your data to replace NULLs by 0, or use a DATA statement on a postgis layer to do that for you ( e.g. DATA "the_geom from (select gid, the_geom, COALESCE(cri,0) AS cri from mytable) as foo using uninque gid" ) -- thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu Jan 3 10:42:33 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 3 Jan 2013 13:42:33 -0500 Subject: [mapserver-users] RE [Polluriel potentiel] Re: RE null value renders in pie chart SOLVED In-Reply-To: Message-ID: I'm using 6.1, these 2 solutions work! preprocess your data to replace NULLs by 0, or use a DATA statement on a postgis layer to do that for you ( e.g. DATA "the_geom from (select gid, the_geom, COALESCE(cri,0) AS cri from mytable) as foo using uninque gid" ) Thank you for your fantastic help, Steve thomas bonfort 2013-01-03 13:18 A Steve.Toutant at inspq.qc.ca cc MapserverList OSGEO , mapserver-users-bounces at lists.osgeo.org Objet [Polluriel potentiel] Re: [mapserver-users] RE null value renders in pie chart Note that EXPRESSION support was added to pie layers in 6.2 only. I'd say your best bet is to preprocess your data to replace NULLs by 0, or use a DATA statement on a postgis layer to do that for you ( e.g. DATA "the_geom from (select gid, the_geom, COALESCE(cri,0) AS cri from mytable) as foo using uninque gid" ) -- thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Jan 4 11:29:24 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 4 Jan 2013 14:29:24 -0500 Subject: [mapserver-users] encoding problem when using variable runtime substitution Message-ID: Hi, I have a layer which connect to my postgis DB with client encoding win1252. CONNECTIONTYPE postgis CONNECTION "host=serveurpg dbname=geo user=xxxpassword=xxx port=5432 options='-c client_encoding=WIN1252'" That use to work for years, just before I start using variable substitution. My problem is when using runtime substitution in a FILTER ex.: FILTER (periode = '%periode%' ) If I send a wms getmap request with the wms parameter periode = '2001 ? 2003' It seems that mapserver receive '2001 ? 2003' encoded in utf-8, and tells postgis that it is in win1252, so nothing is returned. If I use CONNECTION "host=serveurpg dbname=geo user=xxxpassword=xxx port=5432 options='-c client_encoding=utf-8'" it works, but I don't want to do that because I'll have a lot of code and mapfiles to change. Is there a reason why mapserver would think a string is encoded in utf-8? Maybe I'm totally on a wrong track, if so any idea where could be the problem? Thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Jan 8 01:56:09 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 10:56:09 +0100 Subject: [mapserver-users] how use the expression function "area" Message-ID: Hi, I see in the mapserver 6.2 is added the function "area" to the expressions. So I try to use this expression: EXPRESSION ( (area([GEOMETRY]) > 10000000) ) where geometry is the geometry field. The datasource is a spatialite db where the geometry filed is named "GEOMETRY" It return this errror: msOGRLayerInitItemInfo(): OGR error: Invalid field name GEOMETRY. Perhaps I miss to understanding the mean of area() function ? Any info is welcome. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Tue Jan 8 03:18:23 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 12:18:23 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol Message-ID: Hi, I have a polygon layer that at some scales try to render with a symbol. To do this I define a specific symbol style: SYMBOL NAME "circlefill" TYPE ellipse POINTS 1 1 END FILLED true ANCHORPOINT 0.5 0.5 END And use this in the class definition as here where I put two class one with a polygon rendering (when area bigger) and a second class with point rendering when area is lower: CLASS NAME 'area superiore a 1ha' EXPRESSION ( ([AREA] >= 1000000) ) GROUP 'delimitazione zona di vincolo' MAXSCALEDENOM 4000100 MINSCALEDENOM 50100 STYLE COLOR "#F2BAFE80" OUTLINECOLOR "#F2BAFE" ANTIALIAS false END END CLASS NAME 'area inferiore a 1ha' EXPRESSION ( ([AREA] < 1000000) ) GROUP 'delimitazione zona di vincolo' MAXSCALEDENOM 4000100 MINSCALEDENOM 50100 STYLE GEOMTRANSFORM 'start' SYMBOL 'circlefill' SIZE 4 COLOR "#F2BAFEFF" OUTLINECOLOR "#F2BAFE" ANTIALIAS false END END Unfortunately the getlegendgraphis don't recognize this symbol definition and seem to render always using a polygon style (because the layer is originally a polygon). This is what return the GetLegendGraphics. http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 Am I wrong something in the class definitions ? Many thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Tue Jan 8 03:44:24 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 8 Jan 2013 12:44:24 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM -- thomas On 8 January 2013 12:18, Andrea Peri wrote: > Hi, > > I have a polygon layer that at some scales try to render with a symbol. > To do this I define a specific symbol style: > > SYMBOL > NAME "circlefill" > TYPE ellipse > POINTS > 1 1 > END > FILLED true > ANCHORPOINT 0.5 0.5 > END > > > And use this in the class definition as here where I put two class one > with a polygon rendering (when area bigger) and a second class with > point rendering when area is lower: > > CLASS > NAME 'area superiore a 1ha' > EXPRESSION ( ([AREA] >= 1000000) ) > GROUP 'delimitazione zona di vincolo' > MAXSCALEDENOM 4000100 > MINSCALEDENOM 50100 > STYLE > COLOR "#F2BAFE80" > OUTLINECOLOR "#F2BAFE" > ANTIALIAS false > END > END > CLASS > NAME 'area inferiore a 1ha' > EXPRESSION ( ([AREA] < 1000000) ) > GROUP 'delimitazione zona di vincolo' > MAXSCALEDENOM 4000100 > MINSCALEDENOM 50100 > STYLE > GEOMTRANSFORM 'start' > SYMBOL 'circlefill' > SIZE 4 > COLOR "#F2BAFEFF" > OUTLINECOLOR "#F2BAFE" > ANTIALIAS false > END > END > > Unfortunately the getlegendgraphis don't recognize this symbol > definition and seem to render always using a polygon style (because > the layer is originally a polygon). > > This is what return the GetLegendGraphics. > > http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 > > Am I wrong something in the class definitions ? > > Many thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Tue Jan 8 04:16:40 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 13:16:40 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: Hi, many thx for response. > Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? No. > Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM I try to removing the geomtransform, but it do disappeared all symbol (ie polygons lesser then defined area). But I see something of good try-ing to increase the size and also adding a lesser than default outline. ie: size 6 with 0.1 and leaving the GeomTransform 'start' It is surely better, but still it seem a polygon filled with many circles. Instead my rendering is 1 only point for an entire polygon. This seem not clearly understandable from the returned legend. This is the result: http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 Many thx for hints, Andrea. 2013/1/8 thomas bonfort : > Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? > Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM > > -- > thomas > > On 8 January 2013 12:18, Andrea Peri wrote: >> Hi, >> >> I have a polygon layer that at some scales try to render with a symbol. >> To do this I define a specific symbol style: >> >> SYMBOL >> NAME "circlefill" >> TYPE ellipse >> POINTS >> 1 1 >> END >> FILLED true >> ANCHORPOINT 0.5 0.5 >> END >> >> >> And use this in the class definition as here where I put two class one >> with a polygon rendering (when area bigger) and a second class with >> point rendering when area is lower: >> >> CLASS >> NAME 'area superiore a 1ha' >> EXPRESSION ( ([AREA] >= 1000000) ) >> GROUP 'delimitazione zona di vincolo' >> MAXSCALEDENOM 4000100 >> MINSCALEDENOM 50100 >> STYLE >> COLOR "#F2BAFE80" >> OUTLINECOLOR "#F2BAFE" >> ANTIALIAS false >> END >> END >> CLASS >> NAME 'area inferiore a 1ha' >> EXPRESSION ( ([AREA] < 1000000) ) >> GROUP 'delimitazione zona di vincolo' >> MAXSCALEDENOM 4000100 >> MINSCALEDENOM 50100 >> STYLE >> GEOMTRANSFORM 'start' >> SYMBOL 'circlefill' >> SIZE 4 >> COLOR "#F2BAFEFF" >> OUTLINECOLOR "#F2BAFE" >> ANTIALIAS false >> END >> END >> >> Unfortunately the getlegendgraphis don't recognize this symbol >> definition and seem to render always using a polygon style (because >> the layer is originally a polygon). >> >> This is what return the GetLegendGraphics. >> >> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >> >> Am I wrong something in the class definitions ? >> >> Many thx, >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Tue Jan 8 04:27:12 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 8 Jan 2013 13:27:12 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: what are you trying to obtain ? On 8 January 2013 13:16, Andrea Peri wrote: > Hi, > many thx for response. > >> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? > > No. > >> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM > > I try to removing the geomtransform, but it do disappeared all symbol > (ie polygons lesser then defined area). > > But I see something of good try-ing to increase the size and also > adding a lesser than default outline. > > ie: > size 6 > with 0.1 > and leaving the GeomTransform 'start' > > It is surely better, but still it seem a polygon filled with many circles. > Instead my rendering is 1 only point for an entire polygon. > > This seem not clearly understandable from the returned legend. > > This is the result: > > http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 > > > Many thx for hints, > > Andrea. > > 2013/1/8 thomas bonfort : >> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >> >> -- >> thomas >> >> On 8 January 2013 12:18, Andrea Peri wrote: >>> Hi, >>> >>> I have a polygon layer that at some scales try to render with a symbol. >>> To do this I define a specific symbol style: >>> >>> SYMBOL >>> NAME "circlefill" >>> TYPE ellipse >>> POINTS >>> 1 1 >>> END >>> FILLED true >>> ANCHORPOINT 0.5 0.5 >>> END >>> >>> >>> And use this in the class definition as here where I put two class one >>> with a polygon rendering (when area bigger) and a second class with >>> point rendering when area is lower: >>> >>> CLASS >>> NAME 'area superiore a 1ha' >>> EXPRESSION ( ([AREA] >= 1000000) ) >>> GROUP 'delimitazione zona di vincolo' >>> MAXSCALEDENOM 4000100 >>> MINSCALEDENOM 50100 >>> STYLE >>> COLOR "#F2BAFE80" >>> OUTLINECOLOR "#F2BAFE" >>> ANTIALIAS false >>> END >>> END >>> CLASS >>> NAME 'area inferiore a 1ha' >>> EXPRESSION ( ([AREA] < 1000000) ) >>> GROUP 'delimitazione zona di vincolo' >>> MAXSCALEDENOM 4000100 >>> MINSCALEDENOM 50100 >>> STYLE >>> GEOMTRANSFORM 'start' >>> SYMBOL 'circlefill' >>> SIZE 4 >>> COLOR "#F2BAFEFF" >>> OUTLINECOLOR "#F2BAFE" >>> ANTIALIAS false >>> END >>> END >>> >>> Unfortunately the getlegendgraphis don't recognize this symbol >>> definition and seem to render always using a polygon style (because >>> the layer is originally a polygon). >>> >>> This is what return the GetLegendGraphics. >>> >>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>> >>> Am I wrong something in the class definitions ? >>> >>> Many thx, >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Tue Jan 8 04:33:20 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 13:33:20 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: Actually it is returning something like this: OOOOOOO OOOOOOO OOOOOOO OOOOOOO These seem a polygon filled with many circles internally Instead I would like to obtain something like this: O 2013/1/8 thomas bonfort : > what are you trying to obtain ? > > On 8 January 2013 13:16, Andrea Peri wrote: >> Hi, >> many thx for response. >> >>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >> >> No. >> >>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >> >> I try to removing the geomtransform, but it do disappeared all symbol >> (ie polygons lesser then defined area). >> >> But I see something of good try-ing to increase the size and also >> adding a lesser than default outline. >> >> ie: >> size 6 >> with 0.1 >> and leaving the GeomTransform 'start' >> >> It is surely better, but still it seem a polygon filled with many circles. >> Instead my rendering is 1 only point for an entire polygon. >> >> This seem not clearly understandable from the returned legend. >> >> This is the result: >> >> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >> >> >> Many thx for hints, >> >> Andrea. >> >> 2013/1/8 thomas bonfort : >>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>> >>> -- >>> thomas >>> >>> On 8 January 2013 12:18, Andrea Peri wrote: >>>> Hi, >>>> >>>> I have a polygon layer that at some scales try to render with a symbol. >>>> To do this I define a specific symbol style: >>>> >>>> SYMBOL >>>> NAME "circlefill" >>>> TYPE ellipse >>>> POINTS >>>> 1 1 >>>> END >>>> FILLED true >>>> ANCHORPOINT 0.5 0.5 >>>> END >>>> >>>> >>>> And use this in the class definition as here where I put two class one >>>> with a polygon rendering (when area bigger) and a second class with >>>> point rendering when area is lower: >>>> >>>> CLASS >>>> NAME 'area superiore a 1ha' >>>> EXPRESSION ( ([AREA] >= 1000000) ) >>>> GROUP 'delimitazione zona di vincolo' >>>> MAXSCALEDENOM 4000100 >>>> MINSCALEDENOM 50100 >>>> STYLE >>>> COLOR "#F2BAFE80" >>>> OUTLINECOLOR "#F2BAFE" >>>> ANTIALIAS false >>>> END >>>> END >>>> CLASS >>>> NAME 'area inferiore a 1ha' >>>> EXPRESSION ( ([AREA] < 1000000) ) >>>> GROUP 'delimitazione zona di vincolo' >>>> MAXSCALEDENOM 4000100 >>>> MINSCALEDENOM 50100 >>>> STYLE >>>> GEOMTRANSFORM 'start' >>>> SYMBOL 'circlefill' >>>> SIZE 4 >>>> COLOR "#F2BAFEFF" >>>> OUTLINECOLOR "#F2BAFE" >>>> ANTIALIAS false >>>> END >>>> END >>>> >>>> Unfortunately the getlegendgraphis don't recognize this symbol >>>> definition and seem to render always using a polygon style (because >>>> the layer is originally a polygon). >>>> >>>> This is what return the GetLegendGraphics. >>>> >>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>> >>>> Am I wrong something in the class definitions ? >>>> >>>> Many thx, >>>> >>>> -- >>>> ----------------- >>>> Andrea Peri >>>> . . . . . . . . . >>>> qwerty ????? >>>> ----------------- >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Tue Jan 8 04:34:25 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 8 Jan 2013 13:34:25 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: then you need geomtransform centroid, no? On 8 January 2013 13:33, Andrea Peri wrote: > Actually it is returning something like this: > > OOOOOOO > OOOOOOO > OOOOOOO > OOOOOOO > > These seem a polygon filled with many circles internally > > Instead I would like to obtain something like this: > > O > > > > 2013/1/8 thomas bonfort : >> what are you trying to obtain ? >> >> On 8 January 2013 13:16, Andrea Peri wrote: >>> Hi, >>> many thx for response. >>> >>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>> >>> No. >>> >>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>> >>> I try to removing the geomtransform, but it do disappeared all symbol >>> (ie polygons lesser then defined area). >>> >>> But I see something of good try-ing to increase the size and also >>> adding a lesser than default outline. >>> >>> ie: >>> size 6 >>> with 0.1 >>> and leaving the GeomTransform 'start' >>> >>> It is surely better, but still it seem a polygon filled with many circles. >>> Instead my rendering is 1 only point for an entire polygon. >>> >>> This seem not clearly understandable from the returned legend. >>> >>> This is the result: >>> >>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>> >>> >>> Many thx for hints, >>> >>> Andrea. >>> >>> 2013/1/8 thomas bonfort : >>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>> >>>> -- >>>> thomas >>>> >>>> On 8 January 2013 12:18, Andrea Peri wrote: >>>>> Hi, >>>>> >>>>> I have a polygon layer that at some scales try to render with a symbol. >>>>> To do this I define a specific symbol style: >>>>> >>>>> SYMBOL >>>>> NAME "circlefill" >>>>> TYPE ellipse >>>>> POINTS >>>>> 1 1 >>>>> END >>>>> FILLED true >>>>> ANCHORPOINT 0.5 0.5 >>>>> END >>>>> >>>>> >>>>> And use this in the class definition as here where I put two class one >>>>> with a polygon rendering (when area bigger) and a second class with >>>>> point rendering when area is lower: >>>>> >>>>> CLASS >>>>> NAME 'area superiore a 1ha' >>>>> EXPRESSION ( ([AREA] >= 1000000) ) >>>>> GROUP 'delimitazione zona di vincolo' >>>>> MAXSCALEDENOM 4000100 >>>>> MINSCALEDENOM 50100 >>>>> STYLE >>>>> COLOR "#F2BAFE80" >>>>> OUTLINECOLOR "#F2BAFE" >>>>> ANTIALIAS false >>>>> END >>>>> END >>>>> CLASS >>>>> NAME 'area inferiore a 1ha' >>>>> EXPRESSION ( ([AREA] < 1000000) ) >>>>> GROUP 'delimitazione zona di vincolo' >>>>> MAXSCALEDENOM 4000100 >>>>> MINSCALEDENOM 50100 >>>>> STYLE >>>>> GEOMTRANSFORM 'start' >>>>> SYMBOL 'circlefill' >>>>> SIZE 4 >>>>> COLOR "#F2BAFEFF" >>>>> OUTLINECOLOR "#F2BAFE" >>>>> ANTIALIAS false >>>>> END >>>>> END >>>>> >>>>> Unfortunately the getlegendgraphis don't recognize this symbol >>>>> definition and seem to render always using a polygon style (because >>>>> the layer is originally a polygon). >>>>> >>>>> This is what return the GetLegendGraphics. >>>>> >>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>> >>>>> Am I wrong something in the class definitions ? >>>>> >>>>> Many thx, >>>>> >>>>> -- >>>>> ----------------- >>>>> Andrea Peri >>>>> . . . . . . . . . >>>>> qwerty ????? >>>>> ----------------- >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Tue Jan 8 04:35:53 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 13:35:53 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: oh oh. :) I don't know it was existant. It is not in the documentation. :) I try it instantly. 2013/1/8 thomas bonfort : > then you need geomtransform centroid, no? > > On 8 January 2013 13:33, Andrea Peri wrote: >> Actually it is returning something like this: >> >> OOOOOOO >> OOOOOOO >> OOOOOOO >> OOOOOOO >> >> These seem a polygon filled with many circles internally >> >> Instead I would like to obtain something like this: >> >> O >> >> >> >> 2013/1/8 thomas bonfort : >>> what are you trying to obtain ? >>> >>> On 8 January 2013 13:16, Andrea Peri wrote: >>>> Hi, >>>> many thx for response. >>>> >>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>> >>>> No. >>>> >>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>> >>>> I try to removing the geomtransform, but it do disappeared all symbol >>>> (ie polygons lesser then defined area). >>>> >>>> But I see something of good try-ing to increase the size and also >>>> adding a lesser than default outline. >>>> >>>> ie: >>>> size 6 >>>> with 0.1 >>>> and leaving the GeomTransform 'start' >>>> >>>> It is surely better, but still it seem a polygon filled with many circles. >>>> Instead my rendering is 1 only point for an entire polygon. >>>> >>>> This seem not clearly understandable from the returned legend. >>>> >>>> This is the result: >>>> >>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>> >>>> >>>> Many thx for hints, >>>> >>>> Andrea. >>>> >>>> 2013/1/8 thomas bonfort : >>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>> >>>>> -- >>>>> thomas >>>>> >>>>> On 8 January 2013 12:18, Andrea Peri wrote: >>>>>> Hi, >>>>>> >>>>>> I have a polygon layer that at some scales try to render with a symbol. >>>>>> To do this I define a specific symbol style: >>>>>> >>>>>> SYMBOL >>>>>> NAME "circlefill" >>>>>> TYPE ellipse >>>>>> POINTS >>>>>> 1 1 >>>>>> END >>>>>> FILLED true >>>>>> ANCHORPOINT 0.5 0.5 >>>>>> END >>>>>> >>>>>> >>>>>> And use this in the class definition as here where I put two class one >>>>>> with a polygon rendering (when area bigger) and a second class with >>>>>> point rendering when area is lower: >>>>>> >>>>>> CLASS >>>>>> NAME 'area superiore a 1ha' >>>>>> EXPRESSION ( ([AREA] >= 1000000) ) >>>>>> GROUP 'delimitazione zona di vincolo' >>>>>> MAXSCALEDENOM 4000100 >>>>>> MINSCALEDENOM 50100 >>>>>> STYLE >>>>>> COLOR "#F2BAFE80" >>>>>> OUTLINECOLOR "#F2BAFE" >>>>>> ANTIALIAS false >>>>>> END >>>>>> END >>>>>> CLASS >>>>>> NAME 'area inferiore a 1ha' >>>>>> EXPRESSION ( ([AREA] < 1000000) ) >>>>>> GROUP 'delimitazione zona di vincolo' >>>>>> MAXSCALEDENOM 4000100 >>>>>> MINSCALEDENOM 50100 >>>>>> STYLE >>>>>> GEOMTRANSFORM 'start' >>>>>> SYMBOL 'circlefill' >>>>>> SIZE 4 >>>>>> COLOR "#F2BAFEFF" >>>>>> OUTLINECOLOR "#F2BAFE" >>>>>> ANTIALIAS false >>>>>> END >>>>>> END >>>>>> >>>>>> Unfortunately the getlegendgraphis don't recognize this symbol >>>>>> definition and seem to render always using a polygon style (because >>>>>> the layer is originally a polygon). >>>>>> >>>>>> This is what return the GetLegendGraphics. >>>>>> >>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>>> >>>>>> Am I wrong something in the class definitions ? >>>>>> >>>>>> Many thx, >>>>>> >>>>>> -- >>>>>> ----------------- >>>>>> Andrea Peri >>>>>> . . . . . . . . . >>>>>> qwerty ????? >>>>>> ----------------- >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> -- >>>> ----------------- >>>> Andrea Peri >>>> . . . . . . . . . >>>> qwerty ????? >>>> ----------------- >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Tue Jan 8 04:51:18 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 13:51:18 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: Hi, I try the geomtransform centroid Unfortunately still the GetLegendGraphics return the OOOO OOOO OOOO This is the call sample: http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 2013/1/8 Andrea Peri : > oh oh. :) > > I don't know it was existant. It is not in the documentation. :) > > I try it instantly. > > > 2013/1/8 thomas bonfort : >> then you need geomtransform centroid, no? >> >> On 8 January 2013 13:33, Andrea Peri wrote: >>> Actually it is returning something like this: >>> >>> OOOOOOO >>> OOOOOOO >>> OOOOOOO >>> OOOOOOO >>> >>> These seem a polygon filled with many circles internally >>> >>> Instead I would like to obtain something like this: >>> >>> O >>> >>> >>> >>> 2013/1/8 thomas bonfort : >>>> what are you trying to obtain ? >>>> >>>> On 8 January 2013 13:16, Andrea Peri wrote: >>>>> Hi, >>>>> many thx for response. >>>>> >>>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>> >>>>> No. >>>>> >>>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>> >>>>> I try to removing the geomtransform, but it do disappeared all symbol >>>>> (ie polygons lesser then defined area). >>>>> >>>>> But I see something of good try-ing to increase the size and also >>>>> adding a lesser than default outline. >>>>> >>>>> ie: >>>>> size 6 >>>>> with 0.1 >>>>> and leaving the GeomTransform 'start' >>>>> >>>>> It is surely better, but still it seem a polygon filled with many circles. >>>>> Instead my rendering is 1 only point for an entire polygon. >>>>> >>>>> This seem not clearly understandable from the returned legend. >>>>> >>>>> This is the result: >>>>> >>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>> >>>>> >>>>> Many thx for hints, >>>>> >>>>> Andrea. >>>>> >>>>> 2013/1/8 thomas bonfort : >>>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>>> >>>>>> -- >>>>>> thomas >>>>>> >>>>>> On 8 January 2013 12:18, Andrea Peri wrote: >>>>>>> Hi, >>>>>>> >>>>>>> I have a polygon layer that at some scales try to render with a symbol. >>>>>>> To do this I define a specific symbol style: >>>>>>> >>>>>>> SYMBOL >>>>>>> NAME "circlefill" >>>>>>> TYPE ellipse >>>>>>> POINTS >>>>>>> 1 1 >>>>>>> END >>>>>>> FILLED true >>>>>>> ANCHORPOINT 0.5 0.5 >>>>>>> END >>>>>>> >>>>>>> >>>>>>> And use this in the class definition as here where I put two class one >>>>>>> with a polygon rendering (when area bigger) and a second class with >>>>>>> point rendering when area is lower: >>>>>>> >>>>>>> CLASS >>>>>>> NAME 'area superiore a 1ha' >>>>>>> EXPRESSION ( ([AREA] >= 1000000) ) >>>>>>> GROUP 'delimitazione zona di vincolo' >>>>>>> MAXSCALEDENOM 4000100 >>>>>>> MINSCALEDENOM 50100 >>>>>>> STYLE >>>>>>> COLOR "#F2BAFE80" >>>>>>> OUTLINECOLOR "#F2BAFE" >>>>>>> ANTIALIAS false >>>>>>> END >>>>>>> END >>>>>>> CLASS >>>>>>> NAME 'area inferiore a 1ha' >>>>>>> EXPRESSION ( ([AREA] < 1000000) ) >>>>>>> GROUP 'delimitazione zona di vincolo' >>>>>>> MAXSCALEDENOM 4000100 >>>>>>> MINSCALEDENOM 50100 >>>>>>> STYLE >>>>>>> GEOMTRANSFORM 'start' >>>>>>> SYMBOL 'circlefill' >>>>>>> SIZE 4 >>>>>>> COLOR "#F2BAFEFF" >>>>>>> OUTLINECOLOR "#F2BAFE" >>>>>>> ANTIALIAS false >>>>>>> END >>>>>>> END >>>>>>> >>>>>>> Unfortunately the getlegendgraphis don't recognize this symbol >>>>>>> definition and seem to render always using a polygon style (because >>>>>>> the layer is originally a polygon). >>>>>>> >>>>>>> This is what return the GetLegendGraphics. >>>>>>> >>>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>>>> >>>>>>> Am I wrong something in the class definitions ? >>>>>>> >>>>>>> Many thx, >>>>>>> >>>>>>> -- >>>>>>> ----------------- >>>>>>> Andrea Peri >>>>>>> . . . . . . . . . >>>>>>> qwerty ????? >>>>>>> ----------------- >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> >>>>> -- >>>>> ----------------- >>>>> Andrea Peri >>>>> . . . . . . . . . >>>>> qwerty ????? >>>>> ----------------- >>> >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From juanrapoport at suremptec.com.ar Tue Jan 8 04:56:32 2013 From: juanrapoport at suremptec.com.ar (Juan Rapoport) Date: Tue, 8 Jan 2013 09:56:32 -0300 Subject: [mapserver-users] Raster rendering order combining two processing directives Message-ID: Hi all, does anyone know wich is the rendering order if I combine the PROCESSING directives SCALE and LUT. Wich one is apply first? Thanks in advance, -- Juan Rapoport SUR Emprendimientos Tecnol?gicos Per? 345 Piso 5to Oficina "B" (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 juanrapoport at suremptec.com.ar www.suremptec.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Jan 8 04:58:02 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 8 Jan 2013 13:58:02 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: correct, I've just checked and geomtransform handling isn't supported for legend rendering. -- thomas On 8 January 2013 13:51, Andrea Peri wrote: > Hi, > > I try the > geomtransform centroid > > Unfortunately still the GetLegendGraphics return the > > OOOO > OOOO > OOOO > > This is the call sample: > > http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 > > > > 2013/1/8 Andrea Peri : >> oh oh. :) >> >> I don't know it was existant. It is not in the documentation. :) >> >> I try it instantly. >> >> >> 2013/1/8 thomas bonfort : >>> then you need geomtransform centroid, no? >>> >>> On 8 January 2013 13:33, Andrea Peri wrote: >>>> Actually it is returning something like this: >>>> >>>> OOOOOOO >>>> OOOOOOO >>>> OOOOOOO >>>> OOOOOOO >>>> >>>> These seem a polygon filled with many circles internally >>>> >>>> Instead I would like to obtain something like this: >>>> >>>> O >>>> >>>> >>>> >>>> 2013/1/8 thomas bonfort : >>>>> what are you trying to obtain ? >>>>> >>>>> On 8 January 2013 13:16, Andrea Peri wrote: >>>>>> Hi, >>>>>> many thx for response. >>>>>> >>>>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>>> >>>>>> No. >>>>>> >>>>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>>> >>>>>> I try to removing the geomtransform, but it do disappeared all symbol >>>>>> (ie polygons lesser then defined area). >>>>>> >>>>>> But I see something of good try-ing to increase the size and also >>>>>> adding a lesser than default outline. >>>>>> >>>>>> ie: >>>>>> size 6 >>>>>> with 0.1 >>>>>> and leaving the GeomTransform 'start' >>>>>> >>>>>> It is surely better, but still it seem a polygon filled with many circles. >>>>>> Instead my rendering is 1 only point for an entire polygon. >>>>>> >>>>>> This seem not clearly understandable from the returned legend. >>>>>> >>>>>> This is the result: >>>>>> >>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>>> >>>>>> >>>>>> Many thx for hints, >>>>>> >>>>>> Andrea. >>>>>> >>>>>> 2013/1/8 thomas bonfort : >>>>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>>>> >>>>>>> -- >>>>>>> thomas >>>>>>> >>>>>>> On 8 January 2013 12:18, Andrea Peri wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> I have a polygon layer that at some scales try to render with a symbol. >>>>>>>> To do this I define a specific symbol style: >>>>>>>> >>>>>>>> SYMBOL >>>>>>>> NAME "circlefill" >>>>>>>> TYPE ellipse >>>>>>>> POINTS >>>>>>>> 1 1 >>>>>>>> END >>>>>>>> FILLED true >>>>>>>> ANCHORPOINT 0.5 0.5 >>>>>>>> END >>>>>>>> >>>>>>>> >>>>>>>> And use this in the class definition as here where I put two class one >>>>>>>> with a polygon rendering (when area bigger) and a second class with >>>>>>>> point rendering when area is lower: >>>>>>>> >>>>>>>> CLASS >>>>>>>> NAME 'area superiore a 1ha' >>>>>>>> EXPRESSION ( ([AREA] >= 1000000) ) >>>>>>>> GROUP 'delimitazione zona di vincolo' >>>>>>>> MAXSCALEDENOM 4000100 >>>>>>>> MINSCALEDENOM 50100 >>>>>>>> STYLE >>>>>>>> COLOR "#F2BAFE80" >>>>>>>> OUTLINECOLOR "#F2BAFE" >>>>>>>> ANTIALIAS false >>>>>>>> END >>>>>>>> END >>>>>>>> CLASS >>>>>>>> NAME 'area inferiore a 1ha' >>>>>>>> EXPRESSION ( ([AREA] < 1000000) ) >>>>>>>> GROUP 'delimitazione zona di vincolo' >>>>>>>> MAXSCALEDENOM 4000100 >>>>>>>> MINSCALEDENOM 50100 >>>>>>>> STYLE >>>>>>>> GEOMTRANSFORM 'start' >>>>>>>> SYMBOL 'circlefill' >>>>>>>> SIZE 4 >>>>>>>> COLOR "#F2BAFEFF" >>>>>>>> OUTLINECOLOR "#F2BAFE" >>>>>>>> ANTIALIAS false >>>>>>>> END >>>>>>>> END >>>>>>>> >>>>>>>> Unfortunately the getlegendgraphis don't recognize this symbol >>>>>>>> definition and seem to render always using a polygon style (because >>>>>>>> the layer is originally a polygon). >>>>>>>> >>>>>>>> This is what return the GetLegendGraphics. >>>>>>>> >>>>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>>>>> >>>>>>>> Am I wrong something in the class definitions ? >>>>>>>> >>>>>>>> Many thx, >>>>>>>> >>>>>>>> -- >>>>>>>> ----------------- >>>>>>>> Andrea Peri >>>>>>>> . . . . . . . . . >>>>>>>> qwerty ????? >>>>>>>> ----------------- >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> ----------------- >>>>>> Andrea Peri >>>>>> . . . . . . . . . >>>>>> qwerty ????? >>>>>> ----------------- >>>> >>>> >>>> >>>> -- >>>> ----------------- >>>> Andrea Peri >>>> . . . . . . . . . >>>> qwerty ????? >>>> ----------------- >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Tue Jan 8 06:48:20 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 15:48:20 +0100 Subject: [mapserver-users] GetLegendGraphics don't return correctly the point symbol In-Reply-To: References: Message-ID: ok, thx for help. It don't seem to be a bug, but, instead an enhancement. 2013/1/8 thomas bonfort : > correct, I've just checked and geomtransform handling isn't supported > for legend rendering. > > -- > thomas > > On 8 January 2013 13:51, Andrea Peri wrote: >> Hi, >> >> I try the >> geomtransform centroid >> >> Unfortunately still the GetLegendGraphics return the >> >> OOOO >> OOOO >> OOOO >> >> This is the call sample: >> >> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >> >> >> >> 2013/1/8 Andrea Peri : >>> oh oh. :) >>> >>> I don't know it was existant. It is not in the documentation. :) >>> >>> I try it instantly. >>> >>> >>> 2013/1/8 thomas bonfort : >>>> then you need geomtransform centroid, no? >>>> >>>> On 8 January 2013 13:33, Andrea Peri wrote: >>>>> Actually it is returning something like this: >>>>> >>>>> OOOOOOO >>>>> OOOOOOO >>>>> OOOOOOO >>>>> OOOOOOO >>>>> >>>>> These seem a polygon filled with many circles internally >>>>> >>>>> Instead I would like to obtain something like this: >>>>> >>>>> O >>>>> >>>>> >>>>> >>>>> 2013/1/8 thomas bonfort : >>>>>> what are you trying to obtain ? >>>>>> >>>>>> On 8 January 2013 13:16, Andrea Peri wrote: >>>>>>> Hi, >>>>>>> many thx for response. >>>>>>> >>>>>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>>>> >>>>>>> No. >>>>>>> >>>>>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>>>> >>>>>>> I try to removing the geomtransform, but it do disappeared all symbol >>>>>>> (ie polygons lesser then defined area). >>>>>>> >>>>>>> But I see something of good try-ing to increase the size and also >>>>>>> adding a lesser than default outline. >>>>>>> >>>>>>> ie: >>>>>>> size 6 >>>>>>> with 0.1 >>>>>>> and leaving the GeomTransform 'start' >>>>>>> >>>>>>> It is surely better, but still it seem a polygon filled with many circles. >>>>>>> Instead my rendering is 1 only point for an entire polygon. >>>>>>> >>>>>>> This seem not clearly understandable from the returned legend. >>>>>>> >>>>>>> This is the result: >>>>>>> >>>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>>>> >>>>>>> >>>>>>> Many thx for hints, >>>>>>> >>>>>>> Andrea. >>>>>>> >>>>>>> 2013/1/8 thomas bonfort : >>>>>>>> Do you have a SIZEUNIT or SYMBOLSCALEDENOM set on your layer ? >>>>>>>> Try increasing/setting your CLASS->STYLE->SIZEs, and remove the GEOMTRANSFORM >>>>>>>> >>>>>>>> -- >>>>>>>> thomas >>>>>>>> >>>>>>>> On 8 January 2013 12:18, Andrea Peri wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I have a polygon layer that at some scales try to render with a symbol. >>>>>>>>> To do this I define a specific symbol style: >>>>>>>>> >>>>>>>>> SYMBOL >>>>>>>>> NAME "circlefill" >>>>>>>>> TYPE ellipse >>>>>>>>> POINTS >>>>>>>>> 1 1 >>>>>>>>> END >>>>>>>>> FILLED true >>>>>>>>> ANCHORPOINT 0.5 0.5 >>>>>>>>> END >>>>>>>>> >>>>>>>>> >>>>>>>>> And use this in the class definition as here where I put two class one >>>>>>>>> with a polygon rendering (when area bigger) and a second class with >>>>>>>>> point rendering when area is lower: >>>>>>>>> >>>>>>>>> CLASS >>>>>>>>> NAME 'area superiore a 1ha' >>>>>>>>> EXPRESSION ( ([AREA] >= 1000000) ) >>>>>>>>> GROUP 'delimitazione zona di vincolo' >>>>>>>>> MAXSCALEDENOM 4000100 >>>>>>>>> MINSCALEDENOM 50100 >>>>>>>>> STYLE >>>>>>>>> COLOR "#F2BAFE80" >>>>>>>>> OUTLINECOLOR "#F2BAFE" >>>>>>>>> ANTIALIAS false >>>>>>>>> END >>>>>>>>> END >>>>>>>>> CLASS >>>>>>>>> NAME 'area inferiore a 1ha' >>>>>>>>> EXPRESSION ( ([AREA] < 1000000) ) >>>>>>>>> GROUP 'delimitazione zona di vincolo' >>>>>>>>> MAXSCALEDENOM 4000100 >>>>>>>>> MINSCALEDENOM 50100 >>>>>>>>> STYLE >>>>>>>>> GEOMTRANSFORM 'start' >>>>>>>>> SYMBOL 'circlefill' >>>>>>>>> SIZE 4 >>>>>>>>> COLOR "#F2BAFEFF" >>>>>>>>> OUTLINECOLOR "#F2BAFE" >>>>>>>>> ANTIALIAS false >>>>>>>>> END >>>>>>>>> END >>>>>>>>> >>>>>>>>> Unfortunately the getlegendgraphis don't recognize this symbol >>>>>>>>> definition and seem to render always using a polygon style (because >>>>>>>>> the layer is originally a polygon). >>>>>>>>> >>>>>>>>> This is what return the GetLegendGraphics. >>>>>>>>> >>>>>>>>> http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstematici&service=wms&request=GetLegendGraphic&version=1.3.0&format=image/png&SLD_VERSION=1.1.0&layer=rt_tematici.idarch_a_1.rt&scale=60000 >>>>>>>>> >>>>>>>>> Am I wrong something in the class definitions ? >>>>>>>>> >>>>>>>>> Many thx, >>>>>>>>> >>>>>>>>> -- >>>>>>>>> ----------------- >>>>>>>>> Andrea Peri >>>>>>>>> . . . . . . . . . >>>>>>>>> qwerty ????? >>>>>>>>> ----------------- >>>>>>>>> _______________________________________________ >>>>>>>>> mapserver-users mailing list >>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> ----------------- >>>>>>> Andrea Peri >>>>>>> . . . . . . . . . >>>>>>> qwerty ????? >>>>>>> ----------------- >>>>> >>>>> >>>>> >>>>> -- >>>>> ----------------- >>>>> Andrea Peri >>>>> . . . . . . . . . >>>>> qwerty ????? >>>>> ----------------- >>> >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Steve.Lime at state.mn.us Tue Jan 8 07:29:04 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 8 Jan 2013 15:29:04 +0000 Subject: [mapserver-users] how use the expression function "area" In-Reply-To: References: Message-ID: Hi Andrea: In expressions the tag [shape] should be used to reference the current geometry. Many of the drivers don't define a geometry name column (e.g. native shapefiles) so we needed a consistent way to refer to it... So try: EXPRESSION ( (area([shape]) > 10000000) ) Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri Sent: Tuesday, January 08, 2013 3:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] how use the expression function "area" Hi, I see in the mapserver 6.2 is added the function "area" to the expressions. So I try to use this expression: EXPRESSION ( (area([GEOMETRY]) > 10000000) ) where geometry is the geometry field. The datasource is a spatialite db where the geometry filed is named "GEOMETRY" It return this errror: msOGRLayerInitItemInfo(): OGR error: Invalid field name GEOMETRY. Perhaps I miss to understanding the mean of area() function ? Any info is welcome. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Tue Jan 8 07:39:22 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 8 Jan 2013 16:39:22 +0100 Subject: [mapserver-users] how use the expression function "area" In-Reply-To: References: Message-ID: Hi, Thx very much. It work perfectly ! 2013/1/8 Lime, Steve D (DNR) : > Hi Andrea: In expressions the tag [shape] should be used to reference the current geometry. Many of the drivers don't define a geometry name column (e.g. native shapefiles) so we needed a consistent way to refer to it... So try: > > EXPRESSION ( (area([shape]) > 10000000) ) > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri > Sent: Tuesday, January 08, 2013 3:56 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] how use the expression function "area" > > Hi, > > I see in the mapserver 6.2 is added the function "area" to the expressions. > > So I try to use this expression: > > EXPRESSION ( (area([GEOMETRY]) > 10000000) ) > > where geometry is the geometry field. > The datasource is a spatialite db where the geometry filed is named "GEOMETRY" > > It return this errror: > > msOGRLayerInitItemInfo(): OGR error: Invalid field name GEOMETRY. > > Perhaps I miss to understanding the mean of area() function ? > > Any info is welcome. > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From bertrand.gervais.pro at gmail.com Wed Jan 9 07:04:00 2013 From: bertrand.gervais.pro at gmail.com (Bertrand Gervais) Date: Wed, 9 Jan 2013 16:04:00 +0100 Subject: [mapserver-users] MapInfo symbol file Message-ID: Hi, I am looking for a proper mapserver symbol file describing all standard MapInfo brush and pen patterns (all mapinfo-brush-* and mapinfo-pen-* styles, as returned by OGR). Does such file exist ? I am quite confident someone has worked on that (I have found a few threads regarding such styles), but did not manage to find more than a few symbols. Thanks for your help. Bertrand -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Jan 9 07:26:28 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 9 Jan 2013 10:26:28 -0500 Subject: [mapserver-users] PROCESSING CHART_SIZE_RANGE vaariable substition Message-ID: Hi, I created a pie chart and use PROCESSING "CHART_SIZE_RANGE=total 10 50 1 154" to define the size of each chart I would like to avoid hardcoding minval and maxval since these values can change in my application at runtime. Is there a way to modify these values using runtime substitution variable or programmatically? thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Jan 9 07:53:23 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 9 Jan 2013 10:53:23 -0500 Subject: [mapserver-users] RE PROCESSING CHART_SIZE_RANGE vaariable substition In-Reply-To: Message-ID: If it was possible to modify the url it would be fine, such as we can do to modify a class $url .= urlencode('map.layer['mylayer'].class[0].style[0]=COLOR'). '+255+255+255+OUTLINECOLOR+255+255+255&'; Is it possible to do the same for processing chart_size_range? I've tried without success yet. thanks steve Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-09 10:26 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] PROCESSING CHART_SIZE_RANGE vaariable substition Hi, I created a pie chart and use PROCESSING "CHART_SIZE_RANGE=total 10 50 1 154" to define the size of each chart I would like to avoid hardcoding minval and maxval since these values can change in my application at runtime. Is there a way to modify these values using runtime substitution variable or programmatically? thanks 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 Steve.Toutant at inspq.qc.ca Wed Jan 9 08:25:56 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 9 Jan 2013 11:25:56 -0500 Subject: [mapserver-users] RE RE PROCESSING CHART_SIZE_RANGE vaariable substition SOLVED In-Reply-To: Message-ID: I didn't find a way to modify the processing statement but in this trac http://trac.osgeo.org/mapserver/ticket/2136 It seems that minsize maxsize minval maxval are optional, so only itemname can be used. That is a solution to me since I can manage my case on the database side. (Just like I do with proportional circle using SIZE=[itemname]) I think the following (from the trac) should be added to the Mapserver Dynamic charting doc Also supports PROCESSING "CHART_SIZE_RANGE = itemname" without the minsize,maxsize,minval,maxval values for when the diameter can be read directly from an attribute without need for rescaling thanks steve Steve Toutant/INSPQ/SSSS 2013-01-09 10:53 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org Objet RE [mapserver-users] PROCESSING CHART_SIZE_RANGE vaariable substition If it was possible to modify the url it would be fine, such as we can do to modify a class $url .= urlencode('map.layer['mylayer'].class[0].style[0]=COLOR'). '+255+255+255+OUTLINECOLOR+255+255+255&'; Is it possible to do the same for processing chart_size_range? I've tried without success yet. thanks steve Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-09 10:26 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] PROCESSING CHART_SIZE_RANGE vaariable substition Hi, I created a pie chart and use PROCESSING "CHART_SIZE_RANGE=total 10 50 1 154" to define the size of each chart I would like to avoid hardcoding minval and maxval since these values can change in my application at runtime. Is there a way to modify these values using runtime substitution variable or programmatically? thanks 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 jmckenna at gatewaygeomatics.com Thu Jan 10 05:03:15 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Jan 2013 09:03:15 -0400 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: Message-ID: <50EEBC13.9050204@gatewaygeomatics.com> On 13-01-09 11:04 AM, Bertrand Gervais wrote: > Hi, > > I am looking for a proper mapserver symbol file describing all standard > MapInfo brush and pen patterns (all mapinfo-brush-* and mapinfo-pen-* > styles, as returned by OGR). > Does such file exist ? I am quite confident someone has worked on that > (I have found a few threads regarding such styles), but did not manage > to find more than a few symbols. > Hello, Check the Vector Data/OGR document's "Important Notes" section (http://www.mapserver.org/input/vector/ogr.html#important-notes), there is a link to an old MapInfo symbol file there. You will probably have to update it for MapServer 6.x though. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bertrand.gervais.pro at gmail.com Thu Jan 10 05:57:17 2013 From: bertrand.gervais.pro at gmail.com (Bertrand Gervais) Date: Thu, 10 Jan 2013 14:57:17 +0100 Subject: [mapserver-users] MapInfo symbol file Message-ID: Hi, Thanks. I have actually found this file but, as you say, it only deals with old MapServer symbols. I am just surprised not to find an up-to-date symbol file, describing all latest standard symbols. Bertrand -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Jan 10 06:01:19 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Jan 2013 10:01:19 -0400 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: Message-ID: <50EEC9AF.3060103@gatewaygeomatics.com> On 13-01-10 9:57 AM, Bertrand Gervais wrote: > Hi, > > Thanks. I have actually found this file but, as you say, it only deals > with old MapServer symbols. > I am just surprised not to find an up-to-date symbol file, describing > all latest standard symbols. Maybe as you travel down this path, you can document your files/symbols on the MapServer wiki (https://github.com/mapserver/mapserver/wiki). Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bertrand.gervais.pro at gmail.com Thu Jan 10 06:08:37 2013 From: bertrand.gervais.pro at gmail.com (Bertrand Gervais) Date: Thu, 10 Jan 2013 15:08:37 +0100 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: <50EEC9AF.3060103@gatewaygeomatics.com> References: <50EEC9AF.3060103@gatewaygeomatics.com> Message-ID: Yes, you are right. I did not know there was a MapServer Symbology Exchange wiki. Thanks. I will share my MapInfo symbol file when I will be able to collect or code all symbols. Bertrand 2013/1/10 Jeff McKenna > On 13-01-10 9:57 AM, Bertrand Gervais wrote: > > Hi, > > > > Thanks. I have actually found this file but, as you say, it only deals > > with old MapServer symbols. > > I am just surprised not to find an up-to-date symbol file, describing > > all latest standard symbols. > > Maybe as you travel down this path, you can document your files/symbols > on the MapServer wiki (https://github.com/mapserver/mapserver/wiki). > > Thanks! > > -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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Jan 10 06:21:41 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 Jan 2013 15:21:41 +0100 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: <50EEC9AF.3060103@gatewaygeomatics.com> Message-ID: You won't be able to produce all mapinfo symbols with recentish versions of mapserver. Tamas started a discussion about this a few months ago on the -dev list, proposing a new BITMAP symbol type. -- thomas On 10 January 2013 15:08, Bertrand Gervais wrote: > Yes, you are right. I did not know there was a MapServer Symbology > Exchange wiki. Thanks. > I will share my MapInfo symbol file when I will be able to collect or code > all symbols. > > > Bertrand > > > 2013/1/10 Jeff McKenna > >> On 13-01-10 9:57 AM, Bertrand Gervais wrote: >> > Hi, >> > >> > Thanks. I have actually found this file but, as you say, it only deals >> > with old MapServer symbols. >> > I am just surprised not to find an up-to-date symbol file, describing >> > all latest standard symbols. >> >> Maybe as you travel down this path, you can document your files/symbols >> on the MapServer wiki (https://github.com/mapserver/mapserver/wiki). >> >> Thanks! >> >> -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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Thu Jan 10 06:19:32 2013 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 10 Jan 2013 15:19:32 +0100 Subject: [mapserver-users] RE RE PROCESSING CHART_SIZE_RANGE vaariable substition SOLVED In-Reply-To: References: Message-ID: <50EECDF4.6070209@umb.no> I have added PROCESSING "CHART_SIZE_RANGE = itemname" as an alternative use in the dynamic charting document. H?vard On 1/9/2013 5:25 PM, Steve.Toutant at inspq.qc.ca wrote: > > I didn't find a way to modify the processing statement but in this trac > http://trac.osgeo.org/mapserver/ticket/2136 > > It seems that minsize maxsize minval maxval are optional, so only itemname can be used. > That is a solution to me since I can manage my case on the database side. (Just like I do with proportional circle using SIZE=[itemname]) > > I think the following (from the trac) should be added to the Mapserver Dynamic charting doc > > Also supports > PROCESSING "CHART_SIZE_RANGE = itemname" > without the minsize,maxsize,minval,maxval values for when the diameter can be read directly from an attribute without need for rescaling > > thanks > steve > > > > > *Steve Toutant/INSPQ/SSSS* > > 2013-01-09 10:53 > > > A > Steve.Toutant at inspq.qc.ca > cc > mapserver-users at lists.osgeo.org, mapserver-users-bounces at lists.osgeo.org > Objet > RE [mapserver-users] PROCESSING CHART_SIZE_RANGE vaariable substitionLien > > > > > > > > > > > > If it was possible to modify the url it would be fine, such as we can do to modify a class > $url .= urlencode('map.layer['mylayer'].class[0].style[0]=COLOR'). '+255+255+255+OUTLINECOLOR+255+255+255&'; > > Is it possible to do the same for processing chart_size_range? > I've tried without success yet. > thanks > steve > > > > *Steve.Toutant at inspq.qc.ca@lists.osgeo.org* > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > 2013-01-09 10:26 > > > A > mapserver-users at lists.osgeo.org > cc > > Objet > [mapserver-users] PROCESSING CHART_SIZE_RANGE vaariable substition > > > > > > > > > > > > > > Hi, > I created a pie chart and use PROCESSING "CHART_SIZE_RANGE=total 10 50 1 154" > to define the size of each chart > > I would like to avoid hardcoding minval and maxval since these values can change in my application at runtime. > > Is there a way to modify these values using runtime substitution variable or programmatically? > thanks > steve > _______________________________________________ > 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 > -- 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 bertrand.gervais.pro at gmail.com Thu Jan 10 06:25:54 2013 From: bertrand.gervais.pro at gmail.com (Bertrand Gervais) Date: Thu, 10 Jan 2013 15:25:54 +0100 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: <50EEC9AF.3060103@gatewaygeomatics.com> Message-ID: Ok, thanks, Thomas. I will check this discussion. Bertrand -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Jan 10 06:57:19 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 10 Jan 2013 15:57:19 +0100 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: <50EEC9AF.3060103@gatewaygeomatics.com> Message-ID: We have been trying to implement mapinfo brush patterns as vector symbols, but that is not possible due to the antialias behaviour of the newer renderers. Therefore I've scheduled to implement BITMAP symbol type which provides to define the pixel patterns accurately. Best regards, Tamas 2013/1/10 thomas bonfort > You won't be able to produce all mapinfo symbols with recentish versions > of mapserver. Tamas started a discussion about this a few months ago on the > -dev list, proposing a new BITMAP symbol type. > > -- > thomas > > > On 10 January 2013 15:08, Bertrand Gervais > wrote: > >> Yes, you are right. I did not know there was a MapServer Symbology >> Exchange wiki. Thanks. >> I will share my MapInfo symbol file when I will be able to collect or >> code all symbols. >> >> >> Bertrand >> >> >> 2013/1/10 Jeff McKenna >> >>> On 13-01-10 9:57 AM, Bertrand Gervais wrote: >>> > Hi, >>> > >>> > Thanks. I have actually found this file but, as you say, it only deals >>> > with old MapServer symbols. >>> > I am just surprised not to find an up-to-date symbol file, describing >>> > all latest standard symbols. >>> >>> Maybe as you travel down this path, you can document your files/symbols >>> on the MapServer wiki (https://github.com/mapserver/mapserver/wiki). >>> >>> Thanks! >>> >>> -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 >> >> > > _______________________________________________ > 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 bertrand.gervais.pro at gmail.com Thu Jan 10 07:04:51 2013 From: bertrand.gervais.pro at gmail.com (Bertrand Gervais) Date: Thu, 10 Jan 2013 16:04:51 +0100 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: <50EEC9AF.3060103@gatewaygeomatics.com> Message-ID: Ok, I understand. Then it will be easy coding all MapInfo standard patterns, since all of them are already available as image files on the web. Thanks. Bertrand 2013/1/10 Tamas Szekeres > We have been trying to implement mapinfo brush patterns as vector symbols, > but that is not possible due to the antialias behaviour of the newer > renderers. Therefore I've scheduled to implement BITMAP symbol type which > provides to define the pixel patterns accurately. > > Best regards, > > Tamas > > > > 2013/1/10 thomas bonfort > >> You won't be able to produce all mapinfo symbols with recentish versions >> of mapserver. Tamas started a discussion about this a few months ago on the >> -dev list, proposing a new BITMAP symbol type. >> >> -- >> thomas >> >> >> On 10 January 2013 15:08, Bertrand Gervais < >> bertrand.gervais.pro at gmail.com> wrote: >> >>> Yes, you are right. I did not know there was a MapServer Symbology >>> Exchange wiki. Thanks. >>> I will share my MapInfo symbol file when I will be able to collect or >>> code all symbols. >>> >>> >>> Bertrand >>> >>> >>> 2013/1/10 Jeff McKenna >>> >>>> On 13-01-10 9:57 AM, Bertrand Gervais wrote: >>>> > Hi, >>>> > >>>> > Thanks. I have actually found this file but, as you say, it only deals >>>> > with old MapServer symbols. >>>> > I am just surprised not to find an up-to-date symbol file, describing >>>> > all latest standard symbols. >>>> >>>> Maybe as you travel down this path, you can document your files/symbols >>>> on the MapServer wiki (https://github.com/mapserver/mapserver/wiki). >>>> >>>> Thanks! >>>> >>>> -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 >>> >>> >> >> _______________________________________________ >> 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 aperi2007 at gmail.com Thu Jan 10 08:52:41 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 10 Jan 2013 17:52:41 +0100 Subject: [mapserver-users] Set legend image with text left aligned and upper Message-ID: Hi, Is possible to set the legend image returned from a GetLegendGraphis request to have the text left aligned and Upper ? Actually it is return left aligned but bottom. This is the settings I try LEGEND IMAGECOLOR 255 255 255 STATUS OFF KEYSIZE 20 15 KEYSPACING 5 5 POSITION lr POSTLABELCACHE true LABEL TYPE BITMAP SIZE MEDIUM MAXLENGTH 20 WRAP ' ' COLOR 0 0 0 END END The "position" command don't seem to have any effect on this text position. It act on the position of a legend embedded on a map instead. I try also the "position" setting inside the label object , but it don't seem have any effect on a legend text. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From szekerest at gmail.com Thu Jan 10 10:39:00 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 10 Jan 2013 19:39:00 +0100 Subject: [mapserver-users] MapInfo symbol file In-Reply-To: References: <50EEC9AF.3060103@gatewaygeomatics.com> Message-ID: I also thought to add some kind of built in support for the mapinfo patterns in the OGR driver, but I'm not quite sure about the licensing concerns. Best regards, Tamas 2013/1/10 Bertrand Gervais > > Ok, I understand. Then it will be easy coding all MapInfo standard > patterns, since all of them are already available as image files on the > web. Thanks. > > Bertrand > > > > > 2013/1/10 Tamas Szekeres > >> We have been trying to implement mapinfo brush patterns as vector >> symbols, but that is not possible due to the antialias behaviour of the >> newer renderers. Therefore I've scheduled to implement BITMAP symbol type >> which provides to define the pixel patterns accurately. >> >> Best regards, >> >> Tamas >> >> >> >> 2013/1/10 thomas bonfort >> >>> You won't be able to produce all mapinfo symbols with recentish versions >>> of mapserver. Tamas started a discussion about this a few months ago on the >>> -dev list, proposing a new BITMAP symbol type. >>> >>> -- >>> thomas >>> >>> >>> On 10 January 2013 15:08, Bertrand Gervais < >>> bertrand.gervais.pro at gmail.com> wrote: >>> >>>> Yes, you are right. I did not know there was a MapServer Symbology >>>> Exchange wiki. Thanks. >>>> I will share my MapInfo symbol file when I will be able to collect or >>>> code all symbols. >>>> >>>> >>>> Bertrand >>>> >>>> >>>> 2013/1/10 Jeff McKenna >>>> >>>>> On 13-01-10 9:57 AM, Bertrand Gervais wrote: >>>>> > Hi, >>>>> > >>>>> > Thanks. I have actually found this file but, as you say, it only >>>>> deals >>>>> > with old MapServer symbols. >>>>> > I am just surprised not to find an up-to-date symbol file, describing >>>>> > all latest standard symbols. >>>>> >>>>> Maybe as you travel down this path, you can document your files/symbols >>>>> on the MapServer wiki (https://github.com/mapserver/mapserver/wiki). >>>>> >>>>> Thanks! >>>>> >>>>> -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 >>>> >>>> >>> >>> _______________________________________________ >>> 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 Thu Jan 10 10:39:36 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 10 Jan 2013 18:39:36 +0000 Subject: [mapserver-users] GML Invalid exterior ring In-Reply-To: <6105664C4DC4AA4FA4D728662762382F03EA28A173@ATT1-MBX3.global.amec.com> References: <6105664C4DC4AA4FA4D728662762382F03EA28A173@ATT1-MBX3.global.amec.com> Message-ID: <84446DEF76453C439E9E97E438E13A637C56BB@suutari.haapa.mmm.fi> Hi, Looks like this: http://trac.osgeo.org/gdal/ticket/4934 Thus once MS4W contains GDAL 1.10 is should work again. By looking at your gml file I think it is generated by Mapserver, not SQL server. Was the attachment correct? -Jukka Rahkonen- ________________________________________ Moffatt, Greg wrote: > Hi all, > I posted this on the ms4w list last week, but I haven't had any response, so please forgive my cross-post. > I have a GML file that's generated by SQL Server that contains one or more polygons. It used to work, but since I've upgraded the ms4w installation on my web server, any requests to MapServer for that layer fail with the message: msOGRFileNextShape(): OGR error. Invalid exterior ring. > An example of the GML is attached, along with a .map file. I've worked my way back through the ms4w versions, and have found that a change between 3.0.3 and 3.0.4-beta1 may be the culprit: ms4w 3.0.3 - Works ms4w 3.0.4-beta1 - Invalid exterior ring ms4w 3.0.5 - Invalid exterior ring ms4w 3.0.6 - Invalid exterior ring GDAL changed from 1.8.1RC2 to 1.9.0 in that step. I've looked through the GDAL release notes, but nothing is jumping out at me. Two questions: 1. Do you know of any reason why the GML would fail to draw in recent versions? Ideally, I'd like to correct my GML or MapServer configuration to get it to work in the latest ms4w version. 2. If there's no solution in #1, would it be feasible to downgrade GDAL/OGR while keeping the remainder of ms4w intact (or would that be asking for trouble)? A million thanks, Greg The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. From Greg.Moffatt at amec.com Thu Jan 10 10:47:42 2013 From: Greg.Moffatt at amec.com (Moffatt, Greg) Date: Thu, 10 Jan 2013 13:47:42 -0500 Subject: [mapserver-users] GML Invalid exterior ring In-Reply-To: <84446DEF76453C439E9E97E438E13A637C56BB@suutari.haapa.mmm.fi> References: <6105664C4DC4AA4FA4D728662762382F03EA28A173@ATT1-MBX3.global.amec.com> <84446DEF76453C439E9E97E438E13A637C56BB@suutari.haapa.mmm.fi> Message-ID: <6105664C4DC4AA4FA4D728662762382F03EDE6E686@ATT1-MBX3.global.amec.com> My apologies, Jukka. I had cross posted the problem and not followed up here. The problem was resolved on the GDAL list. The GML was generated by SQL Server using the "FOR XML" clause, which tends to produce very verbose XML! At the request of Even Rouault, I logged a ticket on the issue (#4934), and he addressed it right away. In the meantime, I stripped the redundant attributes from the XML by casting it to a varchar(max), replacing the namespace attributes with nothing, and then replacing the root tag with one containing the attributes. Casted that varchar back to XML and voila - everything works again. Not the most eloquent solution, but it works. All the best, Greg -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: January-10-13 1:40 PM To: Moffatt, Greg; mapserver-users at lists.osgeo.org Subject: Re: GML Invalid exterior ring Hi, Looks like this: http://trac.osgeo.org/gdal/ticket/4934 Thus once MS4W contains GDAL 1.10 is should work again. By looking at your gml file I think it is generated by Mapserver, not SQL server. Was the attachment correct? -Jukka Rahkonen- ________________________________________ Moffatt, Greg wrote: > Hi all, > I posted this on the ms4w list last week, but I haven't had any response, so please forgive my cross-post. > I have a GML file that's generated by SQL Server that contains one or more polygons. It used to work, but since I've upgraded the ms4w installation on my web server, any requests to MapServer for that layer fail with the message: msOGRFileNextShape(): OGR error. Invalid exterior ring. > An example of the GML is attached, along with a .map file. I've worked my way back through the ms4w versions, and have found that a change between 3.0.3 and 3.0.4-beta1 may be the culprit: ms4w 3.0.3 - Works ms4w 3.0.4-beta1 - Invalid exterior ring ms4w 3.0.5 - Invalid exterior ring ms4w 3.0.6 - Invalid exterior ring GDAL changed from 1.8.1RC2 to 1.9.0 in that step. I've looked through the GDAL release notes, but nothing is jumping out at me. Two questions: 1. Do you know of any reason why the GML would fail to draw in recent versions? Ideally, I'd like to correct my GML or MapServer configuration to get it to work in the latest ms4w version. 2. If there's no solution in #1, would it be feasible to downgrade GDAL/OGR while keeping the remainder of ms4w intact (or would that be asking for trouble)? A million thanks, Greg The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. From fiona.flint at ed.ac.uk Fri Jan 11 03:01:17 2013 From: fiona.flint at ed.ac.uk (Fiona Hemsley-Flint) Date: Fri, 11 Jan 2013 11:01:17 +0000 Subject: [mapserver-users] Newer version of Freetype causing font rendering problems Message-ID: <50EFF0FD.8070002@ed.ac.uk> In an update to this issue (http://lists.osgeo.org/pipermail/mapserver-users/2012-December/073844.html), we have just found that the older version of Freetype (2.3.9) is no longer available form the repository we got it from, which might mean that it will become obsolete in time, and therefore any new installs of Mapserver will have a text rendering problem if they are using the new version of Freetype and this issue remains unresolved. Are there any plans from the Mapserver end to look into this problem? Thanks again, Fiona -- ---------------------------------------------------- Dr Fiona Hemsley-Flint EDINA National Data Centre, University of Edinburgh +44(0)131 6514462 ---------------------------------------------------- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From thomas.bonfort at gmail.com Fri Jan 11 04:23:26 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 Jan 2013 13:23:26 +0100 Subject: [mapserver-users] Newer version of Freetype causing font rendering problems In-Reply-To: <50EFF0FD.8070002@ed.ac.uk> References: <50EFF0FD.8070002@ed.ac.uk> Message-ID: Fiona, If this important for you, I'd suggest you investigate what changes in freetype are triggering this different rendering (it might be options passed to the freetype api, or configuration/compile time options to add/remove). Once you have nailed down the change, feel free to follow up to this list and/or to a github issue so we can update the mapserver codebase if necessary. regards, thomas On 11 January 2013 12:01, Fiona Hemsley-Flint wrote: > In an update to this issue > (http://lists.osgeo.org/pipermail/mapserver-users/2012-December/073844.html), > we have just found that the older version of Freetype (2.3.9) is no longer > available form the repository we got it from, which might mean that it will > become obsolete in time, and therefore any new installs of Mapserver will > have a text rendering problem if they are using the new version of Freetype > and this issue remains unresolved. > > Are there any plans from the Mapserver end to look into this problem? > > Thanks again, > Fiona > > -- > ---------------------------------------------------- > Dr Fiona Hemsley-Flint > EDINA National Data Centre, > University of Edinburgh > > +44(0)131 6514462 > ---------------------------------------------------- > > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From yves.jacolin at camptocamp.com Fri Jan 11 05:40:28 2013 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Fri, 11 Jan 2013 14:40:28 +0100 Subject: [mapserver-users] INSPIRE compatibility and NAME parameter in CLASS object Message-ID: Hello, I read carefully the documentation about INSPIRE directive in MapServer [1]. This is really interesting but I am wondering how users could manage legend translation. Do we need to create one legend file by langage and layer in order to use wms_group_style_legendurl_href parameter in MD? Thanks, Y. [1] http://mapserver.org/fr/ogc/inspire.html -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 02 16 190 10 43 (new) Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Jan 11 12:49:20 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 11 Jan 2013 20:49:20 +0000 Subject: [mapserver-users] Displaying file GDB rasters Message-ID: I have some data that was provided to me in an ESRI File GDB format, and the data is a raster catalog. I've tried to set up a .map file for this, but haven't been successful. Is it possible to use a file GDB/raster catalog with MapServer? If so, what are the mapfile parameters for this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_dev at wildintellect.com Fri Jan 11 13:47:38 2013 From: tech_dev at wildintellect.com (Alex Mandel) Date: Fri, 11 Jan 2013 13:47:38 -0800 Subject: [mapserver-users] Displaying file GDB rasters In-Reply-To: References: Message-ID: <50F0887A.8080403@wildintellect.com> On 01/11/2013 12:49 PM, Bistrais, Bob wrote: > I have some data that was provided to me in an ESRI File GDB format, and the data is a raster catalog. I've tried to set up a .map file for this, but haven't been successful. > > Is it possible to use a file GDB/raster catalog with MapServer? If so, what are the mapfile parameters for this? > > You need to add the File GDB driver to your gdal installation. I think it's packaged for windows under OSGeo4w, if on linux you need to download some files from ESRI and compile. See google for more details. Thanks, Alex From jtaranu at firstbasesolutions.com Fri Jan 11 15:18:56 2013 From: jtaranu at firstbasesolutions.com (John Taranu) Date: Fri, 11 Jan 2013 18:18:56 -0500 Subject: [mapserver-users] MapCache errors when writing new tiles in a cluster environment Message-ID: <020b01cdf052$077c3ee0$1674bca0$@firstbasesolutions.com> We are having some problems with MapCache running in a multi-server cluster environment. Occasionally, requests fail for brand new, uncached tiles from a vertical assembly layer (i.e. from other WMS layers as sources). I can confirm this from the server logs: Jan 9 18:55:33 server2 httpd[28518]: [error] [client 127.0.0.1] failed to create file /home/caches/NewLayer/gmaps/17/000/036/125/000/082/973.xxx: No such file or directory Jan 9 18:55:33 server2 httpd[28518]: [error] [client 127.0.0.1] failed to create file /home/caches/NewLayer/gmaps/17/000/036/125/000/082/973.xxx: No such file or directory Only one tile request is being made, but the failure is logged twice for some reason. It is returned as a blank image with an HTTP 500 error code to the client. This error does not appear to be occurring at the tile locking phase, but rather at the point of writing the tile back into the cache directory. Our setup uses multiple web servers running mapcache under a load balancer. The disk cache directory (and the lock file directory) is shared as an NFS mount. All servers are running the latest version of MapCache from Github as an Apache module on CentOS 5.6. This error still occurs when only using one webserver, but it occurs much less frequently. It occurs more frequently when the servers are under a higher load. Has anyone experienced similar problems? --------------------------------------- John Taranu Senior Web Developer First Base Solutions Inc Markham, Ontario email: jtaranu at firstbasesolutions.com web: firstbasesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at free.fr Sat Jan 12 10:02:57 2013 From: yjacolin at free.fr (Yves Jacolin) Date: Sat, 12 Jan 2013 19:02:57 +0100 Subject: [mapserver-users] INSPIRE compatibility and NAME parameter in CLASS object Message-ID: <7718355.dTcLgAgD3e@helios> Hello, I read carefully the documentation about INSPIRE directive in MapServer [1]. This is really interesting but I am wondering how users could manage legend translation. Do we need to create one legend file by langage and layer in order to use wms_group_style_legendurl_href parameter in MD? Thanks, Y. [1] http://mapserver.org/fr/ogc/inspire.html -- Yves Jacolin -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gso.nl Sun Jan 13 02:08:21 2013 From: hans at gso.nl (Hans) Date: Sun, 13 Jan 2013 02:08:21 -0800 (PST) Subject: [mapserver-users] Variables not processed in 6.0.2 Message-ID: <1358071701182-5027141.post@n6.nabble.com> hi I am new in mapserver and testing with versions 5.2.2 and 6.2.0. I found out that filtering in a layer with a url option does work in 5.2.2 but not in 6.2.0. I have this layer : NAME demo STATUS ON TYPE POLYGON METADATA 'default_percsize' '1' END CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.3.8 dbname=postgis20 user=postgres password=*** port=5432" DATA "geometry from map_05 using unique geb_id using srid=28992" FILTER "perc_10 in ( %percsize% )" and there is "&percsize=10" in the url. When using MapServ.exe 5.2.2. this works fine, but when using 6.2.0 it does not process the percsize parameter from the URL when I see the error message. Failed to draw layer named 'demo'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" LINE 1: ....8,-10179.25 306866.8))',28992) and (perc_10 in ( %percsize%... ^ msValidateParameter(): Regular expression error. Parameter pattern validation failed. I see %percsize% is still in the SQL, so it was not replaced??? How can I fix this? Hans -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Variables-not-processed-in-6-0-2-tp5027141.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Sun Jan 13 02:18:22 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 13 Jan 2013 10:18:22 +0000 Subject: [mapserver-users] Variables not processed in 6.0.2 In-Reply-To: <1358071701182-5027141.post@n6.nabble.com> References: <1358071701182-5027141.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A637C66A3@suutari.haapa.mmm.fi> Hi, Validation became compulsory in version 6.0. Read http://mapserver.org/cgi/runsub.html#validation and add validation block for percsize. -Jukka Rahkonen- ________________________________________ Hans wrote: > hi > I am new in mapserver and testing with versions 5.2.2 and 6.2.0. > I found out that filtering in a layer with a url option does work in 5.2.2 > but not in 6.2.0. > I have this layer : NAME demo STATUS ON TYPE POLYGON METADATA 'default_percsize' '1' END CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.3.8 dbname=postgis20 user=postgres password=*** port=5432" DATA "geometry from map_05 using unique geb_id using srid=28992" FILTER "perc_10 in ( %percsize% )" and there is "&percsize=10" in the url. When using MapServ.exe 5.2.2. this works fine, but when using 6.2.0 it does not process the percsize parameter from the URL when I see the error message. Failed to draw layer named 'demo'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" LINE 1: ....8,-10179.25 306866.8))',28992) and (perc_10 in ( %percsize%... ^ msValidateParameter(): Regular expression error. Parameter pattern validation failed. I see %percsize% is still in the SQL, so it was not replaced??? How can I fix this? Hans -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Variables-not-processed-in-6-0-2-tp5027141.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 hans at gso.nl Sun Jan 13 22:57:29 2013 From: hans at gso.nl (Hans) Date: Mon, 14 Jan 2013 07:57:29 +0100 Subject: [mapserver-users] Variables not processed in 6.0.2 CRM:0001794 Message-ID: <00df01cdf224$6b312620$41937260$@gso.nl> Thank you for you're help. You are right. Adding a validation did work. Kind regards Hans -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: zondag 13 januari 2013 11:18 To: Hans; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Variables not processed in 6.0.2 Hi, Validation became compulsory in version 6.0. Read http://mapserver.org/cgi/runsub.html#validation and add validation block for percsize. -Jukka Rahkonen- ________________________________________ Hans wrote: > hi > I am new in mapserver and testing with versions 5.2.2 and 6.2.0. > I found out that filtering in a layer with a url option does work in > 5.2.2 but not in 6.2.0. > I have this layer : NAME demo STATUS ON TYPE POLYGON METADATA 'default_percsize' '1' END CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.3.8 dbname=postgis20 user=postgres password=*** port=5432" DATA "geometry from map_05 using unique geb_id using srid=28992" FILTER "perc_10 in ( %percsize% )" and there is "&percsize=10" in the url. When using MapServ.exe 5.2.2. this works fine, but when using 6.2.0 it does not process the percsize parameter from the URL when I see the error message. Failed to draw layer named 'demo'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" LINE 1: ....8,-10179.25 306866.8))',28992) and (perc_10 in ( %percsize%... ^ msValidateParameter(): Regular expression error. Parameter pattern validation failed. I see %percsize% is still in the SQL, so it was not replaced??? How can I fix this? Hans -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Variables-not-processed-in-6-0-2-tp50271 41.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 -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2986 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Mon Jan 14 04:59:26 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 14 Jan 2013 08:59:26 -0400 Subject: [mapserver-users] Displaying file GDB rasters In-Reply-To: References: Message-ID: <50F4012E.6070704@gatewaygeomatics.com> On 13-01-11 4:49 PM, Bistrais, Bob wrote: > I have some data that was provided to me in an ESRI File GDB format, and > the data is a raster catalog. I?ve tried to set up a .map file for > this, but haven?t been successful. > > > > Is it possible to use a file GDB/raster catalog with MapServer? If so, > what are the mapfile parameters for this? Always check the 'Data Input' section of the MapServer documentation, for your data type to display: http://www.mapserver.org/input/vector/filegdb.html If you are on Windows, MS4W has included FileGDB support for a while now. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Mon Jan 14 05:06:09 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 14 Jan 2013 09:06:09 -0400 Subject: [mapserver-users] Displaying file GDB rasters In-Reply-To: <50F4012E.6070704@gatewaygeomatics.com> References: <50F4012E.6070704@gatewaygeomatics.com> Message-ID: <50F402C1.3070002@gatewaygeomatics.com> On 13-01-14 8:59 AM, Jeff McKenna wrote: > On 13-01-11 4:49 PM, Bistrais, Bob wrote: >> I have some data that was provided to me in an ESRI File GDB format, and >> the data is a raster catalog. I?ve tried to set up a .map file for >> this, but haven?t been successful. >> >> >> >> Is it possible to use a file GDB/raster catalog with MapServer? If so, >> what are the mapfile parameters for this? > > Always check the 'Data Input' section of the MapServer documentation, > for your data type to display: > http://www.mapserver.org/input/vector/filegdb.html > > If you are on Windows, MS4W has included FileGDB support for a while now. > This is for FileGDB vectors: your message was for rasters, oops, so, you'll have to ask this on the GDAL mailing list probably (I assumed FileGDB was vector only). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ragi at burhum.com Mon Jan 14 12:49:48 2013 From: ragi at burhum.com (Ragi Burhum) Date: Mon, 14 Jan 2013 12:49:48 -0800 Subject: [mapserver-users] Displaying file GDB rasters Message-ID: > Date: Mon, 14 Jan 2013 09:06:09 -0400 > From: Jeff McKenna > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Displaying file GDB rasters > > On 13-01-14 8:59 AM, Jeff McKenna wrote: > > On 13-01-11 4:49 PM, Bistrais, Bob wrote: > >> I have some data that was provided to me in an ESRI File GDB format, and > >> the data is a raster catalog. I?ve tried to set up a .map file for > >> this, but haven?t been successful. > >> > >> > >> > >> Is it possible to use a file GDB/raster catalog with MapServer? If so, > >> what are the mapfile parameters for this? > > > > Always check the 'Data Input' section of the MapServer documentation, > > for your data type to display: > > http://www.mapserver.org/input/vector/filegdb.html > > > > If you are on Windows, MS4W has included FileGDB support for a while now. > > > > This is for FileGDB vectors: your message was for rasters, oops, so, > you'll have to ask this on the GDAL mailing list probably (I assumed > FileGDB was vector only). > > Sorry. ESRI's standalone FileGDB API does not support Rasters yet. See http://ideas.arcgis.com/ideaView?id=08730000000bsadAAA Of course, if you did have an ESRI license, you could write a GDAL ArcObjects driver. I wrote an OGR (i.e. for vectors) ArcObjects driver for a customer in the past (before there was a FileGDB API). Nobody has demonstrated interest for it, thus it doesn't exist yet. Best, - Ragi -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.ellett at statkart.no Tue Jan 15 02:33:56 2013 From: thomas.ellett at statkart.no (tellett) Date: Tue, 15 Jan 2013 02:33:56 -0800 (PST) Subject: [mapserver-users] SLD scale problems with raster symboolizer Message-ID: <1358246036783-5027533.post@n6.nabble.com> Hi All, I'm trying to use an sld with a simple raster service and all I'm trying to do is change the min and maxscales of the layers using the SLD. Mapserver just doesn't seem to be applying the SLD maxscaledenominator and minscaledenominator values. Mapfile snippet: LAYER NAME "n50" STATUS ON TILEINDEX "tileindex/n50_index.shp" TILEITEM "location" TYPE RASTER MAXSCALE 100000 MINSCALE 5000 PROCESSING "OVERSAMPLE_RATIO=4" PROCESSING "RESAMPLE=AVERAGE" METADATA "wms_title" "n50" "wms_extent" "-127998 6377917 1145513 7976805" END PROJECTION "init=epsg:32633" END END SLD snippet: n50 n50 1.00000 100000.000000 I thought I'd see if anyone else has had this problem/knows of an answer before posting a bug report. Thanks in advance, Tom -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-scale-problems-with-raster-symboolizer-tp5027533.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Bistrais at maine.gov Tue Jan 15 10:57:27 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 15 Jan 2013 18:57:27 +0000 Subject: [mapserver-users] Direct Connect to ESRI data Message-ID: Some time ago, we phased out our Oracle/SDE storage for our ESRI data. We now have that data stored in a SQL Server Direct Connect environment. In the past, I was able to connect MapServer to SDE. I have not been able to figure out how to do this in the new environment. Can anyone lend a few suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue Jan 15 11:09:14 2013 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 15 Jan 2013 19:09:14 +0000 Subject: [mapserver-users] Direct Connect to ESRI data In-Reply-To: Message-ID: <68A6D85AFE844844ABCD23232A5C97950172FB2C@MS-EX1VKS.erdc.dren.mil> Bob, How is the data stored in SQL Server? Is it in SQL Server native format? If so, then see http://mapserver.org/input/vector/mssql.html. If its SDEBINARY or some other SDE format, then your only solution is going through SDE so that means deploying an SDE server. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Bistrais, Bob" > Date: Tue, 15 Jan 2013 18:57:27 +0000 To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Direct Connect to ESRI data Resent-From: Michael Smith > Some time ago, we phased out our Oracle/SDE storage for our ESRI data. We now have that data stored in a SQL Server Direct Connect environment. In the past, I was able to connect MapServer to SDE. I have not been able to figure out how to do this in the new environment. Can anyone lend a few suggestions? _______________________________________________ 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 Tue Jan 15 11:25:32 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 15 Jan 2013 19:25:32 +0000 Subject: [mapserver-users] Direct Connect to ESRI data In-Reply-To: <68A6D85AFE844844ABCD23232A5C97950172FB2C@MS-EX1VKS.erdc.dren.mil> References: <68A6D85AFE844844ABCD23232A5C97950172FB2C@MS-EX1VKS.erdc.dren.mil> Message-ID: Thanks Mike, We are SDEBINARY, so we'll have to go with that route. From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, January 15, 2013 2:09 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Direct Connect to ESRI data Bob, How is the data stored in SQL Server? Is it in SQL Server native format? If so, then see http://mapserver.org/input/vector/mssql.html. If its SDEBINARY or some other SDE format, then your only solution is going through SDE so that means deploying an SDE server. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Bistrais, Bob" > Date: Tue, 15 Jan 2013 18:57:27 +0000 To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Direct Connect to ESRI data Resent-From: Michael Smith > Some time ago, we phased out our Oracle/SDE storage for our ESRI data. We now have that data stored in a SQL Server Direct Connect environment. In the past, I was able to connect MapServer to SDE. I have not been able to figure out how to do this in the new environment. Can anyone lend a few suggestions? _______________________________________________ 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 Clement.MONIER at v-trafic.com Thu Jan 17 09:04:25 2013 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Thu, 17 Jan 2013 18:04:25 +0100 Subject: [mapserver-users] FILTER syntax Message-ID: Hi, I searching how to convert a sql request like "where field1 in (value1, value2, ..., valueN)" into a FILTER clause inside a map file (layer block) I tried "FILTER ([field1] in (value1, value2, ..., valueN))" But it doesn't work Though it works fine when "FILTER ([field1] = value1)" My data is shapefile Thanks for your help Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu Jan 17 09:39:47 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 17 Jan 2013 12:39:47 -0500 Subject: [mapserver-users] RE FILTER syntax In-Reply-To: Message-ID: remove () around values and remove spaces after , and use double quote around the values try FILTER ([field1] in "value1,value2,valueN") Cl?ment MONIER @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-17 12:04 A "mapserver-users at lists.osgeo.org" cc Objet [mapserver-users] FILTER syntax Hi, I searching how to convert a sql request like ?where field1 in (value1, value2, ?, valueN)? into a FILTER clause inside a map file (layer block) I tried ?FILTER ([field1] in (value1, value2, ?, valueN))? But it doesn?t work Though it works fine when ?FILTER ([field1] = value1)? My data is shapefile Thanks for your help Cl?ment_______________________________________________ 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 mattxbart at gmail.com Thu Jan 17 13:30:38 2013 From: mattxbart at gmail.com (Matt Bartolome) Date: Thu, 17 Jan 2013 13:30:38 -0800 Subject: [mapserver-users] msDrawRasterLayerLow(): Unable to access file. Message-ID: I've run into a strange problem and can't locate the source of the issue. I'm running a python/mapscript function with apache2 and django via wsgi on Ubuntu 12.04, mapserver 6.2. When I run the script using plain python as the www-data user (the same user as the wsgi daemon) the script works perfectly fine. When I run it under the wsgi process (through the browser) it fails with the error: msDrawMap(): Image handling error. Failed to draw layer named 'imagery_2010'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/mnt/test/imagery/test.ecw' for layer 'imagery_2010'. At first I thought it was a simple permissions issue (reading the ecw off a mount point etc). I verified with inotifywait that the file is being opened by the wsgi script. I have compiled gdal with ECW support and have checked that the wsgi process is running off the same mapscript python lib. Also, the same wsgi script will run without error if I change the raster to a non-ecw file, so it seems that it just doesn't like the ecw under wsgi. gdalinfo reads the ecw just fine as well. It is only under the wsgi process where it has problems. I'm stumped... Thanks for your help! Here is my map file: MAP CONFIG "MS_ERRORFILE" "/tmp/ms_output.txt" DEBUG 5 CONFIG "PROJ_LIB" "/usr/share/proj/" PROJECTION "init=epsg:900913" END FONTSET "/test/fontset.txt" WEB METADATA "wms_title" "WMS" "wms_onlineresource" " http://localhost:81/cgi-bin/mapserv?map=/test/mapserver-config/plan.map" "ows_enable_request" "*" "wms_srs" "epsg:900913" END END OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END LAYER NAME "imagery_2010" TYPE RASTER STATUS ON DATA "/mnt/test/imagery/test.ecw" PROJECTION "init=epsg:2230" END PROCESSING "NODATA=255" PROCESSING "RESAMPLE=AVERAGE" END END Here is the python script: import mapscript extent = [-13037387.706571, 3898141.5912883, -13036963.719929, 3898380.4570017] filename = '/tmp/test.pdf' raster = '/tmp/test.png' mapfile = '/test/mapserver-config/plan.map' map_obj = mapscript.mapObj(mapfile) map_obj.width = 800 map_obj.height = 600 map_obj.extent = mapscript.rectObj(*extent) image = map_obj.draw() image.save(raster) -------------- next part -------------- An HTML attachment was scrubbed... URL: From thxftw at gmail.com Fri Jan 18 01:28:05 2013 From: thxftw at gmail.com (Peter Maes) Date: Fri, 18 Jan 2013 10:28:05 +0100 Subject: [mapserver-users] apache module - mapserver Message-ID: Hi, I noticed during compilation of mapserver 6.2 that there is an apache module as well. I've ran the configure/make/make install dance, as well as make install-module. I see with httpd -M that the module is loaded. However, which parameters do i need to pass to httpd.conf for the module to work correctly? How can I properly test it when its configured as module? Calling /mapserver or /mapserv didn't do the trick for me. Are there any resources on this somewhere? I prefer not to run it as cgi if I don't need to. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From mimis.simos at gmail.com Fri Jan 18 01:39:11 2013 From: mimis.simos at gmail.com (Mimis Simos) Date: Fri, 18 Jan 2013 01:39:11 -0800 (PST) Subject: [mapserver-users] Mapserver 6 and PostGIS 1.1.6 - nonexistent function Message-ID: <1358501951382-5028282.post@n6.nabble.com> Hello, is it possible to instruct MS to query an old PostGIS db (v.1.1.6) not by using the "new" st_* functions? I have an MS 6 (ms4w) and the requests it makes to my old db are made with functions that do not exist in my PG. This stuff used to work on my old MS 5 installation. msDrawMap(): Image handling error. Failed to draw layer named 'road_network'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: function st_force_2d(geometry) does not exist LINE 1: select "id","code",encode(ST_AsBinary(ST_Force_2D("geom"),'N... ^ HINT: No function matches the given name and argument types. You may need to add explicit type casts. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-6-and-PostGIS-1-1-6-nonexistent-function-tp5028282.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Fri Jan 18 01:40:56 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 18 Jan 2013 10:40:56 +0100 Subject: [mapserver-users] apache module - mapserver References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF486@KS-EVS1.smi.sachsen.de> > I noticed during compilation of mapserver 6.2 that there is > an apache module as well. Please note that the module currently has limited functionality. > However, which parameters do i need to pass to httpd.conf for > the module to work correctly? How can I properly test it when > its configured as module? Calling /mapserver or /mapserv > didn't do the trick for me. You need to configure a and set the Mapfile directive, f.e.: Mapfile "/path/to/mapfiles/mapfile.map" Currently you need to create such a configuration for every MAP file you want to publish. From Steve.Toutant at inspq.qc.ca Mon Jan 21 08:15:41 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Mon, 21 Jan 2013 11:15:41 -0500 Subject: [mapserver-users] dynamic chart CHART_SIZE_RANGE Message-ID: I thought I could use PROCESSING "CHART_SIZE_RANGE = itemname" But there is a need to use PROCESSING "CHART_SIZE_RANGE = itemname minsize maxsize minval maxval" But I can't hard code these values in the mapfile cause they can change at runtime I need to set programmatically the minval and maxval . How can I do that? thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolasdelffon at gmail.com Mon Jan 21 11:24:46 2013 From: nicolasdelffon at gmail.com (codelf) Date: Mon, 21 Jan 2013 11:24:46 -0800 (PST) Subject: [mapserver-users] Comparaison date In-Reply-To: <5a715a59-a5a2-44a9-b8bc-83a005efd5c5@zimbra34-e6.priv.proxad.net> References: <5a715a59-a5a2-44a9-b8bc-83a005efd5c5@zimbra34-e6.priv.proxad.net> Message-ID: <1358796286886-5028807.post@n6.nabble.com> Hi! Same problem here. I use this one : DATEDIFF(DD,[DAT_MEASURE],GETDATE()) < 90 In the mapfile, it works in FILTER but not in EXPRESIONN inside a CLASS... Any idea? Thx -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Comparaison-date-tp4336613p5028807.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Jan 21 14:30:51 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 21 Jan 2013 22:30:51 +0000 Subject: [mapserver-users] Comparaison date In-Reply-To: <1358796286886-5028807.post@n6.nabble.com> References: <5a715a59-a5a2-44a9-b8bc-83a005efd5c5@zimbra34-e6.priv.proxad.net>, <1358796286886-5028807.post@n6.nabble.com> Message-ID: Filters are passed to the underlying driver and use the syntax of that driver if supported, otherwise they use MapServer expression syntax . Class expressions use the MapServer expression syntax only. There's actually very little reason to use FILTERs when using an RDMS driver, just add it to the DATA statement. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of codelf [nicolasdelffon at gmail.com] Sent: Monday, January 21, 2013 1:24 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Comparaison date Hi! Same problem here. I use this one : DATEDIFF(DD,[DAT_MEASURE],GETDATE()) < 90 In the mapfile, it works in FILTER but not in EXPRESIONN inside a CLASS... Any idea? Thx -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Comparaison-date-tp4336613p5028807.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 aperi2007 at gmail.com Mon Jan 21 16:26:28 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 22 Jan 2013 01:26:28 +0100 Subject: [mapserver-users] runtime-substitution on GetFeatureInfo request Message-ID: Hi, I have trouble trying to apply a runtime-subistitution on a GetFeatureInfo request for the FILTER section. Is this possible ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Steve.Toutant at inspq.qc.ca Tue Jan 22 06:30:23 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 22 Jan 2013 09:30:23 -0500 Subject: [mapserver-users] RE runtime-substitution on GetFeatureInfo request In-Reply-To: Message-ID: What kind of trouble exactly? Do you have a Validation block in your layer definition? Andrea Peri @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-21 19:26 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] runtime-substitution on GetFeatureInfo request Hi, I have trouble trying to apply a runtime-subistitution on a GetFeatureInfo request for the FILTER section. Is this possible ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 Tue Jan 22 07:47:44 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 22 Jan 2013 15:47:44 +0000 Subject: [mapserver-users] apache module - mapserver In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF486@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF486@KS-EVS1.smi.sachsen.de> Message-ID: Is this functionality documented someplace? I couldn't find anything. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eichner, Andreas - SID-NLKM Sent: Friday, January 18, 2013 3:41 AM To: Peter Maes; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] apache module - mapserver > I noticed during compilation of mapserver 6.2 that there is an apache > module as well. Please note that the module currently has limited functionality. > However, which parameters do i need to pass to httpd.conf for the > module to work correctly? How can I properly test it when its > configured as module? Calling /mapserver or /mapserv didn't do the > trick for me. You need to configure a and set the Mapfile directive, f.e.: Mapfile "/path/to/mapfiles/mapfile.map" Currently you need to create such a configuration for every MAP file you want to publish. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From nicolasdelffon at gmail.com Tue Jan 22 08:03:01 2013 From: nicolasdelffon at gmail.com (codelf) Date: Tue, 22 Jan 2013 08:03:01 -0800 (PST) Subject: [mapserver-users] Comparaison date In-Reply-To: References: <5a715a59-a5a2-44a9-b8bc-83a005efd5c5@zimbra34-e6.priv.proxad.net> <1358796286886-5028807.post@n6.nabble.com> Message-ID: <1358870581206-5029027.post@n6.nabble.com> Hi Steve, Thanks for your answer, these precisions are very useful. In my case (calculating a number of day),I think it will be better to create (/update) this value in the database and apply a thematic with CLASS EXPRESSIONS rather than using Mapserver to calculate on the fly in SELECT statement or FILTER...it will save me lot of layers... Thx Nicolas. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Comparaison-date-tp4336613p5029027.html Sent from the Mapserver - User mailing list archive at Nabble.com. From arjendk at gmx.net Tue Jan 22 08:45:28 2013 From: arjendk at gmx.net (Arjen de Korte) Date: Tue, 22 Jan 2013 17:45:28 +0100 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers Message-ID: <1358873128.9975.140661180879401.7D8A2481@webmail.messagingengine.com> Hi all, I'm having a problem with Mapserver 5.2.1 and WFS GetFeature requests: when I do a GetFeature request with an OGC filter for more than one layer, I only get results for the first layer. I found a description of the issue here: https://github.com/mapserver/mapserver/issues/3584. It says the issue can be worked around by listing a separate filter for each layer, but I can't work out a way to do this. My original request looks like this: http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter=89760.045356755,436071.75388938 89762.029730683,436071.75388938 89762.029730683,436073.7382633 89760.045356755,436073.7382633 89760.045356755,436071.75388938 ...returning only results for layer1. I've tried repeating the exact same filter like: http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1, layer2&Version=1.0.0&Filter= ... ... and http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1, layer2&Version=1.0.0&Filter= ... , ... ...but the first returns the same: only results for layer1, and the second returns an error. What is the correct way to list multiple filters, or is there another solution to work around this limitation? Thanks! Kind regards, Arjen. From aperi2007 at gmail.com Tue Jan 22 10:05:33 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 22 Jan 2013 19:05:33 +0100 Subject: [mapserver-users] RE runtime-substitution on GetFeatureInfo request Message-ID: Hi, thx for response. No I not define any validation block. I'm try to test if it work before to apply a validation block. I try to apply a FILTER like this: FILTER "VOLO_N = 3 and (FILESTAMPE like '%IDTPN%' )" the goal is to obtain that on a GetFeatureInfo request where the response without the filter will return three or four objects, and identifiables with id001,id002,id003 and id004, passing a parameter like ..&idtpn=id001 it will return only one object. also I try to apply a default value like this: METADATA 'default_idtpn' '%' to avoid that when I do noone idtpm parameter it will return an empty recordset. Thx Andrea. >What kind of trouble exactly? >Do you have a Validation block in your layer definition? > > >Andrea Peri @lists.osgeo.org >>Envoy? par : mapserver-users-bounces at lists.osgeo.org >>2013-01-21 19:26 -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Steve.Toutant at inspq.qc.ca Tue Jan 22 10:27:46 2013 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 22 Jan 2013 13:27:46 -0500 Subject: [mapserver-users] RE RE runtime-substitution on GetFeatureInfo request In-Reply-To: Message-ID: http://mapserver.org/cgi/runsub.html#validation Because runtime substitution affects potentially sensitive areas of your mapfile such as database columns and filenames, it is mandatory that you use pattern validation (since version 6.0) Whatever you are trying to do it won't work until you have a validation block Andrea Peri @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2013-01-22 13:05 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] RE runtime-substitution on GetFeatureInfo request Hi, thx for response. No I not define any validation block. I'm try to test if it work before to apply a validation block. I try to apply a FILTER like this: FILTER "VOLO_N = 3 and (FILESTAMPE like '%IDTPN%' )" the goal is to obtain that on a GetFeatureInfo request where the response without the filter will return three or four objects, and identifiables with id001,id002,id003 and id004, passing a parameter like ..&idtpn=id001 it will return only one object. also I try to apply a default value like this: METADATA 'default_idtpn' '%' to avoid that when I do noone idtpm parameter it will return an empty recordset. Thx Andrea. >What kind of trouble exactly? >Do you have a Validation block in your layer definition? > > >Andrea Peri @lists.osgeo.org >>Envoy? par : mapserver-users-bounces at lists.osgeo.org >>2013-01-21 19:26 -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 jfbourgon at gmail.com Tue Jan 22 10:47:35 2013 From: jfbourgon at gmail.com (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Bourgon?=) Date: Tue, 22 Jan 2013 13:47:35 -0500 Subject: [mapserver-users] Fwd: FW: Extent query in getCoverage request with PostGIS-Raster data In-Reply-To: <41F333539117DC41BF3A366551E78BC346FBC068@S-BSC-MBX2.nrn.nrcan.gc.ca> References: <41F333539117DC41BF3A366551E78BC346FBC068@S-BSC-MBX2.nrn.nrcan.gc.ca> Message-ID: Hi, I published a Postgis-raster table as a Mapserver WCS layer using gdal-1.10dev driver. I'm getting the expected result as output of my Getcoverage query but I'm concerned by the time required to extract the data. It takes about 3 minutes to extract a 4800 x 4800 pixels area. I looked at the SQL queries performed against the database during data processing and found that an extent query is always performed in order to get the current extent of my layer using the following SQL query: select srid, nbband, st_xmin(geom) as xmin, st_xmax(geom) as xmax, st_ymin(geom) as ymin, st_ymax(geom) as ymax from (select st_srid(rast) srid, st_extent(rast::geometry) geom, max(ST_NumBands(rast)) nbband from mib_postgis.gridcoverage_ cdsm75 group by st_srid(rast)) foo; srid | nbband | xmin | xmax | ymin |* ymax * ------+--------+-------------------+-------------------+------------------+------------------ 4617 | 1 | -139.500104166667 | -52.0001041666667 | 41.5001041666667 | 60.0001041666667 (1 row) Time: 153033.599 ms I'm wondering how I could avoid this SQL to be performed on each call, since it is consuming a large amount of the request processing time and values are always the same. See my current mapfile definition: MAP ... EXTENT -139.500104166667 41.5001041666667 -52.0001041666667 60.0001041666667 SIZE 1150 1350 MAXSIZE 20000 UNITS DD ... LAYER NAME cdsm GROUP cdsm METADATA "wcs_label" "cdsm" ### required "wcs_rangeset_name" "Range 1" ### required "wcs_rangeset_label" "My Label" ### required "wcs_extent" "-139.500104166667 41.5001041666667 -52.0001041666667 60.0001041666667" "wcs_resolution" "0.000208333333333 0.000208333333333" END TYPE RASTER STATUS ON PROCESSING "NODATA=255" DATA "PG:host=hostname port=portnumber dbname='dbname' user='username' password='passwd' schema='schema' table='gridcoverage_cdsm75' mode='2'" PROJECTION "init=epsg:4617" END END ... END Is it something that should be fixed at database level. Many thanks for any valuable input. J-F *Jean-Fran?ois Bourgon* Ressources naturelles Canada | Natural Resources Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jan 22 11:15:53 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 22 Jan 2013 19:15:53 +0000 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers In-Reply-To: <1358873128.9975.140661180879401.7D8A2481@webmail.messagingengine.com> References: <1358873128.9975.140661180879401.7D8A2481@webmail.messagingengine.com> Message-ID: Are you stuck running such an old version? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arjen de Korte Sent: Tuesday, January 22, 2013 10:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WFS GetFeature with filter for multiple layers Hi all, I'm having a problem with Mapserver 5.2.1 and WFS GetFeature requests: when I do a GetFeature request with an OGC filter for more than one layer, I only get results for the first layer. I found a description of the issue here: https://github.com/mapserver/mapserver/issues/3584. It says the issue can be worked around by listing a separate filter for each layer, but I can't work out a way to do this. My original request looks like this: http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter=89760.045356755,436071.75388938 89762.029730683,436071.75388938 89762.029730683,436073.7382633 89760.045356755,436073.7382633 89760.045356755,436071.75388938 ...returning only results for layer1. I've tried repeating the exact same filter like: http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1, layer2&Version=1.0.0&Filter= ... ... and http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1, layer2&Version=1.0.0&Filter= ... , ... ...but the first returns the same: only results for layer1, and the second returns an error. What is the correct way to list multiple filters, or is there another solution to work around this limitation? Thanks! Kind regards, Arjen. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Tue Jan 22 11:54:05 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 22 Jan 2013 20:54:05 +0100 Subject: [mapserver-users] RE RE runtime-substitution on GetFeatureInfo request In-Reply-To: References: Message-ID: Hi, really many thx for help. I don't notice the mandatory of validation block. Now it work very well. Regards, Andrea Peri 2013/1/22 > > http://mapserver.org/cgi/runsub.html#validation > Because runtime substitution affects potentially sensitive areas of your > mapfile such as database columns and filenames, it is mandatory that you > use pattern validation (since version 6.0) > > Whatever you are trying to do it won't work until you have a validation > block > > > > *Andrea Peri @lists.osgeo.org* > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > 2013-01-22 13:05 > A > mapserver-users at lists.osgeo.org > cc > Objet > [mapserver-users] RE runtime-substitution on GetFeatureInfo request > > > > > > > Hi, > thx for response. > > No I not define any validation block. > I'm try to test if it work before to apply a validation block. > > I try to apply a FILTER like this: > > FILTER "VOLO_N = 3 and (FILESTAMPE like '%IDTPN%' )" > > the goal is to obtain that on a GetFeatureInfo request where the > response without the filter will return three or four objects, > and identifiables with id001,id002,id003 and id004, passing a > parameter like ..&idtpn=id001 > > it will return only one object. > > also I try to apply a default value like this: > > METADATA > 'default_idtpn' '%' > > to avoid that when I do noone idtpm parameter it will return an empty > recordset. > > Thx > > Andrea. > > > >What kind of trouble exactly? > >Do you have a Validation block in your layer definition? > > > > > >Andrea Peri @lists.osgeo.org > >>Envoy? par : mapserver-users-bounces at lists.osgeo.org > >>2013-01-21 19:26 > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Tue Jan 22 23:28:55 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 23 Jan 2013 08:28:55 +0100 Subject: [mapserver-users] apache module - mapserver References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF486@KS-EVS1.smi.sachsen.de> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF48C@KS-EVS1.smi.sachsen.de> > Is this functionality documented someplace? I couldn't find anything. Not that I'm aware of. This info has been grabbed from source. I've seen that Thomas Bonfort has done some work to handle more generic requests instead of only WxS. Although he has prepared msModuleLoadMap() at line 322 he still assigns the map object stored in the config which results in several problems as MS modifies it during request processing (which is IMHO a bad idea). So Thomas might be able to tell more about the current state and roadmap for it. From thxftw at gmail.com Wed Jan 23 00:09:41 2013 From: thxftw at gmail.com (Peter Maes) Date: Wed, 23 Jan 2013 09:09:41 +0100 Subject: [mapserver-users] apache module - mapserver In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF48C@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF486@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF48C@KS-EVS1.smi.sachsen.de> Message-ID: Thanks for the info. I had tried it and I could get a simple ?mode=map from it that rendered my entire map. However anything else did not work for me. mode=tile, wms requests, etc. I didn't look further than that, so I'm just using it as cgi at the moment. However anything that might improve performance is a welcome change for me. Or perhaps in memory exchange of tile generations between mapserver and mapcache. 2013/1/23 Eichner, Andreas - SID-NLKM > > > Is this functionality documented someplace? I couldn't find anything. > > Not that I'm aware of. This info has been grabbed from source. I've seen > that Thomas Bonfort has done some work to handle more generic requests > instead of only WxS. Although he has prepared msModuleLoadMap() at line > 322 he still assigns the map object stored in the config which results > in several problems as MS modifies it during request processing (which > is IMHO a bad idea). > > So Thomas might be able to tell more about the current state and roadmap > for it. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjendk at gmx.net Wed Jan 23 01:18:16 2013 From: arjendk at gmx.net (Arjen de Korte) Date: Wed, 23 Jan 2013 10:18:16 +0100 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers In-Reply-To: References: <1358873128.9975.140661180879401.7D8A2481@webmail.messagingengine.com> Message-ID: <1358932696.18318.140661181214937.61CCE434@webmail.messagingengine.com> Hi Steve, Yes, for now I (my client) is stuck to this version, so a workaround (or accepting that it can't be done) is the only option at the moment. Has this been solved in newer versions? Kind regards, Arjen. On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > Are you stuck running such an old version? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arjen de > Korte > Sent: Tuesday, January 22, 2013 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WFS GetFeature with filter for multiple layers > > Hi all, > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature requests: > when I do a GetFeature request with an OGC filter for more than one > layer, I only get results for the first layer. I found a description of > the issue here: https://github.com/mapserver/mapserver/issues/3584. It > says the issue can be worked around by listing a separate filter for each > layer, but I can't work out a way to do this. > > My original request looks like this: > > http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= xmlns:ogc="http://www.opengis.net/ogc"> xmlns:gml="http://www.opengis.net/gml"> decimal="." cs="," ts=" ">89760.045356755,436071.75388938 > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > 89760.045356755,436073.7382633 > 89760.045356755,436071.75388938 > > ...returning only results for layer1. > > I've tried repeating the exact same filter like: > > http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1, > layer2&Version=1.0.0&Filter= xmlns:ogc="http://www.opengis.net/ogc"> ... > ... > > and > > http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1, > layer2&Version=1.0.0&Filter= xmlns:ogc="http://www.opengis.net/ogc"> ... > , ... > > > ...but the first returns the same: only results for layer1, and the > second returns an error. > > What is the correct way to list multiple filters, or is there another > solution to work around this limitation? > > Thanks! > > Kind regards, > Arjen. > _______________________________________________ > 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 Jan 23 01:23:50 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 23 Jan 2013 09:23:50 +0000 Subject: [mapserver-users] apache module - mapserver Message-ID: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> Hi, Perhaps best written document that exist is this ticket started by someone called aeichner http://trac.osgeo.org/mapserver/ticket/2565 -Jukka Rahkonen- Eichner, Andreas wrote: apache module - mapserver > > > Is this functionality documented someplace? I couldn't find anything. > > Not that I'm aware of. This info has been grabbed from source. I've seen that > Thomas Bonfort has done some work to handle more generic requests > instead of only WxS. Although he has prepared msModuleLoadMap() at line > 322 he still assigns the map object stored in the config which results in several > problems as MS modifies it during request processing (which is IMHO a bad > idea). > > So Thomas might be able to tell more about the current state and roadmap > for it. > _______________________________________________ > 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 Jan 23 01:39:37 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 23 Jan 2013 09:39:37 +0000 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers Message-ID: <84446DEF76453C439E9E97E438E13A637CB0D4@suutari.haapa.mmm.fi> Hi, Keep it simple and make two separate GetFeatures, one for each feature type. -Jukka Rahkonen- Arjen de Korte wrote: > Hi Steve, > > Yes, for now I (my client) is stuck to this version, so a workaround (or > accepting that it can't be done) is the only option at the moment. Has this > been solved in newer versions? > > Kind regards, > Arjen. > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > Are you stuck running such an old version? > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arjen de > > Korte > > Sent: Tuesday, January 22, 2013 10:45 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] WFS GetFeature with filter for multiple > > layers > > > > Hi all, > > > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature requests: > > when I do a GetFeature request with an OGC filter for more than one > > layer, I only get results for the first layer. I found a description > > of the issue here: https://github.com/mapserver/mapserver/issues/3584. > > It says the issue can be worked around by listing a separate filter > > for each layer, but I can't work out a way to do this. > > > > My original request looks like this: > > > > http://myserver.com/cgi- > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= Fi > > lter > > > xmlns:ogc="http://www.opengis.net/ogc"> a > > me/> > > xmlns:gml="http://www.opengis.net/gml"> ea > > rRing>89760.045356755,436071.75388938 > > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > > 89760.045356755,436073.7382633 > > > 89760.045356755,436071.75388938 m > > l:outerBoundaryIs> > > > > ...returning only results for layer1. > > > > I've tried repeating the exact same filter like: > > > > http://myserver.com/cgi- > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > Request=GetFeature&TypeName=layer1, > > layer2&Version=1.0.0&Filter= > xmlns:ogc="http://www.opengis.net/ogc"> ... > > ... > > > > and > > > > http://myserver.com/cgi- > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > Request=GetFeature&TypeName=layer1, > > layer2&Version=1.0.0&Filter= > xmlns:ogc="http://www.opengis.net/ogc"> ... > > , ... > > > > > > ...but the first returns the same: only results for layer1, and the > > second returns an error. > > > > What is the correct way to list multiple filters, or is there another > > solution to work around this limitation? > > > > Thanks! > > > > Kind regards, > > Arjen. > > _______________________________________________ > > 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 arjendk at gmx.net Wed Jan 23 02:08:34 2013 From: arjendk at gmx.net (Arjen de Korte) Date: Wed, 23 Jan 2013 11:08:34 +0100 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers In-Reply-To: <84446DEF76453C439E9E97E438E13A637CB0D4@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637CB0D4@suutari.haapa.mmm.fi> Message-ID: <1358935714.26708.140661181228769.0DBAF625@webmail.messagingengine.com> Hi Jukka, Thanks for the suggestion. I am already taking that into consideration (and probably should have mentioned it). The problem is that it would be quite some work to get it into the existing application that way. For simplicity I gave an example with two layers, but there can actually be many more, depending on the map that is displayed. I would definitely like to keep it simple, but in this case one GetFeature request would definitely be a simpler solution! Any other suggestions welcome! Thanks! Kind regards, Arjen. On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: > Hi, > > Keep it simple and make two separate GetFeatures, one for each feature > type. > > -Jukka Rahkonen- > > Arjen de Korte wrote: > > > > Hi Steve, > > > > Yes, for now I (my client) is stuck to this version, so a workaround (or > > accepting that it can't be done) is the only option at the moment. Has this > > been solved in newer versions? > > > > Kind regards, > > Arjen. > > > > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > > Are you stuck running such an old version? > > > > > > -----Original Message----- > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arjen de > > > Korte > > > Sent: Tuesday, January 22, 2013 10:45 AM > > > To: mapserver-users at lists.osgeo.org > > > Subject: [mapserver-users] WFS GetFeature with filter for multiple > > > layers > > > > > > Hi all, > > > > > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature requests: > > > when I do a GetFeature request with an OGC filter for more than one > > > layer, I only get results for the first layer. I found a description > > > of the issue here: https://github.com/mapserver/mapserver/issues/3584. > > > It says the issue can be worked around by listing a separate filter > > > for each layer, but I can't work out a way to do this. > > > > > > My original request looks like this: > > > > > > http://myserver.com/cgi- > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= > Fi > > > lter > > > > > xmlns:ogc="http://www.opengis.net/ogc"> > a > > > me/> > > > > xmlns:gml="http://www.opengis.net/gml"> > ea > > > rRing>89760.045356755,436071.75388938 > > > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > > > 89760.045356755,436073.7382633 > > > > > 89760.045356755,436071.75388938 > m > > > l:outerBoundaryIs> > > > > > > ...returning only results for layer1. > > > > > > I've tried repeating the exact same filter like: > > > > > > http://myserver.com/cgi- > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > Request=GetFeature&TypeName=layer1, > > > layer2&Version=1.0.0&Filter= > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > ... > > > > > > and > > > > > > http://myserver.com/cgi- > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > Request=GetFeature&TypeName=layer1, > > > layer2&Version=1.0.0&Filter= > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > , ... > > > > > > > > > ...but the first returns the same: only results for layer1, and the > > > second returns an error. > > > > > > What is the correct way to list multiple filters, or is there another > > > solution to work around this limitation? > > > > > > Thanks! > > > > > > Kind regards, > > > Arjen. > > > _______________________________________________ > > > 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 Jan 23 03:03:59 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 23 Jan 2013 11:03:59 +0000 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers Message-ID: <84446DEF76453C439E9E97E438E13A637CB100@suutari.haapa.mmm.fi> Hi, Some thoughts: - I am not a specialist with filters, but are you sure that your filter is correct? I have some examples about filters in page http://latuviitta.org/Http-POST-ja-Filter.php but they are generated by a ready made application (Kosmo GIS). - One filter for many layers is not the way to go. For example, it can only work if all the feature types are using same name for the geometry field, and filtering with attributes would also require similar attribute schemas. You may get it to work with your own server but your application won't most probably work against any other WFS server. - Correct way is to use a list of filters. If your old Mapserver does not support it correctly, update of change to some other server that supports. - Continue to consider doing one request per one feature type, for many reasons. It will be a hell to find out what goes wrong with multi-featuretype and multi-filter requests and if one thing fails then nothing works. I am sure that all WFS servers are poorly tested with featuretype lists and lists of filters, especially if you are going to use http GET. Filters suit much better for http POST and that is better tested option too. Feel free to test with my TinyOWS at http://hip.latuviitta.org/cgi-bin/tinyows? It would be nice to see what goes to my access and error logs. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: Arjen de Korte [mailto:arjendk at gmx.net] > L?hetetty: 23. tammikuuta 2013 12:09 > Vastaanottaja: Rahkonen Jukka; Lime, Steve D (DNR); mapserver- > users at lists.osgeo.org > Aihe: Re: [mapserver-users] WFS GetFeature with filter for multiple layers > > Hi Jukka, > > Thanks for the suggestion. I am already taking that into consideration (and > probably should have mentioned it). The problem is that it would be quite > some work to get it into the existing application that way. For simplicity I gave > an example with two layers, but there can actually be many more, depending > on the map that is displayed. I would definitely like to keep it simple, but in > this case one GetFeature request would definitely be a simpler solution! Any > other suggestions welcome! > > Thanks! > > Kind regards, > Arjen. > > > On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: > > Hi, > > > > Keep it simple and make two separate GetFeatures, one for each feature > > type. > > > > -Jukka Rahkonen- > > > > Arjen de Korte wrote: > > > > > > > Hi Steve, > > > > > > Yes, for now I (my client) is stuck to this version, so a workaround > > > (or accepting that it can't be done) is the only option at the > > > moment. Has this been solved in newer versions? > > > > > > Kind regards, > > > Arjen. > > > > > > > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > > > Are you stuck running such an old version? > > > > > > > > -----Original Message----- > > > > From: mapserver-users-bounces at lists.osgeo.org > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > > > Arjen de Korte > > > > Sent: Tuesday, January 22, 2013 10:45 AM > > > > To: mapserver-users at lists.osgeo.org > > > > Subject: [mapserver-users] WFS GetFeature with filter for multiple > > > > layers > > > > > > > > Hi all, > > > > > > > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature > requests: > > > > when I do a GetFeature request with an OGC filter for more than > > > > one layer, I only get results for the first layer. I found a > > > > description of the issue here: > https://github.com/mapserver/mapserver/issues/3584. > > > > It says the issue can be worked around by listing a separate > > > > filter for each layer, but I can't work out a way to do this. > > > > > > > > My original request looks like this: > > > > > > > > http://myserver.com/cgi- > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= > > Fi > > > > lter > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> > > N > > > a > > > > me/> > > > > > > > xmlns:gml="http://www.opengis.net/gml"> > > ea > > > > rRing>89760.045356755,436071.75388938 > > > > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > > > > 89760.045356755,436073.7382633 > > > > > > > > 89760.045356755,436071.75388938 > > g > > > m > > > > l:outerBoundaryIs> > > > > > > > > ...returning only results for layer1. > > > > > > > > I've tried repeating the exact same filter like: > > > > > > > > http://myserver.com/cgi- > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > Request=GetFeature&TypeName=layer1, > > > > layer2&Version=1.0.0&Filter= > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > ... > > > > > > > > > > > > and > > > > > > > > http://myserver.com/cgi- > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > Request=GetFeature&TypeName=layer1, > > > > layer2&Version=1.0.0&Filter= > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > , ... > > > > > > > > > > > > ...but the first returns the same: only results for layer1, and > > > > the second returns an error. > > > > > > > > What is the correct way to list multiple filters, or is there > > > > another solution to work around this limitation? > > > > > > > > Thanks! > > > > > > > > Kind regards, > > > > Arjen. > > > > _______________________________________________ > > > > 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 arjendk at gmx.net Wed Jan 23 04:04:29 2013 From: arjendk at gmx.net (Arjen de Korte) Date: Wed, 23 Jan 2013 13:04:29 +0100 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers In-Reply-To: <84446DEF76453C439E9E97E438E13A637CB100@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637CB100@suutari.haapa.mmm.fi> Message-ID: <1358942669.14007.140661181255245.4DACE6A6@webmail.messagingengine.com> Thanks for your time and suggestions! - I'll have a good look at the filter again. - I understand this. Even if I would want to, it doesn't work with Mapserver, which is what brought me here. (Since we have the server under control also, the complications you mention would be less of an issue, but in principle I agree!) - How do I correctly specify a list of filters? (This is my original question.) If I get this to work, the problem is solved. I'm not in the position to change/upgrade my client's Mapserver. - I agree this is better/simpler in a lot of regards, but this will be for the long term. I will however make the WFS requests using POST as I already have problems with urls that become too long. Kind regards, Arjen. On Wed, Jan 23, 2013, at 12:03, Rahkonen Jukka wrote: > Hi, > > Some thoughts: > > - I am not a specialist with filters, but are you sure that your filter > is correct? I have some examples about filters in page > http://latuviitta.org/Http-POST-ja-Filter.php but they are generated by a > ready made application (Kosmo GIS). > - One filter for many layers is not the way to go. For example, it can > only work if all the feature types are using same name for the geometry > field, and filtering with attributes would also require similar attribute > schemas. You may get it to work with your own server but your application > won't most probably work against any other WFS server. > - Correct way is to use a list of filters. If your old Mapserver does not > support it correctly, update of change to some other server that > supports. > - Continue to consider doing one request per one feature type, for many > reasons. It will be a hell to find out what goes wrong with > multi-featuretype and multi-filter requests and if one thing fails then > nothing works. I am sure that all WFS servers are poorly tested with > featuretype lists and lists of filters, especially if you are going to > use http GET. Filters suit much better for http POST and that is better > tested option too. > > Feel free to test with my TinyOWS at > http://hip.latuviitta.org/cgi-bin/tinyows? It would be nice to see what > goes to my access and error logs. > > -Jukka Rahkonen- > > > > -----Alkuper?inen viesti----- > > L?hett?j?: Arjen de Korte [mailto:arjendk at gmx.net] > > L?hetetty: 23. tammikuuta 2013 12:09 > > Vastaanottaja: Rahkonen Jukka; Lime, Steve D (DNR); mapserver- > > users at lists.osgeo.org > > Aihe: Re: [mapserver-users] WFS GetFeature with filter for multiple layers > > > > Hi Jukka, > > > > Thanks for the suggestion. I am already taking that into consideration (and > > probably should have mentioned it). The problem is that it would be quite > > some work to get it into the existing application that way. For simplicity I gave > > an example with two layers, but there can actually be many more, depending > > on the map that is displayed. I would definitely like to keep it simple, but in > > this case one GetFeature request would definitely be a simpler solution! Any > > other suggestions welcome! > > > > Thanks! > > > > Kind regards, > > Arjen. > > > > > > On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: > > > Hi, > > > > > > Keep it simple and make two separate GetFeatures, one for each feature > > > type. > > > > > > -Jukka Rahkonen- > > > > > > Arjen de Korte wrote: > > > > > > > > > > Hi Steve, > > > > > > > > Yes, for now I (my client) is stuck to this version, so a workaround > > > > (or accepting that it can't be done) is the only option at the > > > > moment. Has this been solved in newer versions? > > > > > > > > Kind regards, > > > > Arjen. > > > > > > > > > > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > > > > Are you stuck running such an old version? > > > > > > > > > > -----Original Message----- > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > > > > Arjen de Korte > > > > > Sent: Tuesday, January 22, 2013 10:45 AM > > > > > To: mapserver-users at lists.osgeo.org > > > > > Subject: [mapserver-users] WFS GetFeature with filter for multiple > > > > > layers > > > > > > > > > > Hi all, > > > > > > > > > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature > > requests: > > > > > when I do a GetFeature request with an OGC filter for more than > > > > > one layer, I only get results for the first layer. I found a > > > > > description of the issue here: > > https://github.com/mapserver/mapserver/issues/3584. > > > > > It says the issue can be worked around by listing a separate > > > > > filter for each layer, but I can't work out a way to do this. > > > > > > > > > > My original request looks like this: > > > > > > > > > > http://myserver.com/cgi- > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= > > > Fi > > > > > lter > > > > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> > > > N > > > > a > > > > > me/> > > > > > > > > > > xmlns:gml="http://www.opengis.net/gml"> > > > ea > > > > > rRing>89760.045356755,436071.75388938 > > > > > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > > > > > 89760.045356755,436073.7382633 > > > > > > > > > > > 89760.045356755,436071.75388938 > > > g > > > > m > > > > > l:outerBoundaryIs> > > > > > > > > > > ...returning only results for layer1. > > > > > > > > > > I've tried repeating the exact same filter like: > > > > > > > > > > http://myserver.com/cgi- > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > Request=GetFeature&TypeName=layer1, > > > > > layer2&Version=1.0.0&Filter= > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > ... > > > > > > > > > > > > > > > and > > > > > > > > > > http://myserver.com/cgi- > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > Request=GetFeature&TypeName=layer1, > > > > > layer2&Version=1.0.0&Filter= > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > , ... > > > > > > > > > > > > > > > ...but the first returns the same: only results for layer1, and > > > > > the second returns an error. > > > > > > > > > > What is the correct way to list multiple filters, or is there > > > > > another solution to work around this limitation? > > > > > > > > > > Thanks! > > > > > > > > > > Kind regards, > > > > > Arjen. > > > > > _______________________________________________ > > > > > 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 Jan 23 04:17:46 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 23 Jan 2013 12:17:46 +0000 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers Message-ID: <84446DEF76453C439E9E97E438E13A637CB1E3@suutari.haapa.mmm.fi> Hi, I found this example from archives http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10755.html It has worked with two featuretypes and two filters on Mapserver. -Jukka- Arjen de Korte wrote: > > Thanks for your time and suggestions! > > - I'll have a good look at the filter again. > - I understand this. Even if I would want to, it doesn't work with Mapserver, > which is what brought me here. (Since we have the server under control > also, the complications you mention would be less of an issue, but in principle > I agree!) > - How do I correctly specify a list of filters? (This is my original > question.) If I get this to work, the problem is solved. I'm not in the position > to change/upgrade my client's Mapserver. > - I agree this is better/simpler in a lot of regards, but this will be for the long > term. I will however make the WFS requests using POST as I already have > problems with urls that become too long. > > Kind regards, > Arjen. > > > On Wed, Jan 23, 2013, at 12:03, Rahkonen Jukka wrote: > > Hi, > > > > Some thoughts: > > > > - I am not a specialist with filters, but are you sure that your > > filter is correct? I have some examples about filters in page > > http://latuviitta.org/Http-POST-ja-Filter.php but they are generated > > by a ready made application (Kosmo GIS). > > - One filter for many layers is not the way to go. For example, it can > > only work if all the feature types are using same name for the > > geometry field, and filtering with attributes would also require > > similar attribute schemas. You may get it to work with your own server > > but your application won't most probably work against any other WFS > server. > > - Correct way is to use a list of filters. If your old Mapserver does > > not support it correctly, update of change to some other server that > > supports. > > - Continue to consider doing one request per one feature type, for > > many reasons. It will be a hell to find out what goes wrong with > > multi-featuretype and multi-filter requests and if one thing fails > > then nothing works. I am sure that all WFS servers are poorly tested > > with featuretype lists and lists of filters, especially if you are > > going to use http GET. Filters suit much better for http POST and > > that is better tested option too. > > > > Feel free to test with my TinyOWS at > > http://hip.latuviitta.org/cgi-bin/tinyows? It would be nice to see > > what goes to my access and error logs. > > > > -Jukka Rahkonen- > > > > > > > -----Alkuper?inen viesti----- > > > L?hett?j?: Arjen de Korte [mailto:arjendk at gmx.net] > > > L?hetetty: 23. tammikuuta 2013 12:09 > > > Vastaanottaja: Rahkonen Jukka; Lime, Steve D (DNR); mapserver- > > > users at lists.osgeo.org > > > Aihe: Re: [mapserver-users] WFS GetFeature with filter for multiple > > > layers > > > > > > Hi Jukka, > > > > > > Thanks for the suggestion. I am already taking that into > > > consideration (and probably should have mentioned it). The problem > > > is that it would be quite some work to get it into the existing > > > application that way. For simplicity I gave an example with two > > > layers, but there can actually be many more, depending on the map > > > that is displayed. I would definitely like to keep it simple, but in > > > this case one GetFeature request would definitely be a simpler solution! > Any other suggestions welcome! > > > > > > Thanks! > > > > > > Kind regards, > > > Arjen. > > > > > > > > > On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: > > > > Hi, > > > > > > > > Keep it simple and make two separate GetFeatures, one for each > > > > feature type. > > > > > > > > -Jukka Rahkonen- > > > > > > > > Arjen de Korte wrote: > > > > > > > > > > > > > Hi Steve, > > > > > > > > > > Yes, for now I (my client) is stuck to this version, so a > > > > > workaround (or accepting that it can't be done) is the only > > > > > option at the moment. Has this been solved in newer versions? > > > > > > > > > > Kind regards, > > > > > Arjen. > > > > > > > > > > > > > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > > > > > Are you stuck running such an old version? > > > > > > > > > > > > -----Original Message----- > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > > > > > Arjen de Korte > > > > > > Sent: Tuesday, January 22, 2013 10:45 AM > > > > > > To: mapserver-users at lists.osgeo.org > > > > > > Subject: [mapserver-users] WFS GetFeature with filter for > > > > > > multiple layers > > > > > > > > > > > > Hi all, > > > > > > > > > > > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature > > > requests: > > > > > > when I do a GetFeature request with an OGC filter for more > > > > > > than one layer, I only get results for the first layer. I > > > > > > found a description of the issue here: > > > https://github.com/mapserver/mapserver/issues/3584. > > > > > > It says the issue can be worked around by listing a separate > > > > > > filter for each layer, but I can't work out a way to do this. > > > > > > > > > > > > My original request looks like this: > > > > > > > > > > > > http://myserver.com/cgi- > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > > > > > > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= > > > > Fi > > > > > > lter > > > > > > > > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> > > > > N > > > > > a > > > > > > me/> > > > > > > > > > > > > > > xmlns:gml="http://www.opengis.net/gml"> > > > > ea > > > > > > rRing>89760.045356755,436071.75388938 > > > > > > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > > > > > > 89760.045356755,436073.7382633 > > > > > > > > > > > > > > > 89760.045356755,436071.75388938 > > > > g > > > > > m > > > > > > l:outerBoundaryIs> > > > > > > > > > > > > ...returning only results for layer1. > > > > > > > > > > > > I've tried repeating the exact same filter like: > > > > > > > > > > > > http://myserver.com/cgi- > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > Request=GetFeature&TypeName=layer1, > > > > > > layer2&Version=1.0.0&Filter= > > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > > ... > > > > > > > > > > > > > > > > > > and > > > > > > > > > > > > http://myserver.com/cgi- > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > Request=GetFeature&TypeName=layer1, > > > > > > layer2&Version=1.0.0&Filter= > > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > > , ... > > > > > > > > > > > > > > > > > > ...but the first returns the same: only results for layer1, > > > > > > and the second returns an error. > > > > > > > > > > > > What is the correct way to list multiple filters, or is there > > > > > > another solution to work around this limitation? > > > > > > > > > > > > Thanks! > > > > > > > > > > > > Kind regards, > > > > > > Arjen. > > > > > > _______________________________________________ > > > > > > mapserver-users mailing list > > > > > > mapserver-users at lists.osgeo.org > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > mapserver-users mailing list > > > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Jan 23 07:50:28 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 23 Jan 2013 15:50:28 +0000 Subject: [mapserver-users] apache module - mapserver In-Reply-To: References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF486@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF48C@KS-EVS1.smi.sachsen.de> Message-ID: There's always the FastCGI option. That will certainly boost performance. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Maes Sent: Wednesday, January 23, 2013 2:10 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] apache module - mapserver Thanks for the info. I had tried it and I could get a simple ?mode=map from it that rendered my entire map. However anything else did not work for me. mode=tile, wms requests, etc. I didn't look further than that, so I'm just using it as cgi at the moment. However anything that might improve performance is a welcome change for me. Or perhaps in memory exchange of tile generations between mapserver and mapcache. 2013/1/23 Eichner, Andreas - SID-NLKM > > Is this functionality documented someplace? I couldn't find anything. Not that I'm aware of. This info has been grabbed from source. I've seen that Thomas Bonfort has done some work to handle more generic requests instead of only WxS. Although he has prepared msModuleLoadMap() at line 322 he still assigns the map object stored in the config which results in several problems as MS modifies it during request processing (which is IMHO a bad idea). So Thomas might be able to tell more about the current state and roadmap for it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.mallen at airborne.aero Wed Jan 23 11:20:38 2013 From: peter.mallen at airborne.aero (Peter Mallen) Date: Wed, 23 Jan 2013 14:20:38 -0500 Subject: [mapserver-users] Rendering Hindi Characters Message-ID: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com> Hello Everyone, I am having issues rendering certain Hindi characters. I am using UTF-8 encoding. When attempting to display the following Hindi character in MapServer: ??? It is rendered in MapServer as the following two characters: ?? ? I believe these characters form what is called a conjunct consonant, of which there appear to be thousands of and most of them do not render using MapServer. Also, It appears that MapServer is having an issue displaying these conjunct consonants and wants to display these characters separately rather than to form them as one combined character. Here is a link describing more about the Devanagari alphabet: http://www.omniglot.com/writing/devanagari.htm Can anyone please help with this? Thank You, Peter Mallen -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Jan 23 12:17:36 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 23 Jan 2013 15:17:36 -0500 Subject: [mapserver-users] Rendering Hindi Characters In-Reply-To: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com> References: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com> Message-ID: <51004560.8050501@swoodbridge.com> On 1/23/2013 2:20 PM, Peter Mallen wrote: > Hello Everyone, > > I am having issues rendering certain Hindi characters. I am using UTF-8 > encoding. > > When attempting to display the following Hindi character in MapServer: ??? > > It is rendered in MapServer as the following two characters: ?? ? > > I believe these characters form what is called a conjunct consonant, of > which there appear to be thousands of and most of them do not render > using MapServer. > > Also, It appears that MapServer is having an issue displaying these > conjunct consonants and wants to display these characters separately > rather than to form them as one combined character. > > Here is a link describing more about the Devanagari alphabet: > http://www.omniglot.com/writing/devanagari.htm > > Can anyone please help with this? > > Thank You, > > Peter Mallen Hi Peter, I can not speak to this specific problem but I can give you and overview. Mapserver uses fribidi library for rending this data and I know from working with Arabic that a lot depends on the font you are using, in additional to the capabilities and version of fribidi library. This kind of question is probably best asked on the fribidi list as they will know more about what is supported or not for any given language and they might be able to point you to a better font. http://www.fribidi.org/ You should probably make sure you are using a recent version of the library like 0.19.2 or better and be aware the 0.19.5 was released in Dec 2012. Hope this helps, -Steve W From punk.kish at gmail.com Wed Jan 23 12:26:36 2013 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 23 Jan 2013 12:26:36 -0800 Subject: [mapserver-users] Rendering Hindi Characters In-Reply-To: <51004560.8050501@swoodbridge.com> References: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com> <51004560.8050501@swoodbridge.com> Message-ID: <33593850-8D70-469E-AB03-7E1499066ACE@gmail.com> On Jan 23, 2013, at 12:17 PM, Stephen Woodbridge wrote: > On 1/23/2013 2:20 PM, Peter Mallen wrote: >> Hello Everyone, >> >> I am having issues rendering certain Hindi characters. I am using UTF-8 >> encoding. >> >> When attempting to display the following Hindi character in MapServer: ??? >> >> It is rendered in MapServer as the following two characters: ?? ? >> >> I believe these characters form what is called a conjunct consonant, of >> which there appear to be thousands of and most of them do not render >> using MapServer. >> >> Also, It appears that MapServer is having an issue displaying these >> conjunct consonants and wants to display these characters separately >> rather than to form them as one combined character. >> >> Here is a link describing more about the Devanagari alphabet: >> http://www.omniglot.com/writing/devanagari.htm >> >> Can anyone please help with this? >> >> Thank You, >> >> Peter Mallen > > Hi Peter, > > I can not speak to this specific problem but I can give you and overview. Mapserver uses fribidi library for rending this data and I know from working with Arabic that a lot depends on the font you are using, in additional to the capabilities and version of fribidi library. Isn't fribidi specifically for bidirectional languages? Hindi is strictly LTR. > > This kind of question is probably best asked on the fribidi list as they will know more about what is supported or not for any given language and they might be able to point you to a better font. > > http://www.fribidi.org/ > > You should probably make sure you are using a recent version of the library like 0.19.2 or better and be aware the 0.19.5 was released in Dec 2012. > Peter, I forget where you and I left our off-list conversation re. the issues you were having with rendering Devnagari. Did you try feeding MapServer the correct Unicode characters? Hope you figure this out. -- Puneet Kishor From peter.mallen at airborne.aero Wed Jan 23 15:00:38 2013 From: peter.mallen at airborne.aero (Peter Mallen) Date: Wed, 23 Jan 2013 18:00:38 -0500 Subject: [mapserver-users] Rendering Hindi Characters In-Reply-To: <33593850-8D70-469E-AB03-7E1499066ACE@gmail.com> References: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com><51004560.8050501@swoodbridge.com> <33593850-8D70-469E-AB03-7E1499066ACE@gmail.com> Message-ID: <0342A56AD728D64185DB36D9514E2E7E0143DA6F@BE64.exg3.exghost.com> Hi Puneet, I did try feeding MapServer the correct Unicode characters, and it did fix the characters using what I believe is called the "Reph" symbol (?) but I could not get the conjunct consonants to display correctly. Also, I have posted on the fribidi list and I believe it does only help with bidirectional languages, but I could be wrong. Thank You, Peter Mallen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mr. Puneet Kishor Sent: Wednesday, January 23, 2013 12:27 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rendering Hindi Characters On Jan 23, 2013, at 12:17 PM, Stephen Woodbridge wrote: > On 1/23/2013 2:20 PM, Peter Mallen wrote: >> Hello Everyone, >> >> I am having issues rendering certain Hindi characters. I am using >> UTF-8 encoding. >> >> When attempting to display the following Hindi character in >> MapServer: ??? >> >> It is rendered in MapServer as the following two characters: ?? ? >> >> I believe these characters form what is called a conjunct consonant, >> of which there appear to be thousands of and most of them do not >> render using MapServer. >> >> Also, It appears that MapServer is having an issue displaying these >> conjunct consonants and wants to display these characters separately >> rather than to form them as one combined character. >> >> Here is a link describing more about the Devanagari alphabet: >> http://www.omniglot.com/writing/devanagari.htm >> >> Can anyone please help with this? >> >> Thank You, >> >> Peter Mallen > > Hi Peter, > > I can not speak to this specific problem but I can give you and overview. Mapserver uses fribidi library for rending this data and I know from working with Arabic that a lot depends on the font you are using, in additional to the capabilities and version of fribidi library. Isn't fribidi specifically for bidirectional languages? Hindi is strictly LTR. > > This kind of question is probably best asked on the fribidi list as they will know more about what is supported or not for any given language and they might be able to point you to a better font. > > http://www.fribidi.org/ > > You should probably make sure you are using a recent version of the library like 0.19.2 or better and be aware the 0.19.5 was released in Dec 2012. > Peter, I forget where you and I left our off-list conversation re. the issues you were having with rendering Devnagari. Did you try feeding MapServer the correct Unicode characters? Hope you figure this out. -- Puneet Kishor _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Wed Jan 23 15:58:53 2013 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 23 Jan 2013 15:58:53 -0800 Subject: [mapserver-users] Rendering Hindi Characters In-Reply-To: <0342A56AD728D64185DB36D9514E2E7E0143DAA9@BE64.exg3.exghost.com> References: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com><51004560.8050501@swoodbridge.com> <33593850-8D70-469E-AB03-7E1499066ACE@gmail.com> <0342A56AD728D64185DB36D9514E2E7E0143DA6F@BE64.exg3.exghost.com> <0342A56AD728D64185DB36D9514E2E7E0143DAA9@BE64.exg3.exghost.com> Message-ID: (adding the list back to cc so brains better than mine may help) On Jan 23, 2013, at 3:47 PM, "Peter Mallen" wrote: > Hi Puneet, > > I have passed the codes you have provided into MapServer (U+0930 U+094D U+091F ) and it displays the characters separately, not as one character. > > This is how Map Server displays it: ?? ? hmmm... well, then this is definitely above my pay grade. Seems like you are doing the right thing, but my guess is MapServer's Unicode implementation is not working properly. I don't see any mention of Unicode on mapserver docs page. The only potentially relevant bit I see is (http://www.mapserver.org/installation/unix.html#obtaining-the-necessary-software) that libgd should be compiled against the iconv library which provides full support for Unicode. On my MBA I get $ ~ > gdlib-config --libs -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv > > Thank You, > > Peter Mallen > -----Original Message----- > From: Mr. Puneet Kishor [mailto:punk.kish at gmail.com] > Sent: Wednesday, January 23, 2013 3:36 PM > To: Peter Mallen > Subject: Re: [mapserver-users] Rendering Hindi Characters > > > On Jan 23, 2013, at 3:00 PM, "Peter Mallen" wrote: > >> Hi Puneet, >> >> I did try feeding MapServer the correct Unicode characters, and it did fix the characters using what I believe is called the "Reph" symbol (?) but I could not get the conjunct consonants to display correctly. > > > I have no idea what the above means ;-), but, did you try passing U+0930 U+094D U+091F to MapServer? See http://www.unicode.org/charts/PDF/U0900.pdf > > > U+0930 -> ? -> r > U+094D -> ?? -> "halves" the previously typed r 091F -> ? -> thick t > U+sound > > > >> >> Also, I have posted on the fribidi list and I believe it does only help with bidirectional languages, but I could be wrong. >> >> Thank You, >> >> Peter Mallen >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mr. >> Puneet Kishor >> Sent: Wednesday, January 23, 2013 12:27 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Rendering Hindi Characters >> >> >> On Jan 23, 2013, at 12:17 PM, Stephen Woodbridge wrote: >> >>> On 1/23/2013 2:20 PM, Peter Mallen wrote: >>>> Hello Everyone, >>>> >>>> I am having issues rendering certain Hindi characters. I am using >>>> UTF-8 encoding. >>>> >>>> When attempting to display the following Hindi character in >>>> MapServer: ??? >>>> >>>> It is rendered in MapServer as the following two characters: ?? ? >>>> >>>> I believe these characters form what is called a conjunct consonant, >>>> of which there appear to be thousands of and most of them do not >>>> render using MapServer. >>>> >>>> Also, It appears that MapServer is having an issue displaying these >>>> conjunct consonants and wants to display these characters separately >>>> rather than to form them as one combined character. >>>> >>>> Here is a link describing more about the Devanagari alphabet: >>>> http://www.omniglot.com/writing/devanagari.htm >>>> >>>> Can anyone please help with this? >>>> >>>> Thank You, >>>> >>>> Peter Mallen >>> >>> Hi Peter, >>> >>> I can not speak to this specific problem but I can give you and overview. Mapserver uses fribidi library for rending this data and I know from working with Arabic that a lot depends on the font you are using, in additional to the capabilities and version of fribidi library. >> >> >> >> Isn't fribidi specifically for bidirectional languages? Hindi is strictly LTR. >> >> >>> >>> This kind of question is probably best asked on the fribidi list as they will know more about what is supported or not for any given language and they might be able to point you to a better font. >>> >>> http://www.fribidi.org/ >>> >>> You should probably make sure you are using a recent version of the library like 0.19.2 or better and be aware the 0.19.5 was released in Dec 2012. >>> >> >> >> Peter, I forget where you and I left our off-list conversation re. the issues you were having with rendering Devnagari. Did you try feeding MapServer the correct Unicode characters? >> >> Hope you figure this out. >> >> >> -- >> Puneet Kishor > From punk.kish at gmail.com Wed Jan 23 16:17:50 2013 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 23 Jan 2013 16:17:50 -0800 Subject: [mapserver-users] Rendering Hindi Characters In-Reply-To: References: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com><51004560.8050501@swoodbridge.com> <33593850-8D70-469E-AB03-7E1499066ACE@gmail.com> <0342A56AD728D64185DB36D9514E2E7E0143DA6F@BE64.exg3.exghost.com> <0342A56AD728D64185DB36D9514E2E7E0143DAA9@BE64.exg3.exghost.com> Message-ID: <3AAAD5A6-347F-4EC5-89FA-9273B77F766F@gmail.com> Peter, My guru in all things Hindi fonts tells me that the problem lies at the level where encodings are converted into font renderings. Apparently, ?? ? is a perfectly correct alternate rendering of the unicode, just not Correct (with a capital C). I have no idea where this happens with MapServer. Thankfully I've never had to create a map with Hindi labels (I would be curious to learn, perhaps off-list, who wants to see maps with Hindi labels), but I too would like to see this resolved. Hope someone knowledgable chimes in. On Jan 23, 2013, at 3:58 PM, "Mr. Puneet Kishor" wrote: > (adding the list back to cc so brains better than mine may help) > > > On Jan 23, 2013, at 3:47 PM, "Peter Mallen" wrote: > >> Hi Puneet, >> >> I have passed the codes you have provided into MapServer (U+0930 U+094D U+091F ) and it displays the characters separately, not as one character. >> >> This is how Map Server displays it: ?? ? > > > > hmmm... well, then this is definitely above my pay grade. Seems like you are doing the right thing, but my guess is MapServer's Unicode implementation is not working properly. > > I don't see any mention of Unicode on mapserver docs page. The only potentially relevant bit I see is (http://www.mapserver.org/installation/unix.html#obtaining-the-necessary-software) that libgd should be compiled against the iconv library which provides full support for Unicode. On my MBA I get > > $ ~ > gdlib-config --libs > -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv > > > >> >> Thank You, >> >> Peter Mallen >> -----Original Message----- >> From: Mr. Puneet Kishor [mailto:punk.kish at gmail.com] >> Sent: Wednesday, January 23, 2013 3:36 PM >> To: Peter Mallen >> Subject: Re: [mapserver-users] Rendering Hindi Characters >> >> >> On Jan 23, 2013, at 3:00 PM, "Peter Mallen" wrote: >> >>> Hi Puneet, >>> >>> I did try feeding MapServer the correct Unicode characters, and it did fix the characters using what I believe is called the "Reph" symbol (?) but I could not get the conjunct consonants to display correctly. >> >> >> I have no idea what the above means ;-), but, did you try passing U+0930 U+094D U+091F to MapServer? See http://www.unicode.org/charts/PDF/U0900.pdf >> >> >> U+0930 -> ? -> r >> U+094D -> ?? -> "halves" the previously typed r 091F -> ? -> thick t >> U+sound >> >> >> >>> >>> Also, I have posted on the fribidi list and I believe it does only help with bidirectional languages, but I could be wrong. >>> >>> Thank You, >>> >>> Peter Mallen >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mr. >>> Puneet Kishor >>> Sent: Wednesday, January 23, 2013 12:27 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] Rendering Hindi Characters >>> >>> >>> On Jan 23, 2013, at 12:17 PM, Stephen Woodbridge wrote: >>> >>>> On 1/23/2013 2:20 PM, Peter Mallen wrote: >>>>> Hello Everyone, >>>>> >>>>> I am having issues rendering certain Hindi characters. I am using >>>>> UTF-8 encoding. >>>>> >>>>> When attempting to display the following Hindi character in >>>>> MapServer: ??? >>>>> >>>>> It is rendered in MapServer as the following two characters: ?? ? >>>>> >>>>> I believe these characters form what is called a conjunct consonant, >>>>> of which there appear to be thousands of and most of them do not >>>>> render using MapServer. >>>>> >>>>> Also, It appears that MapServer is having an issue displaying these >>>>> conjunct consonants and wants to display these characters separately >>>>> rather than to form them as one combined character. >>>>> >>>>> Here is a link describing more about the Devanagari alphabet: >>>>> http://www.omniglot.com/writing/devanagari.htm >>>>> >>>>> Can anyone please help with this? >>>>> >>>>> Thank You, >>>>> >>>>> Peter Mallen >>>> >>>> Hi Peter, >>>> >>>> I can not speak to this specific problem but I can give you and overview. Mapserver uses fribidi library for rending this data and I know from working with Arabic that a lot depends on the font you are using, in additional to the capabilities and version of fribidi library. >>> >>> >>> >>> Isn't fribidi specifically for bidirectional languages? Hindi is strictly LTR. >>> >>> >>>> >>>> This kind of question is probably best asked on the fribidi list as they will know more about what is supported or not for any given language and they might be able to point you to a better font. >>>> >>>> http://www.fribidi.org/ >>>> >>>> You should probably make sure you are using a recent version of the library like 0.19.2 or better and be aware the 0.19.5 was released in Dec 2012. >>>> >>> >>> >>> Peter, I forget where you and I left our off-list conversation re. the issues you were having with rendering Devnagari. Did you try feeding MapServer the correct Unicode characters? >>> >>> Hope you figure this out. >>> >>> >>> -- >>> Puneet Kishor >> > From woodbri at swoodbridge.com Wed Jan 23 17:05:32 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 23 Jan 2013 20:05:32 -0500 Subject: [mapserver-users] Rendering Hindi Characters In-Reply-To: <3AAAD5A6-347F-4EC5-89FA-9273B77F766F@gmail.com> References: <0342A56AD728D64185DB36D9514E2E7E0143D8EE@BE64.exg3.exghost.com><51004560.8050501@swoodbridge.com> <33593850-8D70-469E-AB03-7E1499066ACE@gmail.com> <0342A56AD728D64185DB36D9514E2E7E0143DA6F@BE64.exg3.exghost.com> <0342A56AD728D64185DB36D9514E2E7E0143DAA9@BE64.exg3.exghost.com> <3AAAD5A6-347F-4EC5-89FA-9273B77F766F@gmail.com> Message-ID: <510088DC.4040503@swoodbridge.com> FYI, Mapserver does not do anything for rendering text except: 1. pass the text to fribidi which converts a utf8 sequence of characters into a "displayable" sequence of characters. 2. mapserver then passes that to the text rendering function of whatever renderer you are using. Mapserver does not try to understand it, it totally relies on the underlying rendering code to do the right thing whatever that is. Thomas Bonfort might have some more insight into this as he re-engineer a lot of the rendering pipeline and it might be helpful to know what code is doing the actual text rendering. It used to be freetype and may still be. I'm also not convinced the fribidi is not the right place for this to happen regardless as it is responsible for taking a sequence of characters and generating an "displayable" sequence that can be rendered correctly given the correct font. -Steve On 1/23/2013 7:17 PM, Mr. Puneet Kishor wrote: > Peter, > > My guru in all things Hindi fonts tells me that the problem lies at the level where encodings are converted into font renderings. Apparently, ?? ? is a perfectly correct alternate rendering of the unicode, just not Correct (with a capital C). I have no idea where this happens with MapServer. Thankfully I've never had to create a map with Hindi labels (I would be curious to learn, perhaps off-list, who wants to see maps with Hindi labels), but I too would like to see this resolved. > > Hope someone knowledgable chimes in. > > > On Jan 23, 2013, at 3:58 PM, "Mr. Puneet Kishor" wrote: > >> (adding the list back to cc so brains better than mine may help) >> >> >> On Jan 23, 2013, at 3:47 PM, "Peter Mallen" wrote: >> >>> Hi Puneet, >>> >>> I have passed the codes you have provided into MapServer (U+0930 U+094D U+091F ) and it displays the characters separately, not as one character. >>> >>> This is how Map Server displays it: ?? ? >> >> >> >> hmmm... well, then this is definitely above my pay grade. Seems like you are doing the right thing, but my guess is MapServer's Unicode implementation is not working properly. >> >> I don't see any mention of Unicode on mapserver docs page. The only potentially relevant bit I see is (http://www.mapserver.org/installation/unix.html#obtaining-the-necessary-software) that libgd should be compiled against the iconv library which provides full support for Unicode. On my MBA I get >> >> $ ~ > gdlib-config --libs >> -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv >> >> >> >>> >>> Thank You, >>> >>> Peter Mallen >>> -----Original Message----- >>> From: Mr. Puneet Kishor [mailto:punk.kish at gmail.com] >>> Sent: Wednesday, January 23, 2013 3:36 PM >>> To: Peter Mallen >>> Subject: Re: [mapserver-users] Rendering Hindi Characters >>> >>> >>> On Jan 23, 2013, at 3:00 PM, "Peter Mallen" wrote: >>> >>>> Hi Puneet, >>>> >>>> I did try feeding MapServer the correct Unicode characters, and it did fix the characters using what I believe is called the "Reph" symbol (?) but I could not get the conjunct consonants to display correctly. >>> >>> >>> I have no idea what the above means ;-), but, did you try passing U+0930 U+094D U+091F to MapServer? See http://www.unicode.org/charts/PDF/U0900.pdf >>> >>> >>> U+0930 -> ? -> r >>> U+094D -> ? -> "halves" the previously typed r 091F -> ? -> thick t >>> U+sound >>> >>> >>> >>>> >>>> Also, I have posted on the fribidi list and I believe it does only help with bidirectional languages, but I could be wrong. >>>> >>>> Thank You, >>>> >>>> Peter Mallen >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mr. >>>> Puneet Kishor >>>> Sent: Wednesday, January 23, 2013 12:27 PM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: Re: [mapserver-users] Rendering Hindi Characters >>>> >>>> >>>> On Jan 23, 2013, at 12:17 PM, Stephen Woodbridge wrote: >>>> >>>>> On 1/23/2013 2:20 PM, Peter Mallen wrote: >>>>>> Hello Everyone, >>>>>> >>>>>> I am having issues rendering certain Hindi characters. I am using >>>>>> UTF-8 encoding. >>>>>> >>>>>> When attempting to display the following Hindi character in >>>>>> MapServer: ??? >>>>>> >>>>>> It is rendered in MapServer as the following two characters: ?? ? >>>>>> >>>>>> I believe these characters form what is called a conjunct consonant, >>>>>> of which there appear to be thousands of and most of them do not >>>>>> render using MapServer. >>>>>> >>>>>> Also, It appears that MapServer is having an issue displaying these >>>>>> conjunct consonants and wants to display these characters separately >>>>>> rather than to form them as one combined character. >>>>>> >>>>>> Here is a link describing more about the Devanagari alphabet: >>>>>> http://www.omniglot.com/writing/devanagari.htm >>>>>> >>>>>> Can anyone please help with this? >>>>>> >>>>>> Thank You, >>>>>> >>>>>> Peter Mallen >>>>> >>>>> Hi Peter, >>>>> >>>>> I can not speak to this specific problem but I can give you and overview. Mapserver uses fribidi library for rending this data and I know from working with Arabic that a lot depends on the font you are using, in additional to the capabilities and version of fribidi library. >>>> >>>> >>>> >>>> Isn't fribidi specifically for bidirectional languages? Hindi is strictly LTR. >>>> >>>> >>>>> >>>>> This kind of question is probably best asked on the fribidi list as they will know more about what is supported or not for any given language and they might be able to point you to a better font. >>>>> >>>>> http://www.fribidi.org/ >>>>> >>>>> You should probably make sure you are using a recent version of the library like 0.19.2 or better and be aware the 0.19.5 was released in Dec 2012. >>>>> >>>> >>>> >>>> Peter, I forget where you and I left our off-list conversation re. the issues you were having with rendering Devnagari. Did you try feeding MapServer the correct Unicode characters? >>>> >>>> Hope you figure this out. >>>> >>>> >>>> -- >>>> Puneet Kishor >>> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From arjendk at gmx.net Thu Jan 24 02:49:41 2013 From: arjendk at gmx.net (Arjen de Korte) Date: Thu, 24 Jan 2013 11:49:41 +0100 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers In-Reply-To: <84446DEF76453C439E9E97E438E13A637CB1E3@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637CB1E3@suutari.haapa.mmm.fi> Message-ID: <1359024581.28507.140661181734249.3DD10D8A@webmail.messagingengine.com> Thanks Jukka. I think the trick is also to use a POST request instead of GET, which is what I'm doing now. Looking at the example you gave, it looks like multiple filters should work with a POST request, while it doesn't seem to work with GET. Thanks again! Arjen. On Wed, Jan 23, 2013, at 13:17, Rahkonen Jukka wrote: > Hi, > > I found this example from archives > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10755.html > It has worked with two featuretypes and two filters on Mapserver. > > -Jukka- > > > Arjen de Korte wrote: > > > > Thanks for your time and suggestions! > > > > - I'll have a good look at the filter again. > > - I understand this. Even if I would want to, it doesn't work with Mapserver, > > which is what brought me here. (Since we have the server under control > > also, the complications you mention would be less of an issue, but in principle > > I agree!) > > - How do I correctly specify a list of filters? (This is my original > > question.) If I get this to work, the problem is solved. I'm not in the position > > to change/upgrade my client's Mapserver. > > - I agree this is better/simpler in a lot of regards, but this will be for the long > > term. I will however make the WFS requests using POST as I already have > > problems with urls that become too long. > > > > Kind regards, > > Arjen. > > > > > > On Wed, Jan 23, 2013, at 12:03, Rahkonen Jukka wrote: > > > Hi, > > > > > > Some thoughts: > > > > > > - I am not a specialist with filters, but are you sure that your > > > filter is correct? I have some examples about filters in page > > > http://latuviitta.org/Http-POST-ja-Filter.php but they are generated > > > by a ready made application (Kosmo GIS). > > > - One filter for many layers is not the way to go. For example, it can > > > only work if all the feature types are using same name for the > > > geometry field, and filtering with attributes would also require > > > similar attribute schemas. You may get it to work with your own server > > > but your application won't most probably work against any other WFS > > server. > > > - Correct way is to use a list of filters. If your old Mapserver does > > > not support it correctly, update of change to some other server that > > > supports. > > > - Continue to consider doing one request per one feature type, for > > > many reasons. It will be a hell to find out what goes wrong with > > > multi-featuretype and multi-filter requests and if one thing fails > > > then nothing works. I am sure that all WFS servers are poorly tested > > > with featuretype lists and lists of filters, especially if you are > > > going to use http GET. Filters suit much better for http POST and > > > that is better tested option too. > > > > > > Feel free to test with my TinyOWS at > > > http://hip.latuviitta.org/cgi-bin/tinyows? It would be nice to see > > > what goes to my access and error logs. > > > > > > -Jukka Rahkonen- > > > > > > > > > > -----Alkuper?inen viesti----- > > > > L?hett?j?: Arjen de Korte [mailto:arjendk at gmx.net] > > > > L?hetetty: 23. tammikuuta 2013 12:09 > > > > Vastaanottaja: Rahkonen Jukka; Lime, Steve D (DNR); mapserver- > > > > users at lists.osgeo.org > > > > Aihe: Re: [mapserver-users] WFS GetFeature with filter for multiple > > > > layers > > > > > > > > Hi Jukka, > > > > > > > > Thanks for the suggestion. I am already taking that into > > > > consideration (and probably should have mentioned it). The problem > > > > is that it would be quite some work to get it into the existing > > > > application that way. For simplicity I gave an example with two > > > > layers, but there can actually be many more, depending on the map > > > > that is displayed. I would definitely like to keep it simple, but in > > > > this case one GetFeature request would definitely be a simpler solution! > > Any other suggestions welcome! > > > > > > > > Thanks! > > > > > > > > Kind regards, > > > > Arjen. > > > > > > > > > > > > On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: > > > > > Hi, > > > > > > > > > > Keep it simple and make two separate GetFeatures, one for each > > > > > feature type. > > > > > > > > > > -Jukka Rahkonen- > > > > > > > > > > Arjen de Korte wrote: > > > > > > > > > > > > > > > > Hi Steve, > > > > > > > > > > > > Yes, for now I (my client) is stuck to this version, so a > > > > > > workaround (or accepting that it can't be done) is the only > > > > > > option at the moment. Has this been solved in newer versions? > > > > > > > > > > > > Kind regards, > > > > > > Arjen. > > > > > > > > > > > > > > > > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > > > > > > Are you stuck running such an old version? > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > > > > > > Arjen de Korte > > > > > > > Sent: Tuesday, January 22, 2013 10:45 AM > > > > > > > To: mapserver-users at lists.osgeo.org > > > > > > > Subject: [mapserver-users] WFS GetFeature with filter for > > > > > > > multiple layers > > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > > > I'm having a problem with Mapserver 5.2.1 and WFS GetFeature > > > > requests: > > > > > > > when I do a GetFeature request with an OGC filter for more > > > > > > > than one layer, I only get results for the first layer. I > > > > > > > found a description of the issue here: > > > > https://github.com/mapserver/mapserver/issues/3584. > > > > > > > It says the issue can be worked around by listing a separate > > > > > > > filter for each layer, but I can't work out a way to do this. > > > > > > > > > > > > > > My original request looks like this: > > > > > > > > > > > > > > http://myserver.com/cgi- > > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > > > > > > > > > > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= > > > > > Fi > > > > > > > lter > > > > > > > > > > > > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> > > > > > N > > > > > > a > > > > > > > me/> > > > > > > > > > > > > > > > > > > xmlns:gml="http://www.opengis.net/gml"> > > > > > ea > > > > > > > rRing>89760.045356755,436071.75388938 > > > > > > > 89762.029730683,436071.75388938 89762.029730683,436073.7382633 > > > > > > > 89760.045356755,436073.7382633 > > > > > > > > > > > > > > > > > > > 89760.045356755,436071.75388938 > > > > > g > > > > > > m > > > > > > > l:outerBoundaryIs> > > > > > > > > > > > > > > ...returning only results for layer1. > > > > > > > > > > > > > > I've tried repeating the exact same filter like: > > > > > > > > > > > > > > http://myserver.com/cgi- > > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > Request=GetFeature&TypeName=layer1, > > > > > > > layer2&Version=1.0.0&Filter= > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > and > > > > > > > > > > > > > > http://myserver.com/cgi- > > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > Request=GetFeature&TypeName=layer1, > > > > > > > layer2&Version=1.0.0&Filter= > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > > > , ... > > > > > > > > > > > > > > > > > > > > > ...but the first returns the same: only results for layer1, > > > > > > > and the second returns an error. > > > > > > > > > > > > > > What is the correct way to list multiple filters, or is there > > > > > > > another solution to work around this limitation? > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > Kind regards, > > > > > > > Arjen. > > > > > > > _______________________________________________ > > > > > > > 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 Thu Jan 24 04:27:48 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 24 Jan 2013 13:27:48 +0100 Subject: [mapserver-users] WFS GetFeature with filter for multiple layers References: <84446DEF76453C439E9E97E438E13A637CB1E3@suutari.haapa.mmm.fi> <1359024581.28507.140661181734249.3DD10D8A@webmail.messagingengine.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF492@KS-EVS1.smi.sachsen.de> Hi, when using KVP encoded request to retrieve features of multiple types you should supply one filter for each type, enclose each filter in parentheses and concatenate them as final value for the filter parameter like so: &FILTER=(..)(..)&TYPENAME=type1,type2 This is mostly equivalent to a for each type. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Arjen de Korte > Gesendet: Donnerstag, 24. Januar 2013 11:50 > An: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] WFS GetFeature with filter for > multiple layers > > Thanks Jukka. I think the trick is also to use a POST request > instead of > GET, which is what I'm doing now. Looking at the example you gave, it > looks like multiple filters should work with a POST request, while it > doesn't seem to work with GET. > > Thanks again! > > Arjen. > > > On Wed, Jan 23, 2013, at 13:17, Rahkonen Jukka wrote: > > Hi, > > > > I found this example from archives > > > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/ms g10755.html > > It has worked with two featuretypes and two filters on Mapserver. > > > > -Jukka- > > > > > > Arjen de Korte wrote: > > > > > > Thanks for your time and suggestions! > > > > > > - I'll have a good look at the filter again. > > > - I understand this. Even if I would want to, it doesn't > work with Mapserver, > > > which is what brought me here. (Since we have the server > under control > > > also, the complications you mention would be less of an > issue, but in principle > > > I agree!) > > > - How do I correctly specify a list of filters? (This is > my original > > > question.) If I get this to work, the problem is solved. > I'm not in the position > > > to change/upgrade my client's Mapserver. > > > - I agree this is better/simpler in a lot of regards, but > this will be for the long > > > term. I will however make the WFS requests using POST as > I already have > > > problems with urls that become too long. > > > > > > Kind regards, > > > Arjen. > > > > > > > > > On Wed, Jan 23, 2013, at 12:03, Rahkonen Jukka wrote: > > > > Hi, > > > > > > > > Some thoughts: > > > > > > > > - I am not a specialist with filters, but are you sure that your > > > > filter is correct? I have some examples about filters in page > > > > http://latuviitta.org/Http-POST-ja-Filter.php but they > are generated > > > > by a ready made application (Kosmo GIS). > > > > - One filter for many layers is not the way to go. For > example, it can > > > > only work if all the feature types are using same name for the > > > > geometry field, and filtering with attributes would also require > > > > similar attribute schemas. You may get it to work with > your own server > > > > but your application won't most probably work against > any other WFS > > > server. > > > > - Correct way is to use a list of filters. If your old > Mapserver does > > > > not support it correctly, update of change to some > other server that > > > > supports. > > > > - Continue to consider doing one request per one > feature type, for > > > > many reasons. It will be a hell to find out what goes > wrong with > > > > multi-featuretype and multi-filter requests and if one > thing fails > > > > then nothing works. I am sure that all WFS servers are > poorly tested > > > > with featuretype lists and lists of filters, especially > if you are > > > > going to use http GET. Filters suit much better for > http POST and > > > > that is better tested option too. > > > > > > > > Feel free to test with my TinyOWS at > > > > http://hip.latuviitta.org/cgi-bin/tinyows? It would be > nice to see > > > > what goes to my access and error logs. > > > > > > > > -Jukka Rahkonen- > > > > > > > > > > > > > -----Alkuper?inen viesti----- > > > > > L?hett?j?: Arjen de Korte [mailto:arjendk at gmx.net] > > > > > L?hetetty: 23. tammikuuta 2013 12:09 > > > > > Vastaanottaja: Rahkonen Jukka; Lime, Steve D (DNR); mapserver- > > > > > users at lists.osgeo.org > > > > > Aihe: Re: [mapserver-users] WFS GetFeature with > filter for multiple > > > > > layers > > > > > > > > > > Hi Jukka, > > > > > > > > > > Thanks for the suggestion. I am already taking that into > > > > > consideration (and probably should have mentioned > it). The problem > > > > > is that it would be quite some work to get it into > the existing > > > > > application that way. For simplicity I gave an > example with two > > > > > layers, but there can actually be many more, > depending on the map > > > > > that is displayed. I would definitely like to keep it > simple, but in > > > > > this case one GetFeature request would definitely be > a simpler solution! > > > Any other suggestions welcome! > > > > > > > > > > Thanks! > > > > > > > > > > Kind regards, > > > > > Arjen. > > > > > > > > > > > > > > > On Wed, Jan 23, 2013, at 10:39, Rahkonen Jukka wrote: > > > > > > Hi, > > > > > > > > > > > > Keep it simple and make two separate GetFeatures, > one for each > > > > > > feature type. > > > > > > > > > > > > -Jukka Rahkonen- > > > > > > > > > > > > Arjen de Korte wrote: > > > > > > > > > > > > > > > > > > > Hi Steve, > > > > > > > > > > > > > > Yes, for now I (my client) is stuck to this version, so a > > > > > > > workaround (or accepting that it can't be done) > is the only > > > > > > > option at the moment. Has this been solved in > newer versions? > > > > > > > > > > > > > > Kind regards, > > > > > > > Arjen. > > > > > > > > > > > > > > > > > > > > > On Tue, Jan 22, 2013, at 20:15, Lime, Steve D (DNR) wrote: > > > > > > > > Are you stuck running such an old version? > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > > > > > > > Arjen de Korte > > > > > > > > Sent: Tuesday, January 22, 2013 10:45 AM > > > > > > > > To: mapserver-users at lists.osgeo.org > > > > > > > > Subject: [mapserver-users] WFS GetFeature with > filter for > > > > > > > > multiple layers > > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > > > > > I'm having a problem with Mapserver 5.2.1 and > WFS GetFeature > > > > > requests: > > > > > > > > when I do a GetFeature request with an OGC > filter for more > > > > > > > > than one layer, I only get results for the > first layer. I > > > > > > > > found a description of the issue here: > > > > > https://github.com/mapserver/mapserver/issues/3584. > > > > > > > > It says the issue can be worked around by > listing a separate > > > > > > > > filter for each layer, but I can't work out a > way to do this. > > > > > > > > > > > > > > > > My original request looks like this: > > > > > > > > > > > > > > > > http://myserver.com/cgi- > > > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > > > > > > > > > > > > > > > > > Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter= > > > > > > Fi > > > > > > > > lter > > > > > > > > > > > > > > > > > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> > > > > > > N > > > > > > > a > > > > > > > > me/> > > > > > > > > > > > > > > > > > > > > > > > xmlns:gml="http://www.opengis.net/gml"> > > > > > > ea > > > > > > > > rRing>89760.045356755,436071.75388938 > > > > > > > > 89762.029730683,436071.75388938 > 89762.029730683,436073.7382633 > > > > > > > > 89760.045356755,436073.7382633 > > > > > > > > > > > > > > > > > > > > > > > > 89760.045356755,436071.75388938 > > > > > > g > > > > > > > m > > > > > > > > > l:outerBoundaryIs> > > > > > > > > > > > > > > > > ...returning only results for layer1. > > > > > > > > > > > > > > > > I've tried repeating the exact same filter like: > > > > > > > > > > > > > > > > http://myserver.com/cgi- > > > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > Request=GetFeature&TypeName=layer1, > > > > > > > > layer2&Version=1.0.0&Filter= > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > and > > > > > > > > > > > > > > > > http://myserver.com/cgi- > > > > > > > bin/mapserv.exe?map=mymapfile.map&Service=WFS& > > > > > > > > Request=GetFeature&TypeName=layer1, > > > > > > > > layer2&Version=1.0.0&Filter= > > > > > > > > xmlns:ogc="http://www.opengis.net/ogc"> ... > > > > > > > > > , ... > > > > > > > > > > > > > > > > > > > > > > > > ...but the first returns the same: only results > for layer1, > > > > > > > > and the second returns an error. > > > > > > > > > > > > > > > > What is the correct way to list multiple > filters, or is there > > > > > > > > another solution to work around this limitation? > > > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > > > Kind regards, > > > > > > > > Arjen. > > > > > > > > _______________________________________________ > > > > > > > > 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 asmaraev at gmail.com Thu Jan 24 04:42:54 2013 From: asmaraev at gmail.com (Andrey Maraev) Date: Thu, 24 Jan 2013 16:42:54 +0400 Subject: [mapserver-users] How to add ocean.map in the basemaps build before make osm-google.map? Message-ID: Hello guys! I need your help with my quest! I want to add in my basemaps build a new layer which is a global water. It is just the polygon with blue color which has 4 points. Where and how to should I do this? I've already done ocean.map and put it on basemaps directory. It looks like: LAYER NAME "ocean" GROUP "default" STATUS ON TYPE POLYGON PROJECTION "init=epsg:3857" END METADATA "wfs_title" "World ocean" ##REQUIRED "wfs_srs" "EPSG:3395" ## REQUIRED END FEATURE POINTS -20037508.3428 -15496570.7397 20037508.3428 -15496570.7397 20037508.3428 18764656.2314 -20037508.3428 18764656.2314 -20037508.3428 -15496570.7397 END END CLASS STYLE COLOR "#99B3CC" END END END Should I change generate_style.py before a making osm-google.map? P.S I know about IMAGECOLOR parameter with transparent=off but I have a problem with transparency mode. My client has always TRANSPARENT=TRUE. As I know if TRANSPARENT enable IMAGECOLOR will be disable. -- lernen,lernen und lernen -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Thu Jan 24 08:13:49 2013 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 24 Jan 2013 17:13:49 +0100 Subject: [mapserver-users] Displaying overlapping linestrings In-Reply-To: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> Message-ID: <51015DBD.3000709@uva.nl> Does anyone know a trick to do this: I'm making geographical indexes for the map series in our map library. Each map sheets is displayed as a polygonal linestring, based on its corner coordinates. Lots of sheets have exactly the same boundaries, so it's not clear where a polygon indicates just one map sheet of several. It's easy, of course, to write a PostGIS query to return a different color code when map boundaries exactly coincide, but I was wondering whether something like that could be done by mapserver on its own, like XOR-ing a line with what is already there. Any ideas? Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Jan 24 08:35:33 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 24 Jan 2013 11:35:33 -0500 Subject: [mapserver-users] Displaying overlapping linestrings In-Reply-To: <51015DBD.3000709@uva.nl> References: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> <51015DBD.3000709@uva.nl> Message-ID: <510162D5.7080600@swoodbridge.com> On 1/24/2013 11:13 AM, Jan Hartmann wrote: > Does anyone know a trick to do this: > > I'm making geographical indexes for the map series in our map library. > Each map sheets is displayed as a polygonal linestring, based on its > corner coordinates. Lots of sheets have exactly the same boundaries, so > it's not clear where a polygon indicates just one map sheet of several. > It's easy, of course, to write a PostGIS query to return a different > color code when map boundaries exactly coincide, but I was wondering > whether something like that could be done by mapserver on its own, like > XOR-ing a line with what is already there. Any ideas? Hi Jan, For polygons you could use a small negative buffer to shrink the polygon slightly. You can do this in postgis, and you might be able to do it with mapserver if geos is compiled in. See: http://mapserver.org/development/rfc/ms-rfc-48.html Steve W From j.l.h.hartmann at uva.nl Thu Jan 24 08:59:45 2013 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 24 Jan 2013 17:59:45 +0100 Subject: [mapserver-users] Displaying overlapping linestrings In-Reply-To: <510162D5.7080600@swoodbridge.com> References: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> <51015DBD.3000709@uva.nl> <510162D5.7080600@swoodbridge.com> Message-ID: <51016881.4060407@uva.nl> On 01/24/2013 05:35 PM, Stephen Woodbridge wrote: > On 1/24/2013 11:13 AM, Jan Hartmann wrote: >> Does anyone know a trick to do this: >> >> I'm making geographical indexes for the map series in our map library. >> Each map sheets is displayed as a polygonal linestring, based on its >> corner coordinates. Lots of sheets have exactly the same boundaries, so >> it's not clear where a polygon indicates just one map sheet of several. >> It's easy, of course, to write a PostGIS query to return a different >> color code when map boundaries exactly coincide, but I was wondering >> whether something like that could be done by mapserver on its own, like >> XOR-ing a line with what is already there. Any ideas? > > Hi Jan, > > For polygons you could use a small negative buffer to shrink the > polygon slightly. You can do this in postgis, and you might be able to > do it with mapserver if geos is compiled in. See: > > http://mapserver.org/development/rfc/ms-rfc-48.html > No, that is not what I meant. I'm looking for a trick for mapserver to color a linestring differently when drawing over a linestring that it has already drawn in a previous layer. In computer graphics you can do this by using an XOR brush. Essentially, the screen frame buffer functions as a sort of memory. I don not want to use PostGIS or GOS, too complex. I doubt if this can be done by MapServer, but you never know. Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Jan 24 09:36:26 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 24 Jan 2013 17:36:26 +0000 Subject: [mapserver-users] Displaying overlapping linestrings In-Reply-To: <51016881.4060407@uva.nl> References: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> <51015DBD.3000709@uva.nl> <510162D5.7080600@swoodbridge.com> <51016881.4060407@uva.nl> Message-ID: You could try drawing the features with the same base color but with opacity set. The more times the same area is rendered you'd get a different hue. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Thursday, January 24, 2013 11:00 AM To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Displaying overlapping linestrings On 01/24/2013 05:35 PM, Stephen Woodbridge wrote: On 1/24/2013 11:13 AM, Jan Hartmann wrote: Does anyone know a trick to do this: I'm making geographical indexes for the map series in our map library. Each map sheets is displayed as a polygonal linestring, based on its corner coordinates. Lots of sheets have exactly the same boundaries, so it's not clear where a polygon indicates just one map sheet of several. It's easy, of course, to write a PostGIS query to return a different color code when map boundaries exactly coincide, but I was wondering whether something like that could be done by mapserver on its own, like XOR-ing a line with what is already there. Any ideas? Hi Jan, For polygons you could use a small negative buffer to shrink the polygon slightly. You can do this in postgis, and you might be able to do it with mapserver if geos is compiled in. See: http://mapserver.org/development/rfc/ms-rfc-48.html No, that is not what I meant. I'm looking for a trick for mapserver to color a linestring differently when drawing over a linestring that it has already drawn in a previous layer. In computer graphics you can do this by using an XOR brush. Essentially, the screen frame buffer functions as a sort of memory. I don not want to use PostGIS or GOS, too complex. I doubt if this can be done by MapServer, but you never know. Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Fri Jan 25 01:49:52 2013 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 25 Jan 2013 10:49:52 +0100 Subject: [mapserver-users] Displaying overlapping linestrings In-Reply-To: References: <84446DEF76453C439E9E97E438E13A637CB0AE@suutari.haapa.mmm.fi> <51015DBD.3000709@uva.nl> <510162D5.7080600@swoodbridge.com> <51016881.4060407@uva.nl> Message-ID: <51025540.2000006@uva.nl> Yes, the idea works, but the differences in hue are too small to be useful in practice. And furthermore, they also show up for border lines between adjoining polygons. I just want to highlight polygons that completely overlap. I'm afraid I have to go the PostGIS/GEOS way. Even o, would an XOR brush not be a nice addition to the STYLE object? You could create all kinds of moir? fill patterns. http://www.google.nl/search?q=moire&hl=en&client=firefox-a&hs=lGh&tbo=u&rls=org.mozilla:en-GB:official&tbm=isch&source=univ&sa=X&ei=C1UCUez4C9KX0QXV9IDoDw&ved=0CFMQsAQ&biw=1600&bih=809 Jan On 1/24/2013 6:36 PM, Lime, Steve D (DNR) wrote: > > You could try drawing the features with the same base color but with > opacity set. The more times the same area is rendered you'd get a > different hue. > > Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jan > Hartmann > *Sent:* Thursday, January 24, 2013 11:00 AM > *To:* Stephen Woodbridge > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Displaying overlapping linestrings > > On 01/24/2013 05:35 PM, Stephen Woodbridge wrote: > > On 1/24/2013 11:13 AM, Jan Hartmann wrote: > > Does anyone know a trick to do this: > > I'm making geographical indexes for the map series in our map > library. > Each map sheets is displayed as a polygonal linestring, based on its > corner coordinates. Lots of sheets have exactly the same > boundaries, so > it's not clear where a polygon indicates just one map sheet of > several. > It's easy, of course, to write a PostGIS query to return a different > color code when map boundaries exactly coincide, but I was wondering > whether something like that could be done by mapserver on its own, > like > XOR-ing a line with what is already there. Any ideas? > > > Hi Jan, > > For polygons you could use a small negative buffer to shrink the > polygon slightly. You can do this in postgis, and you might be > able to do it with mapserver if geos is compiled in. See: > > http://mapserver.org/development/rfc/ms-rfc-48.html > > No, that is not what I meant. I'm looking for a trick for mapserver to > color a linestring differently when drawing over a linestring that it > has already drawn in a previous layer. In computer graphics you can do > this by using an XOR brush. Essentially, the screen frame buffer > functions as a sort of memory. I don not want to use PostGIS or GOS, > too complex. I doubt if this can be done by MapServer, but you never know. > > Jan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrherz at iastate.edu Fri Jan 25 06:46:56 2013 From: akrherz at iastate.edu (daryl herzmann) Date: Fri, 25 Jan 2013 08:46:56 -0600 (CST) Subject: [mapserver-users] 6.2.0 fastcgi exit(lifetime expired), get signal 11, possible coredump generated Message-ID: Hi, I recently updated to mapserver 6.2.0 and am noticing an interesting message being logged from Apache: Jan 25 08:40:49 xxx httpd[6098]: [error] mod_fcgid: process /path/mapserv.fcgi(4498) exit(lifetime expired), get signal 11, possible coredump generated I built mapserver on RHEL6.3 with fcgi-2.4.0-10.el6.x86_64 . These messages appear to be happening when Apache mod_fcgid cycles the mapserver process every so often? Any ideas what is happening? I suspect it is safe to ignore the message, but am curious why I am seeing it now and not with previous mapserver releases. thanks, daryl From wesmota at gmail.com Fri Jan 25 08:08:45 2013 From: wesmota at gmail.com (Wesley) Date: Fri, 25 Jan 2013 14:08:45 -0200 Subject: [mapserver-users] Mapcache compilation error Message-ID: Hi guys, I'm trying to compile the mapcache source on Mac OSX and I'm getting this error: libtool: link: gcc -o .libs/mapcache -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -O2 -Wall -DHAVE_SYMLINK -DNDEBUG -DUSE_MEMCACHE -DUSE_OGR -DUSE_GEOS -DUSE_SQLITE -DUSE_PIXMAN -I../include -I/opt/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/opt/local/include/pixman-1 mapcache.c ../lib/.libs/libmapcache.dylib -L/opt/local/lib -L/usr/lib -L/opt/local/lib/db46 /opt/local/lib/libcurl.dylib /opt/local/lib/libidn.dylib /opt/local/lib/libintl.dylib -lc -lssl -lcrypto /opt/local/lib/libpng15.dylib -lz /opt/local/lib/libjpeg.dylib /opt/local/lib/libaprutil-1.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libiconv.dylib /opt/local/lib/libapr-1.dylib -lpthread /opt/local/lib/libpcre.dylib /opt/local/lib/libsqlite3.dylib /opt/local/lib/libpixman-1.dylib -lm -pthread Undefined symbols for architecture x86_64: "_apr_file_info_get$INODE64", referenced from: _main in cc6wdAH8.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[1]: *** [mapcache] Error 1 make: *** [all] Error 2 Anyone knows how can i fix it? Thanks, Wesley -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrherz at iastate.edu Fri Jan 25 13:03:00 2013 From: akrherz at iastate.edu (daryl herzmann) Date: Fri, 25 Jan 2013 15:03:00 -0600 (CST) Subject: [mapserver-users] php mapscript 6.2.0 problem plotting TRANSFORM false rectobj Message-ID: Hi, The follow code worked for me with previous Mapserver releases, it currently does not with PHP mapscript 6.2.0 on RHEL6 64bit. Any ideas what I may be doing wrong? The result is a blank image and I expect to see a black rectangle! --> rect.map MAP NAME base4326 STATUS ON SIZE 640 480 EXTENT -104 37 -87 49 UNITS DD CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt" CONFIG "CPL_DEBUG" "ON" DEBUG 5 LAYER NAME rect TYPE POLYGON TRANSFORM FALSE STATUS ON LABELCACHE FALSE CLASS COLOR 0 0 0 END END END ---> rect.php $map = ms_newMapObj('rect.map'); $img = $map->prepareImage(); $layer = $map->getLayerByName("rect"); $rect = ms_newRectObj(); $rect->setextent(100,100,200,200); $rect->draw($map, $layer, $img, 0, ""); header("Content-type: image/png"); $img->saveImage(''); thanks, daryl From bob.basques at ci.stpaul.mn.us Mon Jan 28 07:02:27 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 28 Jan 2013 15:02:27 +0000 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? Message-ID: All, So, I was thinking about adding support for Raster pulling from AutoCAD work sessions directly. We've had this capability in place for a number of years using MapServer calls to each layer individually. I'm researching the idea of rebuilding the importing routines but with the added functionality of reading a getcapabilities call to flesh out the listing of the available layers in the server. Yes I know there is a FDO provider in AutoCAD, but that is only available in Map and Civil, not regular AutoCAD (or ARCH, still??) Versions which we also support. First thought was to build a XML parser as a separate web service, that would make the call(s) to mapserver. This would output the data in a AutoCAD readable form such as AutoLISP. Another thought was to read our GeoMoose MapBook, an XML file, for listing out the available layers behind MapServer, this has the advantage of using our existing tools and methods for access the data and it would be completely automated with the GeoMoose MapBook becoming the master data catalog. Whatever comes of this will also be eventually morphed into a Feature importer (WFS, etc) as well, which we also already have in place, but in a manner that could be improved. So, back to the question, can a XML return from MapServer be passed through a TEMPLATE to change the output? Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Mon Jan 28 09:20:10 2013 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 28 Jan 2013 10:20:10 -0700 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? In-Reply-To: References: Message-ID: <5106B34A.9040301@geoanalytic.com> Bob, I'm not sure I understand what you are trying to do (on the mapserver side or the Autocad side!). Do you want mapserver to return a list of layers (when sent an OGC GetCapabilities or equivalent non-standard request) in a format of your choosing, similar to the way template-driven output (http://mapserver.org/output/template_output.html) returns feature info in a custom format ? Best Regards, Brent Fraser On 1/28/2013 8:02 AM, Basques, Bob (CI-StPaul) wrote: > > All, > > So, I was thinking about adding support for Raster pulling from > AutoCAD work sessions directly. We've had this capability in place > for a number of years using MapServer calls to each layer > individually. I'm researching the idea of rebuilding the importing > routines but with the added functionality of reading a getcapabilities > call to flesh out the listing of the available layers in the server. > Yes I know there is a FDO provider in AutoCAD, but that is only > available in Map and Civil, not regular AutoCAD (or ARCH, still??) > Versions which we also support. > > First thought was to build a XML parser as a separate web service, > that would make the call(s) to mapserver. This would output the data > in a AutoCAD readable form such as AutoLISP. Another thought was to > read our GeoMoose MapBook, an XML file, for listing out the available > layers behind MapServer, this has the advantage of using our existing > tools and methods for access the data and it would be completely > automated with the GeoMoose MapBook becoming the master data catalog. > > Whatever comes of this will also be eventually morphed into a Feature > importer (WFS, etc) as well, which we also already have in place, but > in a manner that could be improved. > > So, back to the question, can a XML return from MapServer be passed > through a TEMPLATE to change the output? > > Thanks > > Bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jan 28 09:29:32 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 28 Jan 2013 17:29:32 +0000 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? In-Reply-To: <5106B34A.9040301@geoanalytic.com> References: <5106B34A.9040301@geoanalytic.com> Message-ID: Brent, Pretty much as you describe . . . I want a list of layers but in my own form (Not OGC), specifically, I've used a TEMPLATE in the past to output LISP code that I can run in AutoCAD as an executable, sort of a poor man's importer for raster images. This has been working for over a decade now, but each layer has to be set up individually in the current architecture. The next leap forward would be to read a layer list from (??) the web as a service, and have the list pop out as a LISP construct for use in AutoCAD for choosing of layers. Right now we hand build a somewhat static dialog in AutoCAD to do this. The bigger goal, is to be able to add to the MapServer / GeoMoose data stores and have the new content appear automatically in the AutoCAD session as a new list item. I can write a intermediate helper app to read our GeoMoose MapBook for example and then send back the AutoLisp construct, but I was wondering if there were a way around this intermediate piece, but with a TEMPLATING capability. In the end it's probably more flexible to go the helper app route, but . . .??? Bobb From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Monday, January 28, 2013 11:20 AM To: Basques, Bob (CI-StPaul) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? Bob, I'm not sure I understand what you are trying to do (on the mapserver side or the Autocad side!). Do you want mapserver to return a list of layers (when sent an OGC GetCapabilities or equivalent non-standard request) in a format of your choosing, similar to the way template-driven output (http://mapserver.org/output/template_output.html) returns feature info in a custom format ? Best Regards, Brent Fraser On 1/28/2013 8:02 AM, Basques, Bob (CI-StPaul) wrote: All, So, I was thinking about adding support for Raster pulling from AutoCAD work sessions directly. We've had this capability in place for a number of years using MapServer calls to each layer individually. I'm researching the idea of rebuilding the importing routines but with the added functionality of reading a getcapabilities call to flesh out the listing of the available layers in the server. Yes I know there is a FDO provider in AutoCAD, but that is only available in Map and Civil, not regular AutoCAD (or ARCH, still??) Versions which we also support. First thought was to build a XML parser as a separate web service, that would make the call(s) to mapserver. This would output the data in a AutoCAD readable form such as AutoLISP. Another thought was to read our GeoMoose MapBook, an XML file, for listing out the available layers behind MapServer, this has the advantage of using our existing tools and methods for access the data and it would be completely automated with the GeoMoose MapBook becoming the master data catalog. Whatever comes of this will also be eventually morphed into a Feature importer (WFS, etc) as well, which we also already have in place, but in a manner that could be improved. So, back to the question, can a XML return from MapServer be passed through a TEMPLATE to change the output? Thanks Bobb _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at gmail.com Mon Jan 28 11:33:01 2013 From: david.fawcett at gmail.com (David Fawcett) Date: Mon, 28 Jan 2013 13:33:01 -0600 Subject: [mapserver-users] FOSS4G NA 2013 Message-ID: MapServer Users, Below is a general announcement about the 2013 FOSS4G NA Conference. I am guessing that you have already seen it, but I want to pass it along in case you haven't. In looking at the presentation abstracts that have been submitted to date, I have not seen any presentations related to MapServer. It would be great to see some MapServer representation at the conference. Some potential topics include: - New features / roadmap (The state of MapServer) - MapCache, not enough people know about MapCache - Case Studies, cool projects, etc. Just remember, only two weeks until the February 14th deadline for submitting presentation abstracts. Also, if you work for an organization that uses MapServer and are in a position to support the conference, please consider sponsorship. http://foss4g-na.org/sponsor/ David. The planning committee of the 2013 Free and Open Source Software for Geospatial North America (FOSS4G-NA) conference to be held May 22-24 in Minneapolis, MN is pleased to make the following announcements which were recently posted to our website at http://foss4g-na.org. *REGISTRATION* Registration is now open! *Register by April 1, 2013* to get the Early Bird rate. *KEYNOTES* Two superb keynote presentations have been confirmed. More keynotes to be announced soon! *Eric Gundersen, CEO, MapBox*. With big names converting from Google Maps to MapBox (USA Today, Foursquare, etc.), Eric will be discussing the business proposition/value of open source geo. *Erek Dyskant, Sr. Analytics Engineer, Democratic National Committee*. Whether you were happy or sad with the outcome of the recent election, they must have done something right! Erek talk about how open source solutions were used to empower tacticians with geospatial data, and describe what drove the intentional choice of using open source. *CALL FOR PRESENTATIONS* The Call for Presentations is open until February 15, 2013. Do you have something great to show off? We are looking for presentations, ignite talks, and panel suggestions. Submityour abstract soon to be considered for this year?s event. Know of interesting work others have been doing that you want to hear more about? Urge them to submitan abstract! *SPONSORSHIP* Help us throw a great event! Information for sponsors is now available. Of note this year is the Free Sponsor Day. Platinum and Gold level sponsors will receive a room on the third day of the conference to be able to present their own track. Admission on this day is free! *GALA* On Thursday, May 23rd we will be having a Gala event at the Mill City Museumon the Mississippi River waterfront. Come to one of the original flour mills that made Minneapolis the nation?s largest milling center for decades. Along with dinner and drinks, the entire museum will be open for exploring. *DIVERSITY* In an effort to foster a diversity of voices the community voting will be done in a "presenter anonymous" fashion. In other words, you will be voting for the topic and abstract content, not the potential presenter. FOSS4G-NA is dedicated to a harassment-free conference experience . *ROOM BLOCK* A limited room block is available at the venue (Marriott City Center ). *CODE SPRINT* There will be a code sprint concurrent with the sponsor day on May 24th. Registration is free but required for the code sprint. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Jan 29 10:03:13 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 29 Jan 2013 19:03:13 +0100 Subject: [mapserver-users] How retrieve the maxsize information with an http request Message-ID: Hi, Some gis software like qgis allow to define the tile size to retrieve a map as a mosaic of tiles from a wms. This is a very good feature. But to use it efficiently is necessary to know the maxsize value applied in the mapfile of the wms server. Is this information retrievable from the getcapabilities or there is a differente cgi request to have this information ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From woodbri at swoodbridge.com Tue Jan 29 10:39:29 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 29 Jan 2013 13:39:29 -0500 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? In-Reply-To: References: <5106B34A.9040301@geoanalytic.com> Message-ID: <51081761.4060601@swoodbridge.com> Bob, Seems like this is trivial to do with a Perl wrapper. Make a Perl script that makes a mapserver GetCapabilities request and suck that into XML and reformat how you like. -Steve W On 1/28/2013 12:29 PM, Basques, Bob (CI-StPaul) wrote: > Brent, > > Pretty much as you describe . . . > > I want a list of layers but in my own form (Not OGC), specifically, I?ve > used a TEMPLATE in the past to output LISP code that I can run in > AutoCAD as an executable, sort of a poor man?s importer for raster > images. This has been working for over a decade now, but each layer has > to be set up individually in the current architecture. The next leap > forward would be to read a layer list from (??) the web as a service, > and have the list pop out as a LISP construct for use in AutoCAD for > choosing of layers. Right now we hand build a somewhat static dialog in > AutoCAD to do this. > > The bigger goal, is to be able to add to the MapServer / GeoMoose data > stores and have the new content appear automatically in the AutoCAD > session as a new list item. I can write a intermediate helper app to > read our GeoMoose MapBook for example and then send back the AutoLisp > construct, but I was wondering if there were a way around this > intermediate piece, but with a TEMPLATING capability. In the end it?s > probably more flexible to go the helper app route, but . . .??? > > Bobb > > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* Monday, January 28, 2013 11:20 AM > *To:* Basques, Bob (CI-StPaul) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] I've been accused of not using things > the way they were intended, but . . . can a getcapabilities request be > run through the MapServer TEMPLATE for output? > > Bob, > > I'm not sure I understand what you are trying to do (on the mapserver > side or the Autocad side!). Do you want mapserver to return a list of > layers (when sent an OGC GetCapabilities or equivalent non-standard > request) in a format of your choosing, similar to the way > template-driven output > (http://mapserver.org/output/template_output.html) returns feature info > in a custom format ? > > Best Regards, > > Brent Fraser > > On 1/28/2013 8:02 AM, Basques, Bob (CI-StPaul) wrote: > > All, > > So, I was thinking about adding support for Raster pulling from > AutoCAD work sessions directly. We?ve had this capability in place > for a number of years using MapServer calls to each layer > individually. I?m researching the idea of rebuilding the importing > routines but with the added functionality of reading a > getcapabilities call to flesh out the listing of the available > layers in the server. Yes I know there is a FDO provider in > AutoCAD, but that is only available in Map and Civil, not regular > AutoCAD (or ARCH, still??) Versions which we also support. > > First thought was to build a XML parser as a separate web service, > that would make the call(s) to mapserver. This would output the > data in a AutoCAD readable form such as AutoLISP. Another thought > was to read our GeoMoose MapBook, an XML file, for listing out the > available layers behind MapServer, this has the advantage of using > our existing tools and methods for access the data and it would be > completely automated with the GeoMoose MapBook becoming the master > data catalog. > > Whatever comes of this will also be eventually morphed into a > Feature importer (WFS, etc) as well, which we also already have in > place, but in a manner that could be improved. > > So, back to the question, can a XML return from MapServer be passed > through a TEMPLATE to change the output? > > Thanks > > Bobb > > > > > _______________________________________________ > > 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.basques at ci.stpaul.mn.us Tue Jan 29 11:19:37 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 29 Jan 2013 19:19:37 +0000 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? In-Reply-To: <51081761.4060601@swoodbridge.com> References: <5106B34A.9040301@geoanalytic.com> <51081761.4060601@swoodbridge.com> Message-ID: Yeah, yeah, I know. Just for some reason seems like it should be doable straight through MapServer with a TEMPLATE . . . Still pondering it, probably go the PERL route though in the end. Thanks for the direction though. :c) Bobb >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- >> users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge >> Sent: Tuesday, January 29, 2013 12:39 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] I've been accused of not using >> things the way they were intended, but . . . can a >> getcapabilities request be run through the MapServer TEMPLATE for >> output? >> >> Bob, >> >> Seems like this is trivial to do with a Perl wrapper. >> Make a Perl script that makes a mapserver GetCapabilities request >> and suck that into XML and reformat how you like. >> >> -Steve W >> >> On 1/28/2013 12:29 PM, Basques, Bob (CI-StPaul) wrote: >> > Brent, >> > >> > Pretty much as you describe . . . >> > >> > I want a list of layers but in my own form (Not OGC), >> specifically, >> > I've used a TEMPLATE in the past to output LISP code that I can >> run in >> > AutoCAD as an executable, sort of a poor man's importer for >> raster >> > images. This has been working for over a decade now, but each >> layer >> > has to be set up individually in the current architecture. The >> next >> > leap forward would be to read a layer list from (??) the web as >> a >> > service, and have the list pop out as a LISP construct for use >> in >> > AutoCAD for choosing of layers. Right now we hand build a >> somewhat >> > static dialog in AutoCAD to do this. >> > >> > The bigger goal, is to be able to add to the MapServer / >> GeoMoose data >> > stores and have the new content appear automatically in the >> AutoCAD >> > session as a new list item. I can write a intermediate helper >> app to >> > read our GeoMoose MapBook for example and then send back the >> AutoLisp >> > construct, but I was wondering if there were a way around this >> > intermediate piece, but with a TEMPLATING capability. In the >> end it's >> > probably more flexible to go the helper app route, but . . .??? >> > >> > Bobb >> > >> > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] >> > *Sent:* Monday, January 28, 2013 11:20 AM >> > *To:* Basques, Bob (CI-StPaul) >> > *Cc:* mapserver-users at lists.osgeo.org >> > *Subject:* Re: [mapserver-users] I've been accused of not using >> things >> > the way they were intended, but . . . can a getcapabilities >> request be >> > run through the MapServer TEMPLATE for output? >> > >> > Bob, >> > >> > I'm not sure I understand what you are trying to do (on the >> > mapserver side or the Autocad side!). Do you want mapserver to >> return >> > a list of layers (when sent an OGC GetCapabilities or >> equivalent >> > non-standard >> > request) in a format of your choosing, similar to the way >> > template-driven output >> > (http://mapserver.org/output/template_output.html) returns >> feature >> > info in a custom format ? >> > >> > Best Regards, >> > >> > Brent Fraser >> > >> > On 1/28/2013 8:02 AM, Basques, Bob (CI-StPaul) wrote: >> > >> > All, >> > >> > So, I was thinking about adding support for Raster pulling >> from >> > AutoCAD work sessions directly. We've had this capability >> in place >> > for a number of years using MapServer calls to each layer >> > individually. I'm researching the idea of rebuilding the >> importing >> > routines but with the added functionality of reading a >> > getcapabilities call to flesh out the listing of the >> available >> > layers in the server. Yes I know there is a FDO provider >> in >> > AutoCAD, but that is only available in Map and Civil, not >> regular >> > AutoCAD (or ARCH, still??) Versions which we also support. >> > >> > First thought was to build a XML parser as a separate web >> service, >> > that would make the call(s) to mapserver. This would >> output the >> > data in a AutoCAD readable form such as AutoLISP. Another >> thought >> > was to read our GeoMoose MapBook, an XML file, for listing >> out the >> > available layers behind MapServer, this has the advantage >> of using >> > our existing tools and methods for access the data and it >> would be >> > completely automated with the GeoMoose MapBook becoming the >> master >> > data catalog. >> > >> > Whatever comes of this will also be eventually morphed into >> a >> > Feature importer (WFS, etc) as well, which we also already >> have in >> > place, but in a manner that could be improved. >> > >> > So, back to the question, can a XML return from MapServer >> be passed >> > through a TEMPLATE to change the output? >> > >> > Thanks >> > >> > Bobb >> > >> > >> > >> > >> > _______________________________________________ >> > >> > mapserver-users mailing list >> > >> > mapserver-users at lists.osgeo.org >> > >> > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Jan 29 11:36:06 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 29 Jan 2013 19:36:06 +0000 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? In-Reply-To: References: <5106B34A.9040301@geoanalytic.com> <51081761.4060601@swoodbridge.com> Message-ID: Templates don't expose the layer metadata you'd likely need so transforming normal XML as Steve suggested is a far better option. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Tuesday, January 29, 2013 1:20 PM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? Yeah, yeah, I know. Just for some reason seems like it should be doable straight through MapServer with a TEMPLATE . . . Still pondering it, probably go the PERL route though in the end. Thanks for the direction though. :c) Bobb >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- >> users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge >> Sent: Tuesday, January 29, 2013 12:39 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] I've been accused of not using >> things the way they were intended, but . . . can a getcapabilities >> request be run through the MapServer TEMPLATE for output? >> >> Bob, >> >> Seems like this is trivial to do with a Perl wrapper. >> Make a Perl script that makes a mapserver GetCapabilities request >> and suck that into XML and reformat how you like. >> >> -Steve W >> >> On 1/28/2013 12:29 PM, Basques, Bob (CI-StPaul) wrote: >> > Brent, >> > >> > Pretty much as you describe . . . >> > >> > I want a list of layers but in my own form (Not OGC), >> specifically, > I've used a TEMPLATE in the past to output LISP code >> that I can run in > AutoCAD as an executable, sort of a poor man's >> importer for raster > images. This has been working for over a >> decade now, but each layer > has to be set up individually in the >> current architecture. The next > leap forward would be to read a >> layer list from (??) the web as a > service, and have the list pop >> out as a LISP construct for use in > AutoCAD for choosing of >> layers. Right now we hand build a somewhat > static dialog in >> AutoCAD to do this. >> > >> > The bigger goal, is to be able to add to the MapServer / GeoMoose >> data > stores and have the new content appear automatically in the >> AutoCAD > session as a new list item. I can write a intermediate >> helper app to > read our GeoMoose MapBook for example and then send >> back the AutoLisp > construct, but I was wondering if there were a >> way around this > intermediate piece, but with a TEMPLATING >> capability. In the end it's > probably more flexible to go the >> helper app route, but . . .??? >> > >> > Bobb >> > >> > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* >> Monday, January 28, 2013 11:20 AM > *To:* Basques, Bob (CI-StPaul) >> > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: >> [mapserver-users] I've been accused of not using things > the way >> they were intended, but . . . can a getcapabilities request be > >> run through the MapServer TEMPLATE for output? >> > >> > Bob, >> > >> > I'm not sure I understand what you are trying to do (on the >> > mapserver side or the Autocad side!). Do you want mapserver to >> return > a list of layers (when sent an OGC GetCapabilities or >> equivalent > non-standard > request) in a format of your choosing, >> similar to the way > template-driven output > >> (http://mapserver.org/output/template_output.html) returns feature >> > info in a custom format ? >> > >> > Best Regards, >> > >> > Brent Fraser >> > >> > On 1/28/2013 8:02 AM, Basques, Bob (CI-StPaul) wrote: >> > >> > All, >> > >> > So, I was thinking about adding support for Raster pulling >> from >> > AutoCAD work sessions directly. We've had this capability >> in place >> > for a number of years using MapServer calls to each layer >> > individually. I'm researching the idea of rebuilding the >> importing >> > routines but with the added functionality of reading a >> > getcapabilities call to flesh out the listing of the >> available >> > layers in the server. Yes I know there is a FDO provider >> in >> > AutoCAD, but that is only available in Map and Civil, not >> regular >> > AutoCAD (or ARCH, still??) Versions which we also support. >> > >> > First thought was to build a XML parser as a separate web >> service, >> > that would make the call(s) to mapserver. This would >> output the >> > data in a AutoCAD readable form such as AutoLISP. Another >> thought >> > was to read our GeoMoose MapBook, an XML file, for listing >> out the >> > available layers behind MapServer, this has the advantage >> of using >> > our existing tools and methods for access the data and it >> would be >> > completely automated with the GeoMoose MapBook becoming the >> master >> > data catalog. >> > >> > Whatever comes of this will also be eventually morphed into >> a >> > Feature importer (WFS, etc) as well, which we also already >> have in >> > place, but in a manner that could be improved. >> > >> > So, back to the question, can a XML return from MapServer >> be passed >> > through a TEMPLATE to change the output? >> > >> > Thanks >> > >> > Bobb >> > >> > >> > >> > >> > _______________________________________________ >> > >> > 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 woodbri at swoodbridge.com Tue Jan 29 13:18:45 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 29 Jan 2013 16:18:45 -0500 Subject: [mapserver-users] How retrieve the maxsize information with an http request In-Reply-To: References: Message-ID: <51083CB5.5060607@swoodbridge.com> On 1/29/2013 1:03 PM, Andrea Peri wrote: > Hi, > > Some gis software like qgis allow to define the tile size to retrieve > a map as a mosaic of tiles from a wms. > This is a very good feature. > > But to use it efficiently is necessary to know the > > maxsize value applied in the mapfile of the wms server. > > Is this information retrievable from the getcapabilities or there is a > differente cgi request to have this information ? You could probably write a simple PHP or Perl mapscript app where you pass it the mapfile and it returns these info. You should be able to access it out of the map object once you load the mapfile. I'm pretty sure you can not get this directly from the cgi as it does not have the ability to query metadata and that inforamtion is not exposed via getcapabilities so that will not work. -Steve From woodbri at swoodbridge.com Tue Jan 29 13:24:08 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 29 Jan 2013 16:24:08 -0500 Subject: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output? In-Reply-To: <51081761.4060601@swoodbridge.com> References: <5106B34A.9040301@geoanalytic.com> <51081761.4060601@swoodbridge.com> Message-ID: <51083DF8.9060705@swoodbridge.com> Heck if you are going the Perl route, you could use Perl mapscript and build an app where you pass it the mapfile and from that you can return anything you want, in any format and not be limited to whats in the getcapabilities document. This would be more expandable to other information that is not included in the getcapabilities document. Andrea Peri was just asking about some of that information so it seems that others have this need also. -Steve W On 1/29/2013 1:39 PM, Stephen Woodbridge wrote: > Bob, > > Seems like this is trivial to do with a Perl wrapper. > Make a Perl script that makes a mapserver GetCapabilities request and > suck that into XML and reformat how you like. > > -Steve W > > On 1/28/2013 12:29 PM, Basques, Bob (CI-StPaul) wrote: >> Brent, >> >> Pretty much as you describe . . . >> >> I want a list of layers but in my own form (Not OGC), specifically, I?ve >> used a TEMPLATE in the past to output LISP code that I can run in >> AutoCAD as an executable, sort of a poor man?s importer for raster >> images. This has been working for over a decade now, but each layer has >> to be set up individually in the current architecture. The next leap >> forward would be to read a layer list from (??) the web as a service, >> and have the list pop out as a LISP construct for use in AutoCAD for >> choosing of layers. Right now we hand build a somewhat static dialog in >> AutoCAD to do this. >> >> The bigger goal, is to be able to add to the MapServer / GeoMoose data >> stores and have the new content appear automatically in the AutoCAD >> session as a new list item. I can write a intermediate helper app to >> read our GeoMoose MapBook for example and then send back the AutoLisp >> construct, but I was wondering if there were a way around this >> intermediate piece, but with a TEMPLATING capability. In the end it?s >> probably more flexible to go the helper app route, but . . .??? >> >> Bobb >> >> *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] >> *Sent:* Monday, January 28, 2013 11:20 AM >> *To:* Basques, Bob (CI-StPaul) >> *Cc:* mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] I've been accused of not using things >> the way they were intended, but . . . can a getcapabilities request be >> run through the MapServer TEMPLATE for output? >> >> Bob, >> >> I'm not sure I understand what you are trying to do (on the mapserver >> side or the Autocad side!). Do you want mapserver to return a list of >> layers (when sent an OGC GetCapabilities or equivalent non-standard >> request) in a format of your choosing, similar to the way >> template-driven output >> (http://mapserver.org/output/template_output.html) returns feature info >> in a custom format ? >> >> Best Regards, >> >> Brent Fraser >> >> On 1/28/2013 8:02 AM, Basques, Bob (CI-StPaul) wrote: >> >> All, >> >> So, I was thinking about adding support for Raster pulling from >> AutoCAD work sessions directly. We?ve had this capability in place >> for a number of years using MapServer calls to each layer >> individually. I?m researching the idea of rebuilding the importing >> routines but with the added functionality of reading a >> getcapabilities call to flesh out the listing of the available >> layers in the server. Yes I know there is a FDO provider in >> AutoCAD, but that is only available in Map and Civil, not regular >> AutoCAD (or ARCH, still??) Versions which we also support. >> >> First thought was to build a XML parser as a separate web service, >> that would make the call(s) to mapserver. This would output the >> data in a AutoCAD readable form such as AutoLISP. Another thought >> was to read our GeoMoose MapBook, an XML file, for listing out the >> available layers behind MapServer, this has the advantage of using >> our existing tools and methods for access the data and it would be >> completely automated with the GeoMoose MapBook becoming the master >> data catalog. >> >> Whatever comes of this will also be eventually morphed into a >> Feature importer (WFS, etc) as well, which we also already have in >> place, but in a manner that could be improved. >> >> So, back to the question, can a XML return from MapServer be passed >> through a TEMPLATE to change the output? >> >> Thanks >> >> Bobb >> >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From Andreas.Eichner at sid.sachsen.de Tue Jan 29 23:19:14 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 30 Jan 2013 08:19:14 +0100 Subject: [mapserver-users] How retrieve the maxsize information with an httprequest References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF497@KS-EVS1.smi.sachsen.de> > But to use it efficiently is necessary to know the > maxsize value applied in the mapfile of the wms server. > Is this information retrievable from the getcapabilities or there is a > differente cgi request to have this information ? Yes and no. From MapServer as /WMS_Capabilities/Service/Max. But this information is optional and only defined for WMS v1.3.0. So it won't be available for earlier version and probably not for other implementations. From Jukka.Rahkonen at mmmtike.fi Tue Jan 29 23:38:32 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 30 Jan 2013 07:38:32 +0000 Subject: [mapserver-users] How retrieve the maxsize information with an httprequest Message-ID: <84446DEF76453C439E9E97E438E13A637CDDCE@suutari.haapa.mmm.fi> Hi, How about making an utility that captures the layer bounds from GetCapabilities, takes the centre point of the bounds, checks the min/max scale limits from the GetCapabilities and then calculates a reasonable BBOX and makes a GetMap query with WIDTH=400 and HEIGTH=400. By increasing the outputsize incrementally the server sooner or later sends back something else than a valid image and that was it. -Jukka Rahkonen- Eichner, Andreas wrote: > > But to use it efficiently is necessary to know the maxsize value > > applied in the mapfile of the wms server. > > Is this information retrievable from the getcapabilities or there is a > > differente cgi request to have this information ? > > Yes and no. From MapServer as > /WMS_Capabilities/Service/Max. But this information is > optional and only defined for WMS v1.3.0. So it won't be available for earlier > version and probably not for other implementations. > _______________________________________________ > 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 Wed Jan 30 01:50:24 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 30 Jan 2013 10:50:24 +0100 Subject: [mapserver-users] How retrieve the maxsize information with anhttprequest References: <84446DEF76453C439E9E97E438E13A637CDDCE@suutari.haapa.mmm.fi> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF498@KS-EVS1.smi.sachsen.de> Although this would work you definitely will loose some friends out there if you go and set there server under attack :( Lets say you start with 400px and the server sets a limit of 4096px then you will request 400px, 800px, 1600px, 3200px 6400px, 4800px, 4000px, 4400px, 4200px, 4100px, 4050px, 4075px... to get an accuracy of <32px. And in general limits on width and height are indepenent of each other and should be discovered separatly. Now consider that on a server that's already under load. You can go with it but you won't be a nice guy anymore... > How about making an utility that captures the layer bounds > from GetCapabilities, takes the centre point of the bounds, > checks the min/max scale limits from the GetCapabilities and > then calculates a reasonable BBOX and makes a GetMap query > with WIDTH=400 and HEIGTH=400. By increasing the outputsize > incrementally the server sooner or later sends back something > else than a valid image and that was it. > > -Jukka Rahkonen- From Jukka.Rahkonen at mmmtike.fi Wed Jan 30 02:18:12 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 30 Jan 2013 10:18:12 +0000 Subject: [mapserver-users] How retrieve the maxsize information with anhttprequest Message-ID: <84446DEF76453C439E9E97E438E13A637CDF18@suutari.haapa.mmm.fi> Hi, I am a WMS server admin myself and I would not be worried about such use. They are just GetMaps and 20 or 100 GetMaps more in not an attack for my mind. Think about any OpenLayers application sending tiled GetMaps for a WMS server. They typically send more than 50 requests per every pan or zoom. Naturally when searching for the maximum image size there would be a few rather big WIDTHs and HEIGTHs but it would be enough to do the scanning once per session or even better, save the values on your computer for future needs. If the result is that WMS client caches some data it would mean less new GetMaps for our server later and that would be fine. -Jukka Rahkonen- Eichner, Andreas wrote: > Although this would work you definitely will loose some friends out there if > you go and set there server under attack :( Lets say you start with 400px and > the server sets a limit of 4096px then you will request 400px, 800px, 1600px, > 3200px 6400px, 4800px, 4000px, 4400px, 4200px, 4100px, 4050px, 4075px... to > get an accuracy of <32px. And in general limits on width and height are > indepenent of each other and should be discovered separatly. Now consider > that on a server that's already under load. You can go with it but you won't be > a nice guy anymore... > > > How about making an utility that captures the layer bounds from > > GetCapabilities, takes the centre point of the bounds, checks the > > min/max scale limits from the GetCapabilities and then calculates a > > reasonable BBOX and makes a GetMap query with WIDTH=400 and > > HEIGTH=400. By increasing the outputsize incrementally the server > > sooner or later sends back something else than a valid image and that > > was it. > > > > -Jukka Rahkonen- From Jukka.Rahkonen at mmmtike.fi Wed Jan 30 03:02:12 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 30 Jan 2013 11:02:12 +0000 Subject: [mapserver-users] How retrieve the maxsize information with anhttprequest Message-ID: <84446DEF76453C439E9E97E438E13A637CDF8F@suutari.haapa.mmm.fi> I forgot to think about these lines in the original question by Andrea Peri: "But to use it efficiently is necessary to know the maxsize value applied in the mapfile of the wms server." I do not quite agree. We support maxsize=10000 mainly for users who are downloading images in native resolution through WCS. However, it is not most efficient to download such big images. Better total throughput is achieved by downloading several smaller images, for example 2000x2000 pixel sized ones. I would say that it would be enough for a tiling client to check the multiplies of 256 the maximum being 1280x1280. - Does server support 1280x1280 pixels? If yes, stop, if no: - Does server support 1280x1024 pixels? If yes, stop, if no: - Does server support 1024x1024 pixels? If yes, stop, if no: - Does server support 1024x768 pixels? If yes, stop, if no:- - Does server support 768x768 pixels? If yes, stop, if no, call the WMS admin and ask kindly to make it support. -Jukka Rahkonen- Rahkonen Jukka wrote: > Hi, > > I am a WMS server admin myself and I would not be worried about such use. > They are just GetMaps and 20 or 100 GetMaps more in not an attack for my > mind. Think about any OpenLayers application sending tiled GetMaps for a > WMS server. They typically send more than 50 requests per every pan or > zoom. Naturally when searching for the maximum image size there would be > a few rather big WIDTHs and HEIGTHs but it would be enough to do the > scanning once per session or even better, save the values on your computer > for future needs. If the result is that WMS client caches some data it would > mean less new GetMaps for our server later and that would be fine. > > -Jukka Rahkonen- > > Eichner, Andreas wrote: > > > > Although this would work you definitely will loose some friends out > > there if you go and set there server under attack :( Lets say you > > start with 400px and the server sets a limit of 4096px then you will > > request 400px, 800px, 1600px, 3200px 6400px, 4800px, 4000px, 4400px, > > 4200px, 4100px, 4050px, 4075px... to get an accuracy of <32px. And in > > general limits on width and height are indepenent of each other and > > should be discovered separatly. Now consider that on a server that's > > already under load. You can go with it but you won't be a nice guy > anymore... > > > > > How about making an utility that captures the layer bounds from > > > GetCapabilities, takes the centre point of the bounds, checks the > > > min/max scale limits from the GetCapabilities and then calculates a > > > reasonable BBOX and makes a GetMap query with WIDTH=400 and > > > HEIGTH=400. By increasing the outputsize incrementally the server > > > sooner or later sends back something else than a valid image and > > > that was it. > > > > > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivanc at kestrel-tech.com Wed Jan 30 12:38:32 2013 From: ivanc at kestrel-tech.com (Ivan Cardenas) Date: Wed, 30 Jan 2013 14:38:32 -0600 Subject: [mapserver-users] PHP Clustering algo / library to replace Google clusters Message-ID: Is there a cluster algorithm library routine for PHP to replace the Google Maps API geotag icon clustering? These are the aggregations of many points into one point with the number of points on the circular icon. Thanks! -- Ivan Cardenas | Technical Director ivanc at kestrel-tech.com | Kestrel Technology Group +1-281-242-6349 main | +1-281-491-0379 fax +1-713-899-1415 US mobile CONFIDENTIALITY NOTICE This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daithiquinn at gmail.com Wed Jan 30 12:51:39 2013 From: daithiquinn at gmail.com (David Quinn) Date: Wed, 30 Jan 2013 15:51:39 -0500 Subject: [mapserver-users] PHP Clustering algo / library to replace Google clusters In-Reply-To: References: Message-ID: I'ved used the kmeans-postgresql clustering package to do this. A good example of how to use it is give here: http://gis.stackexchange.com/questions/11567/spatial-clustering-with-postgis -David On Wed, Jan 30, 2013 at 3:38 PM, Ivan Cardenas wrote: > Is there a cluster algorithm library routine for PHP to replace the Google > Maps API geotag icon clustering? These are the aggregations of many points > into one point with the number of points on the circular icon. > > Thanks! > > -- > Ivan Cardenas | Technical Director > ivanc at kestrel-tech.com | Kestrel Technology Group > +1-281-242-6349 main | +1-281-491-0379 fax > +1-713-899-1415 US mobile > > > CONFIDENTIALITY NOTICE > This electronic mail transmission is confidential, may be privileged and > should be read or retained only by the intended recipient. If you have > received this transmission in error, please immediately notify the sender > and delete it from your system. > > _______________________________________________ > 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 ivanc at kestrel-tech.com Wed Jan 30 12:54:37 2013 From: ivanc at kestrel-tech.com (Ivan Cardenas) Date: Wed, 30 Jan 2013 14:54:37 -0600 Subject: [mapserver-users] PHP Clustering algo / library to replace Google clusters In-Reply-To: References: Message-ID: Thanks David, can this be adapted to MYSQL to your knowledge? Thanks, Ivan On Wed, Jan 30, 2013 at 2:51 PM, David Quinn wrote: > I'ved used the kmeans-postgresql clustering package to do this. A good > example of how to use it is give here: > > http://gis.stackexchange.com/questions/11567/spatial-clustering-with-postgis > > -David > > On Wed, Jan 30, 2013 at 3:38 PM, Ivan Cardenas wrote: > >> Is there a cluster algorithm library routine for PHP to replace the >> Google Maps API geotag icon clustering? These are the aggregations of many >> points into one point with the number of points on the circular icon. >> >> Thanks! >> >> -- >> Ivan Cardenas | Technical Director >> ivanc at kestrel-tech.com | Kestrel Technology Group >> +1-281-242-6349 main | +1-281-491-0379 fax >> +1-713-899-1415 US mobile >> >> >> CONFIDENTIALITY NOTICE >> This electronic mail transmission is confidential, may be privileged and >> should be read or retained only by the intended recipient. If you have >> received this transmission in error, please immediately notify the sender >> and delete it from your system. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- Ivan Cardenas | Technical Director ivanc at kestrel-tech.com | Kestrel Technology Group +1-281-242-6349 main | +1-281-491-0379 fax +1-713-899-1415 US mobile CONFIDENTIALITY NOTICE This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daithiquinn at gmail.com Wed Jan 30 13:02:16 2013 From: daithiquinn at gmail.com (David Quinn) Date: Wed, 30 Jan 2013 16:02:16 -0500 Subject: [mapserver-users] PHP Clustering algo / library to replace Google clusters In-Reply-To: References: Message-ID: I doubt it can be used in it's current form as this is an extension for postgres. I installed it into postgres and used it that way. Perhaps someone has written this for MySQL too. -David On Wed, Jan 30, 2013 at 3:54 PM, Ivan Cardenas wrote: > Thanks David, > > can this be adapted to MYSQL to your knowledge? > > Thanks, > > Ivan > > > On Wed, Jan 30, 2013 at 2:51 PM, David Quinn wrote: > >> I'ved used the kmeans-postgresql clustering package to do this. A good >> example of how to use it is give here: >> >> http://gis.stackexchange.com/questions/11567/spatial-clustering-with-postgis >> >> -David >> >> On Wed, Jan 30, 2013 at 3:38 PM, Ivan Cardenas wrote: >> >>> Is there a cluster algorithm library routine for PHP to replace the >>> Google Maps API geotag icon clustering? These are the aggregations of many >>> points into one point with the number of points on the circular icon. >>> >>> Thanks! >>> >>> -- >>> Ivan Cardenas | Technical Director >>> ivanc at kestrel-tech.com | Kestrel Technology Group >>> +1-281-242-6349 main | +1-281-491-0379 fax >>> +1-713-899-1415 US mobile >>> >>> >>> CONFIDENTIALITY NOTICE >>> This electronic mail transmission is confidential, may be privileged and >>> should be read or retained only by the intended recipient. If you have >>> received this transmission in error, please immediately notify the sender >>> and delete it from your system. >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > > -- > Ivan Cardenas | Technical Director > ivanc at kestrel-tech.com | Kestrel Technology Group > +1-281-242-6349 main | +1-281-491-0379 fax > +1-713-899-1415 US mobile > > > CONFIDENTIALITY NOTICE > This electronic mail transmission is confidential, may be privileged and > should be read or retained only by the intended recipient. If you have > received this transmission in error, please immediately notify the sender > and delete it from your system. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jan 30 13:44:27 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 30 Jan 2013 17:44:27 -0400 Subject: [mapserver-users] PHP Clustering algo / library to replace Google clusters In-Reply-To: References: Message-ID: <5109943B.7030004@gatewaygeomatics.com> On 13-01-30 4:38 PM, Ivan Cardenas wrote: > Is there a cluster algorithm library routine for PHP to replace the > Google Maps API geotag icon clustering? These are the aggregations of > many points into one point with the number of points on the circular icon. > > Thanks! > Note that you can "aggregate many points into one point with the number of points on the circular icon" through the CLUSTER object in the mapfile for MapServer: http://www.mapserver.org/mapfile/cluster.html (this may not be applicable to your PHP needs, but should still be noted for the archives) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Thu Jan 31 00:45:29 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 31 Jan 2013 08:45:29 +0000 Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble Message-ID: <84446DEF76453C439E9E97E438E13A637CE2FD@suutari.haapa.mmm.fi> Hi Olivier, Sorry for the late response. I analyzed finally what axis order alternatives the srs_wkt field in the spatial_ref_sys table contains and the situation is a bit more complicated than you have believed. This is the result of a SELECT DISTINCT query 1) AXIS[""Easting"",EAST],AXIS[""Northing"",NORTH]]" 2) AXIS[""X"",EAST],AXIS[""Y"",NORTH]]" 3) AXIS[""Northing"",NORTH],AXIS[""Easting"",EAST]]" 4) AXIS[""X"",NORTH],AXIS[""Y"",EAST]]" 5) AXIS[""Y"",EAST],AXIS[""X"",NORTH]]" 6) AXIS[""X"",SOUTH],AXIS[""Y"",WEST]]" 7) AXIS[""Y"",NORTH],AXIS[""X"",EAST]]" 8) AXIS[""E(X)"",EAST],AXIS[""N(Y)"",NORTH]]" 9) AXIS[""x"",NORTH],AXIS[""y"",EAST]]" 10) AXIS[""Easting"",UNKNOWN],AXIS[""Northing"",UNKNOWN]]" 11) AXIS[""none"",NORTH],AXIS[""none"",EAST]]" 12) AXIS[""X"",UNKNOWN],AXIS[""Y"",UNKNOWN]]" 13) AXIS[""Northing"",UNKNOWN],AXIS[""Easting"",UNKNOWN]]" My conclusions: Must not be flipped: 1, 2, 8 Must be flipped: 3, 4, 9 Probably should not be flipped: 10, 12 Probably should be flipped: 11, 13 No idea: 5, 6, 7 The most important system for me is EPSG:3067 and it has the WKT as in alternative 1: AXIS[""Easting"",EAST],AXIS[""Northing"",NORTH]]" -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Olivier Courtin L?hetetty: 18. joulukuuta 2012 9:10 Vastaanottaja: Mapserver-Users (mapserver-users at lists.osgeo.org) Aihe: Re: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble On Mon, Dec 17, 2012 at 11:16 AM, Rahkonen Jukka > wrote: Hi Jukka, Nice to see you again here :) I have been running TinyOWS r558 for quite a long time because it is dealing almost right with the axis order of the projections I am commonly using. Now I had a fast try with the current TinyOWS 1.1.0 version but unfortunately I realized that it is doing wrong thing by flipping the axis with urn:ogc:def:crs:EPSG::3067. On this topic we will not make any progress, without a regression test. (OGC CITE don't cover this issue) Could you provide from a single point stored in the database, requests and answers awaited ? I could also try to write it by myself too, but will definitly need you to read it back, for all eastern stuff... What is the logic that TinyOWS is using when it decides whether the axis should be flipped or not for WFS 1.1.0? Mainly 2 factors, as i recall: - if it's SRS or CRS (meaning EPSG:xxxx or urn:ogc:def:crs:EPSG::xxxx) - if SRTEXT contain both AXIS["X",NORTH]] and AXIS["Easting",EAST]] -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Jan 31 01:49:34 2013 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 31 Jan 2013 09:49:34 +0000 Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble Message-ID: <84446DEF76453C439E9E97E438E13A637CE3B8@suutari.haapa.mmm.fi> Hi, Mapserver seems to rely on this list of coordinate systems with reversed axis order: https://github.com/mapserver/mapserver/blob/master/mapaxisorder.csv Because TinyOWS lives so close to Mapserver perhaps they could utilize the same list? It would be nice if Mapserver WFS and TinyOWS WFS would have the same understanding about the axis order. -Jukka- Rahkonen Jukka wrote: Hi Olivier, Sorry for the late response. I analyzed finally what axis order alternatives the srs_wkt field in the spatial_ref_sys table contains and the situation is a bit more complicated than you have believed. This is the result of a SELECT DISTINCT query 1) AXIS[""Easting"",EAST],AXIS[""Northing"",NORTH]]" 2) AXIS[""X"",EAST],AXIS[""Y"",NORTH]]" 3) AXIS[""Northing"",NORTH],AXIS[""Easting"",EAST]]" 4) AXIS[""X"",NORTH],AXIS[""Y"",EAST]]" 5) AXIS[""Y"",EAST],AXIS[""X"",NORTH]]" 6) AXIS[""X"",SOUTH],AXIS[""Y"",WEST]]" 7) AXIS[""Y"",NORTH],AXIS[""X"",EAST]]" 8) AXIS[""E(X)"",EAST],AXIS[""N(Y)"",NORTH]]" 9) AXIS[""x"",NORTH],AXIS[""y"",EAST]]" 10) AXIS[""Easting"",UNKNOWN],AXIS[""Northing"",UNKNOWN]]" 11) AXIS[""none"",NORTH],AXIS[""none"",EAST]]" 12) AXIS[""X"",UNKNOWN],AXIS[""Y"",UNKNOWN]]" 13) AXIS[""Northing"",UNKNOWN],AXIS[""Easting"",UNKNOWN]]" My conclusions: Must not be flipped: 1, 2, 8 Must be flipped: 3, 4, 9 Probably should not be flipped: 10, 12 Probably should be flipped: 11, 13 No idea: 5, 6, 7 The most important system for me is EPSG:3067 and it has the WKT as in alternative 1: AXIS[""Easting"",EAST],AXIS[""Northing"",NORTH]]" -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Olivier Courtin L?hetetty: 18. joulukuuta 2012 9:10 Vastaanottaja: Mapserver-Users (mapserver-users at lists.osgeo.org) Aihe: Re: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble On Mon, Dec 17, 2012 at 11:16 AM, Rahkonen Jukka > wrote: Hi Jukka, Nice to see you again here :) I have been running TinyOWS r558 for quite a long time because it is dealing almost right with the axis order of the projections I am commonly using. Now I had a fast try with the current TinyOWS 1.1.0 version but unfortunately I realized that it is doing wrong thing by flipping the axis with urn:ogc:def:crs:EPSG::3067. On this topic we will not make any progress, without a regression test. (OGC CITE don't cover this issue) Could you provide from a single point stored in the database, requests and answers awaited ? I could also try to write it by myself too, but will definitly need you to read it back, for all eastern stuff... What is the logic that TinyOWS is using when it decides whether the axis should be flipped or not for WFS 1.1.0? Mainly 2 factors, as i recall: - if it's SRS or CRS (meaning EPSG:xxxx or urn:ogc:def:crs:EPSG::xxxx) - if SRTEXT contain both AXIS["X",NORTH]] and AXIS["Easting",EAST]] -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Thu Jan 31 10:52:40 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 31 Jan 2013 19:52:40 +0100 Subject: [mapserver-users] Mapserver ignore the alternative style of layers when nested in wms_group_layer Message-ID: Hi, I open a ticket on this issue. https://github.com/mapserver/mapserver/issues/4578 But I hope to wrong something :) because I use really often the nested groups. So I like to know if something can confirm this issue. I'm using the mapserver 6.3-dev. thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From martin.kofahl at gmail.com Thu Jan 31 14:22:40 2013 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Thu, 31 Jan 2013 23:22:40 +0100 Subject: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good axis order trouble In-Reply-To: <84446DEF76453C439E9E97E438E13A637CE3B8@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A637CE3B8@suutari.haapa.mmm.fi> Message-ID: <1359670960.2128.26.camel@daisy> Hi Jukka, the mapaxisorder.csv was introduced with the axis order requirements of WMS 1.3.0/INSPIRE and is still a poor workaround to get things working. Accordning to [1] proj4 now supports an +axis parameter. Using the epsg file with +axis seems quite worthwhile to me, much better than an own list of codes. However, the epsg file shipped with proj4 4.8.0 doesn't look complete regarding +axis. I'll try to get an answer from the proj list. Martin [1] http://trac.osgeo.org/proj/wiki/GenParms > Hi, > > > > Mapserver seems to rely on this list of coordinate systems with > reversed axis order: > > https://github.com/mapserver/mapserver/blob/master/mapaxisorder.csv > > > > Because TinyOWS lives so close to Mapserver perhaps they could utilize > the same list? It would be nice if Mapserver WFS and TinyOWS WFS > would have the same understanding about the axis order. > > > > -Jukka- > > > > > > Rahkonen Jukka wrote: > > > > > Hi Olivier, > > > > Sorry for the late response. I analyzed finally what axis order > alternatives the srs_wkt field in the spatial_ref_sys table contains > and the situation is a bit more complicated than you have believed. > This is the result of a SELECT DISTINCT query > > > > 1) AXIS[""Easting"",EAST],AXIS[""Northing"",NORTH]]" > > 2) AXIS[""X"",EAST],AXIS[""Y"",NORTH]]" > > 3) AXIS[""Northing"",NORTH],AXIS[""Easting"",EAST]]" > > 4) AXIS[""X"",NORTH],AXIS[""Y"",EAST]]" > > 5) AXIS[""Y"",EAST],AXIS[""X"",NORTH]]" > > 6) AXIS[""X"",SOUTH],AXIS[""Y"",WEST]]" > > 7) AXIS[""Y"",NORTH],AXIS[""X"",EAST]]" > > 8) AXIS[""E(X)"",EAST],AXIS[""N(Y)"",NORTH]]" > > 9) AXIS[""x"",NORTH],AXIS[""y"",EAST]]" > > 10) AXIS[""Easting"",UNKNOWN],AXIS[""Northing"",UNKNOWN]]" > > 11) AXIS[""none"",NORTH],AXIS[""none"",EAST]]" > > 12) AXIS[""X"",UNKNOWN],AXIS[""Y"",UNKNOWN]]" > > 13) AXIS[""Northing"",UNKNOWN],AXIS[""Easting"",UNKNOWN]]" > > > > My conclusions: > > > > Must not be flipped: 1, 2, 8 > > Must be flipped: 3, 4, 9 > > Probably should not be flipped: 10, 12 > > Probably should be flipped: 11, 13 > > No idea: 5, 6, 7 > > > > The most important system for me is EPSG:3067 and it has the WKT as in > alternative 1: AXIS[""Easting"",EAST],AXIS[""Northing"",NORTH]]" > > > > -Jukka Rahkonen- > > > > > > > > L?hett?j?:mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Olivier > Courtin > L?hetetty: 18. joulukuuta 2012 9:10 > Vastaanottaja: Mapserver-Users (mapserver-users at lists.osgeo.org) > Aihe: Re: [mapserver-users] [TinyOWS] TinyOWS 1.1.0 and the old good > axis order trouble > > > > > On Mon, Dec 17, 2012 at 11:16 AM, Rahkonen Jukka > wrote: > > > Hi Jukka, > > Nice to see you again here :) > > I have been running TinyOWS r558 for quite a long time because it is > dealing almost right with the axis order of the projections I am > commonly using. Now I had a fast try with the current TinyOWS 1.1.0 > version but unfortunately I realized that it is doing wrong thing by > flipping the axis with urn:ogc:def:crs:EPSG::3067. > > > On this topic we will not make any progress, without a regression > test. > (OGC CITE don't cover this issue) > > Could you provide from a single point stored in the database, > requests and answers awaited ? > > I could also try to write it by myself too, > but will definitly need you to read it back, > for all eastern stuff... > > > What is the logic that TinyOWS is using when it decides > whether the axis should be flipped or not for WFS 1.1.0? > > > Mainly 2 factors, as i recall: > - if it's SRS or CRS (meaning EPSG:xxxx or > urn:ogc:def:crs:EPSG::xxxx) > - if SRTEXT contain both AXIS["X",NORTH]] and AXIS["Easting",EAST]] > > > > -- > Olivier > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users