From ahmettemiz88 at gmail.com Mon Jun 1 05:16:18 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Mon, 1 Jun 2015 15:16:18 +0300 Subject: [mapserver-users] displaying postgis-DEM-raster Message-ID: hello How can I display postgis-DEM-raster map that has wide range elevation data ? as :(DEM data) < Minimum=1.000, Maximum=5121.000, Mean=1133.750, StdDev=655.812 > Can you give me hints ? kind regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsalas at pinar.geocuba.cu Mon Jun 1 05:08:59 2015 From: fsalas at pinar.geocuba.cu (Francisco Salas Rosette) Date: Mon, 1 Jun 2015 08:08:59 -0400 Subject: [mapserver-users] Failed to draw Oracle9i layer Message-ID: <008401d09c63$be933c40$3bb9b4c0$@pinar.geocuba.cu> Hi, I am having trouble making one test with loading the Oracle9i layer , using PHP Version 5.4.3 and MapServer CGI 6.0.3 The layer definition in my map file is : LAYER NAME Consejo_Popular TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "******/*****@catastro" DATA "MI_SHAPE FROM CONSEJOSPOPULARES using SRID=4326" DUMP TRUE CLASS OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END I use this "Steps to Enable Oracle 10g or 11g Support in MS4W" , but I test in oracle9i And launch this error message , Warning: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to draw layer named 'Consejo_Popular'. in C:\ms4w\Apache\htdocs\MsExt\Components\Reference\Server\Reference.php on line 108 Warning: mapObj::draw(): [MapServer Error]: msOracleSpatialLayerWhichShapes(): Error: ORA-29902: error in executing ODCIIndexStart() routine ORA-01722: invalid number . Query statement: SELECT rownum, MI_SHAPE FROM CONSEJOSPOPULARES WHERE SDO_FILTER( MI_SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. in C:\ms4w\Apache\htdocs\MsExt\Components\Reference\Server\Reference.php on line 108 How resolve this problems ?? Thanks , Francisco Salas ---------------------------------------------------------------------------------------------------- Anuncie sus servicios en ANDARIEGO? aplicaci?n para celulares sobre mapas de toda Cuba. Visite el sitio http://andariego.geocuba.cu o http://www.andariego.cu, cont?ctenos por el correo andariego at geosi.geocuba.cu o por el tel?fono 8817400. Ponga su informaci?n al servicio de todos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Mon Jun 1 07:12:25 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Mon, 1 Jun 2015 14:12:25 +0000 Subject: [mapserver-users] [EXTERNAL] Failed to draw Oracle9i layer In-Reply-To: <008401d09c63$be933c40$3bb9b4c0$@pinar.geocuba.cu> References: <008401d09c63$be933c40$3bb9b4c0$@pinar.geocuba.cu> Message-ID: Francisco, Change your DATA statement to be : DATA "MI_SHAPE FROM CONSEJOSPOPULARES using SRID 4326" Eg, remove the = sign. Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: Francisco Salas Rosette > Date: Monday, June 1, 2015 at 8:08 AM To: mapserver-users > Subject: [EXTERNAL] [mapserver-users] Failed to draw Oracle9i layer Resent-From: Michael Smith > Hi, I am having trouble making one test with loading the Oracle9i layer , using PHP Version 5.4.3 and MapServer CGI 6.0.3 The layer definition in my map file is : LAYER NAME Consejo_Popular TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "******/*****@catastro" DATA "MI_SHAPE FROM CONSEJOSPOPULARES using SRID=4326" DUMP TRUE CLASS OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END I use this ?Steps to Enable Oracle 10g or 11g Support in MS4W? , but I test in oracle9i And launch this error message , Warning: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to draw layer named 'Consejo_Popular'. in C:\ms4w\Apache\htdocs\MsExt\Components\Reference\Server\Reference.php on line 108 Warning: mapObj::draw(): [MapServer Error]: msOracleSpatialLayerWhichShapes(): Error: ORA-29902: error in executing ODCIIndexStart() routine ORA-01722: invalid number . Query statement: SELECT rownum, MI_SHAPE FROM CONSEJOSPOPULARES WHERE SDO_FILTER( MI_SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. in C:\ms4w\Apache\htdocs\MsExt\Components\Reference\Server\Reference.php on line 108 How resolve this problems ?? Thanks , Francisco Salas ---------------------------------------------------------------------------------------------------- Anuncie sus servicios en ANDARIEGO? aplicaci?n para celulares sobre mapas de toda Cuba. Visite el sitio http://andariego.geocuba.cu o http://www.andariego.cu, cont?ctenos por el correo andariego at geosi.geocuba.cu o por el tel?fono 8817400. Ponga su informaci?n al servicio de todos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Mon Jun 1 08:20:56 2015 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Mon, 01 Jun 2015 17:20:56 +0200 Subject: [mapserver-users] GetFeatureInfo on an WFS-Client-Layer Message-ID: <556C7858.4060100@mapmedia.de> Hi, I am confused, does GetFeatureInfo on an WFS-Client-Layer work? The Capablites say the layer ist queryable, but the request-answer ist 'no object fond'. J?rg -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 From ben at ausvet.com.au Mon Jun 1 18:32:08 2015 From: ben at ausvet.com.au (Ben Madin) Date: Tue, 2 Jun 2015 09:32:08 +0800 Subject: [mapserver-users] displaying postgis-DEM-raster In-Reply-To: References: Message-ID: I could be wrong, but this would appear to be mostly a question about what you are trying to display... For example, if you were trying to show other data, but on a dem you might want to scale the vertical axis to minimise the distortion and any obscuring of important data. If you are trying to show the extremes of the ?landscape? you might want to scale by standard deviation. If the extremes are not so important, you might want to try a log transformation based on your mean. This can certainly help when you have a non-parametric distribution. Again, it would probably also depend on whether the outcome was for mountaineers or kayakers when choosing you transformation parameters. Hth Ben On Monday, June 1, 2015, Ahmet Temiz wrote: > hello > > How can I display postgis-DEM-raster map that has wide range elevation > data ? > > as :(DEM data) > < Minimum=1.000, Maximum=5121.000, Mean=1133.750, StdDev=655.812 > > > Can you give me hints ? > > kind regards > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > -- Sent from my iPhone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue Jun 2 05:08:20 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 2 Jun 2015 08:08:20 -0400 Subject: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer In-Reply-To: <556C7858.4060100@mapmedia.de> References: <556C7858.4060100@mapmedia.de> Message-ID: GetFeatureInfo is a WMS request, not WFS. More details would help, to help.. J?rg Thomsen @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-06-01 11:20 Veuillez r?pondre ? jt at mapmedia.de A "mapserver-users at lists.osgeo.org" cc Objet [mapserver-users] GetFeatureInfo on an WFS-Client-Layer Hi, I am confused, does GetFeatureInfo on an WFS-Client-Layer work? The Capablites say the layer ist queryable, but the request-answer ist 'no object fond'. J?rg -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 _______________________________________________ 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 jt at mapmedia.de Tue Jun 2 05:51:29 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Tue, 02 Jun 2015 14:51:29 +0200 Subject: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer In-Reply-To: References: <556C7858.4060100@mapmedia.de> Message-ID: <556DA6D1.1090901@mapmedia.de> Hello Steve, Am 02.06.2015 um 14:08 schrieb Steve.Toutant at inspq.qc.ca: > GetFeatureInfo is a WMS request, not WFS. > More details would help, to help.. >> I am confused, does GetFeatureInfo on an WFS-Client-Layer work? >> The Capablites say the layer ist queryable, but the request-answer ist >> 'no object fond'. you are right. But my problem is a WFS-*client* Layer: My datasource is a WFS and I want to provide a WMS. GetMap works on that wms-Layer, but not GetFeatureInfo. GetFeatureInfo is enabled, but the answer is always 'no object found'. I would like to know if this generally should work, because I think mapserver only requests the gml temporarily to render the map and then there is no geodata for answering a later featureinfo-request. I tested with 6.4 J?rg From ahmettemiz88 at gmail.com Tue Jun 2 05:51:56 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 2 Jun 2015 15:51:56 +0300 Subject: [mapserver-users] java - mapscript -postgis - raster FAILS Message-ID: Hello I am trying to retrieve postgis-raster layer. It fails. I tested data with: 1. shp2img debug 4 -m trdem1.map -l trdem_3857_ov10 -o odem22.tif ; display odem22.tif 2. gdalwarp 'PG: dbname=tr22 host=localhost user=orkun password=222222 port=5432 schema=public table=o_10_trdem2_3857 where=" ST_Intersects(rast, ST_MakeEnvelope( 3235971.7976 , 4950328.02287796 , 3255971.7976 , 4960328.02287796,3857 ))" mode=2 ' odem22.tif they look OK But in java side, mapscript fails. ?here is the related java-mapscript code.? ?~~~~~~~~~~~~~~~~~~? ? dem_layer = mapDem3857.getLayerByName("trdem_3857_ov8"); data="'PG: dbname=tr22 host=localhost user=orkun password=222222 port=5432 schema=public table=o_8_trdem2_3857 "; data=data+ " where=\" ST_Intersects(rast, ST_MakeEnvelope( " ; String geo_data= String.valueOf(minx)+" , "+String.valueOf(miny)+" , "+String.valueOf(maxx)+" , "+String.valueOf(maxy) ; data=data+geo_data+",3857 ))\" mode=2 ' "; log.info(" *** data *** "+data); dem_layer.setData(data); dem_layer.setStatus(1); imageObj img = mapDem3857.draw(); byte[] bytes=img.getBytes(); img.save("/usr/local/dem8.tif", mapDem3857); log.info("mapDem3857 bytes "+ bytes.length); return bytes; ? ?~~~~~~~~~~~~~~~~~~? What am I doing wrong ? regards? -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue Jun 2 05:59:44 2015 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 2 Jun 2015 08:59:44 -0400 Subject: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer In-Reply-To: <556DA6D1.1090901@mapmedia.de> References: <556C7858.4060100@mapmedia.de> <556DA6D1.1090901@mapmedia.de> Message-ID: I'm confused , do you mean that you have a WFS layer that you want to publish as a WMS? Could you send the layer definition of your mapfile? Also have a look at TEMPLATE and DUMP in the layer def J?rg Thomsen @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2015-06-02 08:51 Veuillez r?pondre ? jt at mapmedia.de A "mapserver-users at lists.osgeo.org" cc Objet Re: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer Hello Steve, Am 02.06.2015 um 14:08 schrieb Steve.Toutant at inspq.qc.ca: > GetFeatureInfo is a WMS request, not WFS. > More details would help, to help.. >> I am confused, does GetFeatureInfo on an WFS-Client-Layer work? >> The Capablites say the layer ist queryable, but the request-answer ist >> 'no object fond'. you are right. But my problem is a WFS-*client* Layer: My datasource is a WFS and I want to provide a WMS. GetMap works on that wms-Layer, but not GetFeatureInfo. GetFeatureInfo is enabled, but the answer is always 'no object found'. I would like to know if this generally should work, because I think mapserver only requests the gml temporarily to render the map and then there is no geodata for answering a later featureinfo-request. I tested with 6.4 J?rg _______________________________________________ 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 jt at mapmedia.de Tue Jun 2 06:27:06 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Tue, 02 Jun 2015 15:27:06 +0200 Subject: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer In-Reply-To: References: <556C7858.4060100@mapmedia.de> <556DA6D1.1090901@mapmedia.de> Message-ID: <556DAF2A.3000608@mapmedia.de> Am 02.06.2015 um 14:59 schrieb Steve.Toutant at inspq.qc.ca: > I'm confused , do you mean that you have a WFS layer that you want to > publish as a WMS? > Could you send the layer definition of your mapfile? > Also have a look at TEMPLATE and DUMP in the layer def this is my mapfile: http://tib.osmct.de/berlin_boris_wfs.map it has a template and dump is deprecated as I know. J?rg > *J?rg Thomsen @lists.osgeo.org* > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > 2015-06-02 08:51 > Veuillez r?pondre ? > jt at mapmedia.de > > > > A > "mapserver-users at lists.osgeo.org" > cc > > Objet > Re: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer > > > > > > > > > > > Hello Steve, > > Am 02.06.2015 um 14:08 schrieb Steve.Toutant at inspq.qc.ca: >> GetFeatureInfo is a WMS request, not WFS. >> More details would help, to help.. > >>> I am confused, does GetFeatureInfo on an WFS-Client-Layer work? >>> The Capablites say the layer ist queryable, but the request-answer ist >>> 'no object fond'. > > you are right. But my problem is a WFS-*client* Layer: My datasource is > a WFS and I want to provide a WMS. GetMap works on that wms-Layer, but > not GetFeatureInfo. GetFeatureInfo is enabled, but the answer is always > 'no object found'. > > I would like to know if this generally should work, because I think > mapserver only requests the gml temporarily to render the map and then > there is no geodata for answering a later featureinfo-request. > > I tested with 6.4 > > J?rg > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From pasquale.didonato at gmail.com Tue Jun 2 07:40:24 2015 From: pasquale.didonato at gmail.com (Pasquale Di Donato) Date: Tue, 2 Jun 2015 16:40:24 +0200 Subject: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer In-Reply-To: <556DAF2A.3000608@mapmedia.de> References: <556C7858.4060100@mapmedia.de> <556DA6D1.1090901@mapmedia.de> <556DAF2A.3000608@mapmedia.de> Message-ID: Hi J?rg, I'm not really an expert but your GetFeature request returns: ...... ....... ...... Maybe your gml_include should be something like: 'gml_include_items' 'fis:GEMEINDE, fis:BEZIRK, fis:BRW' On Tue, Jun 2, 2015 at 3:27 PM, J?rg Thomsen wrote: > > > Am 02.06.2015 um 14:59 schrieb Steve.Toutant at inspq.qc.ca: > > I'm confused , do you mean that you have a WFS layer that you want to > > publish as a WMS? > > Could you send the layer definition of your mapfile? > > Also have a look at TEMPLATE and DUMP in the layer def > > this is my mapfile: > http://tib.osmct.de/berlin_boris_wfs.map > > it has a template and dump is deprecated as I know. > > J?rg > > > *J?rg Thomsen @lists.osgeo.org* > > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > > > 2015-06-02 08:51 > > Veuillez r?pondre ? > > jt at mapmedia.de > > > > > > > > A > > "mapserver-users at lists.osgeo.org" > > > cc > > > > Objet > > Re: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer > > > > > > > > > > > > > > > > > > > > > > Hello Steve, > > > > Am 02.06.2015 um 14:08 schrieb Steve.Toutant at inspq.qc.ca: > >> GetFeatureInfo is a WMS request, not WFS. > >> More details would help, to help.. > > > >>> I am confused, does GetFeatureInfo on an WFS-Client-Layer work? > >>> The Capablites say the layer ist queryable, but the request-answer ist > >>> 'no object fond'. > > > > you are right. But my problem is a WFS-*client* Layer: My datasource is > > a WFS and I want to provide a WMS. GetMap works on that wms-Layer, but > > not GetFeatureInfo. GetFeatureInfo is enabled, but the answer is always > > 'no object found'. > > > > I would like to know if this generally should work, because I think > > mapserver only requests the gml temporarily to render the map and then > > there is no geodata for answering a later featureinfo-request. > > > > I tested with 6.4 > > > > J?rg > > _______________________________________________ > > 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 lars.schylberg at blixtmail.se Tue Jun 2 11:40:45 2015 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Tue, 02 Jun 2015 20:40:45 +0200 Subject: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer In-Reply-To: <556DAF2A.3000608@mapmedia.de> References: <556C7858.4060100@mapmedia.de> <556DA6D1.1090901@mapmedia.de> <556DAF2A.3000608@mapmedia.de> Message-ID: I think that You need to declare a "wms_include_items" "all" in the LAYER METADATA section. or 'wms_include_items' 'GEMEINDE, BEZIRK, BRW' if You just would like to expose a some items. /Lars S. -----Originalmeddelande----- > Fr?n: "J?rg Thomsen" > Till: mapserver-users at lists.osgeo.org > Datum: 2015-06-02 15:27 > ?mne: Re: [mapserver-users] RE GetFeatureInfo on an WFS-Client-Layer > > Am 02.06.2015 um 14:59 schrieb Steve.Toutant at inspq.qc.ca: > > I'm confused , do you mean that you have a WFS layer that you want to > > publish as a WMS? > > Could you send the layer definition of your mapfile? > > Also have a look at TEMPLATE and DUMP in the layer def > > this is my mapfile: > http://tib.osmct.de/berlin_boris_wfs.map > > it has a template and dump is deprecated as I know. > > J?rg > > > *J?rg Thomsen @lists.osgeo.org* > > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > > > 2015-06-02 08:51 > > Veuillez r?pondre ? > > jt at mapmedia.de > > > > > > ????? > > A > > ?????"mapserver-users at lists.osgeo.org" > > cc > > ????? > > Objet > > ?????Re: [mapserver-users] RE ?GetFeatureInfo on an WFS-Client-Layer > > > > > > ????? > > > > > > > > > > > > > > > > Hello ?Steve, > > > > Am 02.06.2015 um 14:08 schrieb Steve.Toutant at inspq.qc.ca: > >> GetFeatureInfo is a WMS request, not WFS. > >> More details would help, to help.. > > > >>> I am confused, does GetFeatureInfo on an WFS-Client-Layer work? > >>> The Capablites say the layer ist queryable, but the request-answer ist > >>> 'no object fond'. > > > > you are right. But my problem is a WFS-*client* Layer: My datasource is > > a WFS and I want to provide a WMS. GetMap works on that wms-Layer, but > > not GetFeatureInfo. GetFeatureInfo is enabled, but the answer is always > > 'no object found'. > > > > I would like to know if this generally should work, because I think > > mapserver only requests the gml temporarily to render the map and then > > there is no geodata for answering a later featureinfo-request. > > > > I tested with 6.4 > > > > J?rg > > _______________________________________________ > > 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 kirandziskig at gmail.com Tue Jun 2 12:58:47 2015 From: kirandziskig at gmail.com (gorank) Date: Tue, 2 Jun 2015 12:58:47 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes Message-ID: <1433275127210-5208743.post@n6.nabble.com> When I try to get WMS service in QGIS from this link http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map& I get layers defined in mapserver mapfile. When I call lakes as polygons, and lines there is no problem to show this elements together with google map but when I try to call polygon layer with few classes defined with runtime substitution parameter, the layer is not shown. How to solve it. Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Jun 2 13:18:43 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 02 Jun 2015 17:18:43 -0300 Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <1433275127210-5208743.post@n6.nabble.com> References: <1433275127210-5208743.post@n6.nabble.com> Message-ID: <556E0FA3.8070902@gatewaygeomatics.com> That's a cool WMS service! Regarding your problem, I suppose you should include more details like parts of your mapfile, so the community can help you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-06-02 4:58 PM, gorank wrote: > When I try to get WMS service in QGIS from this link > > http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map& > > I get layers defined in mapserver mapfile. When I call lakes as polygons, > and lines there is no problem to show this elements together with google map > but when I try to call polygon layer with few classes defined with runtime > substitution parameter, the layer is not shown. > How to solve it. > > Goran > > From kirandziskig at gmail.com Tue Jun 2 13:33:23 2015 From: kirandziskig at gmail.com (gorank) Date: Tue, 2 Jun 2015 13:33:23 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <556E0FA3.8070902@gatewaygeomatics.com> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> Message-ID: <1433277203090-5208756.post@n6.nabble.com> Thanks Jeff, part of the mapfile for particular layer is as follow. It shows municipalities in few classes with differrent criteria for attribute YEAR that is chosen from dropdown list in openlayers LAYER DATA "NAS001.shp" EXTENT 7407523.716202 4519137.450122 7716943.221608 4697261.550122 LABELITEM "OPT" LABELMAXSCALEDENOM 443652 METADATA "wms_srs" "EPSG:3909 EPSG:4326 EPSG:900913 EPSG:6316" "wms_onlineresource" "http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&" "wms_enable_request" "*" "wms_feature_info_mime_type" "text/html" "coordsys_name" "EPSG:3909 - MGI 1901 / Balkans zone 7" "wms_title" "Opstini" END # METADATA NAME "Opstini" PROJECTION "init=epsg:3909" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" TYPE POLYGON UNITS METERS VALIDATION "godina" "^[12][09][0-9][0-9]$" #THIS IS RUNTIME SUBSTITION PARAMETER IT MEANS "YEAR" END # VALIDATION CLASS NAME "klasa_1" EXPRESSION ([%godina%] > 0 and [%godina%] < 5) LABEL FONT "arial" SIZE 8 ENCODING "ISO-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 255 255 128 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "4.9 -?223" END # CLASS CLASS NAME "klasa_2" EXPRESSION ([%godina%] >= 5 and [%godina%] < 10) LABEL FONT "arial" SIZE 8 ENCODING "CP1251" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 250 209 85 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "5.0 - 9.9 -" END # CLASS CLASS NAME "klasa_3" EXPRESSION ([%godina%] >=10 and [%godina%] < 15) LABEL FONT "arial" SIZE 8 ENCODING "CP1251" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 242 167 46 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "10.0 - 14.9 -" END # CLASS CLASS NAME "klasa_4" EXPRESSION ([%godina%] >= 15 and [%godina%] < 20) LABEL FONT "arial" SIZE 8 ENCODING "CP1251" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 173 83 19 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "15.0 - 19.9 - 5" END # CLASS CLASS NAME "klasa_5" EXPRESSION ([%godina%] >= 20 and [%godina%] < 10000) LABEL FONT "arial" SIZE 8 ENCODING "CP1251" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 107 0 0 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "20 ? ??????" END # CLASS CLASS NAME "klasa_0" EXPRESSION ([%godina%] = 100000) LABEL FONT "arial" SIZE 8 ENCODING "CP1251" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 100 100 100 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "???? ??????" END # CLASS CLASS EXPRESSION ([%godina%] = 10000) LABEL FONT "arial" SIZE 8 ENCODING "ISO-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 200 200 200 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE END # CLASS END # LAYER The Full URL http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&GODINA=2009&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600 shows the map in the browser. Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208756.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.basques at ci.stpaul.mn.us Tue Jun 2 13:48:25 2015 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 2 Jun 2015 20:48:25 +0000 Subject: [mapserver-users] color range fade to transparent. Message-ID: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> All, Anyone know how to use a transparent color on one end of the coloring option? COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent It there a RGB color to use for Transparency to fade to? I basically want to fade a line based on age to nothing. Thanks bobb From ben at ausvet.com.au Tue Jun 2 14:17:10 2015 From: ben at ausvet.com.au (Ben Madin) Date: Wed, 3 Jun 2015 05:17:10 +0800 Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <1433277203090-5208756.post@n6.nabble.com> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> Message-ID: Goran, It is not clear to me what you are trying to do. It appears that you are suggesting including a year (?godina??) in your request, > On 2015-06-03, at 04:33 , gorank wrote: > > VALIDATION > "godina" "^[12][09][0-9][0-9]$" #THIS IS RUNTIME SUBSTITION PARAMETER IT MEANS ?YEAR" > END # VALIDATION but the classes in the mapfile seem to be expecting numbers from 0 up? Is this what you wanted, or are there values in the dbf columns that you wanted to be using? > CLASS > NAME "klasa_1" > EXPRESSION ([%godina%] > 0 and [%godina%] < 5) > LABEL > FONT "arial" > SIZE 8 > ENCODING "ISO-8859-5" cheers Ben -- Ben Madin t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services Western Australia AusVet's website: http://www.ausvet.com.au This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. From bob.basques at ci.stpaul.mn.us Tue Jun 2 14:23:03 2015 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 2 Jun 2015 21:23:03 +0000 Subject: [mapserver-users] color range fade to transparent. In-Reply-To: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> References: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> Message-ID: <3DDAE3E3-740A-48C3-BA08-A6284316B92F@ci.stpaul.mn.us> All answering my own question . . . I think this is working: Set TRANSPARENT and the IMAGECOLOR in the MAP block: TRANSPARENT true IMAGECOLOR 254 254 254 . . . then, set the COLORRNGE accordingly: COLORRANGE 255 0 0 254 254 254 ## Red to Transparent bobb > On Jun 2, 2015, at 3:48 PM, Basques, Bob (CI-StPaul) wrote: > > All, > > Anyone know how to use a transparent color on one end of the coloring option? > > COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent > > It there a RGB color to use for Transparency to fade to? I basically want to fade a line based on age to nothing. > > Thanks > > bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Robert.Sanson at asurequality.com Tue Jun 2 14:25:05 2015 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 2 Jun 2015 21:25:05 +0000 Subject: [mapserver-users] color range fade to transparent. In-Reply-To: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> References: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> Message-ID: <44008e5eb97d4553b5cd1eaf393ebda0@OPASAKLPMBX01.nz01a.opaas.net.nz> Hi Bob You need an alpha (opacity) value that would go from 1 to 0. Can you set an opacity value in your database as an attribute that is calculated from age? Then maybe you could set the OPACITY in your layer to read it from the database column? Your output format should support RGBa values, so GIF or PNG. Cheers, Robert -----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: Wednesday, 3 June 2015 8:48 a.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] color range fade to transparent. All, Anyone know how to use a transparent color on one end of the coloring option? COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent It there a RGB color to use for Transparency to fade to? I basically want to fade a line based on age to nothing. Thanks bobb _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ben at ausvet.com.au Tue Jun 2 14:27:42 2015 From: ben at ausvet.com.au (Ben Madin) Date: Wed, 3 Jun 2015 05:27:42 +0800 Subject: [mapserver-users] color range fade to transparent. In-Reply-To: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> References: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> Message-ID: <24579BB2-EF28-4DE3-A6F3-C2991BDDF6C8@ausvet.com.au> Bob, Nice, I never knew that such a colorrange option existed (at least, I couldn?t find it documented anywhere?) but I would have presumed maybe you could specify the colour using the alpha like any other colour? > COLORRANGE 255 0 0 255 255 255 255 0 ## red -> transparent Alternatively, if you had a common background colour, you could fade to that? cheers Ben > On 2015-06-03, at 04:48 , Basques, Bob (CI-StPaul) wrote: > > All, > > Anyone know how to use a transparent color on one end of the coloring option? > > COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent > > It there a RGB color to use for Transparency to fade to? I basically want to fade a line based on age to nothing. > > Thanks > > bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ben Madin t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services Western Australia AusVet's website: http://www.ausvet.com.au This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. From kirandziskig at gmail.com Tue Jun 2 14:30:24 2015 From: kirandziskig at gmail.com (gorank) Date: Tue, 2 Jun 2015 14:30:24 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> Message-ID: <1433280624651-5208769.post@n6.nabble.com> Here is image of all layers defined in mapfile and called with URL http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&GODINA=2009&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600 Here is image of QGIS with all layers called plus Google Maps. All defined layers in mapfile are shown except of layer Opstini (means municipalities). Why I cannot see the layer with municipalities and few classes? Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208769.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.basques at ci.stpaul.mn.us Tue Jun 2 15:33:43 2015 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 2 Jun 2015 22:33:43 +0000 Subject: [mapserver-users] color range fade to transparent. In-Reply-To: <24579BB2-EF28-4DE3-A6F3-C2991BDDF6C8@ausvet.com.au> References: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> <24579BB2-EF28-4DE3-A6F3-C2991BDDF6C8@ausvet.com.au> Message-ID: All, My solution below turned out to not be correct either. It just ramps down from RED to the color WHITE, no transparency. Here is the layer block I?m using that I?m trying to fade to a transparent feature: MAP TRANSPARENT true IMAGECOLOR 254 254 254 LAYER METADATA "ows_title" "bbox" "gml_include_items" "all" END GROUP 'users' NAME 'bbox' STATUS ON TYPE LINE ## the following greabs a 5 min chunk of data (BBOX geoms from the database from 28 hrs ago and assigns a seq and elapsed time column to the result. DATA "bbox from ( SELECT row_number() over (order by accessed_at nulls last) as seq, date_part('epoch', (now() - INTERVAL '28 hours' - accessed_at)::interval) as elapsed, id, accessed_at, bbox FROM layer_metrics Where accessed_at < (NOW() - INTERVAL '28 hours') AND accessed_at >= (NOW() - INTERVAL '28 hours' - INTERVAL '5 minute') ) as subquery using unique id using srid=200068" LABELITEM "elapsed" CLASS #NAME "5 Minute Trail" EXPRESSION ([elapsed] >= 0 AND [elapsed] < 300) ## 0-5min STYLE OUTLINECOLOR 0 0 0 OUTLINEWIDTH 1 #COLOR 0 255 0 COLORRANGE 255 0 0 254 254 254 ##red to opaque (see IMAGECOLOR in the MAP block above) DATARANGE 0 300 RANGEITEM "elapsed" END END END END bobb On Jun 2, 2015, at 4:27 PM, Ben Madin > wrote: Bob, Nice, I never knew that such a colorrange option existed (at least, I couldn?t find it documented anywhere?) but I would have presumed maybe you could specify the colour using the alpha like any other colour? COLORRANGE 255 0 0 255 255 255 255 0 ## red -> transparent Alternatively, if you had a common background colour, you could fade to that? cheers Ben On 2015-06-03, at 04:48 , Basques, Bob (CI-StPaul) > wrote: All, Anyone know how to use a transparent color on one end of the coloring option? COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent It there a RGB color to use for Transparency to fade to? I basically want to fade a line based on age to nothing. Thanks bobb _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ben Madin t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services Western Australia AusVet's website: http://www.ausvet.com.au This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Wed Jun 3 00:38:45 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Wed, 03 Jun 2015 09:38:45 +0200 Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <1433280624651-5208769.post@n6.nabble.com> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> Message-ID: <556EAF05.3000702@mapmedia.de> Hi Goran, problem solved? it seems to work...? these two requests result in different maps: http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2013%20%3E%3E%20mapsermapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini,Regioni,DrzGran,Ezera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2013 http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2013%20%3E%3E%20mapsermapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini,Regioni,DrzGran,Ezera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2009 What I don't understand is your classification. The validation only allows 4-digit values and there's only one class that fits ( EXPRESSION ([%godina%] >= 20 and [%godina%] < 10000)). Or do you only wnat to know why your WMS does not work with qgis? There you have to add your vendor parameter to the base url: http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013& *AND* you have to check the option 'ingnore getMap-URI from Capabilities' (or sth like that, don't know the english expression). J?rg Am 02.06.2015 um 23:30 schrieb gorank: > Here is image of all layers defined in mapfile and called with URL > > http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&GODINA=2009&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600 > > > > Here is image of QGIS with all layers called plus Google Maps. All defined > layers in mapfile are shown except of layer Opstini (means municipalities). > > > > Why I cannot see the layer with municipalities and few classes? > > Goran > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208769.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 jt at mapmedia.de Wed Jun 3 00:54:06 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Wed, 03 Jun 2015 09:54:06 +0200 Subject: [mapserver-users] color range fade to transparent. In-Reply-To: References: <4DB27EDC-22DE-4627-9A13-069634EBCF9B@ci.stpaul.mn.us> <24579BB2-EF28-4DE3-A6F3-C2991BDDF6C8@ausvet.com.au> Message-ID: <556EB29E.1040303@mapmedia.de> Hi Bob, this cannot work I think. A colorrange from 255 0 0 to 254 254 254 renders a map with many colors. In best case only data values at 300 will be rendered 254 254 254 (perhaps you can check that with a color-picker? perhaps a clean 254 254 254 is never reached). But I think you would like to have a layer where the smallest value is not transparent, the highest value is totally transparent and the values between are a bit transparent, right? I think you only can set the opacity for the whole layer. J?rg Am 03.06.2015 um 00:33 schrieb Basques, Bob (CI-StPaul): > All, > > My solution below turned out to not be correct either. It just ramps > down from RED to the color WHITE, no transparency. > > Here is the layer block I?m using that I?m trying to fade to a > transparent feature: > > MAP > > TRANSPARENT true > IMAGECOLOR 254 254 254 > > > > LAYER > METADATA > "ows_title" "bbox" > "gml_include_items" "all" > END > GROUP 'users' > NAME 'bbox' > STATUS ON > TYPE LINE > > > > > > ## the following greabs a 5 min chunk of data (BBOX geoms from the > database from 28 hrs ago and assigns a seq and elapsed time column to > the result. > DATA "bbox from ( > > SELECT > row_number() over (order by accessed_at nulls last) as seq, > date_part('epoch', (now() - INTERVAL '28 hours' - > accessed_at)::interval) as elapsed, > id, accessed_at, bbox > FROM > layer_metrics > Where > accessed_at < (NOW() - INTERVAL '28 hours') > AND > accessed_at >= (NOW() - INTERVAL '28 > hours' - INTERVAL '5 minute') > > ) as subquery using unique id > using srid=200068" > > LABELITEM "elapsed" > > CLASS > #NAME "5 Minute Trail" > EXPRESSION ([elapsed] >= 0 AND [elapsed] < 300) ## 0-5min > STYLE > OUTLINECOLOR 0 0 0 > OUTLINEWIDTH 1 > #COLOR 0 255 0 > COLORRANGE 255 0 0 254 254 254 ##red to opaque (see IMAGECOLOR in the > MAP block above) > DATARANGE 0 300 > RANGEITEM "elapsed" > > END > END > END > END > > > bobb > > > >> On Jun 2, 2015, at 4:27 PM, Ben Madin > > wrote: >> >> Bob, >> >> Nice, I never knew that such a colorrange option existed (at least, I >> couldn?t find it documented anywhere?) but I would have presumed maybe >> you could specify the colour using the alpha like any other colour? >> >>> COLORRANGE 255 0 0 255 255 255 255 0 ## red -> transparent >> >> >> >> Alternatively, if you had a common background colour, you could fade >> to that? >> >> cheers >> >> Ben >> >> >> >>> On 2015-06-03, at 04:48 , Basques, Bob (CI-StPaul) >>> > wrote: >>> >>> All, >>> >>> Anyone know how to use a transparent color on one end of the coloring >>> option? >>> >>> COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent >>> >>> It there a RGB color to use for Transparency to fade to? I basically >>> want to fade a line based on age to nothing. >>> >>> Thanks >>> >>> bobb >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> >> Ben Madin >> >> t : +61 8 6102 5535 >> m : +61 448 887 220 >> e : ben at ausvet.com.au >> >> AusVet Animal Health Services >> Western Australia >> >> AusVet's website: http://www.ausvet.com.au >> >> This transmission is for the intended addressee only and is >> confidential information. If you have received this transmission in >> error, please delete it and notify the sender. The contents of this >> email are the opinion of the writer only and are not endorsed by >> AusVet Animal Health Services unless expressly stated otherwise. >> Although AusVet uses virus scanning software we do not accept >> liability for viruses or similar in any attachments. Thanks for reading. >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jukka.rahkonen at maanmittauslaitos.fi Wed Jun 3 01:14:41 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 3 Jun 2015 08:14:41 +0000 Subject: [mapserver-users] color range fade to transparent. Message-ID: Hi, Never tried myself but for sure nodata value is not the way because it is not any continuous measure, it is just on/off. And opacity setting affects the whole layer as J?rg wrote. I believe that the right way is to include alpha channel to the output colorrange. There are examples in the kernel density document http://mapserver.org/development/rfc/ms-rfc-108.html. In this example I suppose that the output color is total blue for the whole range from 0 to 32 but alpha value is growing from 0 to 255. style COLORRANGE "#0000ff00" "#0000ffff" DATARANGE 0 32 end I do not know how well and which clients support partial alpha values. -Jukka Rahkonen- J?rg Thomsen wrote: Hi Bob, this cannot work I think. A colorrange from 255 0 0 to 254 254 254 renders a map with many colors. In best case only data values at 300 will be rendered 254 254 254 (perhaps you can check that with a color-picker? perhaps a clean 254 254 254 is never reached). But I think you would like to have a layer where the smallest value is not transparent, the highest value is totally transparent and the values between are a bit transparent, right? I think you only can set the opacity for the whole layer. J?rg Am 03.06.2015 um 00:33 schrieb Basques, Bob (CI-StPaul): > All, > > My solution below turned out to not be correct either. It just ramps > down from RED to the color WHITE, no transparency. > > Here is the layer block I'm using that I'm trying to fade to a > transparent feature: > > MAP > > TRANSPARENT true > IMAGECOLOR 254 254 254 > > > > LAYER > METADATA > "ows_title" "bbox" > "gml_include_items" "all" > END > GROUP 'users' > NAME 'bbox' > STATUS ON > TYPE LINE > > > > > > ## the following greabs a 5 min chunk of data (BBOX geoms from the > database from 28 hrs ago and assigns a seq and elapsed time column to > the result. > DATA "bbox from ( > > SELECT > row_number() over (order by accessed_at nulls last) as seq, > date_part('epoch', (now() - INTERVAL '28 hours' - > accessed_at)::interval) as elapsed, > id, accessed_at, bbox > FROM > layer_metrics > Where > accessed_at < (NOW() - INTERVAL '28 > hours') AND > accessed_at >= (NOW() - INTERVAL '28 > hours' - INTERVAL '5 minute') > > ) as subquery using unique id > using srid=200068" > > LABELITEM "elapsed" > > CLASS > #NAME "5 Minute Trail" > EXPRESSION ([elapsed] >= 0 AND [elapsed] < 300) ## 0-5min STYLE > OUTLINECOLOR 0 0 0 > OUTLINEWIDTH 1 > #COLOR 0 255 0 COLORRANGE 255 0 0 254 > 254 254 ##red to opaque (see IMAGECOLOR in the MAP block above) > DATARANGE 0 300 RANGEITEM "elapsed" > > END > END > END > END > > > bobb > > > >> On Jun 2, 2015, at 4:27 PM, Ben Madin > > wrote: >> >> Bob, >> >> Nice, I never knew that such a colorrange option existed (at least, I >> couldn't find it documented anywhere?) but I would have presumed >> maybe you could specify the colour using the alpha like any other colour? >> >>> COLORRANGE 255 0 0 255 255 255 255 0 ## red -> transparent >> >> >> >> Alternatively, if you had a common background colour, you could fade >> to that? >> >> cheers >> >> Ben >> >> >> >>> On 2015-06-03, at 04:48 , Basques, Bob (CI-StPaul) >>> > wrote: >>> >>> All, >>> >>> Anyone know how to use a transparent color on one end of the >>> coloring option? >>> >>> COLORRANGE 255 0 0 ??? ??? ??? ## red -> transparent >>> >>> It there a RGB color to use for Transparency to fade to? I >>> basically want to fade a line based on age to nothing. >>> >>> Thanks >>> >>> bobb >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> >> Ben Madin >> >> t : +61 8 6102 5535 >> m : +61 448 887 220 >> e : ben at ausvet.com.au >> >> AusVet Animal Health Services >> Western Australia >> >> AusVet's website: http://www.ausvet.com.au >> >> This transmission is for the intended addressee only and is >> confidential information. If you have received this transmission in >> error, please delete it and notify the sender. The contents of this >> email are the opinion of the writer only and are not endorsed by >> AusVet Animal Health Services unless expressly stated otherwise. >> Although AusVet uses virus scanning software we do not accept >> liability for viruses or similar in any attachments. Thanks for reading. >> > > > > _______________________________________________ > 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 kirandziskig at gmail.com Wed Jun 3 08:59:55 2015 From: kirandziskig at gmail.com (gorank) Date: Wed, 3 Jun 2015 08:59:55 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <556EAF05.3000702@mapmedia.de> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> <556EAF05.3000702@mapmedia.de> Message-ID: <1433347195821-5208979.post@n6.nabble.com> Hi Jorg, It works with you help. Thanks. Actually I had problem to show municipalities in qgis but your suggestion to add YEAR in service url, solves the problem. I use shapefile with Year as attribute name (time series from 2009 to 2013) so in openlayers I select year from dropdown list and in the map show values from the shossen column. I would like from you confirmation url that you gave http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013& is final WMS url that users should have from our side, to access our WMS service? Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208979.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jt at mapmedia.de Thu Jun 4 00:42:30 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Thu, 04 Jun 2015 09:42:30 +0200 Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <1433347195821-5208979.post@n6.nabble.com> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> <556EAF05.3000702@mapmedia.de> <1433347195821-5208979.post@n6.nabble.com> Message-ID: <55700166.30302@mapmedia.de> Hi Goran, > I would like from you confirmation url that you gave > http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013& yes that's what I meant yesterday for testing it in qgis, but if you want provide your url to others you should have a look at http://mapserver.org/cgi/runsub.html#default-values-if-not-provided-in-the-url J?rg Am 03.06.2015 um 17:59 schrieb gorank: > Hi Jorg, > It works with you help. Thanks. Actually I had problem to show > municipalities in qgis but your suggestion to add YEAR in service url, > solves the problem. I use shapefile with Year as attribute name (time series > from 2009 to 2013) so in openlayers I select year from dropdown list and in > the map show values from the shossen column. > > I would like from you confirmation url that you gave > http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013& > > is final WMS url that users should have from our side, to access our WMS > service? > Goran > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208979.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 kirandziskig at gmail.com Thu Jun 4 03:29:39 2015 From: kirandziskig at gmail.com (gorank) Date: Thu, 4 Jun 2015 03:29:39 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <55700166.30302@mapmedia.de> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> <556EAF05.3000702@mapmedia.de> <1433347195821-5208979.post@n6.nabble.com> <55700166.30302@mapmedia.de> Message-ID: <1433413779676-5209110.post@n6.nabble.com> Hi Jorg, I have put default value for 2010 on LAYER and CLASS level validation part VALIDATION "default_godina" "2010" END #VALIDATION but i'm not sure is it enough for others to use wms service without problems. Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209110.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kirandziskig at gmail.com Thu Jun 4 04:00:37 2015 From: kirandziskig at gmail.com (gorank) Date: Thu, 4 Jun 2015 04:00:37 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <1433413779676-5209110.post@n6.nabble.com> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> <556EAF05.3000702@mapmedia.de> <1433347195821-5208979.post@n6.nabble.com> <55700166.30302@mapmedia.de> <1433413779676-5209110.post@n6.nabble.com> Message-ID: <1433415637840-5209115.post@n6.nabble.com> I have changed it, actually deleted validation statement on CLASS level and add in LAYER METADATA *"default_godina" "2010"* and now the map for 2010 is shown. My question is, what should have the user to get map for year 2011 or 2013, because, I suppose, that always when I call the mapfile I will receive map for year 2010 (as default value) . Any suggestions? Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209115.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jt at mapmedia.de Thu Jun 4 05:05:20 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Thu, 04 Jun 2015 14:05:20 +0200 Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <1433415637840-5209115.post@n6.nabble.com> References: <1433275127210-5208743.post@n6.nabble.com> <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> <556EAF05.3000702@mapmedia.de> <1433347195821-5208979.post@n6.nabble.com> <55700166.30302@mapmedia.de> <1433413779676-5209110.post@n6.nabble.com> <1433415637840-5209115.post@n6.nabble.com> Message-ID: <55703F00.5070303@mapmedia.de> Am 04.06.2015 um 13:00 schrieb gorank: > I have changed it, actually deleted validation statement on CLASS level and > add in LAYER METADATA > > *"default_godina" "2010"* > > and now the map for 2010 is shown. > > My question is, what should have the user to get map for year 2011 or 2013, > because, I suppose, that always when I call the mapfile I will receive map > for year 2010 (as default value) . The user has to add the &GODINA Paramater to the url, it will overwrite the default. That's why it is called default ;) If you want to tell the user what to, you could use a default which is not in your data (e.g. 1000) and create an annotation (label) within this class where you decribe that he needs the &GODINA parameter for proper work of the wms. the OGC-Way would be to include the paramater in the Capabilities XML (s. http://cite.opengeospatial.org/OGCTestData/wms/1.1.1/spec/wms1.1.1.html#basic_elements.params.vsps). But I don't know how to do that. J?rg > > Any suggestions? > > Goran > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209115.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 kirandziskig at gmail.com Thu Jun 4 07:32:47 2015 From: kirandziskig at gmail.com (gorank) Date: Thu, 4 Jun 2015 07:32:47 -0700 (PDT) Subject: [mapserver-users] WMS service problem with mapserver mapfile layer classes In-Reply-To: <55703F00.5070303@mapmedia.de> References: <556E0FA3.8070902@gatewaygeomatics.com> <1433277203090-5208756.post@n6.nabble.com> <1433280624651-5208769.post@n6.nabble.com> <556EAF05.3000702@mapmedia.de> <1433347195821-5208979.post@n6.nabble.com> <55700166.30302@mapmedia.de> <1433413779676-5209110.post@n6.nabble.com> <1433415637840-5209115.post@n6.nabble.com> <55703F00.5070303@mapmedia.de> Message-ID: <1433428367630-5209177.post@n6.nabble.com> Hi Jorg, thanks for your explanations that are very useful for me. Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209177.html Sent from the Mapserver - User mailing list archive at Nabble.com. From michael.smith.erdc at gmail.com Sat Jun 6 16:13:57 2015 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Sat, 06 Jun 2015 19:13:57 -0400 Subject: [mapserver-users] MapCache Time Dimensions Problem Message-ID: I've created a timedimension tileset in MapCache and created the backend sqlite db that has the available times. The mapserver backend handles the WMS TIME requests without a problem. And when I query mapcache without a &TIME=, I get my the default output. However, if I specify a &TIME= parameter to MapCache (as a WMS or WMTS request), I get no matching entry for given TIME dimension "TIME" in tileset "earthquakes" I don't know what I need to change to get MapCache to recognize the TIME parameter. From the docs on RFC-96 (http://mapserver.org/development/rfc/ms-rfc-96.html) I don't see what else to specify to set MapCache to understand TIME requests. I can see MapCache making the backend requests to generate images from the time values in the sqlite DB but only with the default specified in the . It never understands new ranges passed with &TIME=. My tileset looks like earthquakes sqlite GoogleMapsCompatible PNG 5 5 10 3600 /u02/mapcache/dbtime2.db select strftime('%Y-%m-%dT%H:%M:%SZ',start)||'/'||strftime('%Y-%m-%dT%H:%M:%SZ',end ) from time where source_id=:tileset and start_time>=datetime(:start_timestamp,'unixepoch') and end_time<=datetime(:end_timestamp,'unixepoch') order by end_time ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Mon Jun 8 00:33:13 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 8 Jun 2015 09:33:13 +0200 Subject: [mapserver-users] How increase legend resolution in getlegendgraphics response Message-ID: Hi, is possible in a getlegendgraphics request retrieve a legend image with an increased resolution ? With the standard request, mapserver responde a 72 dpi image that is not suitable for a print at 300 dpi. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From ahmettemiz88 at gmail.com Mon Jun 8 02:08:36 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Mon, 8 Jun 2015 12:08:36 +0300 Subject: [mapserver-users] on the fly projection Message-ID: hello I am wondering if a map file enables us to on the fly projection. I have input raster data in epsg :4326 storing in postgis but output raster map should be in epsg:3857 as tif. regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Mon Jun 8 02:21:17 2015 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Mon, 08 Jun 2015 11:21:17 +0200 Subject: [mapserver-users] on the fly projection In-Reply-To: References: Message-ID: <55755E8D.7070204@mapmedia.de> hello, ist does. you have to define the output projection within the metadata: http://mapserver.org/de/ogc/wms_server.html#setting-up-a-wms-server-using-mapserver Reprojection is fast, but if you know which projection your users need, it is faster to reproject the rasters in your data storage. J?rg Am 08.06.2015 um 11:08 schrieb Ahmet Temiz: > hello > > I am wondering if a map file enables us to on the fly projection. > > I have input raster data in epsg :4326 storing in postgis but output raster > map should be in epsg:3857 as tif. > > > > regards > > > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jukka.rahkonen at maanmittauslaitos.fi Mon Jun 8 02:24:07 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 8 Jun 2015 09:24:07 +0000 Subject: [mapserver-users] on the fly projection Message-ID: <36cd78e827aa4fc9b60e4c29ae93962b@C119S212VM022.msvyvi.vaha.local> Hi, Read about ?wms_srs? from http://mapserver.org/ogc/wms_server.html. Set the PROJECTION of your LAYER into the native EPSG:4326 and be sure to include EPSG:3857 in the ?wsm_srs? metadata. I recommend also to set ?wms_bbox_extented? into ?true? because it helps some clients in locating the layer. -Jukka Rahkonen- Ahmet Temiz wrote: hello I am wondering if a map file enables us to on the fly projection. I have input raster data in epsg :4326 storing in postgis but output raster map should be in epsg:3857 as tif. regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jun 8 05:10:41 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 08 Jun 2015 09:10:41 -0300 Subject: [mapserver-users] on the fly projection In-Reply-To: References: Message-ID: <55758641.7080908@gatewaygeomatics.com> On 2015-06-08 6:08 AM, Ahmet Temiz wrote: > hello > > I am wondering if a map file enables us to on the fly projection. > I have input raster data in epsg :4326 storing in postgis but output raster > map should be in epsg:3857 as tif. > > A nice explanation of projection use in MapServer can be found at: http://www.mapserver.org/mapfile/projection.html Pay attention to the "Important Notes" section of that page, which contains very useful tips. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Weisbend at WAPA.GOV Mon Jun 8 13:16:19 2015 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Mon, 8 Jun 2015 20:16:19 +0000 Subject: [mapserver-users] Accessing ArcSDE on secured site Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1931@afovsml1m.WAPA.INT> Hello, A couple of weeks about I posted the question below and hear anything. I was wondering if it went through and if anyone had any insight. I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jun 8 13:59:04 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 08 Jun 2015 17:59:04 -0300 Subject: [mapserver-users] Accessing ArcSDE on secured site In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1931@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1931@afovsml1m.WAPA.INT> Message-ID: <55760218.1080103@gatewaygeomatics.com> I don't have your answer, but I would try to connect through GDAL (ogrinfo command) to your SDE instance, and then report your commandline syntax and error to the community. Since I notice that GDAL 2.0.0 is almost released, you might try to send your feedback and questions direct to the GDAL community as well (might be good timing to get a change done in GDAL for SDE). And of course if you have funding available to help create your change, be sure to mention that in your message. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-06-08 5:16 PM, Weisbender, Eric wrote: > Hello, > > A couple of weeks about I posted the question below and hear anything. > I was wondering if it went through and if anyone had any insight. > > I am trying to access ArcSDE with mapserver on a secured site that uses > https:// not http. I keep getting an error saying Server Not Found. Is > this even possible and if so I would welcome any help. Thanks in advance. > > Eric > > From michael.smith.erdc at gmail.com Mon Jun 8 15:06:00 2015 From: michael.smith.erdc at gmail.com (michael.smith.erdc at gmail.com) Date: Mon, 8 Jun 2015 18:06:00 -0400 Subject: [mapserver-users] Accessing ArcSDE on secured site In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1931@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1931@afovsml1m.WAPA.INT> Message-ID: Eric, This could be a certificate issue if your server certificate is not a standard one. You might need to load the cert to your local cert store. You should ruin this with shp2img on the command line and turn up the debugging level and see what errors you're actually getting. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers > On Jun 8, 2015, at 4:16 PM, Weisbender, Eric wrote: > > Hello, > > A couple of weeks about I posted the question below and hear anything. I was wondering if it went through and if anyone had any insight. > > I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. > > Eric > > _______________________________________________ > 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 Tue Jun 9 01:44:45 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Jun 2015 10:44:45 +0200 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? Message-ID: Hi, I have just update my mapserver to the last mapserver-dev . After this update, I see an error on the filtering. In my mapfile the data configuration was originally this: CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" CONNECTIONTYPE OGR DATA "IFT2009" EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 FILTER "WHERE ([CODICE] = 107)" FILTERITEM "CODICE" .... The log report this error: [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using outputformat named AGGA (AGG/PNG). [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and query, 0.001s [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 (rt_ucs.idift.rt.107), 0.128s [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s I'm using spatialite as db. After this error, I read this RFC: http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html And try the new settings, FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) but it seem don't work. I don't understand if this is an issue of the new settings with spatialite or I'm wrong something. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Andreas.Eichner at sid.sachsen.de Tue Jun 9 02:06:06 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 9 Jun 2015 09:06:06 +0000 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D5681E051D@FS-EX-DB102.fs.sachsen.de> I think you should use FILTER "([CODICE] = 107)" i.e. without using FILTERITEM and the leading WHERE > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Andrea Peri > Gesendet: Dienstag, 9. Juni 2015 10:45 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Incompatibility at Filter - level between > mapserver 6.x and the last mapserver-dev ? > > Hi, > I have just update my mapserver to the last mapserver-dev . > > After this update, I see an error on the filtering. > > In my mapfile the data configuration was originally this: > > CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" > CONNECTIONTYPE OGR > DATA "IFT2009" > EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 > FILTER "WHERE ([CODICE] = 107)" > FILTERITEM "CODICE" > .... > > > The log report this error: > > [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using > outputformat named AGGA (AGG/PNG). > [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and query, > 0.001s > [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): > General error message. This data driver does not implement filter > translation support > [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 > (rt_ucs.idift.rt.107), 0.128s > [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s > > I'm using spatialite as db. > > After this error, I read this RFC: > http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html > > And try the new settings, > > FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) > > but it seem don't work. > > I don't understand if this is an issue of the new settings with > spatialite or I'm wrong something. > > 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 Jun 9 02:33:36 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Jun 2015 11:33:36 +0200 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: <6F331135492B944D90731CE93743D5681E051D@FS-EX-DB102.fs.sachsen.de> References: <6F331135492B944D90731CE93743D5681E051D@FS-EX-DB102.fs.sachsen.de> Message-ID: Thx for response. I try this, FILTER "(CODICE = 107)" and also this FILTER "([CODICE[ = 107)" and removing the filteritem, but still go in error: :( The log report this: [Tue Jun 9 11:29:53 2015].880265 LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support [Tue Jun 9 11:29:53 2015].955070 msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. 2015-06-09 11:06 GMT+02:00 Eichner, Andreas - SID : > I think you should use > > FILTER "([CODICE] = 107)" > > i.e. without using FILTERITEM and the leading WHERE > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] Im Auftrag von Andrea Peri >> Gesendet: Dienstag, 9. Juni 2015 10:45 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] Incompatibility at Filter - level between >> mapserver 6.x and the last mapserver-dev ? >> >> Hi, >> I have just update my mapserver to the last mapserver-dev . >> >> After this update, I see an error on the filtering. >> >> In my mapfile the data configuration was originally this: >> >> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" >> CONNECTIONTYPE OGR >> DATA "IFT2009" >> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 >> FILTER "WHERE ([CODICE] = 107)" >> FILTERITEM "CODICE" >> .... >> >> >> The log report this error: >> >> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using >> outputformat named AGGA (AGG/PNG). >> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and query, >> 0.001s >> [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): >> General error message. This data driver does not implement filter >> translation support >> [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 >> (rt_ucs.idift.rt.107), 0.128s >> [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s >> >> I'm using spatialite as db. >> >> After this error, I read this RFC: >> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html >> >> And try the new settings, >> >> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) >> >> but it seem don't work. >> >> I don't understand if this is an issue of the new settings with >> spatialite or I'm wrong something. >> >> 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 lars.schylberg at saabgroup.com Tue Jun 9 03:15:19 2015 From: lars.schylberg at saabgroup.com (Schylberg Lars) Date: Tue, 9 Jun 2015 10:15:19 +0000 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: <6F331135492B944D90731CE93743D5681E051D@FS-EX-DB102.fs.sachsen.de> Message-ID: <9a5fc89727fb4a7295d170917e45b518@corpappl843.corp.saab.se> It seems like You have a typing error. FILTER "([CODICE[ = 107)" Should be: FILTER "([CODICE] = 107)" /Lars -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri Sent: den 9 juni 2015 11:34 To: Eichner, Andreas - SID Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? Thx for response. I try this, FILTER "(CODICE = 107)" and also this FILTER "([CODICE[ = 107)" and removing the filteritem, but still go in error: :( The log report this: [Tue Jun 9 11:29:53 2015].880265 LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support [Tue Jun 9 11:29:53 2015].955070 msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. 2015-06-09 11:06 GMT+02:00 Eichner, Andreas - SID : > I think you should use > > FILTER "([CODICE] = 107)" > > i.e. without using FILTERITEM and the leading WHERE > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] Im Auftrag von Andrea Peri >> Gesendet: Dienstag, 9. Juni 2015 10:45 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] Incompatibility at Filter - level between >> mapserver 6.x and the last mapserver-dev ? >> >> Hi, >> I have just update my mapserver to the last mapserver-dev . >> >> After this update, I see an error on the filtering. >> >> In my mapfile the data configuration was originally this: >> >> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" >> CONNECTIONTYPE OGR >> DATA "IFT2009" >> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 >> FILTER "WHERE ([CODICE] = 107)" >> FILTERITEM "CODICE" >> .... >> >> >> The log report this error: >> >> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using >> outputformat named AGGA (AGG/PNG). >> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and >> query, 0.001s [Tue Jun 9 10:39:46 2015].262330 >> LayerDefaultTranslateFilter(): >> General error message. This data driver does not implement filter >> translation support [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): >> Layer 239 (rt_ucs.idift.rt.107), 0.128s [Tue Jun 9 10:39:46 >> 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s >> >> I'm using spatialite as db. >> >> After this error, I read this RFC: >> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html >> >> And try the new settings, >> >> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) >> >> but it seem don't work. >> >> I don't understand if this is an issue of the new settings with >> spatialite or I'm wrong something. >> >> 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 ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Weisbend at WAPA.GOV Tue Jun 9 06:16:56 2015 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Tue, 9 Jun 2015 13:16:56 +0000 Subject: [mapserver-users] Accessing ArcSDE on secured site In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1931@afovsml1m.WAPA.INT> Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F0844EC1C0E@afovsml1m.WAPA.INT> The error I?m getting is very vague and it is the same in the DEBUG file. After about 5 minutes of trying to connect I get the following error? msSDELayerOpen(): SDE error. SE_connection_create(): Operation Failed. (-1) Thanks Eric From: michael.smith.erdc at gmail.com [mailto:michael.smith.erdc at gmail.com] Sent: 2015, June, 08 4:06 PM To: Weisbender, Eric Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Accessing ArcSDE on secured site Eric, This could be a certificate issue if your server certificate is not a standard one. You might need to load the cert to your local cert store. You should ruin this with shp2img on the command line and turn up the debugging level and see what errors you're actually getting. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On Jun 8, 2015, at 4:16 PM, Weisbender, Eric > wrote: Hello, A couple of weeks about I posted the question below and hear anything. I was wondering if it went through and if anyone had any insight. I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. Eric _______________________________________________ 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 Jun 9 10:05:42 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 9 Jun 2015 17:05:42 +0000 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: As of MapServer 7.0 FILTERS must be given using MapServer syntax - this is a regression noted in the Migration Guide, see http://mapserver.org/MIGRATION_GUIDE.html#migration. There's an OGR example right towards the top of that document. Basically: FILTER "WHERE ([CODICE] = 107)" FILTERITEM "CODICE" Becomes: PROCESSING 'NATIVE_FILTER=CODICE=107' 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, June 09, 2015 3:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? Hi, I have just update my mapserver to the last mapserver-dev . After this update, I see an error on the filtering. In my mapfile the data configuration was originally this: CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" CONNECTIONTYPE OGR DATA "IFT2009" EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 FILTER "WHERE ([CODICE] = 107)" FILTERITEM "CODICE" .... The log report this error: [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using outputformat named AGGA (AGG/PNG). [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and query, 0.001s [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): General error message. This data driver does not implement filter translation support [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 (rt_ucs.idift.rt.107), 0.128s [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s I'm using spatialite as db. After this error, I read this RFC: http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html And try the new settings, FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) but it seem don't work. I don't understand if this is an issue of the new settings with spatialite or I'm wrong something. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Tue Jun 9 10:37:38 2015 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 9 Jun 2015 17:37:38 +0000 Subject: [mapserver-users] How to enable GetFeatureInfo in MS4w 3.0.6 ? Message-ID: I can't seem to find the answer to this one. I have a number of WMS layers which I would like to enable GetFeatureInfo. I am using MS4W 3.0.6. I can't seem to get the GetFeatureInfo to work. Can somebody point me to a reference? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jun 9 11:26:07 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 09 Jun 2015 15:26:07 -0300 Subject: [mapserver-users] How to enable GetFeatureInfo in MS4w 3.0.6 ? In-Reply-To: References: Message-ID: <55772FBF.1030809@gatewaygeomatics.com> On 2015-06-09 2:37 PM, Bistrais, Bob wrote: > I can?t seem to find the answer to this one. I have a number of WMS > layers which I would like to enable GetFeatureInfo. I am using MS4W > 3.0.6. I can?t seem to get the GetFeatureInfo to work. Can somebody > point me to a reference? > I always follow the WMS Server document, when I configure a mapfile for GetFeatureInfo (see the section "Configuring for GetFeatureInfo Requests" at http://www.mapserver.org/ogc/wms_server.html). I check it often for syntax. Key points as noted there, are: - set your WEB METADATA parameter of "wms_feature_info_mime_type" (likely to "text/plain") - in the LAYER METADATA specify the fields to expose through "gml_include_items" - set DUMP TRUE inside the layer - set CLASS TEMPLATE (likely to something like "dummy.html") If I missed something it's likely inside that document. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Michael.Smith at erdc.dren.mil Tue Jun 9 12:09:53 2015 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 9 Jun 2015 19:09:53 +0000 Subject: [mapserver-users] [EXTERNAL] Re: How to enable GetFeatureInfo in MS4w 3.0.6 ? In-Reply-To: <55772FBF.1030809@gatewaygeomatics.com> References: <55772FBF.1030809@gatewaygeomatics.com> Message-ID: Note DUMP TRUE has not been used since v6. Now its OWS_ENABLE_REQUEST Requesttype Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/9/15, 2:26 PM, "Jeff McKenna" wrote: >On 2015-06-09 2:37 PM, Bistrais, Bob wrote: >> I can?t seem to find the answer to this one. I have a number of WMS >> layers which I would like to enable GetFeatureInfo. I am using MS4W >> 3.0.6. I can?t seem to get the GetFeatureInfo to work. Can somebody >> point me to a reference? >> > >I always follow the WMS Server document, when I configure a mapfile for >GetFeatureInfo (see the section "Configuring for GetFeatureInfo >Requests" at http://www.mapserver.org/ogc/wms_server.html). I check it >often for syntax. > >Key points as noted there, are: > > - set your WEB METADATA parameter of "wms_feature_info_mime_type" >(likely to "text/plain") > - in the LAYER METADATA specify the fields to expose through >"gml_include_items" > - set DUMP TRUE inside the layer > - set CLASS TEMPLATE (likely to something like "dummy.html") > > >If I missed something it's likely inside that document. > >-jeff > > > > > > >-- >Jeff McKenna >MapServer Consulting and Training Services >http://www.gatewaygeomatics.com/ > > > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Tue Jun 9 12:36:55 2015 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 9 Jun 2015 19:36:55 +0000 Subject: [mapserver-users] How to enable GetFeatureInfo in MS4w 3.0.6 ? In-Reply-To: <55772FBF.1030809@gatewaygeomatics.com> References: <55772FBF.1030809@gatewaygeomatics.com> Message-ID: Got it! Thanks Jeff! -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Tuesday, June 09, 2015 2:26 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to enable GetFeatureInfo in MS4w 3.0.6 ? On 2015-06-09 2:37 PM, Bistrais, Bob wrote: > I can't seem to find the answer to this one. I have a number of WMS > layers which I would like to enable GetFeatureInfo. I am using MS4W > 3.0.6. I can't seem to get the GetFeatureInfo to work. Can somebody > point me to a reference? > I always follow the WMS Server document, when I configure a mapfile for GetFeatureInfo (see the section "Configuring for GetFeatureInfo Requests" at http://www.mapserver.org/ogc/wms_server.html). I check it often for syntax. Key points as noted there, are: - set your WEB METADATA parameter of "wms_feature_info_mime_type" (likely to "text/plain") - in the LAYER METADATA specify the fields to expose through "gml_include_items" - set DUMP TRUE inside the layer - set CLASS TEMPLATE (likely to something like "dummy.html") If I missed something it's likely inside that document. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From stephan at meissl.name Tue Jun 9 13:37:57 2015 From: stephan at meissl.name (=?UTF-8?B?U3RlcGhhbiBNZWnDn2w=?=) Date: Tue, 09 Jun 2015 22:37:57 +0200 Subject: [mapserver-users] MapCache Time Dimensions Problem In-Reply-To: References: Message-ID: <55774EA5.8060305@meissl.name> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Mike, did you try running the query directly in sqlite substituting :tileset, :start_timestamp, and :end_timestamp with actual values? What schema does your sqlite database have? Is the path to the dbfile absolute and readable? I could send you a working example if you want. Let me know. cu Stephan On 06/07/2015 01:13 AM, Michael Smith wrote: > I've created a timedimension tileset in MapCache and created the backend > sqlite db that has the available times. The mapserver backend handles > the WMS TIME requests without a problem. And when I query mapcache > without a &TIME=, I get my the default output. > > However, if I specify a &TIME= parameter to MapCache (as a WMS or WMTS > request), I get > > no matching entry for given TIME dimension "TIME" in tileset "earthquakes" > > I don't know what I need to change to get MapCache to recognize the TIME > parameter. From the docs on RFC-96 > (http://mapserver.org/development/rfc/ms-rfc-96.html) I don't see what > else to specify to set MapCache to understand TIME requests. > > I can see MapCache making the backend requests to generate images from > the time values in the sqlite DB but only with the default specified in > the . It never understands new ranges passed with &TIME=. > > My tileset looks like > > > earthquakes > sqlite > GoogleMapsCompatible > PNG > 5 5 > 10 > 3600 > > /u02/mapcache/dbtime2.db > select > strftime('%Y-%m-%dT%H:%M:%SZ',start)||'/'||strftime('%Y-%m-%dT%H:%M:%SZ',end) > from time > where source_id=:tileset > and start_time>=datetime(:start_timestamp,'unixepoch') > and end_time<=datetime(:end_timestamp,'unixepoch') > order by end_time > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVd06lAAoJEKNQXeNWi+qta2kQAMVFCsQ95RFUQbe8h7AkpnZD Io7OYrziPm7mx62F8OJmdaL4EQLVXIUqlNgxEDq4yu4phNr008mmyV26h4B1xcvA 7v3XHsw0Mm+rBbfdC+H110woUnfhNLjlO03sgd8MEpinrsxnhAi0RZOIbJpXQRyH UiRTxtpnCKapeY1ApIORznf450GMrHx4rGAQ5DWUinnWFlKFuARwkyI+brLdae/j gUXQYIyDzpaURCPDfaYPdUlNiKLM2GDeZY59WvBozU68LXKJS236DNXj0NBIuBal Y4JD5DbwOYqYE5kA69cMDwOB5whNjkoQFvOUGS9mDB1Bn0mUBWUGI4alkTOIoBsl St4QiX6CdcSkcN8c39ErR4C3b+oEbrWwEje0aAhNT7Bp9dOaRahcoSGcGXuIHnB9 VQ/efIbaVpeGnTYtV65VpKBNiy5iqcygig6a3y2fnMO4G3eQkLAA12GxoSJHv+Fl ZqQmtUBFtdQUYb19E0MWJhjs06IX2lqh3uo9CcgDFygO5LJ4m6r096Bq7+dbbzOn hWZCM1MtsQ31FGjAVcgKsmBPBamOqNuNi+X8YvH1nP2fjJx+0PIeYFzWRgAKuX3F dehpryaXwAG3N8TDNYd/2lIucAsKowamEDcQ38k017vxl7q1/RflGcmveK0Xqe5B Xyk+HREWcAb2B6oGFVro =mBOf -----END PGP SIGNATURE----- From aperi2007 at gmail.com Tue Jun 9 14:40:03 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Jun 2015 23:40:03 +0200 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: <9a5fc89727fb4a7295d170917e45b518@corpappl843.corp.saab.se> References: <6F331135492B944D90731CE93743D5681E051D@FS-EX-DB102.fs.sachsen.de> <9a5fc89727fb4a7295d170917e45b518@corpappl843.corp.saab.se> Message-ID: Unfortunately no. Its only a typo in e-mail. The bracket in the mapfile was correct close. Thx 2015-06-09 12:15 GMT+02:00 Schylberg Lars : > It seems like You have a typing error. > > FILTER "([CODICE[ = 107)" > > Should be: > > FILTER "([CODICE] = 107)" > > /Lars > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri > Sent: den 9 juni 2015 11:34 > To: Eichner, Andreas - SID > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? > > Thx for response. > > I try this, > FILTER "(CODICE = 107)" > and also this > FILTER "([CODICE[ = 107)" > and removing the filteritem, > > but still go in error: > :( > > The log report this: > > [Tue Jun 9 11:29:53 2015].880265 LayerDefaultTranslateFilter(): > General error message. This data driver does not implement filter translation support [Tue Jun 9 11:29:53 2015].955070 msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. > > 2015-06-09 11:06 GMT+02:00 Eichner, Andreas - SID > : >> I think you should use >> >> FILTER "([CODICE] = 107)" >> >> i.e. without using FILTERITEM and the leading WHERE >> >>> -----Urspr?ngliche Nachricht----- >>> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >>> bounces at lists.osgeo.org] Im Auftrag von Andrea Peri >>> Gesendet: Dienstag, 9. Juni 2015 10:45 >>> An: mapserver-users at lists.osgeo.org >>> Betreff: [mapserver-users] Incompatibility at Filter - level between >>> mapserver 6.x and the last mapserver-dev ? >>> >>> Hi, >>> I have just update my mapserver to the last mapserver-dev . >>> >>> After this update, I see an error on the filtering. >>> >>> In my mapfile the data configuration was originally this: >>> >>> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" >>> CONNECTIONTYPE OGR >>> DATA "IFT2009" >>> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 >>> FILTER "WHERE ([CODICE] = 107)" >>> FILTERITEM "CODICE" >>> .... >>> >>> >>> The log report this error: >>> >>> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using >>> outputformat named AGGA (AGG/PNG). >>> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and >>> query, 0.001s [Tue Jun 9 10:39:46 2015].262330 >>> LayerDefaultTranslateFilter(): >>> General error message. This data driver does not implement filter >>> translation support [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): >>> Layer 239 (rt_ucs.idift.rt.107), 0.128s [Tue Jun 9 10:39:46 >>> 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s >>> >>> I'm using spatialite as db. >>> >>> After this error, I read this RFC: >>> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html >>> >>> And try the new settings, >>> >>> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) >>> >>> but it seem don't work. >>> >>> I don't understand if this is an issue of the new settings with >>> spatialite or I'm wrong something. >>> >>> 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 ????? > ----------------- > _______________________________________________ > 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 Jun 9 14:43:48 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Jun 2015 23:43:48 +0200 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: Hi Steve, it work. Many thx for the help. Now I should change all layers in my mapfile. To do this, I need to know another question: is this new sintax supported on mapscript python ? Thx, Andrea. 2015-06-09 19:05 GMT+02:00 Lime, Steve D (MNIT) : > As of MapServer 7.0 FILTERS must be given using MapServer syntax - this is a regression noted in the Migration Guide, see http://mapserver.org/MIGRATION_GUIDE.html#migration. There's an OGR example right towards the top of that document. Basically: > > FILTER "WHERE ([CODICE] = 107)" > FILTERITEM "CODICE" > > Becomes: > > PROCESSING 'NATIVE_FILTER=CODICE=107' > > 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, June 09, 2015 3:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? > > Hi, > I have just update my mapserver to the last mapserver-dev . > > After this update, I see an error on the filtering. > > In my mapfile the data configuration was originally this: > > CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" > CONNECTIONTYPE OGR > DATA "IFT2009" > EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 > FILTER "WHERE ([CODICE] = 107)" > FILTERITEM "CODICE" > .... > > > The log report this error: > > [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using > outputformat named AGGA (AGG/PNG). > [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and query, 0.001s > [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): > General error message. This data driver does not implement filter > translation support > [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 > (rt_ucs.idift.rt.107), 0.128s > [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s > > I'm using spatialite as db. > > After this error, I read this RFC: > http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html > > And try the new settings, > > FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) > > but it seem don't work. > > I don't understand if this is an issue of the new settings with > spatialite or I'm wrong something. > > 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 Andreas.Eichner at sid.sachsen.de Wed Jun 10 00:17:29 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 10 Jun 2015 07:17:29 +0000 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: <6F331135492B944D90731CE93743D5681E051D@FS-EX-DB102.fs.sachsen.de> <9a5fc89727fb4a7295d170917e45b518@corpappl843.corp.saab.se> Message-ID: <6F331135492B944D90731CE93743D5681E056D@FS-EX-DB102.fs.sachsen.de> It seems the filter expression must not be given as string. So you should use FILTER ([CODICE] = 107) Otherwise MapServer will read the filter as string value to be used in combination with FILTERITEM. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Andrea Peri > Gesendet: Dienstag, 9. Juni 2015 23:40 > An: Schylberg Lars; Havard Tveite > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Incompatibility at Filter - level between > mapserver 6.x and the last mapserver-dev ? > > Unfortunately no. > Its only a typo in e-mail. > > The bracket in the mapfile was correct close. > > Thx > > > 2015-06-09 12:15 GMT+02:00 Schylberg Lars : > > It seems like You have a typing error. > > > > FILTER "([CODICE[ = 107)" > > > > Should be: > > > > FILTER "([CODICE] = 107)" > > > > /Lars > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Andrea Peri > > Sent: den 9 juni 2015 11:34 > > To: Eichner, Andreas - SID > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Incompatibility at Filter - level between > mapserver 6.x and the last mapserver-dev ? > > > > Thx for response. > > > > I try this, > > FILTER "(CODICE = 107)" > > and also this > > FILTER "([CODICE[ = 107)" > > and removing the filteritem, > > > > but still go in error: > > :( > > > > The log report this: > > > > [Tue Jun 9 11:29:53 2015].880265 LayerDefaultTranslateFilter(): > > General error message. This data driver does not implement filter > translation support [Tue Jun 9 11:29:53 2015].955070 msEvalExpression(): > General error message. Cannot evaluate expression, no item index defined. > > > > 2015-06-09 11:06 GMT+02:00 Eichner, Andreas - SID > > : > >> I think you should use > >> > >> FILTER "([CODICE] = 107)" > >> > >> i.e. without using FILTERITEM and the leading WHERE > >> > >>> -----Urspr?ngliche Nachricht----- > >>> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > >>> bounces at lists.osgeo.org] Im Auftrag von Andrea Peri > >>> Gesendet: Dienstag, 9. Juni 2015 10:45 > >>> An: mapserver-users at lists.osgeo.org > >>> Betreff: [mapserver-users] Incompatibility at Filter - level between > >>> mapserver 6.x and the last mapserver-dev ? > >>> > >>> Hi, > >>> I have just update my mapserver to the last mapserver-dev . > >>> > >>> After this update, I see an error on the filtering. > >>> > >>> In my mapfile the data configuration was originally this: > >>> > >>> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" > >>> CONNECTIONTYPE OGR > >>> DATA "IFT2009" > >>> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 > >>> FILTER "WHERE ([CODICE] = 107)" > >>> FILTERITEM "CODICE" > >>> .... > >>> > >>> > >>> The log report this error: > >>> > >>> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using > >>> outputformat named AGGA (AGG/PNG). > >>> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and > >>> query, 0.001s [Tue Jun 9 10:39:46 2015].262330 > >>> LayerDefaultTranslateFilter(): > >>> General error message. This data driver does not implement filter > >>> translation support [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): > >>> Layer 239 (rt_ucs.idift.rt.107), 0.128s [Tue Jun 9 10:39:46 > >>> 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s > >>> > >>> I'm using spatialite as db. > >>> > >>> After this error, I read this RFC: > >>> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html > >>> > >>> And try the new settings, > >>> > >>> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) > >>> > >>> but it seem don't work. > >>> > >>> I don't understand if this is an issue of the new settings with > >>> spatialite or I'm wrong something. > >>> > >>> 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 ????? > > ----------------- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ahmettemiz88 at gmail.com Wed Jun 10 00:40:35 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Wed, 10 Jun 2015 10:40:35 +0300 Subject: [mapserver-users] on the fly projection In-Reply-To: <55758641.7080908@gatewaygeomatics.com> References: <55758641.7080908@gatewaygeomatics.com> Message-ID: thank you all I was really a solution with (* powerful *) mapserver. On Mon, Jun 8, 2015 at 3:10 PM, Jeff McKenna wrote: > On 2015-06-08 6:08 AM, Ahmet Temiz wrote: > >> hello >> >> I am wondering if a map file enables us to on the fly projection. >> I have input raster data in epsg :4326 storing in postgis but output >> raster >> map should be in epsg:3857 as tif. >> >> >> > A nice explanation of projection use in MapServer can be found at: > http://www.mapserver.org/mapfile/projection.html Pay attention to the > "Important Notes" section of that page, which contains very useful tips. > > -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 > -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Wed Jun 10 02:41:10 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 10 Jun 2015 11:41:10 +0200 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: Hi steve, this new sintax will allow the AND operator ? I have a filter like this: FILTER "WHERE (ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" and don't know how to transform it with the new sintax. Is this kind of filter supported ? Thx, A. 2015-06-09 19:05 GMT+02:00 Lime, Steve D (MNIT) : > As of MapServer 7.0 FILTERS must be given using MapServer syntax - this is a regression noted in the Migration Guide, see http://mapserver.org/MIGRATION_GUIDE.html#migration. There's an OGR example right towards the top of that document. Basically: > > FILTER "WHERE ([CODICE] = 107)" > FILTERITEM "CODICE" > > Becomes: > > PROCESSING 'NATIVE_FILTER=CODICE=107' > > 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, June 09, 2015 3:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? > > Hi, > I have just update my mapserver to the last mapserver-dev . > > After this update, I see an error on the filtering. > > In my mapfile the data configuration was originally this: > > CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" > CONNECTIONTYPE OGR > DATA "IFT2009" > EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 > FILTER "WHERE ([CODICE] = 107)" > FILTERITEM "CODICE" > .... > > > The log report this error: > > [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using > outputformat named AGGA (AGG/PNG). > [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and query, 0.001s > [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): > General error message. This data driver does not implement filter > translation support > [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 > (rt_ucs.idift.rt.107), 0.128s > [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, 0.000s > > I'm using spatialite as db. > > After this error, I read this RFC: > http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html > > And try the new settings, > > FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) > > but it seem don't work. > > I don't understand if this is an issue of the new settings with > spatialite or I'm wrong something. > > 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 michael.smith.erdc at gmail.com Wed Jun 10 03:27:49 2015 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Wed, 10 Jun 2015 06:27:49 -0400 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: Andrea, You can always use your existing filters with PROCESSING "NATIVE_FILTER=WHERE (ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" Or you can use a MapServer expression which are documented here: http://mapserver.org/mapfile/expressions.html#mapserver-expressions Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil -----Original Message----- From: Andrea Peri Date: Wednesday, June 10, 2015 at 5:41 AM To: "Lime, Steve D (MNIT)" Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? >Hi steve, >this new sintax will allow the AND operator ? > >I have a filter like this: > >FILTER "WHERE (ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" > >and don't know how to transform it with the new sintax. > >Is this kind of filter supported ? > >Thx, > >A. > > >2015-06-09 19:05 GMT+02:00 Lime, Steve D (MNIT) : >> As of MapServer 7.0 FILTERS must be given using MapServer syntax - this >>is a regression noted in the Migration Guide, see >>http://mapserver.org/MIGRATION_GUIDE.html#migration. There's an OGR >>example right towards the top of that document. Basically: >> >> FILTER "WHERE ([CODICE] = 107)" >> FILTERITEM "CODICE" >> >> Becomes: >> >> PROCESSING 'NATIVE_FILTER=CODICE=107' >> >> 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, June 09, 2015 3:45 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Incompatibility at Filter - level between >>mapserver 6.x and the last mapserver-dev ? >> >> Hi, >> I have just update my mapserver to the last mapserver-dev . >> >> After this update, I see an error on the filtering. >> >> In my mapfile the data configuration was originally this: >> >> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" >> CONNECTIONTYPE OGR >> DATA "IFT2009" >> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 >> FILTER "WHERE ([CODICE] = 107)" >> FILTERITEM "CODICE" >> .... >> >> >> The log report this error: >> >> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using >> outputformat named AGGA (AGG/PNG). >> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and >>query, 0.001s >> [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): >> General error message. This data driver does not implement filter >> translation support >> [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 >> (rt_ucs.idift.rt.107), 0.128s >> [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, >>0.000s >> >> I'm using spatialite as db. >> >> After this error, I read this RFC: >> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html >> >> And try the new settings, >> >> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) >> >> but it seem don't work. >> >> I don't understand if this is an issue of the new settings with >> spatialite or I'm wrong something. >> >> 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 ????? >----------------- >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From michael.smith.erdc at gmail.com Wed Jun 10 04:22:13 2015 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Wed, 10 Jun 2015 07:22:13 -0400 Subject: [mapserver-users] [EXTERNAL] Re: MapCache Time Dimensions Problem In-Reply-To: <55774EA5.8060305@meissl.name> References: <55774EA5.8060305@meissl.name> Message-ID: Stephan, Yes I did run directly on the sqlite file and its got an absolute path. I get all the responses back I think I should get eg: Select strftime('%Y-%m-%dT%H:%M:%SZ',start_time)||'/'||strftime('%Y-%m-%dT%H:%M:%S Z',end_time) from time where source_id='earthquakes'; .. 2014-03-03T23:41:21Z/2014-03-03T23:41:21Z 2014-03-07T23:47:22Z/2014-03-07T23:47:22Z 2014-03-07T00:53:09Z/2014-03-07T00:53:09Z 2014-03-06T02:51:31Z/2014-03-06T02:51:31Z ... and it all seems to work with default values. Its only when I try to pass a TIME value on the URL that I get an error. "GET /gridvm1mc/mapcache/?LAYERS=earthquakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A3857&BBOX=-28119042.469324,-9960050.5336716,281190 42.469324,9960050.5336716&WIDTH=1437&HEIGHT=509 HTTP/1.1" 200 34113 "GET /gridvm1mc/mapcache/?LAYERS=earthquakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=G etMap&STYLES=&SRS=EPSG%3A3857&BBOX=-28119042.469324,-9960050.5336716,281190 42.469324,9960050.5336716&WIDTH=1437&HEIGHT=509&TIME=2014-03-06T02:51:31Z HTTP/1.1" 404 244 And the error is no matching entry for given TIME dimension "TIME" in tileset "earthquakes" ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil -----Original Message----- From: Stephan Mei?l Date: Tuesday, June 9, 2015 at 4:37 PM To: "mapserver-users at lists.osgeo.org" Subject: [EXTERNAL] Re: [mapserver-users] MapCache Time Dimensions Problem Resent-From: Michael Smith >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi Mike, > >did you try running the query directly in sqlite substituting :tileset, >:start_timestamp, and :end_timestamp with actual values? What schema >does your sqlite database have? Is the path to the dbfile absolute and >readable? > >I could send you a working example if you want. Let me know. > >cu >Stephan > > >On 06/07/2015 01:13 AM, Michael Smith wrote: >> I've created a timedimension tileset in MapCache and created the backend >> sqlite db that has the available times. The mapserver backend handles >> the WMS TIME requests without a problem. And when I query mapcache >> without a &TIME=, I get my the default output. >> >> However, if I specify a &TIME= parameter to MapCache (as a WMS or WMTS >> request), I get >> >> no matching entry for given TIME dimension "TIME" in tileset >>"earthquakes" >> >> I don't know what I need to change to get MapCache to recognize the TIME >> parameter. From the docs on RFC-96 >> (http://mapserver.org/development/rfc/ms-rfc-96.html) I don't see what >> else to specify to set MapCache to understand TIME requests. >> >> I can see MapCache making the backend requests to generate images from >> the time values in the sqlite DB but only with the default specified in >> the . It never understands new ranges passed with &TIME=. >> >> My tileset looks like >> >> >> earthquakes >> sqlite >> GoogleMapsCompatible >> PNG >> 5 5 >> 10 >> 3600 >> >> /u02/mapcache/dbtime2.db >> select >> >>strftime('%Y-%m-%dT%H:%M:%SZ',start)||'/'||strftime('%Y-%m-%dT%H:%M:%SZ', >>end) >> from time >> where source_id=:tileset >> and >>start_time>=datetime(:start_timestamp,'unixepoch') >> and end_time<=datetime(:end_timestamp,'unixepoch') >> order by end_time >> >> >> > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1 > >iQIcBAEBAgAGBQJVd06lAAoJEKNQXeNWi+qta2kQAMVFCsQ95RFUQbe8h7AkpnZD >Io7OYrziPm7mx62F8OJmdaL4EQLVXIUqlNgxEDq4yu4phNr008mmyV26h4B1xcvA >7v3XHsw0Mm+rBbfdC+H110woUnfhNLjlO03sgd8MEpinrsxnhAi0RZOIbJpXQRyH >UiRTxtpnCKapeY1ApIORznf450GMrHx4rGAQ5DWUinnWFlKFuARwkyI+brLdae/j >gUXQYIyDzpaURCPDfaYPdUlNiKLM2GDeZY59WvBozU68LXKJS236DNXj0NBIuBal >Y4JD5DbwOYqYE5kA69cMDwOB5whNjkoQFvOUGS9mDB1Bn0mUBWUGI4alkTOIoBsl >St4QiX6CdcSkcN8c39ErR4C3b+oEbrWwEje0aAhNT7Bp9dOaRahcoSGcGXuIHnB9 >VQ/efIbaVpeGnTYtV65VpKBNiy5iqcygig6a3y2fnMO4G3eQkLAA12GxoSJHv+Fl >ZqQmtUBFtdQUYb19E0MWJhjs06IX2lqh3uo9CcgDFygO5LJ4m6r096Bq7+dbbzOn >hWZCM1MtsQ31FGjAVcgKsmBPBamOqNuNi+X8YvH1nP2fjJx+0PIeYFzWRgAKuX3F >dehpryaXwAG3N8TDNYd/2lIucAsKowamEDcQ38k017vxl7q1/RflGcmveK0Xqe5B >Xyk+HREWcAb2B6oGFVro >=mBOf >-----END PGP SIGNATURE----- >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From stephan at meissl.name Wed Jun 10 05:28:43 2015 From: stephan at meissl.name (=?UTF-8?B?U3RlcGhhbiBNZWnDn2w=?=) Date: Wed, 10 Jun 2015 14:28:43 +0200 Subject: [mapserver-users] [EXTERNAL] Re: MapCache Time Dimensions Problem In-Reply-To: References: <55774EA5.8060305@meissl.name> Message-ID: <55782D7B.3040901@meissl.name> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike, strange, did you try a time interval or simply a "bigger" time e.g. a whole day like "TIME=2014-03-06"? Maybe you can narrow it down this way. cu Stephan On 06/10/2015 01:22 PM, Michael Smith wrote: > Stephan, > > Yes I did run directly on the sqlite file and its got an absolute > path. I get all the responses back I think I should get > > eg: > > Select > strftime('%Y-%m-%dT%H:%M:%SZ',start_time)||'/'||strftime('%Y-%m-%dT%H:%M:%S > > Z',end_time) from time where source_id='earthquakes'; > > .. 2014-03-03T23:41:21Z/2014-03-03T23:41:21Z > 2014-03-07T23:47:22Z/2014-03-07T23:47:22Z > 2014-03-07T00:53:09Z/2014-03-07T00:53:09Z > 2014-03-06T02:51:31Z/2014-03-06T02:51:31Z ... > > > and it all seems to work with default values. Its only when I try > to pass a TIME value on the URL that I get an error. > > "GET > /gridvm1mc/mapcache/?LAYERS=earthquakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=G > > etMap&STYLES=&SRS=EPSG%3A3857&BBOX=-28119042.469324,-9960050.5336716,281190 > 42.469324,9960050.5336716&WIDTH=1437&HEIGHT=509 HTTP/1.1" 200 > 34113 "GET > /gridvm1mc/mapcache/?LAYERS=earthquakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=G > > etMap&STYLES=&SRS=EPSG%3A3857&BBOX=-28119042.469324,-9960050.5336716,281190 > 42.469324,9960050.5336716&WIDTH=1437&HEIGHT=509&TIME=2014-03-06T02:51:31Z > > HTTP/1.1" 404 244 > > > And the error is no matching entry for given TIME dimension "TIME" > in tileset "earthquakes" > > ---- Michael Smith > > US Army Corps Remote Sensing GIS/Center > michael.smith at usace.army.mil > > > > > > -----Original Message----- From: Stephan Mei?l > Date: Tuesday, June 9, 2015 at 4:37 PM To: > "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] Re: > [mapserver-users] MapCache Time Dimensions Problem Resent-From: > Michael Smith > > Hi Mike, > > did you try running the query directly in sqlite substituting > :tileset, :start_timestamp, and :end_timestamp with actual values? > What schema does your sqlite database have? Is the path to the > dbfile absolute and readable? > > I could send you a working example if you want. Let me know. > > cu Stephan > > > On 06/07/2015 01:13 AM, Michael Smith wrote: >>>> I've created a timedimension tileset in MapCache and created >>>> the backend sqlite db that has the available times. The >>>> mapserver backend handles the WMS TIME requests without a >>>> problem. And when I query mapcache without a &TIME=, I get >>>> my the default output. >>>> >>>> However, if I specify a &TIME= parameter to MapCache (as a >>>> WMS or WMTS request), I get >>>> >>>> no matching entry for given TIME dimension "TIME" in tileset >>>> "earthquakes" >>>> >>>> I don't know what I need to change to get MapCache to >>>> recognize the TIME parameter. From the docs on RFC-96 >>>> (http://mapserver.org/development/rfc/ms-rfc-96.html) I don't >>>> see what else to specify to set MapCache to understand TIME >>>> requests. >>>> >>>> I can see MapCache making the backend requests to generate >>>> images from the time values in the sqlite DB but only with >>>> the default specified in the . It never >>>> understands new ranges passed with &TIME=. >>>> >>>> My tileset looks like >>>> >>>> earthquakes >>>> sqlite GoogleMapsCompatible >>>> PNG 5 5 >>>> 10 3600 >>>> >>>> /u02/mapcache/dbtime2.db select >>>> >>>> strftime('%Y-%m-%dT%H:%M:%SZ',start)||'/'||strftime('%Y-%m-%dT%H:%M:%SZ', >>>> >>>> end) >>>> from time where source_id=:tileset and >>>> start_time>=datetime(:start_timestamp,'unixepoch') and >>>> end_time<=datetime(:end_timestamp,'unixepoch') order by >>>> end_time -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVeC17AAoJEKNQXeNWi+qtuwQQAJUF2EFcQw1m7f6OjY4Nkx+e wy7HrtNdL0NjvFKgzXMRA88o19E4snr+KhelYLicDJY2vp26Dk5ctuuZRfEig+HK ZUyklvSyfuG7VZPs3/7VYMcHgF+DfkbqZohhDsLXN1ZobEAl1PlxdrZulexTbmG+ O2p81d9p7qBFLgYDPT6WxW43lkLpuPIR1JYc2iT9CeBVvJ33QRF05taVVBkj+5ze mwJQdRBAT3GcK/cJSgVN1pxvUBkq4C40p84EulAERX7XTkQWnClSFSJBuyON+B3q KFnCWFxDip7zly2uwYyvJMJdkwLvJbp5UhJ/uYlDd82EODd+D4m1l//wAKsu5ZDZ f+olnKtkiMHUc2s7OwjwYYTIvYSvA9bwIHDgmAMVCyQLZEk/Wr5Jbgi8sLxid45s /A9j64nPSj/Ar9Kw9AbX+vyupT2iTiQyigKiA+OBhejX52d+rj6y4mEIS757NLTg hnBrbry1LoWQjr7/XAmdGahusCF/wp6mmb0YoWFoQI+cuFJ39iIPvWXScIvUkLG9 Qj6iw4wj8WwZ2Fe2V4QbqPs5/kPY+iriZ3hTISaqdlNCP3ZWR4OSd/DcIIf68OEE WpTq4NxDR3NKFn5RKiekPixpppUcDtU7GnwYNPwNDVkhiVLEf6tmD32bBeXSrTG6 8QZlOVjwUHAMAmxToXXP =uGbf -----END PGP SIGNATURE----- From aperi2007 at gmail.com Wed Jun 10 05:33:36 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 10 Jun 2015 14:33:36 +0200 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: Hi Michael, thx for your hint. I do some test. The right final sintax is this: PROCESSING "NATIVE_FILTER=(ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" Thx2all again. Andrea. 2015-06-10 12:27 GMT+02:00 Michael Smith : > Andrea, > > You can always use your existing filters with > > PROCESSING "NATIVE_FILTER=WHERE (ANNO = 2006) and (CODICE_UNIVOCO like > '%idtpn%' )" > > Or you can use a MapServer expression which are documented here: > http://mapserver.org/mapfile/expressions.html#mapserver-expressions > > Mike > > ---- > Michael Smith > > US Army Corps > Remote Sensing GIS/Center > michael.smith at usace.army.mil > > > > > -----Original Message----- > From: Andrea Peri > Date: Wednesday, June 10, 2015 at 5:41 AM > To: "Lime, Steve D (MNIT)" > Cc: "mapserver-users at lists.osgeo.org" > Subject: Re: [mapserver-users] Incompatibility at Filter - level between > mapserver 6.x and the last mapserver-dev ? > >>Hi steve, >>this new sintax will allow the AND operator ? >> >>I have a filter like this: >> >>FILTER "WHERE (ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" >> >>and don't know how to transform it with the new sintax. >> >>Is this kind of filter supported ? >> >>Thx, >> >>A. >> >> >>2015-06-09 19:05 GMT+02:00 Lime, Steve D (MNIT) : >>> As of MapServer 7.0 FILTERS must be given using MapServer syntax - this >>>is a regression noted in the Migration Guide, see >>>http://mapserver.org/MIGRATION_GUIDE.html#migration. There's an OGR >>>example right towards the top of that document. Basically: >>> >>> FILTER "WHERE ([CODICE] = 107)" >>> FILTERITEM "CODICE" >>> >>> Becomes: >>> >>> PROCESSING 'NATIVE_FILTER=CODICE=107' >>> >>> 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, June 09, 2015 3:45 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Incompatibility at Filter - level between >>>mapserver 6.x and the last mapserver-dev ? >>> >>> Hi, >>> I have just update my mapserver to the last mapserver-dev . >>> >>> After this update, I see an error on the filtering. >>> >>> In my mapfile the data configuration was originally this: >>> >>> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" >>> CONNECTIONTYPE OGR >>> DATA "IFT2009" >>> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 >>> FILTER "WHERE ([CODICE] = 107)" >>> FILTERITEM "CODICE" >>> .... >>> >>> >>> The log report this error: >>> >>> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using >>> outputformat named AGGA (AGG/PNG). >>> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and >>>query, 0.001s >>> [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): >>> General error message. This data driver does not implement filter >>> translation support >>> [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 >>> (rt_ucs.idift.rt.107), 0.128s >>> [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, >>>0.000s >>> >>> I'm using spatialite as db. >>> >>> After this error, I read this RFC: >>> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html >>> >>> And try the new settings, >>> >>> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) >>> >>> but it seem don't work. >>> >>> I don't understand if this is an issue of the new settings with >>> spatialite or I'm wrong something. >>> >>> 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 ????? >>----------------- >>_______________________________________________ >>mapserver-users mailing list >>mapserver-users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From michael.smith.erdc at gmail.com Wed Jun 10 05:35:44 2015 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Wed, 10 Jun 2015 08:35:44 -0400 Subject: [mapserver-users] [EXTERNAL] Re: MapCache Time Dimensions Problem In-Reply-To: <55782D7B.3040901@meissl.name> References: <55774EA5.8060305@meissl.name> <55782D7B.3040901@meissl.name> Message-ID: Stephan, Yes, I've even used the value I have as the Default value which does fetch things properly. I suppose it could be something in the specific branch I'm using. Its the animation branch from RFC-111 (http://mapserver.org/development/rfc/ms-rfc-111.html) and (https://github.com/jlarouche/mapcache/tree/animated-gif). But I tried this also with master to test it non-animated and got the same error. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/10/15, 8:28 AM, "Stephan Mei?l" wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Mike, > >strange, did you try a time interval or simply a "bigger" time e.g. a >whole day like "TIME=2014-03-06"? Maybe you can narrow it down this way. > >cu >Stephan > > >On 06/10/2015 01:22 PM, Michael Smith wrote: >> Stephan, >> >> Yes I did run directly on the sqlite file and its got an absolute >> path. I get all the responses back I think I should get >> >> eg: >> >> Select >> >>strftime('%Y-%m-%dT%H:%M:%SZ',start_time)||'/'||strftime('%Y-%m-%dT%H:%M: >>%S >> >> >Z',end_time) from time where source_id='earthquakes'; >> >> .. 2014-03-03T23:41:21Z/2014-03-03T23:41:21Z >> 2014-03-07T23:47:22Z/2014-03-07T23:47:22Z >> 2014-03-07T00:53:09Z/2014-03-07T00:53:09Z >> 2014-03-06T02:51:31Z/2014-03-06T02:51:31Z ... >> >> >> and it all seems to work with default values. Its only when I try >> to pass a TIME value on the URL that I get an error. >> >> "GET >> >>/gridvm1mc/mapcache/?LAYERS=earthquakes&SERVICE=WMS&VERSION=1.1.1&REQUEST >>=G >> >> >etMap&STYLES=&SRS=EPSG%3A3857&BBOX=-28119042.469324,-9960050.5336716,28119 >0 >> 42.469324,9960050.5336716&WIDTH=1437&HEIGHT=509 HTTP/1.1" 200 >> 34113 "GET >> >>/gridvm1mc/mapcache/?LAYERS=earthquakes&SERVICE=WMS&VERSION=1.1.1&REQUEST >>=G >> >> >etMap&STYLES=&SRS=EPSG%3A3857&BBOX=-28119042.469324,-9960050.5336716,28119 >0 >> >>42.469324,9960050.5336716&WIDTH=1437&HEIGHT=509&TIME=2014-03-06T02:51:31Z >> >> >HTTP/1.1" 404 244 >> >> >> And the error is no matching entry for given TIME dimension "TIME" >> in tileset "earthquakes" >> >> ---- Michael Smith >> >> US Army Corps Remote Sensing GIS/Center >> michael.smith at usace.army.mil >> >> >> >> >> >> -----Original Message----- From: Stephan Mei?l >> Date: Tuesday, June 9, 2015 at 4:37 PM To: >> "mapserver-users at lists.osgeo.org" >> Subject: [EXTERNAL] Re: >> [mapserver-users] MapCache Time Dimensions Problem Resent-From: >> Michael Smith >> >> Hi Mike, >> >> did you try running the query directly in sqlite substituting >> :tileset, :start_timestamp, and :end_timestamp with actual values? >> What schema does your sqlite database have? Is the path to the >> dbfile absolute and readable? >> >> I could send you a working example if you want. Let me know. >> >> cu Stephan >> >> >> On 06/07/2015 01:13 AM, Michael Smith wrote: >>>>> I've created a timedimension tileset in MapCache and created >>>>> the backend sqlite db that has the available times. The >>>>> mapserver backend handles the WMS TIME requests without a >>>>> problem. And when I query mapcache without a &TIME=, I get >>>>> my the default output. >>>>> >>>>> However, if I specify a &TIME= parameter to MapCache (as a >>>>> WMS or WMTS request), I get >>>>> >>>>> no matching entry for given TIME dimension "TIME" in tileset >>>>> "earthquakes" >>>>> >>>>> I don't know what I need to change to get MapCache to >>>>> recognize the TIME parameter. From the docs on RFC-96 >>>>> (http://mapserver.org/development/rfc/ms-rfc-96.html) I don't >>>>> see what else to specify to set MapCache to understand TIME >>>>> requests. >>>>> >>>>> I can see MapCache making the backend requests to generate >>>>> images from the time values in the sqlite DB but only with >>>>> the default specified in the . It never >>>>> understands new ranges passed with &TIME=. >>>>> >>>>> My tileset looks like >>>>> >>>>> earthquakes >>>>> sqlite GoogleMapsCompatible >>>>> PNG 5 5 >>>>> 10 3600 >>>>> >>>>> /u02/mapcache/dbtime2.db select >>>>> >>>>> >>>>>strftime('%Y-%m-%dT%H:%M:%SZ',start)||'/'||strftime('%Y-%m-%dT%H:%M:%S >>>>>Z', >>>>> >>>>> >end) >>>>> from time where source_id=:tileset and >>>>> start_time>=datetime(:start_timestamp,'unixepoch') and >>>>> end_time<=datetime(:end_timestamp,'unixepoch') order by >>>>> end_time > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1 > >iQIcBAEBAgAGBQJVeC17AAoJEKNQXeNWi+qtuwQQAJUF2EFcQw1m7f6OjY4Nkx+e >wy7HrtNdL0NjvFKgzXMRA88o19E4snr+KhelYLicDJY2vp26Dk5ctuuZRfEig+HK >ZUyklvSyfuG7VZPs3/7VYMcHgF+DfkbqZohhDsLXN1ZobEAl1PlxdrZulexTbmG+ >O2p81d9p7qBFLgYDPT6WxW43lkLpuPIR1JYc2iT9CeBVvJ33QRF05taVVBkj+5ze >mwJQdRBAT3GcK/cJSgVN1pxvUBkq4C40p84EulAERX7XTkQWnClSFSJBuyON+B3q >KFnCWFxDip7zly2uwYyvJMJdkwLvJbp5UhJ/uYlDd82EODd+D4m1l//wAKsu5ZDZ >f+olnKtkiMHUc2s7OwjwYYTIvYSvA9bwIHDgmAMVCyQLZEk/Wr5Jbgi8sLxid45s >/A9j64nPSj/Ar9Kw9AbX+vyupT2iTiQyigKiA+OBhejX52d+rj6y4mEIS757NLTg >hnBrbry1LoWQjr7/XAmdGahusCF/wp6mmb0YoWFoQI+cuFJ39iIPvWXScIvUkLG9 >Qj6iw4wj8WwZ2Fe2V4QbqPs5/kPY+iriZ3hTISaqdlNCP3ZWR4OSd/DcIIf68OEE >WpTq4NxDR3NKFn5RKiekPixpppUcDtU7GnwYNPwNDVkhiVLEf6tmD32bBeXSrTG6 >8QZlOVjwUHAMAmxToXXP >=uGbf >-----END PGP SIGNATURE----- From jt at mapmedia.de Wed Jun 10 07:00:39 2015 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Wed, 10 Jun 2015 16:00:39 +0200 Subject: [mapserver-users] no result with getFeatureInfo text/plain Message-ID: <55784307.2050309@mapmedia.de> Hello, in my WMS getFeatureInfo works fine with info_format html [1] and gml, but I don't get a result with text/plain [2]. And I found similar a example on mapserver.org... [3] & [4]. Why does getFeaturInfo for text/plain not work? [1] http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& [2] http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& [3] http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 [4] http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 J?rg and here's my mapfile: > WEB > IMAGEPATH '/tmp/' > IMAGEURL '/tmp/' > > METADATA > 'ows_title' 'Fl?chennutzungsplan der Stadt Luckau und seinen Ortsteilen' > 'ows_onlineresource' 'http://geoportal.luckau.de/ows/flaechennutzungsplaene' > 'ows_srs' 'EPSG:4326 EPSG:25832 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' > 'ows_abstract' 'WMS-Dienst zur Dartellung von Fl?chennutzungspl?ne im Stadtgebiet Luckau mit seinen Ortsteilen' > 'ows_accessconstraints' 'none' > 'ows_fees' 'none' > 'ows_keywordlist' 'Luckau, Fl?chennutzungspl?ne, WMS' > 'ows_include_items' 'all' > 'ows_encoding' 'ISO-8859-1' > 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' > 'gml_include_items' 'all' > include './includes/contact_information.inc.map' > END > END > > ### Layer #### > > LAYER > NAME 'FNP01_Grenze' > CLASS > NAME 'plan_grenze' > STYLE > SYMBOL 0 > width 3 > OUTLINECOLOR 0 0 255 > #COLOR 220 54 199 > END > END > DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp' > METADATA > 'ows_title' 'FNP 01 Grenze' > 'ows_abstract' 'Umring Fl?chennuntzungsplan Luckau, Teil 1, K?mmritz, Uckro, Paserin' > 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' > "gml_include_items" "all" > "gml_featureid" "ID" > "ows_enable_request" "*" > END > STATUS ON > PROJECTION > "init=epsg:325833" > END > TYPE POLYGON > DUMP true > HEADER './templates/fnp_legende_header.html' > TEMPLATE './templates/fnp_legende.html' > FOOTER './templates/footer.html' > END From ahmettemiz88 at gmail.com Wed Jun 10 07:18:02 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Wed, 10 Jun 2015 17:18:02 +0300 Subject: [mapserver-users] db connection through Mapserver fails Message-ID: hello My postgis raster db connection through Mapserver fails. here is the message coming from WildFly: db connection data PG: dbname=tr22 host=localhost user=orkun password=222222 port=5432 schema=public table=o_4_trdem2 where=" ST_Intersects(rast, ST_MakeEnvelope( 29.90 , 40.42 , 31.49 , 40.99, 4326 ))" mode=2 ERROR 1: PQconnectdb failed: FATAL: remaining connection slots are reserved for non-replication superuser connections Can you tell me why ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Wed Jun 10 07:22:23 2015 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Wed, 10 Jun 2015 16:22:23 +0200 Subject: [mapserver-users] no result with getFeatureInfo text/plain In-Reply-To: <55784307.2050309@mapmedia.de> References: <55784307.2050309@mapmedia.de> Message-ID: <5578481F.1030008@blixtmail.se> I think You should have a "wms_include_items" "all" in the LAYER METADATA section. Same comment as I had last week. /Lars J?rg Thomsen skrev den 2015-06-10 16:00: > Hello, > > in my WMS getFeatureInfo works fine with info_format html [1] and gml, > but I don't get a result with text/plain [2]. And I found similar a > example on mapserver.org... [3] & [4]. > > Why does getFeaturInfo for text/plain not work? > > [1] > http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& > > [2] > http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& > > [3] > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 > > [4] > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 > > J?rg > > and here's my mapfile: >> WEB >> IMAGEPATH '/tmp/' >> IMAGEURL '/tmp/' >> >> METADATA >> 'ows_title' 'Fl?chennutzungsplan der Stadt Luckau und seinen Ortsteilen' >> 'ows_onlineresource' 'http://geoportal.luckau.de/ows/flaechennutzungsplaene' >> 'ows_srs' 'EPSG:4326 EPSG:25832 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' >> 'ows_abstract' 'WMS-Dienst zur Dartellung von Fl?chennutzungspl?ne im Stadtgebiet Luckau mit seinen Ortsteilen' >> 'ows_accessconstraints' 'none' >> 'ows_fees' 'none' >> 'ows_keywordlist' 'Luckau, Fl?chennutzungspl?ne, WMS' >> 'ows_include_items' 'all' >> 'ows_encoding' 'ISO-8859-1' >> 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' >> 'gml_include_items' 'all' >> include './includes/contact_information.inc.map' >> END >> END >> >> ### Layer #### >> >> LAYER >> NAME 'FNP01_Grenze' >> CLASS >> NAME 'plan_grenze' >> STYLE >> SYMBOL 0 >> width 3 >> OUTLINECOLOR 0 0 255 >> #COLOR 220 54 199 >> END >> END >> DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp' >> METADATA >> 'ows_title' 'FNP 01 Grenze' >> 'ows_abstract' 'Umring Fl?chennuntzungsplan Luckau, Teil 1, K?mmritz, Uckro, Paserin' >> 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' >> "gml_include_items" "all" >> "gml_featureid" "ID" >> "ows_enable_request" "*" >> END >> STATUS ON >> PROJECTION >> "init=epsg:325833" >> END >> TYPE POLYGON >> DUMP true >> HEADER './templates/fnp_legende_header.html' >> TEMPLATE './templates/fnp_legende.html' >> FOOTER './templates/footer.html' >> END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at maanmittauslaitos.fi Wed Jun 10 07:26:38 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 10 Jun 2015 14:26:38 +0000 Subject: [mapserver-users] no result with getFeatureInfo text/plain Message-ID: Hi, You must have either "wms_include_items" or "ows_include_items" in the LAYER-METADATA. Now you have only "gml_include_items" at LAYER level. You do have "ows_include_items" at MAP level but it does not have any effect there. On the other hand, "ows_include_items" does not have any effect on the text/html output but that can only be adjusted by editing the template. For sending out the same information with text/plain and text/html the Mapserver admin must make edits in two different places - ows_include_items and the template. I am not sure if this should be considered as a bug or a feature but at least it is confusing. Tested with Mapserver 7.0-beta1. -Jukka Rahkonen- J?rg Thomsen wrote: > Hello, > in my WMS getFeatureInfo works fine with info_format html [1] and gml, but I don't get a result with text/plain [2]. And I found similar a example on mapserver.org... [3] & [4]. > Why does getFeaturInfo for text/plain not work? [1] http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& [2] http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& [3] http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 [4] http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 J?rg and here's my mapfile: > WEB > IMAGEPATH '/tmp/' > IMAGEURL '/tmp/' > > METADATA > 'ows_title' 'Fl?chennutzungsplan der Stadt Luckau und seinen Ortsteilen' > 'ows_onlineresource' 'http://geoportal.luckau.de/ows/flaechennutzungsplaene' > 'ows_srs' 'EPSG:4326 EPSG:25832 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' > 'ows_abstract' 'WMS-Dienst zur Dartellung von Fl?chennutzungspl?ne im Stadtgebiet Luckau mit seinen Ortsteilen' > 'ows_accessconstraints' 'none' > 'ows_fees' 'none' > 'ows_keywordlist' 'Luckau, Fl?chennutzungspl?ne, WMS' > 'ows_include_items' 'all' > 'ows_encoding' 'ISO-8859-1' > 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' > 'gml_include_items' 'all' > include './includes/contact_information.inc.map' > END > END > > ### Layer #### > > LAYER > NAME 'FNP01_Grenze' > CLASS > NAME 'plan_grenze' > STYLE > SYMBOL 0 > width 3 > OUTLINECOLOR 0 0 255 > #COLOR 220 54 199 > END > END > DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp' > METADATA > 'ows_title' 'FNP 01 Grenze' > 'ows_abstract' 'Umring Fl?chennuntzungsplan Luckau, Teil 1, K?mmritz, Uckro, Paserin' > 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' > "gml_include_items" "all" > "gml_featureid" "ID" > "ows_enable_request" "*" > END > STATUS ON > PROJECTION > "init=epsg:325833" > END > TYPE POLYGON > DUMP true > HEADER './templates/fnp_legende_header.html' > TEMPLATE './templates/fnp_legende.html' > FOOTER './templates/footer.html' > END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jt at mapmedia.de Wed Jun 10 07:32:11 2015 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Wed, 10 Jun 2015 16:32:11 +0200 Subject: [mapserver-users] no result with getFeatureInfo text/plain In-Reply-To: <5578481F.1030008@blixtmail.se> References: <55784307.2050309@mapmedia.de> <5578481F.1030008@blixtmail.se> Message-ID: <55784A6B.4020000@mapmedia.de> Am 10.06.2015 um 16:22 schrieb Lars Schylberg: > I think You should have a > > "wms_include_items" "all" > > in the LAYER METADATA section. yeees, thanks! I thought 'ows_include_items' 'all' in the header should be enough. > Same comment as I had last week. for last weeks problem this was not the solution. J?rg > /Lars > > J?rg Thomsen skrev den 2015-06-10 16:00: >> Hello, >> >> in my WMS getFeatureInfo works fine with info_format html [1] and gml, >> but I don't get a result with text/plain [2]. And I found similar a >> example on mapserver.org... [3] & [4]. >> >> Why does getFeaturInfo for text/plain not work? >> >> [1] >> http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& >> >> >> [2] >> http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& >> >> >> [3] >> http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 >> >> >> [4] >> http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 >> >> >> J?rg >> >> and here's my mapfile: >>> WEB >>> IMAGEPATH '/tmp/' >>> IMAGEURL '/tmp/' >>> >>> METADATA >>> 'ows_title' 'Fl?chennutzungsplan der Stadt Luckau >>> und seinen Ortsteilen' >>> 'ows_onlineresource' >>> 'http://geoportal.luckau.de/ows/flaechennutzungsplaene' >>> 'ows_srs' 'EPSG:4326 EPSG:25832 EPSG:25833 >>> EPSG:325833 EPSG:4528 EPSG:4839' >>> 'ows_abstract' 'WMS-Dienst zur Dartellung von >>> Fl?chennutzungspl?ne im Stadtgebiet Luckau mit seinen Ortsteilen' >>> 'ows_accessconstraints' 'none' >>> 'ows_fees' 'none' >>> 'ows_keywordlist' 'Luckau, Fl?chennutzungspl?ne, WMS' >>> 'ows_include_items' 'all' >>> 'ows_encoding' 'ISO-8859-1' >>> 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' >>> 'gml_include_items' 'all' >>> include './includes/contact_information.inc.map' >>> END >>> END >>> >>> ### Layer #### >>> >>> LAYER >>> NAME 'FNP01_Grenze' >>> CLASS >>> NAME 'plan_grenze' >>> STYLE >>> SYMBOL 0 >>> width 3 >>> OUTLINECOLOR 0 0 255 >>> #COLOR 220 54 199 >>> END >>> END >>> DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp' >>> METADATA >>> 'ows_title' 'FNP 01 Grenze' >>> 'ows_abstract' 'Umring Fl?chennuntzungsplan Luckau, Teil 1, >>> K?mmritz, Uckro, Paserin' >>> 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 >>> EPSG:4528 EPSG:4839' >>> "gml_include_items" "all" >>> "gml_featureid" "ID" >>> "ows_enable_request" "*" >>> END >>> STATUS ON >>> PROJECTION >>> "init=epsg:325833" >>> END >>> TYPE POLYGON >>> DUMP true >>> HEADER './templates/fnp_legende_header.html' >>> TEMPLATE './templates/fnp_legende.html' >>> FOOTER './templates/footer.html' >>> END >> >> _______________________________________________ >> 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 jt at mapmedia.de Wed Jun 10 07:37:36 2015 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Wed, 10 Jun 2015 16:37:36 +0200 Subject: [mapserver-users] db connection through Mapserver fails In-Reply-To: References: Message-ID: <55784BB0.9070806@mapmedia.de> hello, I hope you did not provide your real connection params? It is a PG-'poblem', try to close some open connections (old and still running ms-processes, PG-Admin, ..) or increase the max_connections configuration of your PostgreS. J?rg Am 10.06.2015 um 16:18 schrieb Ahmet Temiz: > hello > > My postgis raster db connection through Mapserver fails. > > here is the message coming from WildFly: > > db connection data PG: dbname=tr22 host=localhost user=orkun > password=222222 port=5432 schema=public table=o_4_trdem2 where=" > ST_Intersects(rast, ST_MakeEnvelope( 29.90 , 40.42 , 31.49 , 40.99, > 4326 ))" mode=2 > > ERROR 1: PQconnectdb failed: FATAL: remaining connection slots are > reserved for non-replication superuser connections > > Can you tell me why ? > > regards > > > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jt at mapmedia.de Wed Jun 10 07:48:53 2015 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Wed, 10 Jun 2015 16:48:53 +0200 Subject: [mapserver-users] no result with getFeatureInfo text/plain In-Reply-To: References: Message-ID: <55784E55.3040300@mapmedia.de> Hello Jukka, it is definitely a feature. It's nice to define different outputs, all items for text/plain an only a formatted subset in html. But wouldn't it be nice too, if we only had to configure it in the header with an overwrite-option in the layer-section? J?rg Am 10.06.2015 um 16:26 schrieb Rahkonen Jukka (MML): > Hi, > > You must have either "wms_include_items" or "ows_include_items" in the LAYER-METADATA. Now you have only "gml_include_items" at LAYER level. You do have "ows_include_items" at MAP level but it does not have any effect there. On the other hand, "ows_include_items" does not have any effect on the text/html output but that can only be adjusted by editing the template. For sending out the same information with text/plain and text/html the Mapserver admin must make edits in two different places - ows_include_items and the template. I am not sure if this should be considered as a bug or a feature but at least it is confusing. > > Tested with Mapserver 7.0-beta1. > > -Jukka Rahkonen- > > J?rg Thomsen wrote: > > >> Hello, > >> in my WMS getFeatureInfo works fine with info_format html [1] and gml, but I don't get a result with text/plain [2]. And I found similar a example on mapserver.org... [3] & [4]. > >> Why does getFeaturInfo for text/plain not work? > > [1] > http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& > > [2] > http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP10_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.807692308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT=100& > > [3] > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 > > [4] > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 > > J?rg > > and here's my mapfile: >> WEB >> IMAGEPATH '/tmp/' >> IMAGEURL '/tmp/' >> >> METADATA >> 'ows_title' 'Fl?chennutzungsplan der Stadt Luckau und seinen Ortsteilen' >> 'ows_onlineresource' 'http://geoportal.luckau.de/ows/flaechennutzungsplaene' >> 'ows_srs' 'EPSG:4326 EPSG:25832 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' >> 'ows_abstract' 'WMS-Dienst zur Dartellung von Fl?chennutzungspl?ne im Stadtgebiet Luckau mit seinen Ortsteilen' >> 'ows_accessconstraints' 'none' >> 'ows_fees' 'none' >> 'ows_keywordlist' 'Luckau, Fl?chennutzungspl?ne, WMS' >> 'ows_include_items' 'all' >> 'ows_encoding' 'ISO-8859-1' >> 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' >> 'gml_include_items' 'all' >> include './includes/contact_information.inc.map' >> END >> END >> >> ### Layer #### >> >> LAYER >> NAME 'FNP01_Grenze' >> CLASS >> NAME 'plan_grenze' >> STYLE >> SYMBOL 0 >> width 3 >> OUTLINECOLOR 0 0 255 >> #COLOR 220 54 199 >> END >> END >> DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp' >> METADATA >> 'ows_title' 'FNP 01 Grenze' >> 'ows_abstract' 'Umring Fl?chennuntzungsplan Luckau, Teil 1, K?mmritz, Uckro, Paserin' >> 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' >> "gml_include_items" "all" >> "gml_featureid" "ID" >> "ows_enable_request" "*" >> END >> STATUS ON >> PROJECTION >> "init=epsg:325833" >> END >> TYPE POLYGON >> DUMP true >> HEADER './templates/fnp_legende_header.html' >> TEMPLATE './templates/fnp_legende.html' >> FOOTER './templates/footer.html' >> END > > > _______________________________________________ > 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 Jun 10 07:51:35 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 10 Jun 2015 14:51:35 +0000 Subject: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? In-Reply-To: References: Message-ID: Correct. Filters specified in this manner are passed directly to the underlying driver. My goal was to remove ambiguity with the FILTER keyword itself since it could take both MapServer syntax and native driver syntax - depending on context. --Steve -----Original Message----- From: Michael Smith [mailto:michael.smith.erdc at gmail.com] Sent: Wednesday, June 10, 2015 5:28 AM To: Andrea Peri; Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? Andrea, You can always use your existing filters with PROCESSING "NATIVE_FILTER=WHERE (ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" Or you can use a MapServer expression which are documented here: http://mapserver.org/mapfile/expressions.html#mapserver-expressions Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil -----Original Message----- From: Andrea Peri Date: Wednesday, June 10, 2015 at 5:41 AM To: "Lime, Steve D (MNIT)" Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] Incompatibility at Filter - level between mapserver 6.x and the last mapserver-dev ? >Hi steve, >this new sintax will allow the AND operator ? > >I have a filter like this: > >FILTER "WHERE (ANNO = 2006) and (CODICE_UNIVOCO like '%idtpn%' )" > >and don't know how to transform it with the new sintax. > >Is this kind of filter supported ? > >Thx, > >A. > > >2015-06-09 19:05 GMT+02:00 Lime, Steve D (MNIT) : >> As of MapServer 7.0 FILTERS must be given using MapServer syntax - this >>is a regression noted in the Migration Guide, see >>http://mapserver.org/MIGRATION_GUIDE.html#migration. There's an OGR >>example right towards the top of that document. Basically: >> >> FILTER "WHERE ([CODICE] = 107)" >> FILTERITEM "CODICE" >> >> Becomes: >> >> PROCESSING 'NATIVE_FILTER=CODICE=107' >> >> 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, June 09, 2015 3:45 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Incompatibility at Filter - level between >>mapserver 6.x and the last mapserver-dev ? >> >> Hi, >> I have just update my mapserver to the last mapserver-dev . >> >> After this update, I see an error on the filtering. >> >> In my mapfile the data configuration was originally this: >> >> CONNECTION "/path-to-spatialite-db/zz_db_tematici.sqlite" >> CONNECTIONTYPE OGR >> DATA "IFT2009" >> EXTENT 1554650.74 4678225.52 1771822.76 4924891.9 >> FILTER "WHERE ([CODICE] = 107)" >> FILTERITEM "CODICE" >> .... >> >> >> The log report this error: >> >> [Tue Jun 9 10:39:46 2015].153296 msDrawMap(): rendering using >> outputformat named AGGA (AGG/PNG). >> [Tue Jun 9 10:39:46 2015].154698 msDrawMap(): WMS/WFS set-up and >>query, 0.001s >> [Tue Jun 9 10:39:46 2015].262330 LayerDefaultTranslateFilter(): >> General error message. This data driver does not implement filter >> translation support >> [Tue Jun 9 10:39:46 2015].282402 msDrawMap(): Layer 239 >> (rt_ucs.idift.rt.107), 0.128s >> [Tue Jun 9 10:39:46 2015].282550 msDrawMap(): Drawing Label Cache, >>0.000s >> >> I'm using spatialite as db. >> >> After this error, I read this RFC: >> http://www.mapserver.org/ru/development/rfc/ms-rfc-91.html >> >> And try the new settings, >> >> FILTER (([FILTERITEM[ = "string") AND (CODICE = 107)) >> >> but it seem don't work. >> >> I don't understand if this is an issue of the new settings with >> spatialite or I'm wrong something. >> >> 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 ????? >----------------- >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at maanmittauslaitos.fi Wed Jun 10 08:15:40 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 10 Jun 2015 15:15:40 +0000 Subject: [mapserver-users] no result with getFeatureInfo text/plain Message-ID: Hi, Definitely, not sure about that. It can be a feature if you are both configuring Mapserver and building/controlling the applications which are using the service. If you just offer a WMS service for the public your users can't imagine that changing info_format in the client settings may have an effect on the data that is returned with GetFeatureInfo. Consider GetMaps with image/png vs. image/jpeg or WFS GetFeature output as GML vs. GeoJSON. Because attributes are different then MAP level setting could only have options "all" or "none". Current situation means practically having "none" as a default for all layers. So the advantage would be an option to set the default to "all" for every layer in the service and Mapserver admin should remember to think if GetFeatureInto output should be restricted somehow for the new layers. That does not feel like a big saving in labour. What could save labour would be to generate automatically a template that would show all the fields which are listed in the "ows_include_items" in a simple default html table. Keyword for activating it could be "TEMPLATE" "AUTO" or something like that. I suppose that Geoserver is doing it that way http://docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/index.html -Jukka Rahkonen- J?rg Thomsen wrote: > Hello Jukka, > it is definitely a feature. It's nice to define different outputs, all items for text/plain an only a formatted subset in html. > But wouldn't it be nice too, if we only had to configure it in the header with an overwrite-option in the layer-section? J?rg Am 10.06.2015 um 16:26 schrieb Rahkonen Jukka (MML): > Hi, > > You must have either "wms_include_items" or "ows_include_items" in the LAYER-METADATA. Now you have only "gml_include_items" at LAYER level. You do have "ows_include_items" at MAP level but it does not have any effect there. On the other hand, "ows_include_items" does not have any effect on the text/html output but that can only be adjusted by editing the template. For sending out the same information with text/plain and text/html the Mapserver admin must make edits in two different places - ows_include_items and the template. I am not sure if this should be considered as a bug or a feature but at least it is confusing. > > Tested with Mapserver 7.0-beta1. > > -Jukka Rahkonen- > > J?rg Thomsen wrote: > > >> Hello, > >> in my WMS getFeatureInfo works fine with info_format html [1] and gml, but I don't get a result with text/plain [2]. And I found similar a example on mapserver.org... [3] & [4]. > >> Why does getFeaturInfo for text/plain not work? > > [1] > http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&RE > QUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP1 > 0_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.80769 > 2308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=tex > t/html&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUNT > =100& > > [2] > http://geoportal.luckau.de/ows/flaechennutzungsplaene?VERSION=1.1.1&RE > QUEST=GetFeatureInfo&SERVICE=WMS&LAYERS=FNP10_Grenze&QUERY_LAYERS=FNP1 > 0_Grenze&WIDTH=650&HEIGHT=450&SRS=EPSG:25833&BBOX=392406,5730396.80769 > 2308,434593,5759603.192307692&STYLES=&FORMAT=image/png&INFO_FORMAT=tex > t/plain&EXCEPTIONS=application/vnd.ogc.se_xml&X=369&Y=359&FEATURE_COUN > T=100& > > [3] > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUES > T=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPS > G:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TR > ANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 > > [4] > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUES > T=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPS > G:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TR > ANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 > > J?rg > > and here's my mapfile: >> WEB >> IMAGEPATH '/tmp/' >> IMAGEURL '/tmp/' >> >> METADATA >> 'ows_title' 'Fl?chennutzungsplan der Stadt Luckau und seinen Ortsteilen' >> 'ows_onlineresource' 'http://geoportal.luckau.de/ows/flaechennutzungsplaene' >> 'ows_srs' 'EPSG:4326 EPSG:25832 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' >> 'ows_abstract' 'WMS-Dienst zur Dartellung von Fl?chennutzungspl?ne im Stadtgebiet Luckau mit seinen Ortsteilen' >> 'ows_accessconstraints' 'none' >> 'ows_fees' 'none' >> 'ows_keywordlist' 'Luckau, Fl?chennutzungspl?ne, WMS' >> 'ows_include_items' 'all' >> 'ows_encoding' 'ISO-8859-1' >> 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' >> 'gml_include_items' 'all' >> include './includes/contact_information.inc.map' >> END >> END >> >> ### Layer #### >> >> LAYER >> NAME 'FNP01_Grenze' >> CLASS >> NAME 'plan_grenze' >> STYLE >> SYMBOL 0 >> width 3 >> OUTLINECOLOR 0 0 255 >> #COLOR 220 54 199 >> END >> END >> DATA 'raster/fnp_luckau/grenzen_umring/plan_01_grenze.shp' >> METADATA >> 'ows_title' 'FNP 01 Grenze' >> 'ows_abstract' 'Umring Fl?chennuntzungsplan Luckau, Teil 1, K?mmritz, Uckro, Paserin' >> 'ows_srs' 'EPSG:4326 EPSG:25833 EPSG:325833 EPSG:4528 EPSG:4839' >> "gml_include_items" "all" >> "gml_featureid" "ID" >> "ows_enable_request" "*" >> END >> STATUS ON >> PROJECTION >> "init=epsg:325833" >> END >> TYPE POLYGON >> DUMP true >> HEADER './templates/fnp_legende_header.html' >> TEMPLATE './templates/fnp_legende.html' >> FOOTER './templates/footer.html' >> END > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gamejihou at hotmail.com Wed Jun 10 14:26:29 2015 From: gamejihou at hotmail.com (Gery) Date: Wed, 10 Jun 2015 14:26:29 -0700 (PDT) Subject: [mapserver-users] Is this a CGI problem? Message-ID: <1433971589770-5210276.post@n6.nabble.com> Hello, I just installed MapServer 6.4.1 in Linux Mint and got this error (Opera dragonify) after passing an url in my localhost: url: localhost/ms?LAYERS=Temp2014&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-10635414.142106,-2285406.7635122,-6619106.9284492,160578.14127299&WIDTH=821&HEIGHT=500 PNG IHDR5???NIDATx???1???Om O??c{??C?IEND?B`? I use gdal-1.11.2 (installed from source) and MapServer was installed with apt-get (UbuntuGis stable). In my Synaptic Package Manager I found 'libgdal1h', not sure if this would be related. Apache version here: ii apache2 2.4.7-1ubuntu4.4 amd64 Apache HTTP Server ii apache2-bin 2.4.7-1ubuntu4.4 amd64 Apache HTTP Server (binary files and modules) ii apache2-data 2.4.7-1ubuntu4.4 all Apache HTTP Server (common files) ii apache2-utils 2.4.7-1ubuntu4.4 amd64 Apache HTTP Server (utility programs for web servers) ii libapache2-mod-mapcache 1.2.1-2 amd64 tile caching server - Apache module ii libapache2-mod-perl2 2.0.8+httpd24-r1449661-6ubuntu2 amd64 Integration of perl with the Apache2 web server ii libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.9 amd64 server-side, HTML-embedded scripting language (Apache 2 module) ii libapr1:amd64 1.5.0-1 amd64 Apache Portable Runtime Library ii libaprutil1:amd64 1.5.3-1 amd64 Apache Portable Runtime Utility Library ii libaprutil1-dbd-sqlite3:amd64 1.5.3-1 amd64 Apache Portable Runtime Utility Library - SQLite3 Driver ii libaprutil1-ldap:amd64 1.5.3-1 amd64 Apache Portable Runtime Utility Library - LDAP Driver ii libsvn1:amd64 1.8.8-1ubuntu3.1 amd64 Shared libraries used by Apache Subversion Any hints are appreciated, thanks in advance, -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ian.walberg at airborne.aero Wed Jun 10 16:26:14 2015 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 10 Jun 2015 23:26:14 +0000 Subject: [mapserver-users] Memory leak Message-ID: <301B8AEA64C24846BE688A7CFD223FC05EF533@DAGN09c-e6.exg6.exghost.com> Posting to mapserver users as well as dev list. Folks, We have a php application which renders a new map every few seconds and with any of the versions with the refactored label font support we see what appears to be a memory leak. When our application exits the error is 'Freetype was unable to load font file'. This is from fontcache.c and occurs in our case after around 130 calls to the msGetFontFace function. I will look into this further but from a quick look it seems that the FT_New_Face is being called every time. Our application uses only one font so our assumption is that this should not need to be called every time. Any help appreciated. Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Wed Jun 10 18:12:04 2015 From: gamejihou at hotmail.com (Gery) Date: Wed, 10 Jun 2015 18:12:04 -0700 (PDT) Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <1433971589770-5210276.post@n6.nabble.com> References: <1433971589770-5210276.post@n6.nabble.com> Message-ID: <1433985124643-5210291.post@n6.nabble.com> Btw, if I use shp2img I get an empty PNG, so this would tell me that CGI may not be the issue, I am wondering if my postgis connection would be the problem here, any ideas are appreciated. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210291.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tds at tds-net.de Wed Jun 10 23:17:36 2015 From: tds at tds-net.de (TDS) Date: Thu, 11 Jun 2015 08:17:36 +0200 Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <1433985124643-5210291.post@n6.nabble.com> References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> Message-ID: <55792800.6030801@tds-net.de> Hello, this is not really an error. Look into Headers tab for "Content-Type". Normally it should be "image/png" but I'm sure it isn't on your side. You mime type is wrong. Look at: http://mapserver.org/de/mapfile/outputformat.html Bye, Mathias ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 11.06.2015 um 03:12 schrieb Gery: > Btw, if I use shp2img I get an empty PNG, so this would tell me that CGI may > not be the issue, I am wondering if my postgis connection would be the > problem here, any ideas are appreciated. > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210291.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Thu Jun 11 02:22:46 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 11 Jun 2015 13:52:46 +0430 Subject: [mapserver-users] wfs service Message-ID: Hi i want to do WFS service http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TypeName=tehran but the result appear This XML file does not appear to have any style information associated with it. The document tree is shown below. msWFSDispatch(): WFS server error. WFS request not enabled. Check wfs/ows_enable_request settings. some one know where i worng -------------- next part -------------- An HTML attachment was scrubbed... URL: From tds at tds-net.de Thu Jun 11 02:39:06 2015 From: tds at tds-net.de (TDS) Date: Thu, 11 Jun 2015 11:39:06 +0200 Subject: [mapserver-users] wfs service In-Reply-To: References: Message-ID: <5579573A.60106@tds-net.de> Read the error code and the manual... MAP WEB METADATA * "ows_enable_request" "*"* * "wfs_enable_request" "*" * Bye, Mathias ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 11.06.2015 um 11:22 schrieb hosain mohammadi: > Hi > > i want to do WFS service > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TypeName=tehran > > but the result appear > > This XML file does not appear to have any style information associated > with it. The document tree is shown below. > > > msWFSDispatch(): WFS server error. WFS request not enabled. Check > wfs/ows_enable_request settings. > > > > > some one know where i worng > > > > > > > _______________________________________________ > 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 jt at mapmedia.de Thu Jun 11 02:39:08 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Thu, 11 Jun 2015 11:39:08 +0200 Subject: [mapserver-users] wfs service In-Reply-To: References: Message-ID: <5579573C.8090500@mapmedia.de> Hi, yes I know, because MapServer tells it: > WFS request not enabled. Check wfs/ows_enable_request settings. -> http://bfy.tw/Hbq -> http://mapserver.org/ogc/wfs_server.html#configuring-your-mapfile-to-serve-wfs-layers > "wfs_enable_request" "*" # necessary If this does not help, please show us your mapfile. J?rg Am 11.06.2015 um 11:22 schrieb hosain mohammadi: > Hi > > i want to do WFS service > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TypeName=tehran > > but the result appear > > This XML file does not appear to have any style information associated > with it. The document tree is shown below. > > > msWFSDispatch(): WFS server error. WFS request not enabled. Check > wfs/ows_enable_request settings. > > > > > some one know where i worng > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From renzo.kottmann at googlemail.com Thu Jun 11 02:39:55 2015 From: renzo.kottmann at googlemail.com (Renzo Kottmann) Date: Thu, 11 Jun 2015 11:39:55 +0200 Subject: [mapserver-users] wfs service In-Reply-To: References: Message-ID: <5579576B.9040704@mpi-bremen.de> Hi, as this part in the error message indicates: "Check wfs/ows_enable_request settings." You need to explicitly enable wfs requests in your map configuration metadata by setting wfs_enable_request see http://www.mapserver.org/ogc/wfs_server.html. Hope it helps,renzo On 2015-06-11 11:22, hosain mohammadi wrote: > Check wfs/ows_enable_request settings. -- Renzo Kottmann PhD Senior Scientist at Max Planck Institute for Marine Microbiology Microbial Genomics and Bioinformatics Research Group Celsiusstr. 1 28359 Bremen Germany Phone: +49 421 2028 974 From hosain.moh00 at gmail.com Thu Jun 11 04:00:57 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 11 Jun 2015 15:30:57 +0430 Subject: [mapserver-users] wfs service Message-ID: Hi i use projection for wfs service in udig bowser PROJECTION "proj=utm" "zone=39" "datum=WGS84" "units=m" "no_defs" END # PROJECTION but don't show layer some one know what must be doing -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at ausvet.com.au Thu Jun 11 04:48:41 2015 From: ben at ausvet.com.au (Ben Madin) Date: Thu, 11 Jun 2015 19:48:41 +0800 Subject: [mapserver-users] wfs service In-Reply-To: References: Message-ID: <0230E78E-959E-46E9-A4FC-CD59ED00BD6F@ausvet.com.au> Mate, Judging by the lack of response, you are not providing enough information for anyone to be able to help you. It would help if you could provide a full example (include the mapfile and maybe some data) and your connection information, as well as versions of software etc. It is not for MapServer, but the posting guide on the R mailing list might help you (http://www.r-project.org/posting-guide.html) I look forward to a more detailed question. cheers Ben > On 2015-06-11, at 19:00 , hosain mohammadi wrote: > > Hi > > i use projection for wfs service in udig bowser > > > PROJECTION > "proj=utm" > "zone=39" > "datum=WGS84" > "units=m" > "no_defs" > END # PROJECTION > > > but don't show layer > > some one know what must be doing > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ben Madin t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services Western Australia AusVet's website: http://www.ausvet.com.au This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. From hosain.moh00 at gmail.com Thu Jun 11 07:45:00 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 11 Jun 2015 19:15:00 +0430 Subject: [mapserver-users] wps Message-ID: Hello everyone someone know how make wps (web process service) in mapserver dose mapserver support it? tanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Jun 11 07:53:14 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 11 Jun 2015 11:53:14 -0300 Subject: [mapserver-users] wps In-Reply-To: References: Message-ID: <5579A0DA.4050206@gatewaygeomatics.com> On 2015-06-11 11:45 AM, hosain mohammadi wrote: > Hello everyone > > someone know how make wps (web process service) in mapserver > dose mapserver support it? > > tanks > Take a look into the popular ZOO-Project (http://zoo-project.org). You can chain processes together, through any GDAL/OGR backend, and serve them through MapServer OGC standards such as WMS, WFS, WCS, WFS-T (see http://zoo-project.org/docs/kernel/mapserver.html). And introduce yourself to the ZOO tribe (subscribe at http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From lucadeluge at gmail.com Thu Jun 11 09:46:25 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Thu, 11 Jun 2015 18:46:25 +0200 Subject: [mapserver-users] wps In-Reply-To: <5579A0DA.4050206@gatewaygeomatics.com> References: <5579A0DA.4050206@gatewaygeomatics.com> Message-ID: On 11 June 2015 at 16:53, Jeff McKenna wrote: > > Take a look into the popular ZOO-Project (http://zoo-project.org). You can > chain processes together, through any GDAL/OGR backend, and serve them > through MapServer OGC standards such as WMS, WFS, WCS, WFS-T (see > http://zoo-project.org/docs/kernel/mapserver.html). > > And introduce yourself to the ZOO tribe (subscribe at > http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss) > +1 > -jeff > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From gamejihou at hotmail.com Thu Jun 11 14:35:52 2015 From: gamejihou at hotmail.com (Gery) Date: Thu, 11 Jun 2015 14:35:52 -0700 (PDT) Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <55792800.6030801@tds-net.de> References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> <55792800.6030801@tds-net.de> Message-ID: <1434058552209-5210501.post@n6.nabble.com> danke Mathias, but I have that settings already, check this out please: MAP NAME "todas_capas" IMAGETYPE PNG EXTENT -79.861667 -12.386528 -77.103611 -7.250694 UNITS dd SIZE 800 600 MAXSIZE 4000 SHAPEPATH /home/gery/myTrash FONTSET "../extras/set" SYMBOLSET "../extras/set" IMAGEQUALITY 100 OUTPUTFORMAT NAME "png" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END and the layer, var MapFileUrl = '/ms?'; var ptp2014 = new OpenLayers.Layer.WMS('1eraTemporadadePesca2014',MapFileUrl,{ layers: 'Temporada1eraPesca2014', transparent: true, format: 'image/png' },{ transitionEffect: 'resize', singleTile: true, ratio: 1, isBaseLayer: false, wrapDateLine: true }); map.addLayers([gphy, gmap, ghyb, gsat, ptp2014]); -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210501.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tds at tds-net.de Thu Jun 11 22:41:52 2015 From: tds at tds-net.de (TDS) Date: Fri, 12 Jun 2015 07:41:52 +0200 Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <1434058552209-5210501.post@n6.nabble.com> References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> <55792800.6030801@tds-net.de> <1434058552209-5210501.post@n6.nabble.com> Message-ID: <557A7120.6080300@tds-net.de> Hello, please note spelling mistakes: Your IMAGETYPE needs to be "png" because NAME in OUTPUTFORMAT ist "png". You are missing projection: PROJECTION "init=epsg:4326" END For images please define a temp path which exists and is writable: IMAGEPATH "../tmp" IMAGEURL "../tmp" If PNG leads to errors try "GD/PNG" instead of "AGG/PNG". Try debugging in master part: DEBUG 5 CONFIG "MS_ERRORFILE" "../tmp/mapserver.log" CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" Try debugging in layer part: DEBUG 5 Bye, TDS ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 11.06.2015 um 23:35 schrieb Gery: > danke Mathias, but I have that settings already, check this out please: > > MAP > NAME "todas_capas" > IMAGETYPE PNG > EXTENT -79.861667 -12.386528 -77.103611 -7.250694 > UNITS dd > SIZE 800 600 > MAXSIZE 4000 > SHAPEPATH /home/gery/myTrash > FONTSET "../extras/set" > SYMBOLSET "../extras/set" > IMAGEQUALITY 100 > > OUTPUTFORMAT > NAME "png" > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > > and the layer, > > var MapFileUrl = '/ms?'; > var ptp2014 = new > OpenLayers.Layer.WMS('1eraTemporadadePesca2014',MapFileUrl,{ > layers: 'Temporada1eraPesca2014', > transparent: true, > format: 'image/png' > },{ > transitionEffect: 'resize', > singleTile: true, > ratio: 1, > isBaseLayer: false, > wrapDateLine: true > }); > map.addLayers([gphy, gmap, ghyb, gsat, ptp2014]); > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210501.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Fri Jun 12 07:07:07 2015 From: gamejihou at hotmail.com (Gery) Date: Fri, 12 Jun 2015 07:07:07 -0700 (PDT) Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <557A7120.6080300@tds-net.de> References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> <55792800.6030801@tds-net.de> <1434058552209-5210501.post@n6.nabble.com> <557A7120.6080300@tds-net.de> Message-ID: <1434118027525-5210648.post@n6.nabble.com> vielen Dankl! Thanks a lot for that, I just added your tips and I got a new error message, this time related to gdal: apache log: [Fri Jun 12 09:10:06.316827 2015] [cgi:error] [pid 6680] [client 127.0.0.1:41157] AH01215: GDAL: In GDALDestroy - unloading GDAL shared library. also the same appears with shp2img: shp2img -m todas_capas.map -o test.png shp2img: /usr/local/lib/libgdal.so.1: no version information available (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) GDAL: In GDALDestroy - unloading GDAL shared library. test.png is empty. I have installed gdal-1.11.2 from source, mapserv -v gives: mapserv: /usr/local/lib/libgdal.so.1: no version information available (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there a way to fix this without uninstalling and/or reinstalling gdal? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210648.html Sent from the Mapserver - User mailing list archive at Nabble.com. From marcandre_trottier at hotmail.com Fri Jun 12 07:12:23 2015 From: marcandre_trottier at hotmail.com (=?UTF-8?Q?Marc=2DAndr=C3=A9_Trottier?=) Date: Fri, 12 Jun 2015 10:12:23 -0400 Subject: [mapserver-users] symbol SVG with format image/png Message-ID: with a getMap request with "format = image/png", if i got one layer with a SVG symbol, is it supposed to be rendered ? in my case : no. layer's class : CLASS NAME "Camera" GROUP "DEFAULT" STYLE SYMBOL 'http:// geoegl.msp.gouv.qc.ca/gouvouvert/public/images/marqueur/fleche.svg' END END mapserver config : MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Jun 12 07:13:57 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 12 Jun 2015 16:13:57 +0200 Subject: [mapserver-users] symbol SVG with format image/png In-Reply-To: References: Message-ID: Add a SIZE... On Jun 12, 2015 4:12 PM, "Marc-Andr? Trottier" < marcandre_trottier at hotmail.com> wrote: > with a getMap request with "format = image/png", > if i got one layer with a SVG symbol, is it supposed to be rendered ? > in my case : no. > > layer's class : > CLASS > NAME "Camera" > GROUP "DEFAULT" > STYLE > SYMBOL 'http:// > geoegl.msp.gouv.qc.ca/gouvouvert/public/images/marqueur/fleche.svg' > END > END > > mapserver config : > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO > SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > _______________________________________________ > 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 milo at dogodigi.net Fri Jun 12 07:13:59 2015 From: milo at dogodigi.net (Milo van der Linden) Date: Fri, 12 Jun 2015 16:13:59 +0200 Subject: [mapserver-users] symbol SVG with format image/png In-Reply-To: References: Message-ID: Hello Marc-Andr?, I don't know if what you try is supported; getting a symbol from a remote url. I think the symbol needs to be stored in a folder relative to your mapfile, but I could be wrong. 2015-06-12 16:12 GMT+02:00 Marc-Andr? Trottier < marcandre_trottier at hotmail.com>: > with a getMap request with "format = image/png", > if i got one layer with a SVG symbol, is it supposed to be rendered ? > in my case : no. > > layer's class : > CLASS > NAME "Camera" > GROUP "DEFAULT" > STYLE > SYMBOL 'http:// > geoegl.msp.gouv.qc.ca/gouvouvert/public/images/marqueur/fleche.svg' > END > END > > mapserver config : > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO > SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- [image: http://www.dogodigi.net] *Milo van der Linden* web: dogodigi tel: +31-6-16598808 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tds at tds-net.de Fri Jun 12 07:21:40 2015 From: tds at tds-net.de (TDS) Date: Fri, 12 Jun 2015 16:21:40 +0200 Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <1434118027525-5210648.post@n6.nabble.com> References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> <55792800.6030801@tds-net.de> <1434058552209-5210501.post@n6.nabble.com> <557A7120.6080300@tds-net.de> <1434118027525-5210648.post@n6.nabble.com> Message-ID: <557AEAF4.1020307@tds-net.de> YesNo :-/ https://trac.osgeo.org/grass/ticket/1730 Similar: http://stackoverflow.com/questions/137773/what-does-the-no-version-information-available-error-from-linux-dynamic-linker/156387#156387 The problem is that you have a mixture of library version on your system, e.g. installed GDAL by packagemanager and later compiled yourself - on in /usr/lib and on in /usr/local/lib You can try to remove the other libraries via package manager. So you have only your compiled libraries later. Bye, Mathias ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 12.06.2015 um 16:07 schrieb Gery: > vielen Dankl! Thanks a lot for that, I just added your tips and I got a new > error message, this time related to gdal: > > apache log: > [Fri Jun 12 09:10:06.316827 2015] [cgi:error] [pid 6680] [client > 127.0.0.1:41157] AH01215: GDAL: In GDALDestroy - unloading GDAL shared > library. > > also the same appears with shp2img: > > shp2img -m todas_capas.map -o test.png > shp2img: /usr/local/lib/libgdal.so.1: no version information available > (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) > GDAL: In GDALDestroy - unloading GDAL shared library. > > test.png is empty. I have installed gdal-1.11.2 from source, mapserv -v > gives: > > mapserv: /usr/local/lib/libgdal.so.1: no version information available > (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO > SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > Is there a way to fix this without uninstalling and/or reinstalling gdal? > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210648.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Fri Jun 12 08:38:48 2015 From: gamejihou at hotmail.com (Gery) Date: Fri, 12 Jun 2015 08:38:48 -0700 (PDT) Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: <557AEAF4.1020307@tds-net.de> References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> <55792800.6030801@tds-net.de> <1434058552209-5210501.post@n6.nabble.com> <557A7120.6080300@tds-net.de> <1434118027525-5210648.post@n6.nabble.com> <557AEAF4.1020307@tds-net.de> Message-ID: mmmm would it be a way to link mapserver directly to libgdal coming from source? If I uninstall gdal-related apt-get packages, mapserver et al get screwed, I just don't want to install all from source (ie. postgis, mapserver, proj, geos, etc, etc). ________________________________ > Date: Fri, 12 Jun 2015 07:18:31 -0700 > From: ml-node+s1560n5210653h69 at n6.nabble.com > To: gamejihou at hotmail.com > Subject: Re: Is this a CGI problem? > > YesNo :-/ > > https://trac.osgeo.org/grass/ticket/1730 > Similar: > http://stackoverflow.com/questions/137773/what-does-the-no-version-information-available-error-from-linux-dynamic-linker/156387#156387 > > The problem is that you have a mixture of library version on your > system, e.g. installed GDAL by packagemanager and later compiled > yourself - on in /usr/lib and on in /usr/local/lib > > You can try to remove the other libraries via package manager. So you > have only your compiled libraries later. > > > Bye, Mathias > ________________________________ > [hidden email] > ________________________________ > 1+1=10 > You have a question? - 42 or RTFM. > Am 12.06.2015 um 16:07 schrieb Gery: > > vielen Dankl! Thanks a lot for that, I just added your tips and I got a new > error message, this time related to gdal: > > apache log: > [Fri Jun 12 09:10:06.316827 2015] [cgi:error] [pid 6680] [client > 127.0.0.1:41157] AH01215: GDAL: In GDALDestroy - unloading GDAL shared > library. > > also the same appears with shp2img: > > shp2img -m todas_capas.map -o test.png > shp2img: /usr/local/lib/libgdal.so.1: no version information available > (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) > GDAL: In GDALDestroy - unloading GDAL shared library. > > test.png is empty. I have installed gdal-1.11.2 from source, mapserv -v > gives: > > mapserv: /usr/local/lib/libgdal.so.1: no version information available > (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO > SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > Is there a way to fix this without uninstalling and/or reinstalling gdal? > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210648.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ________________________________ > If you reply to this email, your message will be added to the > discussion below: > http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210653.html > To unsubscribe from Is this a CGI problem?, click > here. > NAML -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210671.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Jun 12 09:51:04 2015 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 12 Jun 2015 12:51:04 -0400 Subject: [mapserver-users] Is this a CGI problem? In-Reply-To: References: <1433971589770-5210276.post@n6.nabble.com> <1433985124643-5210291.post@n6.nabble.com> <55792800.6030801@tds-net.de> <1434058552209-5210501.post@n6.nabble.com> <557A7120.6080300@tds-net.de> <1434118027525-5210648.post@n6.nabble.com> <557AEAF4.1020307@tds-net.de> Message-ID: <557B0DF8.9010302@swoodbridge.com> No really, if you are installing mapserver from a package that package defines the related package dependencies. So if you uninstall package libgdal, the package manager removes everything dependent on that. Anything else will get very dicey very quickly. I you are just testing then uninstall the related packages, and rebuild them for source and install them in someplace like /opt/tools/ that is clean. Then you can remove the dir tree and reinstall based on packages. Also look around for a repository that has more recent packages, than the standard distributions. -Steve W On 6/12/2015 11:38 AM, Gery wrote: > mmmm would it be a way to link mapserver directly to libgdal coming from > source? If I uninstall gdal-related apt-get packages, mapserver et al > get screwed, I just don't want to install all from source (ie. postgis, > mapserver, proj, geos, etc, etc). > > ________________________________ > > > Date: Fri, 12 Jun 2015 07:18:31 -0700 > > From: [hidden email] > > To: [hidden email] > > Subject: Re: Is this a CGI problem? > > > > YesNo :-/ > > > > https://trac.osgeo.org/grass/ticket/1730 > > Similar: > > > http://stackoverflow.com/questions/137773/what-does-the-no-version-information-available-error-from-linux-dynamic-linker/156387#156387 > > > > > The problem is that you have a mixture of library version on your > > system, e.g. installed GDAL by packagemanager and later compiled > > yourself - on in /usr/lib and on in /usr/local/lib > > > > You can try to remove the other libraries via package manager. So you > > have only your compiled libraries later. > > > > > > Bye, Mathias > > ________________________________ > > [hidden email] > > ________________________________ > > 1+1=10 > > You have a question? - 42 or RTFM. > > Am 12.06.2015 um 16:07 schrieb Gery: > > > > vielen Dankl! Thanks a lot for that, I just added your tips and I got > a new > > error message, this time related to gdal: > > > > apache log: > > [Fri Jun 12 09:10:06.316827 2015] [cgi:error] [pid 6680] [client > > 127.0.0.1:41157] AH01215: GDAL: In GDALDestroy - unloading GDAL shared > > library. > > > > also the same appears with shp2img: > > > > shp2img -m todas_capas.map -o test.png > > shp2img: /usr/local/lib/libgdal.so.1: no version information available > > (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) > > GDAL: In GDALDestroy - unloading GDAL shared library. > > > > test.png is empty. I have installed gdal-1.11.2 from source, mapserv -v > > gives: > > > > mapserv: /usr/local/lib/libgdal.so.1: no version information available > > (required by /usr/lib/x86_64-linux-gnu/libmapserver.so.1) > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO > > SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI > > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI > > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=GDAL > > INPUT=SHAPEFILE > > > > Is there a way to fix this without uninstalling and/or reinstalling > gdal? > > > > > > > > -- > > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210648.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ________________________________ > > If you reply to this email, your message will be added to the > > discussion below: > > > http://osgeo-org.1560.x6.nabble.com/Is-this-a-CGI-problem-tp5210276p5210653.html > > > To unsubscribe from Is this a CGI problem?, click > > here< > > > NAML > > > ------------------------------------------------------------------------ > View this message in context: RE: Is this a CGI problem? > > 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 bhudspeth at edac.unm.edu Mon Jun 15 07:04:50 2015 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Mon, 15 Jun 2015 08:04:50 -0600 Subject: [mapserver-users] WMS services from a NetCDF file layer Message-ID: <557EDB82.8030206@edac.unm.edu> Hello, I am using mapserver to provide WCS and WMS services from individual layers (and their constituent bands) contained in a CF-formatted NetCDF file. I have successfully implemented WCS services, but am continuing to have problems with WMS services. While calls to return a single raster grid (derived from a NetCDF layer) as a WMS request returns a correctly projected image, the image is entirely white, and does not seem to correctly reinterpret original data values into a range of pixel color values. I would appreciate any information on what I might be missing. Thanks! -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.schindler at eox.at Mon Jun 15 07:47:34 2015 From: fabian.schindler at eox.at (Fabian Schindler) Date: Mon, 15 Jun 2015 16:47:34 +0200 Subject: [mapserver-users] WMS services from a NetCDF file layer In-Reply-To: <557EDB82.8030206@edac.unm.edu> References: <557EDB82.8030206@edac.unm.edu> Message-ID: <557EE586.6030109@eox.at> This is probably due to the fact that your raster values are beyond 255. Mapserver truncates this to 255 which interpreted as white on a greyscale. To correctly scale the values you can use band processing options: PROCESSING "SCALE=:" You can also use "AUTO" but that might result in strangely "tiled" images. See: http://mapserver.org/input/raster.html#special-processing-directives Regards, Fabian On 15.06.15 16:04, William Hudspeth wrote: > Hello, > > I am using mapserver to provide WCS and WMS services from individual > layers (and their constituent bands) contained in a CF-formatted NetCDF > file. I have successfully implemented WCS services, but am continuing to > have problems with WMS services. While calls to return a single raster > grid (derived from a NetCDF layer) as a WMS request returns a correctly > projected image, the image is entirely white, and does not seem to > correctly reinterpret original data values into a range of pixel color > values. I would appreciate any information on what I might be missing. > > Thanks! > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aperi2007 at gmail.com Tue Jun 16 05:08:38 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 16 Jun 2015 14:08:38 +0200 Subject: [mapserver-users] Mapserver wfs and clause SortBY Message-ID: Hi, I'm tryng to use the new wfs 2.0.0 available in mapserver, but I'm having some trouble with a request using the clause "sortby" is supported in the mapserver wfs 2.0.0 ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From even.rouault at spatialys.com Tue Jun 16 05:21:49 2015 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 16 Jun 2015 14:21:49 +0200 Subject: [mapserver-users] Mapserver wfs and clause SortBY In-Reply-To: References: Message-ID: <201506161421.49635.even.rouault@spatialys.com> Le mardi 16 juin 2015 14:08:38, Andrea Peri a ?crit : > Hi, > > I'm tryng to use the new wfs 2.0.0 available in mapserver, but I'm > having some trouble with a request using the clause > > "sortby" > > is supported in the mapserver wfs 2.0.0 ? Andrea, see section "Sorting" of http://mapserver.org/fr/development/rfc/ms-rfc-105.html Even > > Thx, -- Spatialys - Geospatial professional services http://www.spatialys.com From aperi2007 at gmail.com Tue Jun 16 05:25:33 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 16 Jun 2015 14:25:33 +0200 Subject: [mapserver-users] Mapserver wfs and clause SortBY In-Reply-To: <201506161421.49635.even.rouault@spatialys.com> References: <201506161421.49635.even.rouault@spatialys.com> Message-ID: Thx Even, I guess erhaps there is an issue. Infact I'm using spatialite with mapserver wfs 2 and the sorting is not working. It give an error. So perhaps the question is that the sorting not work with any format from gdal (also spatialite) not only shapefile ? Thx, A. 2015-06-16 14:21 GMT+02:00 Even Rouault : > Le mardi 16 juin 2015 14:08:38, Andrea Peri a ?crit : >> Hi, >> >> I'm tryng to use the new wfs 2.0.0 available in mapserver, but I'm >> having some trouble with a request using the clause >> >> "sortby" >> >> is supported in the mapserver wfs 2.0.0 ? > > Andrea, > > see section "Sorting" of > http://mapserver.org/fr/development/rfc/ms-rfc-105.html > > Even > >> >> Thx, > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Tue Jun 16 05:28:41 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 16 Jun 2015 14:28:41 +0200 Subject: [mapserver-users] Mapserver wfs and clause SortBY In-Reply-To: References: <201506161421.49635.even.rouault@spatialys.com> Message-ID: Hi Even, my fault. I was using a layer from postgis not from spatialite. Now I try with the spatialite. Regards, A. 2015-06-16 14:25 GMT+02:00 Andrea Peri : > Thx Even, > > I guess erhaps there is an issue. > Infact I'm using spatialite with mapserver wfs 2 and the sorting is not working. > It give an error. > > So perhaps the question is that the sorting not work with any format > from gdal (also spatialite) not only shapefile ? > > Thx, > > A. > > > > 2015-06-16 14:21 GMT+02:00 Even Rouault : >> Le mardi 16 juin 2015 14:08:38, Andrea Peri a ?crit : >>> Hi, >>> >>> I'm tryng to use the new wfs 2.0.0 available in mapserver, but I'm >>> having some trouble with a request using the clause >>> >>> "sortby" >>> >>> is supported in the mapserver wfs 2.0.0 ? >> >> Andrea, >> >> see section "Sorting" of >> http://mapserver.org/fr/development/rfc/ms-rfc-105.html >> >> Even >> >>> >>> Thx, >> >> -- >> Spatialys - Geospatial professional services >> http://www.spatialys.com > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From even.rouault at spatialys.com Tue Jun 16 05:38:58 2015 From: even.rouault at spatialys.com (Even Rouault) Date: Tue, 16 Jun 2015 14:38:58 +0200 Subject: [mapserver-users] Mapserver wfs and clause SortBY In-Reply-To: References: <201506161421.49635.even.rouault@spatialys.com> Message-ID: <201506161438.58719.even.rouault@spatialys.com> Le mardi 16 juin 2015 14:25:33, Andrea Peri a ?crit : > Thx Even, > > I guess erhaps there is an issue. > Infact I'm using spatialite with mapserver wfs 2 and the sorting is not > working. It give an error. Please give the exact error message, the request and the relevant part of the mapfile ( which is the MapServer summary of http://www.chiark.greenend.org.uk/~sgtatham/bugs.html ) > > So perhaps the question is that the sorting not work with any format > from gdal (also spatialite) not only shapefile ? > > Thx, > > A. > > 2015-06-16 14:21 GMT+02:00 Even Rouault : > > Le mardi 16 juin 2015 14:08:38, Andrea Peri a ?crit : > >> Hi, > >> > >> I'm tryng to use the new wfs 2.0.0 available in mapserver, but I'm > >> having some trouble with a request using the clause > >> > >> "sortby" > >> > >> is supported in the mapserver wfs 2.0.0 ? > > > > Andrea, > > > > see section "Sorting" of > > http://mapserver.org/fr/development/rfc/ms-rfc-105.html > > > > Even > > > >> Thx, > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com From aperi2007 at gmail.com Tue Jun 16 05:46:07 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 16 Jun 2015 14:46:07 +0200 Subject: [mapserver-users] Mapserver wfs and clause SortBY In-Reply-To: <201506161438.58719.even.rouault@spatialys.com> References: <201506161421.49635.even.rouault@spatialys.com> <201506161438.58719.even.rouault@spatialys.com> Message-ID: Hi Even, it was a false issue. Instead mapserver wfs 2.0 is working perfectly with the clause SortBY. The error was due to a wrong tag in post xml request. Sorry for noise. A. 2015-06-16 14:38 GMT+02:00 Even Rouault : > Le mardi 16 juin 2015 14:25:33, Andrea Peri a ?crit : >> Thx Even, >> >> I guess erhaps there is an issue. >> Infact I'm using spatialite with mapserver wfs 2 and the sorting is not >> working. It give an error. > > Please give the exact error message, the request and the relevant part of the > mapfile ( which is the MapServer summary of > http://www.chiark.greenend.org.uk/~sgtatham/bugs.html ) > >> >> So perhaps the question is that the sorting not work with any format >> from gdal (also spatialite) not only shapefile ? >> >> Thx, >> >> A. >> >> 2015-06-16 14:21 GMT+02:00 Even Rouault : >> > Le mardi 16 juin 2015 14:08:38, Andrea Peri a ?crit : >> >> Hi, >> >> >> >> I'm tryng to use the new wfs 2.0.0 available in mapserver, but I'm >> >> having some trouble with a request using the clause >> >> >> >> "sortby" >> >> >> >> is supported in the mapserver wfs 2.0.0 ? >> > >> > Andrea, >> > >> > see section "Sorting" of >> > http://mapserver.org/fr/development/rfc/ms-rfc-105.html >> > >> > Even >> > >> >> Thx, >> > >> > -- >> > Spatialys - Geospatial professional services >> > http://www.spatialys.com > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From bhudspeth at edac.unm.edu Tue Jun 16 09:01:43 2015 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Tue, 16 Jun 2015 10:01:43 -0600 (MDT) Subject: [mapserver-users] WMS services from a NetCDF file layer In-Reply-To: <1672739203.1040853.1434470485235.JavaMail.zimbra@edac.unm.edu> References: <557EDB82.8030206@edac.unm.edu> <557EE586.6030109@eox.at> Message-ID: <486751530.1040891.1434470503327.JavaMail.zimbra@edac.unm.edu> Thanks for your suggestion Fabian, I have tried both: PROCESSING "SCALE=:" PROCESSING "SCALE=AUTO" but with no change....with outputformat set to jpeg, I get a white image, with outputformat set to PNG, I get a very light grey image....but that is all! Thanks, Bill ----- Original Message ----- From: "Fabian Schindler" To: mapserver-users at lists.osgeo.org Sent: Monday, June 15, 2015 8:47:34 AM Subject: Re: [mapserver-users] WMS services from a NetCDF file layer This is probably due to the fact that your raster values are beyond 255. Mapserver truncates this to 255 which interpreted as white on a greyscale. To correctly scale the values you can use band processing options: PROCESSING "SCALE=:" You can also use "AUTO" but that might result in strangely "tiled" images. See: http://mapserver.org/input/raster.html#special-processing-directives Regards, Fabian On 15.06.15 16:04, William Hudspeth wrote: > Hello, > > I am using mapserver to provide WCS and WMS services from individual > layers (and their constituent bands) contained in a CF-formatted NetCDF > file. I have successfully implemented WCS services, but am continuing to > have problems with WMS services. While calls to return a single raster > grid (derived from a NetCDF layer) as a WMS request returns a correctly > projected image, the image is entirely white, and does not seem to > correctly reinterpret original data values into a range of pixel color > values. I would appreciate any information on what I might be missing. > > Thanks! > > > > _______________________________________________ > 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 fabian.schindler at eox.at Tue Jun 16 10:50:46 2015 From: fabian.schindler at eox.at (Fabian Schindler) Date: Tue, 16 Jun 2015 19:50:46 +0200 Subject: [mapserver-users] WMS services from a NetCDF file layer In-Reply-To: <486751530.1040891.1434470503327.JavaMail.zimbra@edac.unm.edu> References: <557EDB82.8030206@edac.unm.edu> <557EE586.6030109@eox.at> <486751530.1040891.1434470503327.JavaMail.zimbra@edac.unm.edu> Message-ID: <558061F6.7080005@eox.at> For the PROCESSING "SCALE=:" option you have to replace the and with the respective values (you can use gdalinfo -stats to see what the minimum and maximum values of the image are). Perhaps, you could transform your image on the command line using gdal_translate with the respective "-scale" option and see what the output is there. Regards, Fabian On 16.06.15 18:01, Bill Hudspeth wrote: > Thanks for your suggestion Fabian, > > > I have tried both: > PROCESSING "SCALE=:" > PROCESSING "SCALE=AUTO" > > but with no change....with outputformat set to jpeg, I get a white image, with outputformat set to PNG, I get a very light grey image....but that is all! > > Thanks, Bill > > > ----- Original Message ----- > From: "Fabian Schindler" > To: mapserver-users at lists.osgeo.org > Sent: Monday, June 15, 2015 8:47:34 AM > Subject: Re: [mapserver-users] WMS services from a NetCDF file layer > > This is probably due to the fact that your raster values are beyond 255. > Mapserver truncates this to 255 which interpreted as white on a > greyscale. To correctly scale the values you can use band processing > options: > > PROCESSING "SCALE=:" > > You can also use "AUTO" but that might result in strangely "tiled" images. > > See: > http://mapserver.org/input/raster.html#special-processing-directives > > Regards, > Fabian > > On 15.06.15 16:04, William Hudspeth wrote: >> Hello, >> >> I am using mapserver to provide WCS and WMS services from individual >> layers (and their constituent bands) contained in a CF-formatted NetCDF >> file. I have successfully implemented WCS services, but am continuing to >> have problems with WMS services. While calls to return a single raster >> grid (derived from a NetCDF layer) as a WMS request returns a correctly >> projected image, the image is entirely white, and does not seem to >> correctly reinterpret original data values into a range of pixel color >> values. I would appreciate any information on what I might be missing. >> >> Thanks! >> >> >> >> _______________________________________________ >> 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 bhudspeth at edac.unm.edu Wed Jun 17 07:16:49 2015 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Wed, 17 Jun 2015 08:16:49 -0600 (MDT) Subject: [mapserver-users] WMS services from a NetCDF file layer In-Reply-To: <379200032.1057040.1434550579877.JavaMail.zimbra@edac.unm.edu> References: <557EDB82.8030206@edac.unm.edu> <557EE586.6030109@eox.at> <486751530.1040891.1434470503327.JavaMail.zimbra@edac.unm.edu> <558061F6.7080005@eox.at> Message-ID: <1237189963.1057055.1434550609298.JavaMail.zimbra@edac.unm.edu> After determining the data value range (min/max) with gdalinfo -stats for a specific layer, I have now tried both with no satisfactory results... PROCESSING "SCALE=AUTO" PROCESSING "SCALE=313.72549438477:425.49020385742" ----- Original Message ----- From: "Fabian Schindler" To: "bhudspeth" Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, June 16, 2015 11:50:46 AM Subject: Re: [mapserver-users] WMS services from a NetCDF file layer For the PROCESSING "SCALE=:" option you have to replace the and with the respective values (you can use gdalinfo -stats to see what the minimum and maximum values of the image are). Perhaps, you could transform your image on the command line using gdal_translate with the respective "-scale" option and see what the output is there. Regards, Fabian On 16.06.15 18:01, Bill Hudspeth wrote: > Thanks for your suggestion Fabian, > > > I have tried both: > PROCESSING "SCALE=:" > PROCESSING "SCALE=AUTO" > > but with no change....with outputformat set to jpeg, I get a white image, with outputformat set to PNG, I get a very light grey image....but that is all! > > Thanks, Bill > > > ----- Original Message ----- > From: "Fabian Schindler" > To: mapserver-users at lists.osgeo.org > Sent: Monday, June 15, 2015 8:47:34 AM > Subject: Re: [mapserver-users] WMS services from a NetCDF file layer > > This is probably due to the fact that your raster values are beyond 255. > Mapserver truncates this to 255 which interpreted as white on a > greyscale. To correctly scale the values you can use band processing > options: > > PROCESSING "SCALE=:" > > You can also use "AUTO" but that might result in strangely "tiled" images. > > See: > http://mapserver.org/input/raster.html#special-processing-directives > > Regards, > Fabian > > On 15.06.15 16:04, William Hudspeth wrote: >> Hello, >> >> I am using mapserver to provide WCS and WMS services from individual >> layers (and their constituent bands) contained in a CF-formatted NetCDF >> file. I have successfully implemented WCS services, but am continuing to >> have problems with WMS services. While calls to return a single raster >> grid (derived from a NetCDF layer) as a WMS request returns a correctly >> projected image, the image is entirely white, and does not seem to >> correctly reinterpret original data values into a range of pixel color >> values. I would appreciate any information on what I might be missing. >> >> Thanks! >> >> >> >> _______________________________________________ >> 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 hosain.moh00 at gmail.com Thu Jun 18 01:43:44 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 18 Jun 2015 13:13:44 +0430 Subject: [mapserver-users] attribute table Message-ID: how can create attribute table like (arcmap) in map server -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Thu Jun 18 05:49:11 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 18 Jun 2015 17:19:11 +0430 Subject: [mapserver-users] (no subject) Message-ID: the code below is a layer in map file in this code i want create a query in postgis for shortestpath but a the number 77 ,388 is the source and target and the result create successfully but my problem is how insert the number ( 77, 388) in template file or insert by user how insert from html file LAYER CONNECTION "host=localhost dbname=network user=postgres password=021555 port=5432" CONNECTIONTYPE POSTGIS DATA "geom from (SELECT * from pgr_dijkstra( 'SELECT gid as id , source , target , cost FROM tehran' , 77, 388, false , false ) a LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid using srid=4326 " NAME "shortestpath" PROJECTION "proj=utm" "zone=39" "datum=WGS84" "units=m" "no_defs" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" TYPE LINE UNITS METERS CLASS NAME "Class (0)" STYLE COLOR 255 128 64 SIZE 8 WIDTH 10 END # STYLE END # CLASS END # LAYER -------------- next part -------------- An HTML attachment was scrubbed... URL: From tds at tds-net.de Thu Jun 18 06:00:03 2015 From: tds at tds-net.de (TDS) Date: Thu, 18 Jun 2015 15:00:03 +0200 Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: <5582C0D3.4050208@tds-net.de> Hello Hosain, numbers in english style: 77388 => non-decimal without points, commas, etc 77.388 => 77 full and 388 as decimals Bye, Mathias ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 18.06.2015 um 14:49 schrieb hosain mohammadi: > the code below is a layer in map file in this code i want create a > query in postgis for shortestpath but a the number 77 ,388 is the > source and target and the result create successfully but my problem > is how insert the number ( 77, 388) in template file or insert by user > how insert from html file > > > > LAYER > CONNECTION "host=localhost dbname=network user=postgres > password=021555 port=5432" > CONNECTIONTYPE POSTGIS > DATA "geom from (SELECT * from pgr_dijkstra( > > 'SELECT gid as id , source , target , cost FROM tehran' , > > 77, 388,false , false ) a LEFT JOIN tehran b ON (a.id2 = b.gid)) AS > foo using unique gid using srid=4326 " > NAME "shortestpath" > PROJECTION > "proj=utm" > "zone=39" > "datum=WGS84" > "units=m" > "no_defs" > END # PROJECTION > STATUS ON > TEMPLATE "query" > TILEITEM "location" > TYPE LINE > UNITS METERS > CLASS > NAME "Class (0)" > STYLE > COLOR 255 128 64 > SIZE 8 > WIDTH 10 > END # STYLE > END # CLASS > END # LAYER > > > > > > _______________________________________________ > 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 hosain.moh00 at gmail.com Thu Jun 18 06:23:54 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Thu, 18 Jun 2015 17:53:54 +0430 Subject: [mapserver-users] query in mapfile Message-ID: the code below is a layer in map file in this code i want create a query in postgis for shortestpath but a the number 77 and 388 is the source and target and the result create successfully but my problem is how insert the number ( 77, 388) in template file or insert by user how insert from html file LAYER CONNECTION "host=localhost dbname=network user=postgres password=021555 port=5432" CONNECTIONTYPE POSTGIS DATA "geom from (SELECT * from pgr_dijkstra( 'SELECT gid as id , source , target , cost FROM tehran' , 77, 388, false , false ) a LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid using srid=4326" NAME "shortestpath" PROJECTION "proj=utm" "zone=39" "datum=WGS84" "units=m" "no_defs" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" TYPE LINE UNITS METERS CLASS NAME "Class (0)" STYLE COLOR 255 128 64 SIZE 8 WIDTH 10 END # STYLE END # CLASS END # LAYER -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Jun 18 06:25:42 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 18 Jun 2015 15:25:42 +0200 Subject: [mapserver-users] query in mapfile In-Reply-To: References: Message-ID: http://mapserver.org/cgi/runsub.html On 18 June 2015 at 15:23, hosain mohammadi wrote: > the code below is a layer in map file in this code i want create a query in > postgis for shortestpath but a the number 77 and 388 is the source and > target and the result create successfully but my problem is how insert the > number ( 77, 388) in template file or insert by user > how insert from html file > > > > > LAYER > CONNECTION "host=localhost dbname=network user=postgres > password=021555 port=5432" > CONNECTIONTYPE POSTGIS > DATA "geom from (SELECT * from pgr_dijkstra( > 'SELECT gid as id , source , target , cost FROM tehran' , 77, 388, false > , false ) a LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid > using srid=4326" > NAME "shortestpath" > PROJECTION > "proj=utm" > "zone=39" > "datum=WGS84" > "units=m" > "no_defs" > END # PROJECTION > STATUS ON > TEMPLATE "query" > TILEITEM "location" > TYPE LINE > UNITS METERS > CLASS > NAME "Class (0)" > STYLE > COLOR 255 128 64 > SIZE 8 > WIDTH 10 > END # STYLE > END # CLASS > END # LAYER > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tom.Kralidis at ec.gc.ca Thu Jun 18 06:24:24 2015 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 18 Jun 2015 09:24:24 -0400 Subject: [mapserver-users] WFS 1.1.0 filter behaviour issues Message-ID: Hi: using 6.4.1. via UbuntuGIS, I'm getting unexpected behaviour when working with WFS 1.0.0 and various Filter combinations. I've attempted to summarize with test cases/output here: https://gist.github.com/tomkralidis/637241066b4719c04dec Not sure whether there is an issue with the WFS Filter syntax, or if there is a workaround that can be applied, But it looks like for case 1, neither the where clause or limit/offset is not being applied to the underlying SQL query. Any ideas? Thanks ..Tom From aperi2007 at gmail.com Thu Jun 18 06:44:46 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 18 Jun 2015 15:44:46 +0200 Subject: [mapserver-users] The RFC82 (GetMetadata) is supported ? Message-ID: Hi, the RFC 82: http://mapserver.org/development/rfc/ms-rfc-82.html is supported in mapserver 7.0 ? I try a request like this: www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr&request=GetMetadata&layer=rt_ctr.10k&service=wms&version=1.3.0 (the server is mapserver 7dev) The RFC say this request should generate a metadata of all the services but nothing is does. Instead it report unsupported request. Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Tom.Kralidis at ec.gc.ca Thu Jun 18 06:51:52 2015 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 18 Jun 2015 09:51:52 -0400 Subject: [mapserver-users] The RFC82 (GetMetadata) is supported ? In-Reply-To: References: Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Andrea Peri > Sent: 2015-06-18 09:45 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] The RFC82 (GetMetadata) is supported ? > > Hi, > the RFC 82: > http://mapserver.org/development/rfc/ms-rfc-82.html > > is supported in mapserver 7.0 ? > > I try a request like this: > www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr > &request=GetMetadata&layer=rt_ctr.10k&service=wms&version=1.3.0 > > (the server is mapserver 7dev) > > The RFC say this request should generate a metadata of all the services but > nothing is does. > Instead it report unsupported request. > The RFC was approved but the implementation incomplete. This is outstanding on my list to do. I hope to finish this off sometime this summer, with Dublin Core as the initial capability. If you have any further comments on the RFC, they would be valuable. Thanks ..Tom From samuellapointe at gmail.com Thu Jun 18 07:37:40 2015 From: samuellapointe at gmail.com (Samuel Lapointe) Date: Thu, 18 Jun 2015 10:37:40 -0400 Subject: [mapserver-users] ScribeUI updated to version 1.4 Message-ID: Hello everyone! I'm developing ScribeUI for the 2015 edition of Google Summer of Code. It's a web utility to create and preview maps, using either the Scribe syntax or the regular Mapserver syntax. This update introduces better debugging by displaying error logs and messages in the interface. You can find more details about it on the release page or on the development blog . The demo has also been updated, so you can try it without installing it by going here . However, the demo is reset every day to prevent it from going too messy. If you're not sure where to start, use this guide to get started! As always, if you have any questions or troubles, don't hesitate to ask me by email or through an issue on Github. Have a nice day! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Thu Jun 18 21:13:20 2015 From: ankuriimt at gmail.com (ankur chitranshi) Date: Fri, 19 Jun 2015 09:43:20 +0530 Subject: [mapserver-users] MapScriptException error Message-ID: while updating map server version 5.2.3 to 6.0.3, i am facing bellow error, *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): (mapFiles/khasra.map) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* *Fatal error*: Uncaught exception 'MapScriptException' with message 'Failed to open map file "mapFiles/khasra.map"' in C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 C:\ms4w\Apache\htdocs\bhopalf\index.php(26): ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* *kindly help me* *thanking you * -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tds at tds-net.de Thu Jun 18 21:15:52 2015 From: tds at tds-net.de (TDS) Date: Fri, 19 Jun 2015 06:15:52 +0200 Subject: [mapserver-users] MapScriptException error In-Reply-To: References: Message-ID: <55839778.9030700@tds-net.de> Hello, MapScript can't find the file. Try to use absolute path instead of relative path, e.g. /MyWorkingDir/mapFiles/khasra.map instead of mapFiles/khasra.map. Check also that on linux/posix system all is case sensitive. Bye, TDS ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 19.06.2015 um 06:13 schrieb ankur chitranshi: > while updating map server version 5.2.3 to 6.0.3, i am facing bellow > error, > > *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): > (mapFiles/khasra.map) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on > line *26* > > *Fatal error*: Uncaught exception 'MapScriptException' with message > 'Failed to open map file "mapFiles/khasra.map"' in > C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 > C:\ms4w\Apache\htdocs\bhopalf\index.php(26): > ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in > *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* > * > * > *kindly help me* > * > * > *thanking you > * > > -- > thanks & regards > Ankur Chitranshi > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Thu Jun 18 22:16:12 2015 From: ankuriimt at gmail.com (ankur chitranshi) Date: Fri, 19 Jun 2015 10:46:12 +0530 Subject: [mapserver-users] MapScriptException error In-Reply-To: <55839778.9030700@tds-net.de> References: <55839778.9030700@tds-net.de> Message-ID: Dear, Still facing error.... *Warning*: ms_newMapObj(): [MapServer Error]: loadSymbol(): Parsing error near (position):(line 29) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* *Fatal error*: Uncaught exception 'MapScriptException' with message 'Failed to open map file "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"' in C:\ms4w\Apache\htdocs\bhopalf\index.php:18 Stack trace: #0 C:\ms4w\Apache\htdocs\bhopalf\index.php(18): ms_newMapObj('C:\ms4w\Apache\...') #1 {main} thrown in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* On Fri, Jun 19, 2015 at 9:45 AM, TDS wrote: > Hello, > > MapScript can't find the file. Try to use absolute path instead of > relative path, e.g. /MyWorkingDir/mapFiles/khasra.map instead of > mapFiles/khasra.map. Check also that on linux/posix system all is case > sensitive. > > Bye, TDS > ------------------------------ > mailto:tds at tds-net.de > ------------------------------ > 1+1=10 > You have a question? - 42 or RTFM. > Am 19.06.2015 um 06:13 schrieb ankur chitranshi: > > while updating map server version 5.2.3 to 6.0.3, i am facing bellow > error, > > *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): > (mapFiles/khasra.map) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on > line *26* > > *Fatal error*: Uncaught exception 'MapScriptException' with message > 'Failed to open map file "mapFiles/khasra.map"' in > C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 > C:\ms4w\Apache\htdocs\bhopalf\index.php(26): > ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in > *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* > > *kindly help me* > > > *thanking you * > > -- > thanks & regards > Ankur Chitranshi > > > _______________________________________________ > mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tds at tds-net.de Thu Jun 18 22:48:49 2015 From: tds at tds-net.de (TDS) Date: Fri, 19 Jun 2015 07:48:49 +0200 Subject: [mapserver-users] MapScriptException error In-Reply-To: References: <55839778.9030700@tds-net.de> Message-ID: <5583AD41.5080504@tds-net.de> Hi, can you post the lines in that file around line 18? Has the file correct permissions and can Apache access that file - e.g. no restrictions like open_basedir? Bye, Mathias ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 19.06.2015 um 07:16 schrieb ankur chitranshi: > Dear, > > Still facing error.... > > > *Warning*: ms_newMapObj(): [MapServer Error]: loadSymbol(): Parsing > error near (position):(line 29) in > *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* > > *Fatal error*: Uncaught exception 'MapScriptException' with message > 'Failed to open map file > "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"' in > C:\ms4w\Apache\htdocs\bhopalf\index.php:18 Stack trace: #0 > C:\ms4w\Apache\htdocs\bhopalf\index.php(18): > ms_newMapObj('C:\ms4w\Apache\...') #1 {main} thrown in > *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* > > On Fri, Jun 19, 2015 at 9:45 AM, TDS > wrote: > > Hello, > > MapScript can't find the file. Try to use absolute path instead of > relative path, e.g. /MyWorkingDir/mapFiles/khasra.map instead of > mapFiles/khasra.map. Check also that on linux/posix system all is > case sensitive. > > Bye, TDS > ------------------------------------------------------------------------ > mailto:tds at tds-net.de > ------------------------------------------------------------------------ > 1+1=10 > You have a question? - 42 or RTFM. > Am 19.06.2015 um 06:13 schrieb ankur chitranshi: >> while updating map server version 5.2.3 to 6.0.3, i am facing >> bellow error, >> >> *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): >> (mapFiles/khasra.map) in >> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* >> >> *Fatal error*: Uncaught exception 'MapScriptException' with >> message 'Failed to open map file "mapFiles/khasra.map"' in >> C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 >> C:\ms4w\Apache\htdocs\bhopalf\index.php(26): >> ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in >> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* >> * >> * >> *kindly help me* >> * >> * >> *thanking you >> * >> >> -- >> thanks & regards >> Ankur Chitranshi >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > thanks & regards > Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Thu Jun 18 23:05:03 2015 From: ankuriimt at gmail.com (ankur chitranshi) Date: Fri, 19 Jun 2015 11:35:03 +0530 Subject: [mapserver-users] MapScriptException error In-Reply-To: <5583AD41.5080504@tds-net.de> References: <55839778.9030700@tds-net.de> <5583AD41.5080504@tds-net.de> Message-ID: yes sure, in line 18 my code is $map=ms_newMapObj('C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map'); and my 'khasra.map ' file code follows.... MAP NAME "bhopal Map" IMAGECOLOR 255 255 255 SIZE 1050 637 IMAGETYPE PNG WEB TEMPLATE "index.php" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp" END SCALEBAR INTERLACE ON INTERVALS 1 LABEL SIZE TINY END TRANSPARENT ON UNITS KILOMETERS END LAYER NAME "BASE" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "" DATA "" TYPE polygon CLASSITEM "BASE" CLASS NAME "Data Not Available" STYLE COLOR 0 0 0 END STYLE SYMBOL "foo" COLOR 255 0 0 END LABEL COLOR 145 145 145 SIZE medium END END END END ---------------- my MapServer version is 6.0.3 (MS4W 3.0.6) thanks in advance.... On Fri, Jun 19, 2015 at 11:18 AM, TDS wrote: > Hi, > > can you post the lines in that file around line 18? > Has the file correct permissions and can Apache access that file - e.g. no > restrictions like open_basedir? > > Bye, Mathias > ------------------------------ > mailto:tds at tds-net.de > ------------------------------ > 1+1=10 > You have a question? - 42 or RTFM. > Am 19.06.2015 um 07:16 schrieb ankur chitranshi: > > Dear, > > Still facing error.... > > > *Warning*: ms_newMapObj(): [MapServer Error]: loadSymbol(): Parsing error > near (position):(line 29) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on > line *18* > > *Fatal error*: Uncaught exception 'MapScriptException' with message > 'Failed to open map file > "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"' in > C:\ms4w\Apache\htdocs\bhopalf\index.php:18 Stack trace: #0 > C:\ms4w\Apache\htdocs\bhopalf\index.php(18): > ms_newMapObj('C:\ms4w\Apache\...') #1 {main} thrown in > *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* > > On Fri, Jun 19, 2015 at 9:45 AM, TDS wrote: > >> Hello, >> >> MapScript can't find the file. Try to use absolute path instead of >> relative path, e.g. /MyWorkingDir/mapFiles/khasra.map instead of >> mapFiles/khasra.map. Check also that on linux/posix system all is case >> sensitive. >> >> Bye, TDS >> ------------------------------ >> mailto:tds at tds-net.de >> ------------------------------ >> 1+1=10 >> You have a question? - 42 or RTFM. >> Am 19.06.2015 um 06:13 schrieb ankur chitranshi: >> >> while updating map server version 5.2.3 to 6.0.3, i am facing bellow >> error, >> >> *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): >> (mapFiles/khasra.map) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on >> line *26* >> >> *Fatal error*: Uncaught exception 'MapScriptException' with message >> 'Failed to open map file "mapFiles/khasra.map"' in >> C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 >> C:\ms4w\Apache\htdocs\bhopalf\index.php(26): >> ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in >> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* >> >> *kindly help me* >> >> >> *thanking you * >> >> -- >> thanks & regards >> Ankur Chitranshi >> >> >> _______________________________________________ >> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > -- > thanks & regards > Ankur Chitranshi > > > -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ankuriimt at gmail.com Thu Jun 18 23:48:07 2015 From: ankuriimt at gmail.com (ankur chitranshi) Date: Fri, 19 Jun 2015 12:18:07 +0530 Subject: [mapserver-users] MapScriptException error Message-ID: hi make changes, after your , suggestion ,still m facing bellow error *Warning*: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to draw layer named 'BASE'. in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *77* *Warning*: mapObj::draw(): [MapServer Error]: msPostGISLayerWhichShapes(): Error executing query: ERROR: zero-length delimited identifier at or near """" LINE 1: select "","textstring",encode(ST_AsBinary(ST_Force_2D("the_g... ^ in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *77* *Fatal error*: Call to a member function saveWebImage() on a non-object in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *80* *kindly help me out,* *thanks in advance* On Fri, Jun 19, 2015 at 12:08 PM, ankur chitranshi wrote: > hi, > > can you please send some sample map file...... > > On Fri, Jun 19, 2015 at 11:57 AM, TC Haddad wrote: > >> >> Hi >> >> you are calling symbol "foo" but you do not have a line that references >> your symbol file >> >> try adding a SYMBOLSET with path to you symbols definition file in the >> top part of your map file... >> >> Tanya >> >> On Thu, Jun 18, 2015 at 11:05 PM, ankur chitranshi >> wrote: >> >>> yes sure, >>> >>> in line 18 my code is >>> >>> $map=ms_newMapObj('C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map'); >>> >>> >>> and my 'khasra.map ' file code follows.... >>> >>> MAP >>> NAME "bhopal Map" >>> IMAGECOLOR 255 255 255 >>> SIZE 1050 637 >>> IMAGETYPE PNG >>> WEB >>> TEMPLATE "index.php" >>> IMAGEPATH "/ms4w/tmp/ms_tmp/" >>> IMAGEURL "/ms_tmp" >>> END >>> SCALEBAR >>> INTERLACE ON >>> INTERVALS 1 >>> LABEL >>> SIZE TINY >>> END >>> TRANSPARENT ON >>> UNITS KILOMETERS >>> END >>> LAYER >>> NAME "BASE" >>> STATUS ON >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "" >>> DATA "" >>> TYPE polygon >>> CLASSITEM "BASE" >>> CLASS >>> NAME "Data Not Available" >>> STYLE >>> COLOR 0 0 0 >>> END >>> STYLE >>> SYMBOL "foo" >>> COLOR 255 0 0 >>> END >>> LABEL >>> COLOR 145 145 145 >>> SIZE medium >>> END >>> END >>> END >>> END >>> >>> ---------------- >>> my MapServer version is 6.0.3 (MS4W 3.0.6) >>> >>> >>> thanks in advance.... >>> >>> >>> >>> >>> >>> On Fri, Jun 19, 2015 at 11:18 AM, TDS wrote: >>> >>>> Hi, >>>> >>>> can you post the lines in that file around line 18? >>>> Has the file correct permissions and can Apache access that file - e.g. >>>> no restrictions like open_basedir? >>>> >>>> Bye, Mathias >>>> ------------------------------ >>>> mailto:tds at tds-net.de >>>> ------------------------------ >>>> 1+1=10 >>>> You have a question? - 42 or RTFM. >>>> Am 19.06.2015 um 07:16 schrieb ankur chitranshi: >>>> >>>> Dear, >>>> >>>> Still facing error.... >>>> >>>> >>>> *Warning*: ms_newMapObj(): [MapServer Error]: loadSymbol(): Parsing >>>> error near (position):(line 29) in >>>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* >>>> >>>> *Fatal error*: Uncaught exception 'MapScriptException' with message >>>> 'Failed to open map file >>>> "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"' in >>>> C:\ms4w\Apache\htdocs\bhopalf\index.php:18 Stack trace: #0 >>>> C:\ms4w\Apache\htdocs\bhopalf\index.php(18): >>>> ms_newMapObj('C:\ms4w\Apache\...') #1 {main} thrown in >>>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* >>>> >>>> On Fri, Jun 19, 2015 at 9:45 AM, TDS wrote: >>>> >>>>> Hello, >>>>> >>>>> MapScript can't find the file. Try to use absolute path instead of >>>>> relative path, e.g. /MyWorkingDir/mapFiles/khasra.map instead of >>>>> mapFiles/khasra.map. Check also that on linux/posix system all is case >>>>> sensitive. >>>>> >>>>> Bye, TDS >>>>> ------------------------------ >>>>> mailto:tds at tds-net.de >>>>> ------------------------------ >>>>> 1+1=10 >>>>> You have a question? - 42 or RTFM. >>>>> Am 19.06.2015 um 06:13 schrieb ankur chitranshi: >>>>> >>>>> while updating map server version 5.2.3 to 6.0.3, i am facing bellow >>>>> error, >>>>> >>>>> *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): >>>>> (mapFiles/khasra.map) in *C:\ms4w\Apache\htdocs\bhopalf\index.php* on >>>>> line *26* >>>>> >>>>> *Fatal error*: Uncaught exception 'MapScriptException' with message >>>>> 'Failed to open map file "mapFiles/khasra.map"' in >>>>> C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 >>>>> C:\ms4w\Apache\htdocs\bhopalf\index.php(26): >>>>> ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in >>>>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* >>>>> >>>>> *kindly help me* >>>>> >>>>> >>>>> *thanking you * >>>>> >>>>> -- >>>>> thanks & regards >>>>> Ankur Chitranshi >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> thanks & regards >>>> Ankur Chitranshi >>>> >>>> >>>> >>> >>> >>> -- >>> thanks & regards >>> Ankur Chitranshi >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > > > -- > thanks & regards > Ankur Chitranshi > -- thanks & regards Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tds at tds-net.de Fri Jun 19 01:34:34 2015 From: tds at tds-net.de (TDS) Date: Fri, 19 Jun 2015 10:34:34 +0200 Subject: [mapserver-users] MapScriptException error In-Reply-To: References: <55839778.9030700@tds-net.de> <5583AD41.5080504@tds-net.de> Message-ID: <5583D41A.10905@tds-net.de> Hello, Mapserver is moaning about line 29, so does your symbol "foo" exists? STYLE SYMBOL "foo" COLOR 255 0 0 END e.g.: SYMBOL NAME "foo" TYPE ellipse FILLED true POINTS 10 10 END END Bye, TDS ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 19.06.2015 um 08:05 schrieb ankur chitranshi: > yes sure, > > in line 18 my code is > > $map=ms_newMapObj('C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map'); > > > and my 'khasra.map ' file code follows.... > > MAP > NAME "bhopal Map" > IMAGECOLOR 255 255 255 > SIZE 1050 637 > IMAGETYPE PNG > WEB > TEMPLATE "index.php" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp" > END > SCALEBAR > INTERLACE ON > INTERVALS 1 > LABEL > SIZE TINY > END > TRANSPARENT ON > UNITS KILOMETERS > END > LAYER > NAME "BASE" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "" > DATA "" > TYPE polygon > CLASSITEM "BASE" > CLASS > NAME "Data Not Available" > STYLE > COLOR 0 0 0 > END > STYLE > SYMBOL "foo" > COLOR 255 0 0 > END > LABEL > COLOR 145 145 145 > SIZE medium > END > END > END > END > > ---------------- > my MapServer version is 6.0.3 (MS4W 3.0.6) > > > thanks in advance.... > > > > > > On Fri, Jun 19, 2015 at 11:18 AM, TDS > wrote: > > Hi, > > can you post the lines in that file around line 18? > Has the file correct permissions and can Apache access that file - > e.g. no restrictions like open_basedir? > > Bye, Mathias > ------------------------------------------------------------------------ > mailto:tds at tds-net.de > ------------------------------------------------------------------------ > 1+1=10 > You have a question? - 42 or RTFM. > Am 19.06.2015 um 07:16 schrieb ankur chitranshi: >> Dear, >> >> Still facing error.... >> >> >> *Warning*: ms_newMapObj(): [MapServer Error]: loadSymbol(): >> Parsing error near (position):(line 29) in >> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* >> >> *Fatal error*: Uncaught exception 'MapScriptException' with >> message 'Failed to open map file >> "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"' in >> C:\ms4w\Apache\htdocs\bhopalf\index.php:18 Stack trace: #0 >> C:\ms4w\Apache\htdocs\bhopalf\index.php(18): >> ms_newMapObj('C:\ms4w\Apache\...') #1 {main} thrown in >> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *18* >> >> On Fri, Jun 19, 2015 at 9:45 AM, TDS > > wrote: >> >> Hello, >> >> MapScript can't find the file. Try to use absolute path >> instead of relative path, e.g. >> /MyWorkingDir/mapFiles/khasra.map instead of >> mapFiles/khasra.map. Check also that on linux/posix system >> all is case sensitive. >> >> Bye, TDS >> ------------------------------------------------------------------------ >> mailto:tds at tds-net.de >> ------------------------------------------------------------------------ >> 1+1=10 >> You have a question? - 42 or RTFM. >> Am 19.06.2015 um 06:13 schrieb ankur chitranshi: >>> while updating map server version 5.2.3 to 6.0.3, i am >>> facing bellow error, >>> >>> *Warning*: ms_newMapObj(): [MapServer Error]: msLoadMap(): >>> (mapFiles/khasra.map) in >>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* >>> >>> *Fatal error*: Uncaught exception 'MapScriptException' with >>> message 'Failed to open map file "mapFiles/khasra.map"' in >>> C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 >>> C:\ms4w\Apache\htdocs\bhopalf\index.php(26): >>> ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in >>> *C:\ms4w\Apache\htdocs\bhopalf\index.php* on line *26* >>> * >>> * >>> *kindly help me* >>> * >>> * >>> *thanking you >>> * >>> >>> -- >>> thanks & regards >>> Ankur Chitranshi >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> -- >> thanks & regards >> Ankur Chitranshi > > > > > -- > thanks & regards > Ankur Chitranshi -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Fri Jun 19 11:34:06 2015 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Fri, 19 Jun 2015 14:34:06 -0400 Subject: [mapserver-users] WFS 1.1.0 filter behaviour issues Message-ID: Filed at https://github.com/mapserver/mapserver/issues/5110 after confirming the same issue with Sebastian. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Kralidis,Tom [Ontario] > Sent: 2015-06-18 09:24 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WFS 1.1.0 filter behaviour issues > > Hi: using 6.4.1. via UbuntuGIS, I'm getting unexpected behaviour when working > with WFS 1.0.0 and various Filter combinations. > > I've attempted to summarize with test cases/output here: > > https://gist.github.com/tomkralidis/637241066b4719c04dec > > Not sure whether there is an issue with the WFS Filter syntax, or if there is a > workaround that can be applied, But it looks like for case 1, neither the where > clause or limit/offset is not being applied to the underlying SQL query. > > Any ideas? > > Thanks > > ..Tom > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From wimvanbelle at gmail.com Mon Jun 22 08:45:47 2015 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Mon, 22 Jun 2015 17:45:47 +0200 Subject: [mapserver-users] Mapserver fastcgi process errors / crash Message-ID: Hi all, Rather urgent production question. If we have some errors with our shapefiles, our fastcgi processes get killed very rapidly. (we believe this is some rapid error protection?) Is there a way to prevent this? We're running nginx + fastcgi mapserver over unix sockets. I'm aware that we need to look into our shapefiles/dbf's but that's not a simple thing because they need to be updated often. Migration to postgres is also not an option. Please let me know if we can tune this somehow. Anyone experience with this? Thanks in advance! best regards, Wim -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at edac.unm.edu Mon Jun 22 08:51:16 2015 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Mon, 22 Jun 2015 09:51:16 -0600 Subject: [mapserver-users] WMS from netCDF returns white/transparent image Message-ID: <55882EF4.7010909@edac.unm.edu> Hello, I am trying to generate WMS services from layers in a NetCDF file. WCS services already work well...While a WMS call does return an image (ex. PNG), it is all white or transparent, whereas a WCS call to the same layer returns an image with a range of pixel values. I have run gdalinfo on the layer to get the data range, and have tried using the data range to set the PROCESSING DIRECTIVE to scale the output (e.g. PROCESSING "SCALE=311.76470947266 ,423.52941894531 " ). I have also used the SCALE=AUTO directive, but both just return a white image. When I try using WMS on this layer in QGIS, it is correctly projected, but invisible (zoom to extents on the imported WMS layer is correct). Below is the output from gdalinfo to get the original data range, and then the mapfile entry for the layer to see how I have set this up.... gdalinfo NETCDF:"flat_sample.nc":I_lw Band 1 Block=170x1 Type=Float32, ColorInterp=Undefined Min=311.765 Max=423.529 Minimum=311.765, Maximum=423.529, Mean=344.247, StdDev=16.599 NoData Value=9.96920996838686905e+36 Metadata: ipw_desc=incoming thermal (long-wave) radiation NETCDF_DIM_time=14 NETCDF_VARNAME=I_lw standard_name=downwelling_longwave_flux_in_air STATISTICS_MAXIMUM=423.52941894531 STATISTICS_MEAN=344.24709697293 STATISTICS_MINIMUM=311.76470947266 STATISTICS_STDDEV=16.598777681661 units=W m-2 ******************************************************************************** LAYER DATA 'NETCDF:"/geodata/watershed-data/8c/8c18e10f-44b0-4462-bf4f-1c27c984aece/flat_sample.nc":I_lw' EXTENT -116.142905556 43.7294055556 -116.137583333 43.7326972222 METADATA "wcs_label" "downwelling_longwave_flux_in_air" "layer_title" "downwelling_longwave_flux_in_air" "raster_selected" "yes" "wms_metadataurl_type" "FGDC-STD-001-1998" "ows_keywordlist" "" "wcs_formats" "GEOTIFF_16" "background" "no" "wcs_bands_description" "ISNoBal Timesteps 1-16" "ows_abstract" "incoming thermal (long-wave) radiation" "wcs_rangeset_name" "Timesteps" "wms_metadataurl_href" "http://129.24.63.85//apps/vwp/datasets/05e73f4f-51d3-417c-9757-e376b5969a9c/metadata/FGDC-STD-001-1998.xml" "wcs_bands_values" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" "legend_display" "yes" "queryable" "no" "wcs_rangeset_label" "netCDF flat_sample.nc" "time_sensitive" "no" "ows_srs" "epsg:26911" "wcs_bands_name" "Timestep" "wcs_bands_rangeitem" "_bands" "ows_title" "incoming thermal (long-wave) radiation""static" "no" "wms_metadataurl_format" "text/xml" "wcs_bands_label" "Timestep Number" "wcs_rangeset_axes" "bands" "wms_encoding" "UTF-8" "wcs_enable_request" "*" "layer_data_units" "W m-2" "annotation_name" "downwelling_longwave_flux_in_air: 2015-06-19 20:30:29.202558" END # METADATANAME "downwelling_longwave_flux_in_air" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "SCALE=311.76470947266 ,423.52941894531 " #PROCESSING ?SCALE=AUTO? PROJECTION "init=epsg:26911" END # PROJECTION STATUS ON TILEITEM "location" TYPE RASTER UNITS METERS END # LAYER ******************************************************************************** It seems I am missing something here....would appreciate any insight into how to return a valid image in WMS.... Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 22 08:51:37 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 22 Jun 2015 15:51:37 +0000 Subject: [mapserver-users] Mapserver fastcgi process errors / crash In-Reply-To: References: Message-ID: What version? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Monday, June 22, 2015 10:46 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver fastcgi process errors / crash Hi all, Rather urgent production question. If we have some errors with our shapefiles, our fastcgi processes get killed very rapidly. (we believe this is some rapid error protection?) Is there a way to prevent this? We're running nginx + fastcgi mapserver over unix sockets. I'm aware that we need to look into our shapefiles/dbf's but that's not a simple thing because they need to be updated often. Migration to postgres is also not an option. Please let me know if we can tune this somehow. Anyone experience with this? Thanks in advance! best regards, Wim -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Mon Jun 22 08:55:27 2015 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Mon, 22 Jun 2015 17:55:27 +0200 Subject: [mapserver-users] Mapserver fastcgi process errors / crash In-Reply-To: References: Message-ID: Sorry, 6.4.1 Do you need the spawn-fastcgi script too? On 22 June 2015 at 17:51, Lime, Steve D (MNIT) wrote: > What version? > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Wim Vanbelle > *Sent:* Monday, June 22, 2015 10:46 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Mapserver fastcgi process errors / crash > > > > Hi all, > > > > Rather urgent production question. If we have some errors with our > shapefiles, our fastcgi processes get killed very rapidly. (we believe this > is some rapid error protection?) > > > > Is there a way to prevent this? We're running nginx + fastcgi mapserver > over unix sockets. > > > > I'm aware that we need to look into our shapefiles/dbf's but that's not a > simple thing because they need to be updated often. > > > > Migration to postgres is also not an option. > > > > Please let me know if we can tune this somehow. Anyone experience with > this? > > > > Thanks in advance! > > > > best regards, > > Wim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Mon Jun 22 08:55:41 2015 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Mon, 22 Jun 2015 17:55:41 +0200 Subject: [mapserver-users] Mapserver fastcgi process errors / crash In-Reply-To: References: Message-ID: This is the full configuration: MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE On 22 June 2015 at 17:55, Wim Vanbelle wrote: > Sorry, 6.4.1 > > Do you need the spawn-fastcgi script too? > > On 22 June 2015 at 17:51, Lime, Steve D (MNIT) > wrote: > >> What version? >> >> >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Wim Vanbelle >> *Sent:* Monday, June 22, 2015 10:46 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Mapserver fastcgi process errors / crash >> >> >> >> Hi all, >> >> >> >> Rather urgent production question. If we have some errors with our >> shapefiles, our fastcgi processes get killed very rapidly. (we believe this >> is some rapid error protection?) >> >> >> >> Is there a way to prevent this? We're running nginx + fastcgi mapserver >> over unix sockets. >> >> >> >> I'm aware that we need to look into our shapefiles/dbf's but that's not a >> simple thing because they need to be updated often. >> >> >> >> Migration to postgres is also not an option. >> >> >> >> Please let me know if we can tune this somehow. Anyone experience with >> this? >> >> >> >> Thanks in advance! >> >> >> >> best regards, >> >> Wim >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 22 13:55:33 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 22 Jun 2015 20:55:33 +0000 Subject: [mapserver-users] Mapserver fastcgi process errors / crash In-Reply-To: References: Message-ID: I?m afraid I don?t have any suggestions ? I?m not a big FastCGI user. I was concerned this might be related to an issue specific to 7.0 that will be resolved shortly. Are you seeing MapServer specific errors in the logs? Steve From: Wim Vanbelle [mailto:wimvanbelle at gmail.com] Sent: Monday, June 22, 2015 10:56 AM To: Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver fastcgi process errors / crash This is the full configuration: MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE On 22 June 2015 at 17:55, Wim Vanbelle > wrote: Sorry, 6.4.1 Do you need the spawn-fastcgi script too? On 22 June 2015 at 17:51, Lime, Steve D (MNIT) > wrote: What version? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Monday, June 22, 2015 10:46 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver fastcgi process errors / crash Hi all, Rather urgent production question. If we have some errors with our shapefiles, our fastcgi processes get killed very rapidly. (we believe this is some rapid error protection?) Is there a way to prevent this? We're running nginx + fastcgi mapserver over unix sockets. I'm aware that we need to look into our shapefiles/dbf's but that's not a simple thing because they need to be updated often. Migration to postgres is also not an option. Please let me know if we can tune this somehow. Anyone experience with this? Thanks in advance! best regards, Wim -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at edac.unm.edu Mon Jun 22 14:35:27 2015 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Mon, 22 Jun 2015 15:35:27 -0600 (MDT) Subject: [mapserver-users] WMS from netCDF returns white/transparent image In-Reply-To: <871346185.1143348.1435008897989.JavaMail.zimbra@edac.unm.edu> References: <55882EF4.7010909@edac.unm.edu> Message-ID: <1546217596.1143586.1435008927425.JavaMail.zimbra@edac.unm.edu> TC Thank you for your help...I have tried building classes into the layer definition with the same results...a white image. Also used the CLASSITEM "[pixel]" parameter. I can import the layer into QGIS, and it actually shows the colors I define in the legend, and is projected correctly, but the image is invisible....I've not seen something like this before! Bill ----- Original Message ----- From: "bhudspeth" To: mapserver-users at lists.osgeo.org Sent: Monday, June 22, 2015 9:51:16 AM Subject: [mapserver-users] WMS from netCDF returns white/transparent image Hello, I am trying to generate WMS services from layers in a NetCDF file. WCS services already work well...While a WMS call does return an image (ex. PNG), it is all white or transparent, whereas a WCS call to the same layer returns an image with a range of pixel values. I have run gdalinfo on the layer to get the data range, and have tried using the data range to set the PROCESSING DIRECTIVE to scale the output (e.g. PROCESSING "SCALE=311.76470947266 ,423.52941894531 " ). I have also used the SCALE=AUTO directive, but both just return a white image. When I try using WMS on this layer in QGIS, it is correctly projected, but invisible (zoom to extents on the imported WMS layer is correct). Below is the output from gdalinfo to get the original data range, and then the mapfile entry for the layer to see how I have set this up.... gdalinfo NETCDF:"flat_sample.nc":I_lw Band 1 Block=170x1 Type=Float32, ColorInterp=Undefined Min=311.765 Max=423.529 Minimum=311.765, Maximum=423.529, Mean=344.247, StdDev=16.599 NoData Value=9.96920996838686905e+36 Metadata: ipw_desc=incoming thermal (long-wave) radiation NETCDF_DIM_time=14 NETCDF_VARNAME=I_lw standard_name=downwelling_longwave_flux_in_air STATISTICS_MAXIMUM=423.52941894531 STATISTICS_MEAN=344.24709697293 STATISTICS_MINIMUM=311.76470947266 STATISTICS_STDDEV=16.598777681661 units=W m-2 ******************************************************************************** LAYER DATA 'NETCDF:"/geodata/watershed-data/8c/8c18e10f-44b0-4462-bf4f-1c27c984aece/flat_sample.nc":I_lw' EXTENT -116.142905556 43.7294055556 -116.137583333 43.7326972222 METADATA "wcs_label" "downwelling_longwave_flux_in_air" "layer_title" "downwelling_longwave_flux_in_air" "raster_selected" "yes" "wms_metadataurl_type" "FGDC-STD-001-1998" "ows_keywordlist" "" "wcs_formats" "GEOTIFF_16" "background" "no" "wcs_bands_description" "ISNoBal Timesteps 1-16" "ows_abstract" "incoming thermal (long-wave) radiation" "wcs_rangeset_name" "Timesteps" "wms_metadataurl_href" "http://129.24.63.85//apps/vwp/datasets/05e73f4f-51d3-417c-9757-e376b5969a9c/metadata/FGDC-STD-001-1998.xml" "wcs_bands_values" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" "legend_display" "yes" "queryable" "no" "wcs_rangeset_label" "netCDF flat_sample.nc" "time_sensitive" "no" "ows_srs" "epsg:26911" "wcs_bands_name" "Timestep" "wcs_bands_rangeitem" "_bands" "ows_title" "incoming thermal (long-wave) radiation""static" "no" "wms_metadataurl_format" "text/xml" "wcs_bands_label" "Timestep Number" "wcs_rangeset_axes" "bands" "wms_encoding" "UTF-8" "wcs_enable_request" "*" "layer_data_units" "W m-2" "annotation_name" "downwelling_longwave_flux_in_air: 2015-06-19 20:30:29.202558" END # METADATANAME "downwelling_longwave_flux_in_air" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "SCALE=311.76470947266 ,423.52941894531 " #PROCESSING ?SCALE=AUTO? PROJECTION "init=epsg:26911" END # PROJECTION STATUS ON TILEITEM "location" TYPE RASTER UNITS METERS END # LAYER ******************************************************************************** It seems I am missing something here....would appreciate any insight into how to return a valid image in WMS.... Thanks, Bill _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bhudspeth at edac.unm.edu Mon Jun 22 14:47:43 2015 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Mon, 22 Jun 2015 15:47:43 -0600 (MDT) Subject: [mapserver-users] WMS from netCDF returns white/transparent image In-Reply-To: <1617344672.1143774.1435009608614.JavaMail.zimbra@edac.unm.edu> References: <55882EF4.7010909@edac.unm.edu> <1546217596.1143586.1435008927425.JavaMail.zimbra@edac.unm.edu> Message-ID: <401008412.1143775.1435009663683.JavaMail.zimbra@edac.unm.edu> I think there is an issue with the fact that a request for a single layer from a netCDF file may contain multiple bands.... In QGIS, the WMS services capability brings in a single layer (with multiple bands) as "Singleband Color Data". The image is transparent. When I request the layer with a URL, and I use the &Bands=1 (or 2,3,4), I get a white image.... Bill ----- Original Message ----- From: "bhudspeth" To: mapserver-users at lists.osgeo.org Sent: Monday, June 22, 2015 3:35:27 PM Subject: Re: [mapserver-users] WMS from netCDF returns white/transparent image TC Thank you for your help...I have tried building classes into the layer definition with the same results...a white image. Also used the CLASSITEM "[pixel]" parameter. I can import the layer into QGIS, and it actually shows the colors I define in the legend, and is projected correctly, but the image is invisible....I've not seen something like this before! Bill ----- Original Message ----- From: "bhudspeth" To: mapserver-users at lists.osgeo.org Sent: Monday, June 22, 2015 9:51:16 AM Subject: [mapserver-users] WMS from netCDF returns white/transparent image Hello, I am trying to generate WMS services from layers in a NetCDF file. WCS services already work well...While a WMS call does return an image (ex. PNG), it is all white or transparent, whereas a WCS call to the same layer returns an image with a range of pixel values. I have run gdalinfo on the layer to get the data range, and have tried using the data range to set the PROCESSING DIRECTIVE to scale the output (e.g. PROCESSING "SCALE=311.76470947266 ,423.52941894531 " ). I have also used the SCALE=AUTO directive, but both just return a white image. When I try using WMS on this layer in QGIS, it is correctly projected, but invisible (zoom to extents on the imported WMS layer is correct). Below is the output from gdalinfo to get the original data range, and then the mapfile entry for the layer to see how I have set this up.... gdalinfo NETCDF:"flat_sample.nc":I_lw Band 1 Block=170x1 Type=Float32, ColorInterp=Undefined Min=311.765 Max=423.529 Minimum=311.765, Maximum=423.529, Mean=344.247, StdDev=16.599 NoData Value=9.96920996838686905e+36 Metadata: ipw_desc=incoming thermal (long-wave) radiation NETCDF_DIM_time=14 NETCDF_VARNAME=I_lw standard_name=downwelling_longwave_flux_in_air STATISTICS_MAXIMUM=423.52941894531 STATISTICS_MEAN=344.24709697293 STATISTICS_MINIMUM=311.76470947266 STATISTICS_STDDEV=16.598777681661 units=W m-2 ******************************************************************************** LAYER DATA 'NETCDF:"/geodata/watershed-data/8c/8c18e10f-44b0-4462-bf4f-1c27c984aece/flat_sample.nc":I_lw' EXTENT -116.142905556 43.7294055556 -116.137583333 43.7326972222 METADATA "wcs_label" "downwelling_longwave_flux_in_air" "layer_title" "downwelling_longwave_flux_in_air" "raster_selected" "yes" "wms_metadataurl_type" "FGDC-STD-001-1998" "ows_keywordlist" "" "wcs_formats" "GEOTIFF_16" "background" "no" "wcs_bands_description" "ISNoBal Timesteps 1-16" "ows_abstract" "incoming thermal (long-wave) radiation" "wcs_rangeset_name" "Timesteps" "wms_metadataurl_href" "http://129.24.63.85//apps/vwp/datasets/05e73f4f-51d3-417c-9757-e376b5969a9c/metadata/FGDC-STD-001-1998.xml" "wcs_bands_values" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" "legend_display" "yes" "queryable" "no" "wcs_rangeset_label" "netCDF flat_sample.nc" "time_sensitive" "no" "ows_srs" "epsg:26911" "wcs_bands_name" "Timestep" "wcs_bands_rangeitem" "_bands" "ows_title" "incoming thermal (long-wave) radiation""static" "no" "wms_metadataurl_format" "text/xml" "wcs_bands_label" "Timestep Number" "wcs_rangeset_axes" "bands" "wms_encoding" "UTF-8" "wcs_enable_request" "*" "layer_data_units" "W m-2" "annotation_name" "downwelling_longwave_flux_in_air: 2015-06-19 20:30:29.202558" END # METADATANAME "downwelling_longwave_flux_in_air" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "SCALE=311.76470947266 ,423.52941894531 " #PROCESSING ?SCALE=AUTO? PROJECTION "init=epsg:26911" END # PROJECTION STATUS ON TILEITEM "location" TYPE RASTER UNITS METERS END # LAYER ******************************************************************************** It seems I am missing something here....would appreciate any insight into how to return a valid image in WMS.... Thanks, Bill _______________________________________________ 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 hosain.moh00 at gmail.com Tue Jun 23 06:13:55 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Tue, 23 Jun 2015 17:43:55 +0430 Subject: [mapserver-users] wms Message-ID: Hi every one i have a problem according to when run URL bellow http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=tehran&LAYERS=newlayer&SRS=EPS%E2%80%8C%E2%80%8BG:32639&BBOX=530813.672387891,3955659.51937927,536046.413657126,3958686.85164527&WIDTH=400&HEIGHT=300&FORMAT=image/png the error apear This XML file does not appear to have any style information associated with it. The document tree is shown below. msWMSLoadGetMapParams(): WMS server error. Missing required parameter CRS what is problem -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Tue Jun 23 06:20:57 2015 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Tue, 23 Jun 2015 15:20:57 +0200 Subject: [mapserver-users] wms In-Reply-To: References: Message-ID: <55895D39.6020503@mapmedia.de> Hi, I geuess it's the 'Missing required parameter CRS' in wms 1.3.0 srs=EPSG: has changed to crs=EPSG: J?rg m 23.06.2015 um 15:13 schrieb hosain mohammadi: > Hi every one > > i have a problem according to > when run URL bellow > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=tehran&LAYERS=newlayer&SRS=EPS%E2%80%8C%E2%80%8BG:32639&BBOX=530813.672387891,3955659.51937927,536046.413657126,3958686.85164527&WIDTH=400&HEIGHT=300&FORMAT=image/png > > > the error apear > This XML file does not appear to have any style information associated > with it. The document tree is shown below. > > > msWMSLoadGetMapParams(): WMS server error. Missing required parameter CRS > > > > > what is problem > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jacques.Merette-c at mtq.gouv.qc.ca Tue Jun 23 13:09:41 2015 From: Jacques.Merette-c at mtq.gouv.qc.ca (=?iso-8859-1?Q?M=E9rette=2C_Jacques_=28Consultant=29?=) Date: Tue, 23 Jun 2015 20:09:41 +0000 Subject: [mapserver-users] libiconv Message-ID: <80444E25DECC6544BAB5C44E67D7937608426418@sinfra0-exc012.MTQ.MIN.INTRA> Hi, I try to install MapServer 7 (beta) on CentOS 7 and I have the following error: [root at localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/opt --with-libiconv=/usr/local/lib .. >../configure.out.txt [root at localhost build]# make [ 73%] Built target mapserver Linking C executable legend libmapserver.so.7.1-dev: undefined reference to `libiconv_open' libmapserver.so.7.1-dev: undefined reference to `libiconv_close' libmapserver.so.7.1-dev: undefined reference to `libiconv' collect2: error: ld returned 1 exit status make[2]: *** [legend] Error 1 make[1]: *** [CMakeFiles/legend.dir/all] Error 2 make: *** [all] Error 2 I tried different switches (--with-libiconv-prefix and -liconv) without success. Any ideas???? Thx Jacques M?rette Architecte technologique Division des infrastructures technologiques Service des infrastructures technologiques appliqu?es aux op?rations Direction des technologies de l'information Minist?re des Transports du Qu?bec T?l: 418-643-5350 # 24685 jacques.merette-c at mtq.gouv.qc.ca Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Jun 23 16:02:15 2015 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 23 Jun 2015 17:02:15 -0600 Subject: [mapserver-users] Mapserver fastcgi process errors / crash In-Reply-To: References: Message-ID: I don't have an answer, but a some questions: How do you know that errors in your shapefiles are causing the problem? What kind of shapefiles (point, line, poly) and what sort of errors? How can you tell that the fcgi process is being killed rapidly - from the server logs or elsewhere? Have you tried with Apache? Are you seeing errors in the MapServer log? On Mon, Jun 22, 2015 at 9:45 AM, Wim Vanbelle wrote: > Hi all, > > Rather urgent production question. If we have some errors with our > shapefiles, our fastcgi processes get killed very rapidly. (we believe this > is some rapid error protection?) > > Is there a way to prevent this? We're running nginx + fastcgi mapserver > over unix sockets. > > I'm aware that we need to look into our shapefiles/dbf's but that's not a > simple thing because they need to be updated often. > > Migration to postgres is also not an option. > > Please let me know if we can tune this somehow. Anyone experience with > this? > > Thanks in advance! > > best regards, > Wim > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at ausvet.com.au Tue Jun 23 18:12:54 2015 From: ben at ausvet.com.au (Ben Madin) Date: Wed, 24 Jun 2015 09:12:54 +0800 Subject: [mapserver-users] wms In-Reply-To: References: Message-ID: notwithstanding the prior comment about missing crs, &SRS=EPS%E2%80%8C%E2%80%8BG:32639 Your SRS seems to have some odd characters in it ? We have found in 9 out of 10 cases if we stick with WMS VERSION 1.1.1 we save tears and crying all around. On Tuesday, June 23, 2015, hosain mohammadi wrote: > Hi every one > > i have a problem according to > when run URL bellow > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/wms/map.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=tehran&LAYERS=newlayer&SRS=EPS%E2%80%8C%E2%80%8BG:32639&BBOX=530813.672387891,3955659.51937927,536046.413657126,3958686.85164527&WIDTH=400&HEIGHT=300&FORMAT=image/png > > > the error apear > This XML file does not appear to have any style information associated > with it. The document tree is shown below. > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd"> > > msWMSLoadGetMapParams(): WMS server error. Missing required parameter CRS > > > > > what is problem > > > > > -- Sent from my iPhone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hosain.moh00 at gmail.com Wed Jun 24 03:43:18 2015 From: hosain.moh00 at gmail.com (hosain mohammadi) Date: Wed, 24 Jun 2015 15:13:18 +0430 Subject: [mapserver-users] insert value t mapfile from html Message-ID: how can insert value direction mapfile from html (88,200 ) in bellow code LAYER CONNECTION "host=localhost dbname=network user=postgres password=021555 port=5432" CONNECTIONTYPE POSTGIS DATA "geom from (SELECT * from pgr_dijkstra( 'SELECT gid as id , source , target , cost FROM tehran' , 88, 200, false , false ) a LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid using srid=4326 " .... end Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jun 24 10:45:05 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 24 Jun 2015 19:45:05 +0200 Subject: [mapserver-users] libiconv In-Reply-To: <80444E25DECC6544BAB5C44E67D7937608426418@sinfra0-exc012.MTQ.MIN.INTRA> References: <80444E25DECC6544BAB5C44E67D7937608426418@sinfra0-exc012.MTQ.MIN.INTRA> Message-ID: You shouldn't be needing any iconv specific switches on centos. Start anew (rm -rf * in the build directory) and just run cmake -DCMAKE_INSTALL_PREFIX=/opt Thomas On Jun 23, 2015 22:25, "M?rette, Jacques (Consultant)" < Jacques.Merette-c at mtq.gouv.qc.ca> wrote: > Hi, > > > > I try to install MapServer 7 (beta) on CentOS 7 and I have the following > error: > > > > [root at localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/opt > --with-libiconv=/usr/local/lib .. >../configure.out.txt > > > > > > [root at localhost build]# make > > [ 73%] Built target mapserver > > Linking C executable legend > > libmapserver.so.7.1-dev: undefined reference to `libiconv_open' > > libmapserver.so.7.1-dev: undefined reference to `libiconv_close' > > libmapserver.so.7.1-dev: undefined reference to `libiconv' > > collect2: error: ld returned 1 exit status > > make[2]: *** [legend] Error 1 > > make[1]: *** [CMakeFiles/legend.dir/all] Error 2 > > make: *** [all] Error 2 > > > > I tried different switches (--with-libiconv-prefix and ?liconv) without > success. Any ideas???? > > > > Thx > > *Jacques M?rette* > > Architecte technologique > > Division des infrastructures technologiques > > Service des infrastructures technologiques appliqu?es aux op?rations > > Direction des technologies de l?information > > Minist?re des Transports du Qu?bec > > T?l: 418-643-5350 # 24685 > > jacques.merette-c at mtq.gouv.qc.ca > > > > Bo?te commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca > > > > _______________________________________________ > 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 baas at speerit.nl Wed Jun 24 23:41:25 2015 From: baas at speerit.nl (Jelmer Baas) Date: Thu, 25 Jun 2015 06:41:25 +0000 Subject: [mapserver-users] FW: Segfaults with MapScript from Python In-Reply-To: References: Message-ID: Hi all, A crosspost between mapserver and gdal, since I have no idea where to look, now. The issue I wrote about below still exists, although I implemented a crappy workaround (when a label starts with a (, I add a . in front of it - yuck). There's another issue I found, though: I have a ogr_style column value with LABEL(t:"1,2",a:295.800000,s:1.293854g,c:#ff0000,p:1,f:"ISOCP") This is rendered as '1', instead of '1,2'. Replacing the comma with a period seems to work OK. Also quoting the string works: LABEL(t:"'1,2'",a:295.800000,s:1.293854g,c:#ff0000,p:1,f:"ISOCP") It seems both my issues are related to parsing of the OGR_STYLE column when using an ANNOTATION layer in MapServer. Is this a known issue? If not, can someone please tell me where to look to investigate? As I said before, I simply use the binaries for MapServer, so I'm not really that well versed in the 'code hacking'. I'd still be willing to jump into this, though, but I'd need some pointers on where to start, first. Thanks, Regards, Jelmer -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jelmer Baas Sent: vrijdag 13 februari 2015 11:07 To: Dan Little Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Segfaults with MapScript from Python Dan, List, I've been messing around with this issue some more, and found the cause! This record crashes MapScript is this (this is the ONLY record in the database now): OID, geom, ogr_style 1234, POINT(620008 6697971), 'LABEL(t:"(0) test")' The ONLY thing that matters is the OGR_STYLE clause - the (0) part. Replace the style with 'LABEL(t:".(0) test")' and all is well. I attached my test scripts. Run simply with 'python test.py'. Test-data: CREATE TABLE testset ( oid oid, geom geometry, ogr_style character varying(350), filetype character(1) ) Insert into testset(oid, geom, ogr_style) values (1234, '010100002031BF0D00F726AD90D0EB2241846601CDFC8C5941', 'LABEL(t:"(0) test")') This single record crashes Python / MapScript with a lovely " Segmentation fault (core dumped)". Hopefully someone can debug this issue. Regards, Jelmer -----Original Message----- From: Dan Little [mailto:theduckylittle at gmail.com] Sent: donderdag 12 februari 2015 16:55 To: Jelmer Baas Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Segfaults with MapScript from Python I don't see any debugging symbols in there making life a little bit more difficult. Is your Python code very complex? Could a useful snippet be posted to a gist? On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas wrote: > Hi List, > > Some of my automated renders are failing because Python crashes with an Segmentation fault. I've finally found at least some logs of this: > Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in libmapserver.so.6.4.1[7f104eb91000+1d8000] > Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault at fffffffffffffffc ip 00007f805588750f sp 00007fff641f27c0 error 5 in libmapserver.so.6.4.1[7f80557c9000+1d8000] > > Unfortunatly, I have no idea how to continue. I suspect this has something todo with odd font rendering (too large, too small), since I had issues with that before. Can someone match these addresses with code and find out where it crashes? > > Thanks in advance! > > Regards, > Jelmer > _______________________________________________ > 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: MapScript crash.zip Type: application/x-zip-compressed Size: 2262 bytes Desc: MapScript crash.zip URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ATT00001.txt URL: From jachym.cepicky at gmail.com Sat Jun 27 03:57:46 2015 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Sat, 27 Jun 2015 10:57:46 +0000 Subject: [mapserver-users] using sld on the server Message-ID: Hi all, is there possibility to style layer using SLD file configured in MapScript? Idea would be, instead of using CLASS for configuration, you would just pass the SLD and things would magically happen (just like it works in GeoServer). Generating MapFiles from QGIS would than be next logical step .. I assume, I've missed something and there must be solution for this lying around for couple of years, but did not find anything thanks for any hint Jachym -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jun 27 08:25:39 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 27 Jun 2015 12:25:39 -0300 Subject: [mapserver-users] using sld on the server In-Reply-To: References: Message-ID: <558EC073.3060805@gatewaygeomatics.com> On 2015-06-27 7:57 AM, Jachym Cepicky wrote: > Hi all, > > is there possibility to style layer using SLD file configured in > MapScript? Idea would be, instead of using CLASS for configuration, you > would just pass the SLD and things would magically happen (just like it > works in GeoServer). > > Generating MapFiles from QGIS would than be next logical step .. > > I assume, I've missed something and there must be solution for this > lying around for couple of years, but did not find anything > Hi Jachym, Maybe you are looking for the applySLD function? I know it exists for PHPMapScript on the LAYER object (see http://www.mapserver.org/mapscript/php/phpmapscript.html#layerobj). Regarding QGIS, I believe the existing export tool uses Python MapScript and SLDs (https://plugins.qgis.org/plugins/rt_mapserver_exporter/), so I believe that tool uses that same function (guessing, as I'm not the tool's developer). But I suppose you could check the source (https://github.com/faunalia/rt_mapserver_exporter). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pcreso at pcreso.com Sat Jun 27 16:46:25 2015 From: pcreso at pcreso.com (Brent Wood) Date: Sat, 27 Jun 2015 23:46:25 +0000 (UTC) Subject: [mapserver-users] Live DVD advice Message-ID: <1675513899.993884.1435448785994.JavaMail.yahoo@mail.yahoo.com> Hi, I'm looking to build a LiveDVD/USB key with QGIS, OSM base layer and web services for New Zealand. Our road & topo data is very up to date in OSM, and we have numerous government (central, regional & local) agencies and others providing data via OGC services, so I'm hoping the system will have embedded OSM, and pre-loaded OGC servers to connect to, as well as some QGIS plugins specific to New Zealand. The disk/key is intended for schools & demonstrations showing FOSS, FOSS GIS, Open Data and Open Standards, focused on NZ data. Some years ago I built a laptop system demo'ed at several local schools which worked OK, with mapserver serving OSM via WMS direct from Postgis. NZ is small enough that the data could be rendered dynamically from the vector data in a reasonably interactive system. I can't reasonably use Postgis on a read only filesystem, and all the later guides assume that tiles will be used. Does anyone have any advice as to how I might best do this? Thanks, Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From chengwei02 at gmail.com Tue Jun 30 23:41:42 2015 From: chengwei02 at gmail.com (wei cheng) Date: Wed, 1 Jul 2015 14:41:42 +0800 Subject: [mapserver-users] shp layer can't be drawn Message-ID: hi all, I have one shp file called sensor.shp, based on which I compose mapfile and want to view via latest Mapserver MapManager, my mapfile is: MAP CONFIG "MS_ERRORFILE" "d:\ms_error.txt" DEBUG 5 DEFRESOLUTION 96 EXTENT 36623289.7484795 3778220.03563055 36627315.6082067 3780849.75397967 FONTSET "C:\\Program Files (x86)\\MapManager\\templates\\font.list" IMAGETYPE "png24" NAME "MS" RESOLUTION 96 SHAPEPATH "D:\\OutSource\\Gis\\Data_new" SIZE 843 551 STATUS ON SYMBOLSET "C:\\Program Files (x86)\\MapManager\\templates\\symbols.sym" UNITS METERS OUTPUTFORMAT NAME "png24" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT OUTPUTFORMAT NAME "print" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB METADATA "distance_units" "MS_METERS" "mapmanager_version" "1.0.0.0" END # METADATA END # WEB LAYER CONNECTION "Sensor.shp" CONNECTIONTYPE OGR DATA "Sensor" DEBUG 5 NAME "Sensor" STATUS ON TILEITEM "Sensor" TYPE LINE UNITS METERS CLASS NAME "line_color" STYLE COLOR 255 41 9 END # STYLE END # CLASS END # LAYER END # MAP the log file has such line: msOGRFileNextShape: Returning MS_DONE (no more shapes) And I aslo try to load it into PostGis and the column the_geom is empty, postgis layer can't show either. But I load sensor.shp by SAGA (http://www.saga-gis.org/en/index.html), it can show what I expected as follow. ? So, my question is why Mapserver can't show such shp file? Thanks for you help -- ?????????http://blog.csdn.net/tiplip/article/details/10980397 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sensor.png Type: image/png Size: 2104 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Data_new.zip Type: application/zip Size: 33057 bytes Desc: not available URL: