From hanscastorp76 at yahoo.es Tue Jul 1 01:07:36 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 1 Jul 2008 08:07:36 +0000 (GMT) Subject: [MAPSERVER-USERS] insertLayer() Message-ID: <796614.20741.qm@web25908.mail.ukl.yahoo.com> Hi to all, If map->insertLayer() isn't available in php mapscript, how can I insert a runtime created layer using php mapscript??? Thanks in advance. Hans Castorp. ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Tue Jul 1 01:15:31 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 01 Jul 2008 10:15:31 +0200 Subject: [MAPSERVER-USERS] insertLayer() In-Reply-To: <796614.20741.qm@web25908.mail.ukl.yahoo.com> References: <796614.20741.qm@web25908.mail.ukl.yahoo.com> Message-ID: <4869E7A3.6080504@neogeo-online.net> I guess you just need a new LayerObj, as described in the mapscript documentation (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class) : Layer Objects can be returned by the MapObj class, or can be created using: layerObj ms_newLayerObj(MapObj map [, layerObj layer]) A second optional argument can be given to ms_newLayerObj() to create the new layer as a copy of an existing layer. If a layer is given as argument then all members of a this layer will be copied in the new layer created. You can then play with : boolean moveLayerUp(int layerindex) Move layer up in the hierarcy of drawing. boolean moveLayerDown(int layerindex) Move layer down in the hierarcy of drawing. array getlayersdrawingorder() Return an array containing layer's index in the order which they are drawn. boolean setlayersdrawingorder(array layeryindex) Set the layer's order array. The argument passed must be a valid array with all the layer's index. Return TRUE on success or else FALSE. to set your layer's correct place into the map. Hope that helps, Guillaume Hans Castorp a ?crit : > Hi to all, > > If map->insertLayer() isn't available in php mapscript, how can I insert > a runtime created layer using php mapscript??? > > Thanks in advance. > > Hans Castorp. > > > ------------------------------------------------------------------------ > > Enviado desde Correo Yahoo! > > La bandeja de entrada m?s inteligente. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From andrew at environ-it.co.uk Tue Jul 1 02:16:30 2008 From: andrew at environ-it.co.uk (Andrew Mason) Date: Tue, 1 Jul 2008 10:16:30 +0100 Subject: [mapserver-users] Raster merge Message-ID: Hello List, I wonder if anyone can anyone suggest a possible mechanism for achieving the following? I have two rasters covering the same area. Raster A contains the suitability of the location for the growth of Species A (on a scale of 1 to 30) Raster B contains the suitability of the location for the growth of Species B (on a scale of 1 to 30) I would like to generate a layer that shows the result of the following rule: Display green at locations where Species A suitability is > 18 Otherwise if Species B suitability > 14 display blue Otherwise display red. Thank you Andrew Mason From hanscastorp76 at yahoo.es Tue Jul 1 02:29:04 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 1 Jul 2008 09:29:04 +0000 (GMT) Subject: [MAPSERVER-USERS] insertLayer() Message-ID: <729232.23909.qm@web25906.mail.ukl.yahoo.com> Hi Guillaume, thanks for your help, This is the code I'm using in order to create a new points layer (with only one point): $oMap = ms_newMapObj($szMapFile); $oPuntoSeleccionado= ms_newLayerObj($oMap); $oPuntoSeleccionado->set("name", "EMPRESAS_ALT"); $oPuntoSeleccionado->set("type", MS_LAYER_POINT); $oPuntoSeleccionado->set("status", MS_ON); $oCoordenadas=ms_newLineObj(); $oShapePuntos=ms_newShapeObj(MS_SHAPE_POINT); $oCoordenadas->addXY($x, $y); $oShapePuntos->add($oCoordenadas); $oPuntoSeleccionado->addFeature($oShapePuntos); $oClase=ms_newClassObj($oPuntoSeleccionado); $oEstiloPunto=ms_newStyleObj($oClase); $oEstiloPunto->set("symbolname", "MARKER_EMPRESA_ALT"); $oEstiloPunto->set("text", ""); But I have no results. No errors but no success too. P.S. I'm trying to add this funcionallity to a Ka-map based application. Thanks in advance. -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: martes, 01 de julio de 2008 10:16 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [MAPSERVER-USERS] insertLayer() I guess you just need a new LayerObj, as described in the mapscript documentation (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class) : Layer Objects can be returned by the MapObj class, or can be created using: layerObj ms_newLayerObj(MapObj map [, layerObj layer]) A second optional argument can be given to ms_newLayerObj() to create the new layer as a copy of an existing layer. If a layer is given as argument then all members of a this layer will be copied in the new layer created. You can then play with : boolean moveLayerUp(int layerindex) Move layer up in the hierarcy of drawing. boolean moveLayerDown(int layerindex) Move layer down in the hierarcy of drawing. array getlayersdrawingorder() Return an array containing layer's index in the order which they are drawn. boolean setlayersdrawingorder(array layeryindex) Set the layer's order array. The argument passed must be a valid array with all the layer's index. Return TRUE on success or else FALSE. to set your layer's correct place into the map. Hope that helps, Guillaume Hans Castorp a ?crit : > Hi to all, > > If map->insertLayer() isn't available in php mapscript, how can I insert > a runtime created layer using php mapscript??? > > Thanks in advance. > > Hans Castorp. > > > ------------------------------------------------------------------------ > > Enviado desde Correo Yahoo! > > La bandeja de entrada m?s inteligente. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.4.3/1527 - Release Date: 30/06/2008 18:07 ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainer at kalliany.at Tue Jul 1 04:00:19 2008 From: rainer at kalliany.at (Rainer Kalliany) Date: Tue, 01 Jul 2008 13:00:19 +0200 Subject: [mapserver-users] Displaying and printing GIS data with mosaicked ECW images Message-ID: <486A0E43.3080200@kalliany.at> Dear all, For a web-based GIS application (forest-management) we are implementing a solution based on MapServer and ka-map. There are 2 critical issues: 1) The system has to cope with huge number of high-resolution orthophotos in ecw format. 2) Printing/plotting on small desktop printers and/or large plotters. Our current questions are in particular: ad 1) If (and how) we may introduce one or more levels of intermediate resolution. The generation of such data is no problem, but how to organize it properly ? ad 2) Shall we use shp2img.exe for printing and is it possible to start it inside ka-Map application (with the option to continue after printing). Or should we use print_map.php shipped with ka-map - (our first test did not print the ecw images ...) Can anybody provide us with hints and possible ideas for those issues ? we would be most gratefule for any useful information Rainer & Susi Kalliany 2008-07-01, 11:00 UTC -- DI. Rainer Kalliany - rainer at kalliany.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software, GIS) KALLIANY - www.kalliany.at Ingenieurb?ro f?r Vermessungswesen (Photogrammetrie, Fernerkundung, GPS) Mobiltelephon: +43 664 1811098 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 From warmerdam at pobox.com Tue Jul 1 05:45:55 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 01 Jul 2008 08:45:55 -0400 Subject: [mapserver-users] Raster merge In-Reply-To: References: Message-ID: <486A2703.8000807@pobox.com> Andrew Mason wrote: > Hello List, > > I wonder if anyone can anyone suggest a possible mechanism for achieving > the following? > > I have two rasters covering the same area. > > Raster A contains the suitability of the location for the growth of > Species A (on a scale of 1 to 30) > Raster B contains the suitability of the location for the growth of > Species B (on a scale of 1 to 30) > > I would like to generate a layer that shows the result of the following > rule: > > Display green at locations where Species A suitability is > 18 > Otherwise if Species B suitability > 14 display blue > Otherwise display red. Andrew, I haven't tried this, but I think you could handle this with two layers in your mapfile, one for each raster. The first layer should be for RasterB. It should have one class with an expression selecting suitability values greater than 14 and a color of blue. The next layer should be for RasterA and have one class for suitabilities greater than 18 and a color of green. It should also have a second class with no expression and a color of red. There are some docs on raster classification in: http://mapserver.gis.umn.edu/docs/howto/raster_data However, if RasterA and RasterB are not dynamic, you might consider producing the merged result as a preprocessing step instead of making MapServer do the computations for each map render. It would be more efficient. Such raster modelling could be done in GRASS, for instance. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From andrew at environ-it.co.uk Tue Jul 1 06:25:26 2008 From: andrew at environ-it.co.uk (Andrew Mason) Date: Tue, 1 Jul 2008 14:25:26 +0100 Subject: [mapserver-users] Raster merge In-Reply-To: <486A2703.8000807@pobox.com> References: <486A2703.8000807@pobox.com> Message-ID: <6BEEBB2F-FE11-4191-BCD3-929DB1622416@environ-it.co.uk> Frank, Thanks for that advice, a further complication is that I'd like to be able to specify the suitability values as part of the request. Is there a way to apply some conditional processing based upon the value of request parameters? Andrew On 1 Jul 2008, at 13:45, Frank Warmerdam wrote: > Andrew Mason wrote: >> Hello List, >> I wonder if anyone can anyone suggest a possible mechanism for >> achieving the following? >> I have two rasters covering the same area. >> Raster A contains the suitability of the location for the growth >> of Species A (on a scale of 1 to 30) >> Raster B contains the suitability of the location for the growth >> of Species B (on a scale of 1 to 30) >> I would like to generate a layer that shows the result of the >> following rule: >> Display green at locations where Species A suitability is > 18 >> Otherwise if Species B suitability > 14 display blue >> Otherwise display red. > > Andrew, > > I haven't tried this, but I think you could handle this with two > layers > in your mapfile, one for each raster. The first layer should be > for RasterB. > It should have one class with an expression selecting suitability > values > greater than 14 and a color of blue. The next layer should be for > RasterA > and have one class for suitabilities greater than 18 and a color of > green. > It should also have a second class with no expression and a color > of red. > > There are some docs on raster classification in: > > http://mapserver.gis.umn.edu/docs/howto/raster_data > > However, if RasterA and RasterB are not dynamic, you might consider > producing the merged result as a preprocessing step instead of making > MapServer do the computations for each map render. It would be more > efficient. Such raster modelling could be done in GRASS, for > instance. > > Best regards, > -- > --------------------------------------- > +-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http:// > osgeo.org > From prasad.b at iworktech.com Tue Jul 1 07:17:12 2008 From: prasad.b at iworktech.com (Prasad B) Date: Tue, 1 Jul 2008 19:47:12 +0530 Subject: [mapserver-users] helppppp Message-ID: <592ab8ae0807010717s30bcef82m5b735964318e5bc0@mail.gmail.com> Respt Sir , Can anybody help me to use OpenLayer javascript Library to my MAP, i have developing MAP with Mapfile & C# MapScript . i cant use AJAX , so any other alternative to avoid complete page refreshment. if there is any help or link/Id please send me . Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Jul 1 07:28:04 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 01 Jul 2008 09:28:04 -0500 Subject: [mapserver-users] Fwd: [mapserver-dev] get area between points with latlong info to make amap References: <18210024.post@talk.nabble.com> Message-ID: <4869F8A4.5157.008F.0@dnr.state.mn.us> >>> On 7/1/2008 at 1:26 AM, in message <18210024.post at talk.nabble.com>, "S.Reena" wrote: > I have a postgres table which I want to represent in map...the attributes > being ( the_geom, name, latlon etc..) I want to calculate the area of all > the points (using the_geom) having name LIKE ' ABC' ...[A single tuple > having the_geom , area and name field is required ) so that I can represent > it using a polygon in map. > > How to do that....... > > S.Reena > From jdeltoro1973 at yahoo.com Tue Jul 1 07:40:57 2008 From: jdeltoro1973 at yahoo.com (=?iso-8859-1?Q?Juan_Jose_Del_Toro_Madrue=F1o?=) Date: Tue, 1 Jul 2008 07:40:57 -0700 (PDT) Subject: [mapserver-users] MapServer Open Suse 10.2 Message-ID: <855680.72494.qm@web51709.mail.re2.yahoo.com> Dear List; Has anyone had major issues while implementing mapserver in open suse 10.2 ?Saludos! / Greetings! Juan Jos? Del Toro Madrue?o jdeltoro1973 at yahoo.com Guadalajara, Jalisco M?XICO __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ From pcreso at pcreso.com Tue Jul 1 10:48:43 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 1 Jul 2008 10:48:43 -0700 (PDT) Subject: [mapserver-users] MapServer Open Suse 10.2 In-Reply-To: <855680.72494.qm@web51709.mail.re2.yahoo.com> Message-ID: <71745.71949.qm@web33202.mail.mud.yahoo.com> --- On Wed, 7/2/08, Juan Jose Del Toro Madrue?o wrote: > To: mapserver-users at lists.osgeo.org > Date: Wednesday, July 2, 2008, 2:40 AM > Dear List; > > Has anyone had major issues while implementing mapserver in > open suse 10.2 Hi Juan, Nope. Works reliably & installs easily. I had been installing (& building) from source since v9, along with QGIS, GDAL, GEOS, PostGIS, Proj4...., but for the last year or so I've been adding the Opensuse GEO repository to YAST & installing it all from there as required. http://download.opensuse.org/repositories/Application:/Geo/... Of course, if you want a custom mapserver compilation with specific capabilities, this may not meet your needs. Cheers, Brent Wood From guillaume.sueur at neogeo-online.net Tue Jul 1 12:44:14 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 01 Jul 2008 21:44:14 +0200 Subject: [MAPSERVER-USERS] insertLayer() In-Reply-To: <729232.23909.qm@web25906.mail.ukl.yahoo.com> References: <729232.23909.qm@web25906.mail.ukl.yahoo.com> Message-ID: <486A890E.6070000@neogeo-online.net> Hans, You should test every step of your code, for example : if ($oPuntoSeleccionado->addFeature($oShapePuntos) == -1) echo "Error"; it would help getting the step which goes wrong. Guillaume Hans Castorp a ?crit : > Hi Guillaume, thanks for your help, > > > This is the code I'm using in order to create a new points layer (with > only one point): > > > $oMap = ms_newMapObj($szMapFile); > > $oPuntoSeleccionado= ms_newLayerObj($oMap); > $oPuntoSeleccionado->set("name", "EMPRESAS_ALT"); > $oPuntoSeleccionado->set("type", MS_LAYER_POINT); > $oPuntoSeleccionado->set("status", MS_ON); > > $oCoordenadas=ms_newLineObj(); > $oShapePuntos=ms_newShapeObj(MS_SHAPE_POINT); > $oCoordenadas->addXY($x, $y); > $oShapePuntos->add($oCoordenadas); > $oPuntoSeleccionado->addFeature($oShapePuntos); > > $oClase=ms_newClassObj($oPuntoSeleccionado); > > $oEstiloPunto=ms_newStyleObj($oClase); > $oEstiloPunto->set("symbolname", "MARKER_EMPRESA_ALT"); > $oEstiloPunto->set("text", ""); > > > But I have no results. No errors but no success too. > > > P.S. I'm trying to add this funcionallity to a Ka-map based application. > > > Thanks in advance. > > > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: martes, 01 de julio de 2008 10:16 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [MAPSERVER-USERS] insertLayer() > > > > I guess you just need a new LayerObj, as described in the mapscript > > documentation > > (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class) : > > Layer Objects can be returned by the MapObj class, or can be created > > using: > > > > layerObj ms_newLayerObj(MapObj map [, layerObj layer]) > > > > A second optional argument can be given to ms_newLayerObj() to create > > the new layer as a copy of an existing layer. If a layer is given as > > argument then all members of a this layer will be copied in the new > > layer created. > > > > > > You can then play with : > > boolean moveLayerUp(int layerindex) > > Move layer up in the hierarcy of drawing. > > > > boolean moveLayerDown(int layerindex) > > Move layer down in the hierarcy of drawing. > > > > array getlayersdrawingorder() > > Return an array containing layer's index in the order which they > > are drawn. > > > > boolean setlayersdrawingorder(array layeryindex) > > Set the layer's order array. The argument passed must be a valid > > array with all the layer's index. > > Return TRUE on success or else FALSE. > > > > > > to set your layer's correct place into the map. > > > > Hope that helps, > > > > > > Guillaume > > > > Hans Castorp a ?crit : > > > Hi to all, > > > > > > If map->insertLayer() isn't available in php mapscript, how can I insert > > > a runtime created layer using php mapscript??? > > > > > > Thanks in advance. > > > > > > Hans Castorp. > > > > > > > > > ------------------------------------------------------------------------ > > > > > > Enviado desde Correo Yahoo! > > > > > > > La bandeja de entrada m?s inteligente. > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > No virus found in this incoming message. > > Checked by AVG. > > Version: 7.5.524 / Virus Database: 270.4.3/1527 - Release Date: > 30/06/2008 18:07 > > > > > ------------------------------------------------------------------------ > > Enviado desde Correo Yahoo! > > La bandeja de entrada m?s inteligente. From luper.rouch at gmail.com Tue Jul 1 19:27:32 2008 From: luper.rouch at gmail.com (Luper Rouch) Date: Wed, 02 Jul 2008 04:27:32 +0200 Subject: [mapserver-users] memory mapObj ? Message-ID: <486AE794.2040303@gmail.com> Hi, I am using mapscript to render maps : there are mapfiles stored in a database, mapObj are created from them and rendered via WMS. Right now I have to write temporary files on the filesystem to create the mapObj objects, is there a way to create them from memory to improve performance ? Thanks, Luper From alex at sigte.udg.edu Wed Jul 2 01:42:36 2008 From: alex at sigte.udg.edu (Alexandre Busquets Triola) Date: Wed, 02 Jul 2008 10:42:36 +0200 Subject: [mapserver-users] Postgis mapserver sql help Message-ID: <486B3F7C.7060503@sigte.udg.edu> Hi, this is the first time that I write to the list. I'm working with mapserver and postgis and I have a problem with mpaserver, if I put this query on postgres select geom FROM par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 4485000))',23031 ) as foo ) , geom ) works ok but if I put this geom FROM par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 4485000))',23031 ) as foo using SRID=23031 ) , geom ) using SRID=23031 in maperver not works, this is the error that I have Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 4485000))',23031 ) as foo WHERE geom && setSRID('BOX3D(258000 4485000,398800 4625800)'::BOX3D, 23031 )' Postgresql reports the error as 'ERROR: syntax error at end of input LINE 5: ...tSRID('BOX3D(258000 4485000,398800 4625800)'::BOX3D, 23031 ) ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please in D:\alex\webs\alex\codorniu\mapscript\parceles2.php on line 172 Warning: [MapServer Error]: msPOSTGISLayerRetrievePK(): Error executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 4485000))',23031 ) as foo' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null in D:\alex\webs\alex\codorniu\mapscript\parceles2.php on line 172 Thanks -- _________________________________________________________________ Alexandre Busquets Triola Servei de Sistemes d'Informaci? Geogr?fica i Teledetecci? (SIGTE) Universitat de Girona Pl. Ferrater Mora, 1 17071 Girona Tel. 972 41 80 39 Fax. 972 41 82 30 alex at sigte.udg.edu http://www.sigte.udg.es/ _________________________________________________________________ From guillaume.sueur at neogeo-online.net Wed Jul 2 02:30:02 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 02 Jul 2008 11:30:02 +0200 Subject: [mapserver-users] Postgis mapserver sql help In-Reply-To: <486B3F7C.7060503@sigte.udg.edu> References: <486B3F7C.7060503@sigte.udg.edu> Message-ID: <486B4A9A.5020006@neogeo-online.net> Hi, try this : geom FROM (select id, geom FROM par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 4485000))',23031) ) , geom ) ) using unique id using SRID=23031 Note that I've added an id field to the SQL. Adapt it to your own id field. Guillaume Alexandre Busquets Triola a ?crit : > > Hi, this is the first time that I write to the list. > I'm working with mapserver and postgis and I have a problem with mpaserver, > if I put this query on postgres > > > select geom FROM par_vit3 where intersects( > ( > select GeomFromText( > 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 > 4485000, 258000 4485000))',23031 > ) as foo > ) > , geom ) > > > works ok > > but if I put this > > > geom FROM par_vit3 where intersects( > ( > select GeomFromText( > 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 > 4485000, 258000 4485000))',23031 > ) as foo using SRID=23031 > ) > , geom ) using SRID=23031 > > > in maperver not works, this is the error that I have > > > Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS > DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR > FOR SELECT asbinary(force_collection(force_2d(geom)),'NDR'),OID::text > from par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 > 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 > 4485000))',23031 ) as foo WHERE geom && setSRID('BOX3D(258000 > 4485000,398800 4625800)'::BOX3D, 23031 )' Postgresql reports the error > as 'ERROR: syntax error at end of input LINE 5: ...tSRID('BOX3D(258000 > 4485000,398800 4625800)'::BOX3D, 23031 ) ^ ' More Help: Error with > POSTGIS data variable. You specified 'check your .map file'. Standard > ways of specifiying are : (1) 'geometry_column from geometry_table' (2) > 'geometry_column from (sub query) as foo using unique column name using > SRID=srid#' Make sure you put in the 'using unique column name' and > 'using SRID=#' clauses in. For more help, please in > D:\alex\webs\alex\codorniu\mapscript\parceles2.php on line 172 > > Warning: [MapServer Error]: msPOSTGISLayerRetrievePK(): Error executing > POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from > pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = > pg_class.oid and pg_class.oid = pg_attribute.attrelid and > pg_constraint.contype = 'p' and pg_constraint.conkey[1] = > pg_attribute.attnum and pg_class.relname = 'par_vit3 where intersects( ( > select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 > 4625800 ,398800 4485000, 258000 4485000))',23031 ) as foo' and > pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null in > D:\alex\webs\alex\codorniu\mapscript\parceles2.php on line 172 > > > Thanks > From Ying.Zhao1 at cn.flextronics.com Wed Jul 2 02:42:00 2008 From: Ying.Zhao1 at cn.flextronics.com (Zhao Ying (CDU)) Date: Wed, 2 Jul 2008 17:42:00 +0800 Subject: [mapserver-users] Question about php mapscript Message-ID: <3E5D24E6E4144A4590AC2B152F72F05004687ADE@ASHKGEX2.asia.ad.flextronics.com> Greetings, About the following mapscript code, I don't understand very well. Is it about to generate a new feature node with line, point object embedded? Will it do some updates to the map file stored in the server? /* $qresult: an array that corresponds to the fetched rows.*/ function AddPoints ( $map, $qresult ) { // Use lat/long info from query results to add points // to the points-of-interest layer of the map // shape index is set to the store-id // (this requires a patched version of Mapscript) $this_layer = $map->getLayerByName('poi'); $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newPointObj(); $ln[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); /* $row[2] is latitude,$row[3] is longtitude from database*/ $poi[$i]->setXY($row[3],$row[2]); $ln[$i]->add($poi[$i]); $shp[$i]->add($ln[$i]); /* $row[0] is address field from database. */ $shp[$i]->set(index, $row[0]); $this_layer->addFeature( $shp[$i] ); $i++; } return; } // end AddPoints Thanks! Jeff Chengdu China. Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at sigte.udg.edu Wed Jul 2 02:48:47 2008 From: alex at sigte.udg.edu (Alexandre Busquets Triola) Date: Wed, 02 Jul 2008 11:48:47 +0200 Subject: [mapserver-users] Postgis mapserver sql help In-Reply-To: <486B4A9A.5020006@neogeo-online.net> References: <486B3F7C.7060503@sigte.udg.edu> <486B4A9A.5020006@neogeo-online.net> Message-ID: <486B4EFF.5090107@sigte.udg.edu> Thanks Guillaume the final code is geom FROM (select codi, geom FROM par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800, 398800 4485000, 258000 4485000))',23031) as consulta1 ) , geom ) AND codi IS NOT NULL ) as consulta2 using unique codi using SRID=23031 En/na Guillaume Sueur ha escrit: > Hi, > > try this : > > geom FROM (select id, geom FROM par_vit3 > where intersects( > ( > select GeomFromText( > 'POLYGON((258000 4485000, 258000 4625800 ,398800 > 4625800 ,398800 4485000, 258000 4485000))',23031) > ) > , geom ) > ) > using unique id using SRID=23031 > > Note that I've added an id field to the SQL. Adapt it to your own id > field. > > > > Guillaume > > Alexandre Busquets Triola a ?crit : >> >> Hi, this is the first time that I write to the list. >> I'm working with mapserver and postgis and I have a problem with >> mpaserver, >> if I put this query on postgres >> >> >> select geom FROM par_vit3 where intersects( >> ( >> select GeomFromText( >> 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 >> 4485000, 258000 4485000))',23031 >> ) as foo >> ) >> , geom ) >> >> >> works ok >> >> but if I put this >> >> >> geom FROM par_vit3 where intersects( >> ( >> select GeomFromText( >> 'POLYGON((258000 4485000, 258000 4625800 ,398800 4625800 ,398800 >> 4485000, 258000 4485000))',23031 >> ) as foo using SRID=23031 >> ) >> , geom ) using SRID=23031 >> >> >> in maperver not works, this is the error that I have >> >> >> Warning: [MapServer Error]: prepare_database(): Error executing >> POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor >> BINARY CURSOR FOR SELECT >> asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from >> par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 >> 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 >> 4485000))',23031 ) as foo WHERE geom && setSRID('BOX3D(258000 >> 4485000,398800 4625800)'::BOX3D, 23031 )' Postgresql reports the >> error as 'ERROR: syntax error at end of input LINE 5: >> ...tSRID('BOX3D(258000 4485000,398800 4625800)'::BOX3D, 23031 ) ^ ' >> More Help: Error with POSTGIS data variable. You specified 'check >> your .map file'. Standard ways of specifiying are : (1) >> 'geometry_column from geometry_table' (2) 'geometry_column from (sub >> query) as foo using unique column name using SRID=srid#' Make sure >> you put in the 'using unique column name' and 'using SRID=#' clauses >> in. For more help, please in >> D:\alex\webs\alex\codorniu\mapscript\parceles2.php on line 172 >> >> Warning: [MapServer Error]: msPOSTGISLayerRetrievePK(): Error >> executing POSTGIS statement (msPOSTGISLayerRetrievePK():select >> attname from pg_attribute, pg_constraint, pg_class where >> pg_constraint.conrelid = pg_class.oid and pg_class.oid = >> pg_attribute.attrelid and pg_constraint.contype = 'p' and >> pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = >> 'par_vit3 where intersects( ( select GeomFromText( 'POLYGON((258000 >> 4485000, 258000 4625800 ,398800 4625800 ,398800 4485000, 258000 >> 4485000))',23031 ) as foo' and pg_table_is_visible(pg_class.oid) and >> pg_constraint.conkey[2] is null in >> D:\alex\webs\alex\codorniu\mapscript\parceles2.php on line 172 >> >> >> Thanks >> > > -- _________________________________________________________________ Alexandre Busquets Triola Servei de Sistemes d'Informaci? Geogr?fica i Teledetecci? (SIGTE) Universitat de Girona Pl. Ferrater Mora, 1 17071 Girona Tel. 972 41 80 39 Fax. 972 41 82 30 alex at sigte.udg.edu http://www.sigte.udg.es/ _________________________________________________________________ From szekerest at gmail.com Wed Jul 2 05:28:01 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 2 Jul 2008 14:28:01 +0200 Subject: [mapserver-users] memory mapObj ? In-Reply-To: <486AE794.2040303@gmail.com> References: <486AE794.2040303@gmail.com> Message-ID: Hi, Currently only the python bindings expose msLoadMapFromString and I don't see any compelling reason why not to do so in the other languages as well. I would consider a module level static LoadMapFromString to create a map object using the string with the mapfile contents. Are you using PHP or SWIG mapscript? You might want to create a ticket with this issue. Best regards, Tamas 2008/7/2 Luper Rouch : > Hi, > > I am using mapscript to render maps : there are mapfiles stored in a > database, mapObj are created from them and rendered via WMS. > > Right now I have to write temporary files on the filesystem to create the > mapObj objects, is there a way to create them from memory to improve > performance ? > > Thanks, > Luper > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Laurent.Saez at developpement-durable.gouv.fr Wed Jul 2 07:14:19 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Wed, 02 Jul 2008 16:14:19 +0200 Subject: [mapserver-users] WFS/GetFeature requests with cascaded layers Message-ID: <486B8D3B.50504@developpement-durable.gouv.fr> Hi list, I have read that MapServer 5.2 fixes the problem with WMS GetFeatureInfo request with cascaded layer (cf. http://trac.osgeo.org/mapserver/ticket/1617). But I have to request cascaded layers with WFS/GetFeature requests. I have tried but nothing happened... Is it possible ? How ? I hope my question is not stupid ! Regards Laurent From ragnar at munin.fo Wed Jul 2 07:32:22 2008 From: ragnar at munin.fo (=?iso-8859-1?Q?Ragnar_=D8ster=F8?=) Date: Wed, 2 Jul 2008 15:32:22 +0100 Subject: [mapserver-users] How do I create an embedded legend with all layers and layer name? Message-ID: <082114015AA8224BBB3DCA118F0D36390E95CF@EXC-SERVER.munin.fo> I have created a map view with mapscript and I want an embedded legend with layer names. And this only gives me an empty image.... $imageLegend = $objMap->drawLegend(); $imageLegend_url = $imageLegend->saveWebImage(); Do I have to set anything in the Layers or the map? -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe.harwood at gmail.com Wed Jul 2 07:42:03 2008 From: joe.harwood at gmail.com (Joseph Harwood) Date: Wed, 2 Jul 2008 10:42:03 -0400 Subject: [mapserver-users] How do I create an embedded legend with all layers and layer name? In-Reply-To: <082114015AA8224BBB3DCA118F0D36390E95CF@EXC-SERVER.munin.fo> References: <082114015AA8224BBB3DCA118F0D36390E95CF@EXC-SERVER.munin.fo> Message-ID: Each Layer needs to have a Class and each class that you want to appear in the legend needs a NAME field. LAYER NAME "Streets" CLASS NAME "Major Roads" STYLE.... etc.. On 7/2/08, Ragnar ?ster? wrote: > > I have created a map view with mapscript and I want an embedded legend > with layer names. > > > > And this only gives me an empty image?. > > $imageLegend = $objMap->drawLegend(); > > $imageLegend_url = $imageLegend->saveWebImage(); > > > > Do I have to set anything in the Layers or the map? > > _______________________________________________ > 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 ragnar at munin.fo Wed Jul 2 08:21:11 2008 From: ragnar at munin.fo (=?iso-8859-1?Q?Ragnar_=D8ster=F8?=) Date: Wed, 2 Jul 2008 16:21:11 +0100 Subject: [mapserver-users] How do I create an embedded legend with all layers and layer name? In-Reply-To: References: <082114015AA8224BBB3DCA118F0D36390E95CF@EXC-SERVER.munin.fo> Message-ID: <082114015AA8224BBB3DCA118F0D36390E95D2@EXC-SERVER.munin.fo> That fixed it, thanks for the help :-) ________________________________ From: Joseph Harwood [mailto:joe.harwood at gmail.com] Sent: 2. juli 2008 15.42 To: Ragnar ?ster? Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How do I create an embedded legend with all layers and layer name? Each Layer needs to have a Class and each class that you want to appear in the legend needs a NAME field. LAYER NAME "Streets" CLASS NAME "Major Roads" STYLE.... etc.. On 7/2/08, Ragnar ?ster? wrote: I have created a map view with mapscript and I want an embedded legend with layer names. And this only gives me an empty image.... $imageLegend = $objMap->drawLegend(); $imageLegend_url = $imageLegend->saveWebImage(); Do I have to set anything in the Layers or the map? _______________________________________________ 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 kevin.edmundson at wthtechnology.com Wed Jul 2 09:04:48 2008 From: kevin.edmundson at wthtechnology.com (Kevin Edmundson) Date: Wed, 2 Jul 2008 12:04:48 -0400 Subject: [mapserver-users] query in url Message-ID: I have a mapserver site that contains, among others, a parcel layer. I have a 3rd party application that manages parcel data for a customer and I would like to...from the third party application...send a url request to the mapserver that would cause it to open, and zoom to a particular parcel. If the parcel layer was named 'parcels' and the field name was ParcelNumber in the layer, how would I construct the url request to perform the above function...or is it even possible? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjschlafley at yahoo.com Wed Jul 2 10:21:50 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Wed, 2 Jul 2008 10:21:50 -0700 (PDT) Subject: [mapserver-users] Mapscript whichshapes attribute query Message-ID: <427187.66953.qm@web52311.mail.re2.yahoo.com> The mapscript documentation for the method?(LayerObj) whichshapes?claims you can quote: "Performs a spatial, and optionally an attribute based feature search."? How and where is the attribute based search query?included in this method?? JJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From beckjoh at knology.net Wed Jul 2 14:33:30 2008 From: beckjoh at knology.net (John Beck) Date: Wed, 2 Jul 2008 16:33:30 -0500 Subject: [mapserver-users] Map Rendering With GeoMoose Message-ID: <8030415EB3024B228EB916F1E45E2030@BeckPC> Hello list, I hope someone can help me. I am trying to use GeoMoose 1.4 on Apache with MS4W. I also use IE for my browser. I have successfully loaded x,y data from MySql. I use the standared circle "ellipse" symbol. NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE In other MapServer applications, (p.mapper, jbox, and Chameleon) when I zoom into the points a nice series of small rounded points are shown. In GeoMoose, when I zoom into a series of points the points look more like large raster blocks and they are all merged together. In fact they are not even round. My data are in Lat Long, units dd. Do you think it could be a precision issue or coordinate issue? I notice in the coordinate bar that the decimal places only go 2 values. This data is at least 6 decimals places and the points are close together however other mapserver applications can display the data fine. Should I first convert to UTM? Could this be a mode = map vs. mode = browse issue? Any ideas or thoughts would be appreciated. I would like to use GeoMoose but this could be a show stopper. Thanks in advance. JB -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Jul 2 18:11:31 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Jul 2008 20:11:31 -0500 Subject: [mapserver-users] MapServer 5.2 Beta 4 Available Message-ID: <486BE0F30200008F00019452@co5.dnr.state.mn.us> Hi folks: MapServer 5.2 Beta 4 has just been released. The source package is available for download at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since 5.0 can be found at the end this message. This is a significant release so we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be relatively easy for folks to test. Please let us know how it goes! This is the 4th, and last, beta release (we hope) and if all goes well there will be a release candidate next week and the final release the week after. I promise not to apply any more lightly tested patches... More details can be found in the 5.2 release plan at: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ Steve Version 5.2.0-beta3 (2008-07-02): --------------------------------- - Added support in configure script for pkg-config for fribidi2 (#2664) - Added more debug/tuning output to mapserv and shp2img at debug level 2 (#2673) - maptemplate.c: removed extra line feeds from mime header output. (#2672) - mapresample.c: fix for bug 2540 when using raster resampling and AGG. - mapsde.c: Check at compile time that we have SE_connection_test_server, which appears to only be available for ArcSDE 9+ (#2665). - mapshape.c: restore old behavior of tiled shapes relative to shapepath with new behavior for when shapepath is undefined (#2369) - maputil.c: fix a bug for offset lines with agg, when the first segment was horizontal (#2659) - mapraster.c: fix for tiled rasters with relative shape paths defined, from dfurhy (#2369) - maptemplate.c: fixed a problem with extent tags with _esc extension not working (#2666) From Steve.Lime at dnr.state.mn.us Wed Jul 2 18:27:11 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Jul 2008 20:27:11 -0500 Subject: [mapserver-users] query in url Message-ID: <486BE49F0200008F00019456@co5.dnr.state.mn.us> There are always many ways. If you don't have any spatial information in the 3rd party application then you have a couple of options: 1) do an attribute query with a URL template (explained below) 2) pass the parcel id to your MapServer application and use it to do an ajax call to lookup the spatial extent information. This would work nicely if using OpenLayers, Ka-Map, dBox, or some other type of client that doesn't reload the entire page. It's really just a variation of 1. Anyway, you'd want to do a simple attribute query first to get the spatial extents of the parcel. So, if you had a special mapfile (parcel_lookup.map) it might look like so: MAP ... LAYER NAME 'parcels' TYPE QUERY STATUS DEFAULT TEMPLATE 'http://wthtecnology.com/cgi-bin/mapserv?map=main_application.map&mapext=[shpext_esc]' END END The URL to do the attribute query would look like: http:////wthtecnology.com/cgi-bin/mapserv?map=parcel_lookup.map&qitem=id&qlayer=parcels&qstring=xxx-xx-xxxx-xxxx The is off the top of my head but I've done it and it works nicely. Caveats: 1) depending on version you'll need to set a qstring filter in parcel_lookup.map to validate parcel ids with 2) if using 5.2, it has a new feature to expand extent tags so they aren't so tight to the feature (e.g. [shpext escape=url expand=500] The way this works is your initial call looks up the parcel and gets it's extent. Then that is used to create another call to your main application. The redirection happens automatically and is transparent to the user. Let me know if you need more information. Steve >>> "Kevin Edmundson" 07/02/08 11:06 AM >>> I have a mapserver site that contains, among others, a parcel layer. I have a 3rd party application that manages parcel data for a customer and I would like to...from the third party application...send a url request to the mapserver that would cause it to open, and zoom to a particular parcel. If the parcel layer was named 'parcels' and the field name was ParcelNumber in the layer, how would I construct the url request to perform the above function...or is it even possible? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. From Steve.Lime at dnr.state.mn.us Wed Jul 2 18:29:06 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Jul 2008 20:29:06 -0500 Subject: [mapserver-users] Mapscript whichshapes attribute query Message-ID: <486BE5120200008F0001945B@co5.dnr.state.mn.us> Which shapes applies the layer FILTER definition if it exists. That FILTER must be set prior to calling whichshapes. Steve >>> "J.J. Schlafley" 07/02/08 12:22 PM >>> The mapscript documentation for the method (LayerObj) whichshapes claims you can quote: "Performs a spatial, and optionally an attribute based feature search." How and where is the attribute based search query included in this method? JJ From temiz at deprem.gov.tr Thu Jul 3 00:07:59 2008 From: temiz at deprem.gov.tr (orkun) Date: Thu, 03 Jul 2008 10:07:59 +0300 Subject: [mapserver-users] confused on working PointObj Message-ID: <1215068879.6075.5.camel@orkun-desktop> hello I am confused on working PointObj; Does pt1.setXY(dximg,dyimg,0) convert image coordinates to geocoordinates ? if not, what is the way ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From susanne.kalliany at tefis.at Thu Jul 3 02:02:10 2008 From: susanne.kalliany at tefis.at (SUSANNE) Date: Thu, 3 Jul 2008 02:02:10 -0700 (PDT) Subject: [MAPSERVER-USERS] confused on working PointObj In-Reply-To: <1215068879.6075.5.camel@orkun-desktop> References: <1215068879.6075.5.camel@orkun-desktop> Message-ID: <18254964.post@talk.nabble.com> "hello, No pt1.setXY(dximg,dyimg,0) does not convert to geocoordinates. I do it with on javascript part with ka-map function: myKaMap.pixToGeo (aPixPos[0], aPixPos[1]); I hope I could help, Susanne Kalliany" ahmet wrote: > > hello > > I am confused on working PointObj; > > Does pt1.setXY(dximg,dyimg,0) convert image coordinates to > geocoordinates ? > > if not, what is the way ? > > regards > -- > Ahmet Temiz > Jeo. M?h. > Afet ??leri Gen. Md.l??? > Deprem Ar. D. > > Ahmet Temiz > Geo. Eng. > General Dir. of > Disaster Affairs > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/confused-on-working-PointObj-tp18253310p18254964.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iacovlev.pavel at gmail.com Thu Jul 3 02:30:33 2008 From: iacovlev.pavel at gmail.com (Iacovlev Pavel) Date: Thu, 3 Jul 2008 12:30:33 +0300 Subject: [mapserver-users] Mapserfer Wfs and Mapinfo Message-ID: <200807031230.33426.iacovlev.pavel@gmail.com> I configured phpmapscript to work as a Wfs server, it works ok in udig, ugis, but it doesn't in mapinfo. My main goal to make it work in mapinfo. The error from MapInfo triggered then I select a layer : "XML Document Parsing Error: Only one top level document is allowed in an XML Document In response to a DescribeFeatureType request, the WFS server returned an invalid feature type." So I wrote a little php script that logs the request/post/get that mapinfo does (see Log), and it actualy does not request anythink then it should request DescribeFeatureType. I thought it's a mapinfo + mapserver problem, but this WFS server (built on mapserver) http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap works perfect in mapinfo. Any help will be really appreciated. Log : REQUEST : Array ( [VERSION] => 1.0.0 [SERVICE] => WFS [REQUEST] => GetCapabilities ) POST : Array ( ) GET : Array ( [VERSION] => 1.0.0 [SERVICE] => WFS [REQUEST] => GetCapabilities ) DATA : MapServer WFS Wfs server http://192.168.1.2:8000/wfs? retea500 Retea 500 EPSG:28405 ========== REQUEST : Array ( ) POST : Array ( ) GET : Array ( ) DATA : ========== DescribeFeatureType: From lopezris at gmail.com Thu Jul 3 04:07:36 2008 From: lopezris at gmail.com (=?ISO-8859-1?Q?Carlos_L=F3pez?=) Date: Thu, 3 Jul 2008 13:07:36 +0200 Subject: [mapserver-users] two questions Message-ID: Hi I would like to know, if it's possible to describe two point in a map and then get the track to go from de first point to the second point. Other question is about if I sign one point in then map and then I can get other points around the first point in a distance that I selected previously. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Jul 3 06:05:09 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 3 Jul 2008 09:05:09 -0400 Subject: [mapserver-users] Map Rendering With GeoMoose In-Reply-To: <8030415EB3024B228EB916F1E45E2030@BeckPC> References: <8030415EB3024B228EB916F1E45E2030@BeckPC> Message-ID: <628B5CEE-36E4-49D4-A29D-3BC249FEA567@gatewaygeomatics.com> On 2-Jul-08, at 5:33 PM, John Beck wrote: > Hello list, I hope someone can help me. > > I am trying to use GeoMoose 1.4 on Apache with MS4W. I also use IE > for my browser. > > I have successfully loaded x,y data from MySql. I use the standared > circle "ellipse" symbol. > > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > > In other MapServer applications, (p.mapper, jbox, and Chameleon) > when I zoom into the points a nice series of small rounded points > are shown. In GeoMoose, when I zoom into a series of points the > points look more like large raster blocks and they are all merged > together. In fact they are not even round. > > My data are in Lat Long, units dd. Do you think it could be a > precision issue or coordinate issue? I notice in the coordinate bar > that the decimal places only go 2 values. This data is at least 6 > decimals places and the points are close together however other > mapserver applications can display the data fine. Should I first > convert to UTM? Could this be a mode = map vs. mode = browse issue? > Any ideas or thoughts would be appreciated. I would like to use > GeoMoose but this could be a show stopper. > > Thanks in advance. > > JB Since your data works fine in other MapServer-based applications, have you tried asking the GeoMoose mailing list? http://sourceforge.net/mail/?group_id=160935 --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Jul 3 06:21:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 03 Jul 2008 08:21:30 -0500 Subject: [mapserver-users] confused on working PointObj Message-ID: <486C8C0A0200008F0001946F@co5.dnr.state.mn.us> Hi: A pointObj is just a container for an x, y. It doesn't know or care about the coordinate system those values represent. By itself it doesn't hold enough information to do the computation anyway. In the Swig-based languages I believe a few macros are available to ease that computation: So, if you wanted to fill pt1 with map coordinates, in Perl it would look like: $pt1->setXY(mapscript::MS_IMAGE2MAP_X($dximg, $map->{extent}->{minx}), $map->{cellsize}, mapscript::MS_IMAGE2MAP_X($dyimg, $map->{extent}->{maxy}), $map->{cellsize}); It is verbose and we could do better, probably by attaching a few new methods to a mapObj: $pt1.setXY($dximg,$dyimg); $pt2 = $map->pixToGeo($pt1); or something like that. I'll file a bug... Steve >>> orkun 07/03/08 2:26 AM >>> hello I am confused on working PointObj; Does pt1.setXY(dximg,dyimg,0) convert image coordinates to geocoordinates ? if not, what is the way ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From prasad.b at iworktech.com Thu Jul 3 06:44:55 2008 From: prasad.b at iworktech.com (Prasad B) Date: Thu, 3 Jul 2008 19:14:55 +0530 Subject: [mapserver-users] Ref: Highlight the selected area on mousemove by OpenLayer Message-ID: <592ab8ae0807030644t427e53d0h36f40bd7b931c73d@mail.gmail.com> hi i developing one MAPSERVER Application Using C# MapScript, i have Successfully implemented the OpenLayer JavaScript with it. Now i want to add functionality on mouse move to highlight the area where mouse is move. so can u help me how i can highlight region by OpenLayer . waiting for your Usefull reply. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From prasad.b at iworktech.com Thu Jul 3 06:47:20 2008 From: prasad.b at iworktech.com (Prasad B) Date: Thu, 3 Jul 2008 19:17:20 +0530 Subject: [mapserver-users] Ref: Highlight the selected area of MAP on MouseMove by OpenLayer Message-ID: <592ab8ae0807030647j512ca98dn6758e3533443fdc9@mail.gmail.com> hi i developing one MAPSERVER Application Using C# MapScript, i have Successfully implemented the OpenLayer JavaScript with it. Now i want to add functionality on mouse move to highlight the area where mouse is move. so can u help me how i can highlight region by OpenLayer . waiting for your Usefull reply. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjschlafley at yahoo.com Thu Jul 3 06:50:14 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Thu, 3 Jul 2008 06:50:14 -0700 (PDT) Subject: [mapserver-users] Mapscript whichshapes attribute query Message-ID: <199498.7663.qm@web52309.mail.re2.yahoo.com> If I have a FILTER and FILTERITEM set in my map file for a layer....when I call a whichshapes on that layer I get zero shapes.? Comparatively, if I run a map draw, the FILTER works correctly and draws the shapes that meet the criteria.? Do I need to use mapscript to set the filter or something? Thanks ----- Original Message ---- From: Steve Lime To: mapserver-users at lists.osgeo.org; jjschlafley at yahoo.com Sent: Wednesday, July 2, 2008 9:29:06 PM Subject: Re: [mapserver-users] Mapscript whichshapes attribute query Which shapes applies the layer FILTER definition if it exists. That FILTER must be set prior to calling whichshapes. Steve >>> "J.J. Schlafley" 07/02/08 12:22 PM >>> The mapscript documentation for the method (LayerObj) whichshapes claims you can quote: "Performs a spatial, and optionally an attribute based feature search."? How and where is the attribute based search query included in this method? JJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.edmundson at wthtechnology.com Thu Jul 3 06:58:22 2008 From: kevin.edmundson at wthtechnology.com (Kevin Edmundson) Date: Thu, 3 Jul 2008 09:58:22 -0400 Subject: [mapserver-users] query in url In-Reply-To: <486BE49F0200008F00019456@co5.dnr.state.mn.us> References: <486BE49F0200008F00019456@co5.dnr.state.mn.us> Message-ID: Steve, First of all...thanks for the reply. I am confused about what I need to do here...and bear with me...I am VERY new to this mapserver stuff. I originally used p.mapper to create an application and then have been modifying the code as I go. I am working on mapserver 5.0. So....if I understand you right, I need to create a second map in my application folder (parcel_lookup.map or something like that) ? Or do I need to create a completely separate application folder for this map? I tried just creating a second map in the application folder for the initial lookup...but after constructing the query url and executing it.....it just says "msLoadMap(): Unable to access file. (parcel_lookup.map)". Any further guidance would be greatly appreciated... :D Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, July 02, 2008 9:27 PM To: mapserver-users at lists.osgeo.org; Kevin Edmundson Subject: Re: [mapserver-users] query in url There are always many ways. If you don't have any spatial information in the 3rd party application then you have a couple of options: 1) do an attribute query with a URL template (explained below) 2) pass the parcel id to your MapServer application and use it to do an ajax call to lookup the spatial extent information. This would work nicely if using OpenLayers, Ka-Map, dBox, or some other type of client that doesn't reload the entire page. It's really just a variation of 1. Anyway, you'd want to do a simple attribute query first to get the spatial extents of the parcel. So, if you had a special mapfile (parcel_lookup.map) it might look like so: MAP ... LAYER NAME 'parcels' TYPE QUERY STATUS DEFAULT TEMPLATE 'http://wthtecnology.com/cgi-bin/mapserv?map=main_application.map&mapext =[shpext_esc]' END END The URL to do the attribute query would look like: http:////wthtecnology.com/cgi-bin/mapserv?map=parcel_lookup.map&qitem=id &qlayer=parcels&qstring=xxx-xx-xxxx-xxxx The is off the top of my head but I've done it and it works nicely. Caveats: 1) depending on version you'll need to set a qstring filter in parcel_lookup.map to validate parcel ids with 2) if using 5.2, it has a new feature to expand extent tags so they aren't so tight to the feature (e.g. [shpext escape=url expand=500] The way this works is your initial call looks up the parcel and gets it's extent. Then that is used to create another call to your main application. The redirection happens automatically and is transparent to the user. Let me know if you need more information. Steve >>> "Kevin Edmundson" 07/02/08 11:06 AM >>> I have a mapserver site that contains, among others, a parcel layer. I have a 3rd party application that manages parcel data for a customer and I would like to...from the third party application...send a url request to the mapserver that would cause it to open, and zoom to a particular parcel. If the parcel layer was named 'parcels' and the field name was ParcelNumber in the layer, how would I construct the url request to perform the above function...or is it even possible? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. From Steve.Lime at dnr.state.mn.us Thu Jul 3 06:58:35 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 03 Jul 2008 08:58:35 -0500 Subject: [mapserver-users] Ref: Highlight the selected area on mousemove byOpenLayer Message-ID: <486C94C50200008F00019483@co5.dnr.state.mn.us> I don't know that highlighting on move will work. It will take MapServer too long to render each map to keep up with the mouse. You might consider doing so only when the mouse pauses/hovers for a specified amount of time. OL has a hover control that can help with this. If, for example, you had an OL layer that was only responsible for the highlight then you could update it based on the coordinate where the mouse paused. The highlight layer would be a query map (mode=querymap). I'm not sure how you'd change the mode that the MapServer OL layer sends to MapServer. Anyway, you would pass that coordinate in as an option to the MapServer layer by changing the mapext and mapxy params to match the current OL mapext and the hover coordinate. An idea anyway, assuming you can alter the mode in the OL layer... Steve >>> "Prasad B" 07/03/08 8:46 AM >>> hi i developing one MAPSERVER Application Using C# MapScript, i have Successfully implemented the OpenLayer JavaScript with it. Now i want to add functionality on mouse move to highlight the area where mouse is move. so can u help me how i can highlight region by OpenLayer . waiting for your Usefull reply. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com From Steve.Lime at dnr.state.mn.us Thu Jul 3 07:00:19 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 03 Jul 2008 09:00:19 -0500 Subject: [mapserver-users] Mapscript whichshapes attribute query Message-ID: <486C95230200008F00019488@co5.dnr.state.mn.us> No, just setting the filter in the mapfile should suffice. Do you have a code snippet? Steve >>> "J.J. Schlafley" 07/03/08 8:51 AM >>> If I have a FILTER and FILTERITEM set in my map file for a layer....when I call a whichshapes on that layer I get zero shapes. Comparatively, if I run a map draw, the FILTER works correctly and draws the shapes that meet the criteria. Do I need to use mapscript to set the filter or something? Thanks ----- Original Message ---- From: Steve Lime To: mapserver-users at lists.osgeo.org; jjschlafley at yahoo.com Sent: Wednesday, July 2, 2008 9:29:06 PM Subject: Re: [mapserver-users] Mapscript whichshapes attribute query Which shapes applies the layer FILTER definition if it exists. That FILTER must be set prior to calling whichshapes. Steve >>> "J.J. Schlafley" 07/02/08 12:22 PM >>> The mapscript documentation for the method (LayerObj) whichshapes claims you can quote: "Performs a spatial, and optionally an attribute based feature search." How and where is the attribute based search query included in this method? JJ From James.Leveille at mtq.gouv.qc.ca Thu Jul 3 07:05:50 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 3 Jul 2008 10:05:50 -0400 Subject: [mapserver-users] Ref: Highlight the selected area onmousemove byOpenLayer In-Reply-To: <486C94C50200008F00019483@co5.dnr.state.mn.us> Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A2FA5@SINFRA0-EXC003.MTQ.MIN.INTRA> We did something like what Steve mentionned with OL. We added a layer designed to display the hilited polygon (or line). On a mouse pause (0.5 secs), we send a getFeatureInfo. With the resulting ID, we call MapServer again (getMap this time) using the given ID as a filter to a specific MapServer layer. Works fine, even if two calls to the server are necessary. There might be a better way ... ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Steve Lime Envoy? : 3 juillet 2008 09:59 ? : prasad.b at iworktech.com; mapserver-users at lists.osgeo.org Objet : Re: [mapserver-users] Ref: Highlight the selected area onmousemove byOpenLayer I don't know that highlighting on move will work. It will take MapServer too long to render each map to keep up with the mouse. You might consider doing so only when the mouse pauses/hovers for a specified amount of time. OL has a hover control that can help with this. If, for example, you had an OL layer that was only responsible for the highlight then you could update it based on the coordinate where the mouse paused. The highlight layer would be a query map (mode=querymap). I'm not sure how you'd change the mode that the MapServer OL layer sends to MapServer. Anyway, you would pass that coordinate in as an option to the MapServer layer by changing the mapext and mapxy params to match the current OL mapext and the hover coordinate. An idea anyway, assuming you can alter the mode in the OL layer... Steve >>> "Prasad B" 07/03/08 8:46 AM >>> hi i developing one MAPSERVER Application Using C# MapScript, i have Successfully implemented the OpenLayer JavaScript with it. Now i want to add functionality on mouse move to highlight the area where mouse is move. so can u help me how i can highlight region by OpenLayer . waiting for your Usefull reply. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Jul 3 07:18:16 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 03 Jul 2008 09:18:16 -0500 Subject: [mapserver-users] two questions Message-ID: <486C995C0200008F00019491@co5.dnr.state.mn.us> Hi Carlos: 1) MapServer does not have a built in routing solution. You might check out pg_routing? 2) Yes, you can find all points within a certain distance of another point. That's basically a regular query, just be sure to set the TOLERANCE of the layer containing the points your selecting against to match your specified distance. A little explanation on 2. MapServer's basic point query essentially intersects a selection point with geometries. Works fine for polygons since they have area. However, lines and points don't so we add area by using the TOLERANCE/TOLERANCEUNITS layer properties (tolerances work with polygons too). It's a bit backwards but in many ways more flexible since you can define different tolerances for each layer. So, with one point query you could find the exact county the point is in, hospitals within 50 miles and airports within 200 miles. Steve >>> "Carlos L?pez" 07/03/08 6:08 AM >>> Hi I would like to know, if it's possible to describe two point in a map and then get the track to go from de first point to the second point. Other question is about if I sign one point in then map and then I can get other points around the first point in a distance that I selected previously. Thanks. From Laurent.Saez at developpement-durable.gouv.fr Thu Jul 3 07:31:22 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Thu, 03 Jul 2008 16:31:22 +0200 Subject: [mapserver-users] Re: Mapserfer Wfs and Mapinfo (Iacovlev Pavel) In-Reply-To: <20080703134726.D847AE01B22@lists.osgeo.org> References: <20080703134726.D847AE01B22@lists.osgeo.org> Message-ID: <486CE2BA.2040400@developpement-durable.gouv.fr> Hi Iacovlev Pavel, Have you tried to add gml_geometries and gml_[name]_type to you layer in the mapfile ? I had the same problem with a point layer, so I add this to my layer in the mapfile : gml_geometries "geometry" gml_geometry_type "point" Now it works fine. Regards Le 03/07/2008 15:47, > mapserver-users-request at lists.osgeo.org (par Internet, d?p?t mapserver-users-bounces at lists.osgeo.org) a ?crit : > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: confused on working PointObj (SUSANNE) > 2. Mapserfer Wfs and Mapinfo (Iacovlev Pavel) > 3. two questions ( Carlos L?pez ) > 4. Re: Map Rendering With GeoMoose (Jeff McKenna) > 5. Re: confused on working PointObj (Steve Lime) > 6. Ref: Highlight the selected area on mousemove by OpenLayer > (Prasad B) > 7. Ref: Highlight the selected area of MAP on MouseMove by > OpenLayer (Prasad B) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 3 Jul 2008 02:02:10 -0700 (PDT) > From: SUSANNE > Subject: Re: [MAPSERVER-USERS] confused on working PointObj > To: mapserver-users at lists.osgeo.org > Message-ID: <18254964.post at talk.nabble.com> > Content-Type: text/plain; charset=UTF-8 > > > "hello, > > No pt1.setXY(dximg,dyimg,0) does not convert to geocoordinates. > > I do it with on javascript part with ka-map function: myKaMap.pixToGeo > (aPixPos[0], aPixPos[1]); > > I hope I could help, > > Susanne Kalliany" > > > > > ahmet wrote: > >> hello >> >> I am confused on working PointObj; >> >> Does pt1.setXY(dximg,dyimg,0) convert image coordinates to >> geocoordinates ? >> >> if not, what is the way ? >> >> regards >> -- >> Ahmet Temiz >> Jeo. M??h. >> Afet ???Y"leri Gen. Md.l???Y"?? >> Deprem Ar. D. >> >> Ahmet Temiz >> Geo. Eng. >> General Dir. of >> Disaster Affairs >> >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> _______________________________________________ >> 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 jjschlafley at yahoo.com Thu Jul 3 07:45:59 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Thu, 3 Jul 2008 07:45:59 -0700 (PDT) Subject: [mapserver-users] Mapscript whichshapes attribute query Message-ID: <113963.11501.qm@web52306.mail.re2.yahoo.com> Below is a code snippet///////////////////////////////// $map_path="C:/Program Files/ms4w/apps/wms/"; ??????? $map = ms_newMapObj($map_path."ICWMS2.map"); $map->setextent(586892.5,339611.094,593679.063,346206.156); ? $image=$map->draw(); ?????? $layer = $map->getLayerByName('PARCELS'); ?????? $status = $layer->open(); ?????? ?????? $status = $layer->whichShapes($map->extent); ?????? while ($shape = $layer->nextShape()) ?????????? { ?????????? ? ???????????? echo $shape->toWkt();?? ???????????? ?????????? } ?????? $layer->close(); ?????? ?????? $image_url=$image->saveWebImage(); echo(" "); //////////////////////////////////////////////////////////////////// Below is the layer in the map file////////////////// LAYER ?TYPE POLYGON ?STATUS ON ?NAME "PARCELS" ?FILTERITEM "PIN" ?FILTER "84-035-40-001-00" ?DATA "Par.shp" ?CLASS ? STYLE ?? OUTLINECOLOR 0 0 255 ?? SIZE 4 ? END ?END END /////////////////////////////////////////////////////////////////// If I remove the FILTER on the layer, the whichshapes code works correctly and returns all the shapes within the extent. Let me know what you think. Thanks. ----- Original Message ---- From: Steve Lime To: mapserver-users at lists.osgeo.org; jjschlafley at yahoo.com Sent: Thursday, July 3, 2008 10:00:19 AM Subject: Re: [mapserver-users] Mapscript whichshapes attribute query No, just setting the filter in the mapfile should suffice. Do you have a code snippet? Steve >>> "J.J. Schlafley" 07/03/08 8:51 AM >>> If I have a FILTER and FILTERITEM set in my map file for a layer....when I call a whichshapes on that layer I get zero shapes.? Comparatively, if I run a map draw, the FILTER works correctly and draws the shapes that meet the criteria.? Do I need to use mapscript to set the filter or something? Thanks ----- Original Message ---- From: Steve Lime To: mapserver-users at lists.osgeo.org; jjschlafley at yahoo.com Sent: Wednesday, July 2, 2008 9:29:06 PM Subject: Re: [mapserver-users] Mapscript whichshapes attribute query Which shapes applies the layer FILTER definition if it exists. That FILTER must be set prior to calling whichshapes. Steve >>> "J.J. Schlafley" 07/02/08 12:22 PM >>> The mapscript documentation for the method (LayerObj) whichshapes claims you can quote: "Performs a spatial, and optionally an attribute based feature search."? How and where is the attribute based search query included in this method? JJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Jul 3 08:30:28 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 03 Jul 2008 10:30:28 -0500 Subject: [mapserver-users] Map Rendering With GeoMoose In-Reply-To: <8030415EB3024B228EB916F1E45E2030@BeckPC> References: <8030415EB3024B228EB916F1E45E2030@BeckPC> Message-ID: <486CAA44.163B.00A8.0@ci.stpaul.mn.us> John, It sounds like you are describing the image stretching action that GeoMoose performs while it is waiting for a response from the server with a new image. GeoMoose will stretch or shrink the current image(s) rather than leave a blank screen for the user while it waits for the new image to be retrieved from MapServer. There may be a update problem occurring somewhere. Is your Application available online? It would help on the list to see what you see. Even a before and after screenshot would help. bobb >>> "John Beck" wrote: Hello list, I hope someone can help me. I am trying to use GeoMoose 1.4 on Apache with MS4W. I also use IE for my browser. I have successfully loaded x,y data from MySql. I use the standared circle "ellipse" symbol. NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE In other MapServer applications, (p.mapper, jbox, and Chameleon) when I zoom into the points a nice series of small rounded points are shown. In GeoMoose, when I zoom into a series of points the points look more like large raster blocks and they are all merged together. In fact they are not even round. My data are in Lat Long, units dd. Do you think it could be a precision issue or coordinate issue? I notice in the coordinate bar that the decimal places only go 2 values. This data is at least 6 decimals places and the points are close together however other mapserver applications can display the data fine. Should I first convert to UTM? Could this be a mode = map vs. mode = browse issue? Any ideas or thoughts would be appreciated. I would like to use GeoMoose but this could be a show stopper. Thanks in advance. JB -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Jul 3 11:50:43 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 03 Jul 2008 13:50:43 -0500 Subject: [mapserver-users] Map Rendering With GeoMoose In-Reply-To: <704D7442E81A4A018B21C56B6B9C8FDE@BeckPC> References: <8030415EB3024B228EB916F1E45E2030@BeckPC> <486CAA44.163B.00A8.0@ci.stpaul.mn.us> <704D7442E81A4A018B21C56B6B9C8FDE@BeckPC> Message-ID: <486CD933.163B.00A8.0@ci.stpaul.mn.us> John, Ok, that's what I thought on the scaling of the image, the service is not giving up an image for some reason at the lower scale level (where the points get pixelated {after image]) or GeoMoose is not making the request for some reason. Mapserver should serve up a new image for each zoom level, even if there is a MINSCALE/MAXSCALE setting in the MAPFILE. You would just get a blank image if the view was out of range. So something is going wrong here somewhere. Unfortunately, the next testing steps I would pursue would be to run a couple of sample requests directly against the MapServer to see if the problem is with MapServer or GeoMoose. If MapServer returns the image, then it's GeoMoose config problem, other wise it's a MapFile config, or MapServer problem. The scale settings in the MapFile may have something to do with this as well. Seeing the MapFile might shed some light on a possible mis-config. Do you know how to use FireBug in FireFox (Best combination of tools for debugging IMO). Firebug will show you all the requests that are going on between the client and server and allow you to test the calls one at a time. It's either that route, or I'll (we'll) need to have access to the server results in an online mode to help further. bobb >>> "John Beck" wrote: Bob THanks for your response. I think you are correct about the update problem. I had to put the "scale" variable in just to get it to zoom correctly. Here are the screen shots. My application is not online yet. Do you think this could be a lat long problem i.e. not enough precision? ----- Original Message ----- From: Bob Basques ( mailto:Bob.Basques at ci.stpaul.mn.us ) To: John Beck ( mailto:beckjoh at knology.net ) ; mapserver-users at lists.osgeo.org Sent: Thursday, July 03, 2008 10:30 AM Subject: Re: [mapserver-users] Map Rendering With GeoMoose John, It sounds like you are describing the image stretching action that GeoMoose performs while it is waiting for a response from the server with a new image. GeoMoose will stretch or shrink the current image(s) rather than leave a blank screen for the user while it waits for the new image to be retrieved from MapServer. There may be a update problem occurring somewhere. Is your Application available online? It would help on the list to see what you see. Even a before and after screenshot would help. bobb >>> "John Beck" wrote: Hello list, I hope someone can help me. I am trying to use GeoMoose 1.4 on Apache with MS4W. I also use IE for my browser. I have successfully loaded x,y data from MySql. I use the standared circle "ellipse" symbol. NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE In other MapServer applications, (p.mapper, jbox, and Chameleon) when I zoom into the points a nice series of small rounded points are shown. In GeoMoose, when I zoom into a series of points the points look more like large raster blocks and they are all merged together. In fact they are not even round. My data are in Lat Long, units dd. Do you think it could be a precision issue or coordinate issue? I notice in the coordinate bar that the decimal places only go 2 values. This data is at least 6 decimals places and the points are close together however other mapserver applications can display the data fine. Should I first convert to UTM? Could this be a mode = map vs. mode = browse issue? Any ideas or thoughts would be appreciated. I would like to use GeoMoose but this could be a show stopper. Thanks in advance. JB -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Thu Jul 3 15:35:59 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 04 Jul 2008 00:35:59 +0200 Subject: [mapserver-users] Mapserfer Wfs and Mapinfo In-Reply-To: <200807031841.52108.iacovlev.pavel@gmail.com> References: <200807031230.33426.iacovlev.pavel@gmail.com> <486CAF1F.6060004@zeelandnet.nl> <200807031841.52108.iacovlev.pavel@gmail.com> Message-ID: <486D544F.9050803@zeelandnet.nl> So the problem is in the GetCapabilities. I copied yours in a xml file. Then downloaded and saved it as an xml-file too. Then I installed meld on my ubuntu desktop. There is a compareable product for windows called winmerge to visualy compare both documents. This is what I found: dmsolutions has where you have and where you have Your latlong bounding box says: I am not sure mapinfo is able to handle the "e+12" in the coordinates, perhaps you should try testing a coordinate with all decimals written out? Is your EPSG code (28405) one that can be recognized by MapInfo and transformed into their internal coordinate systems? These are some hints, I wish you good luck with rest! Kind regards, Milo van der Linden From pal.kristensen at statkart.no Thu Jul 3 22:58:37 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 3 Jul 2008 22:58:37 -0700 (PDT) Subject: [MAPSERVER-USERS] New cache mechanism Message-ID: <18273341.post@talk.nabble.com> Hi! Norwegian Mapping and Cadastre Authority (statkart) has developed a new open source cache mechanism called geoCache, for use with WMS services. The project is part of a larger research activity which is being performed by statkart and Gecko Informasjonssystemer AS (www.gecko.no), partially founded by Innovation Norway (www.innovasjonnorge.no/system/Global-toppmeny/English/). The research activity will be carried out to the end of 2009. GeoCache is based on the tilecache.org project, but is completely rewritten in C#, version 0.1 is published at codeplex (http://www.codeplex.com/geoCache). GeoCache will be subject to extensive development, and one of the main projects in the research activity the next year. Some of the new features that will be developed first is: - the ability make geoCache response to regular WMS GetMap requests, not only WMS-C. - partially cache updates - dynamic cache generation (cache is generated by use) - cross platform support (Linux and Windows as a minimum) and support for apache Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/New-cache-mechanism-tp18273341p18273341.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iacovlev.pavel at gmail.com Fri Jul 4 05:41:14 2008 From: iacovlev.pavel at gmail.com (Iacovlev Pavel) Date: Fri, 4 Jul 2008 15:41:14 +0300 Subject: [mapserver-users] Mapserfer Wfs and Mapinfo In-Reply-To: <486D544F.9050803@zeelandnet.nl> References: <200807031230.33426.iacovlev.pavel@gmail.com> <200807031841.52108.iacovlev.pavel@gmail.com> <486D544F.9050803@zeelandnet.nl> Message-ID: <200807041541.14398.iacovlev.pavel@gmail.com> Ok I know where the bug is, first of all as written In the begging of the post I run the wfs server as phpmapscript, so that means no CGI, to load the parameters passed to the script I use : $request = ms_newowsrequestobj(); foreach ($_REQUEST as $key =>$value) { $request->setParameter($key, $value); } not because I love this way, just because $request->loadParams(); just does not work in non CGI environment at all. Ok now in GetCapabilities response we tell the WFS client "" hey we can accept RAW XML DATA as POST, that data comes to PHP but it's not in the $_REQUEST object, but in "php://input", that means that $request does not get populated and we get an "empty" request. 2 ways of fixing this : 1) Easy & Dirty : $buffer = str_replace("", '', $buffer); this will just won't allow the client to send HTTP POST REQUEST with XML RAW DATA 2) Pupulate the request object withRAW XML DATA, need help from the community here : "How do you populate the $request = ms_newowsrequestobj(); with RAW XML DATA" ? On Friday 04 July 2008 01:35:59 Milo van der Linden wrote: > So the problem is in the GetCapabilities. > > I copied yours in a xml file. > Then downloaded > QUEST=GetCapabilities> and saved it as an xml-file too. > > Then I installed meld on my ubuntu desktop. There is a compareable > product for windows called winmerge > > to visualy compare both documents. This is what I found: > > dmsolutions has > > > > > where you have > > > > and > > > > where you have > > > Your latlong bounding box says: miny="-1.28383e+30" > maxx="2.27243e+12" maxy="1.28383e+30" /> > > I am not sure mapinfo is able to handle the "e+12" in the coordinates, > perhaps you should try testing a coordinate with all decimals written out? > > Is your EPSG code (28405) one that can be recognized by MapInfo and > transformed into their internal coordinate systems? > > These are some hints, I wish you good luck with rest! > > Kind regards, > > Milo van der Linden > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nsavard at mapgears.com Fri Jul 4 07:01:21 2008 From: nsavard at mapgears.com (Normand Savard) Date: Fri, 04 Jul 2008 10:01:21 -0400 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.2 Beta 4 Available In-Reply-To: <486BE0F30200008F00019452@co5.dnr.state.mn.us> References: <486BE0F30200008F00019452@co5.dnr.state.mn.us> Message-ID: <486E2D31.2090101@mapgears.com> Steve Lime wrote: > Hi folks: MapServer 5.2 Beta 4 has just been released. The source package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > All, I built a fgs self-installer for this version of MapServer as well. It is available for download at the following address: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ Norm From bartvde at osgis.nl Fri Jul 4 07:11:16 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 04 Jul 2008 16:11:16 +0200 Subject: [mapserver-users] hiding the geometry (WFS) Message-ID: <6bc4857cf7248107e1ba3bafce174f65@pop02.backbone.tiscomhosting.nl> Hi list, I remember a post by Steve Lime, in which he explained how to hide the geometry from the WFS responses. Unfortunately I cannot find the post anymore. Does anyone know how to hide the geometry from the WFS GetFeature output? TIA. Best regards, Bart From bartvde at osgis.nl Fri Jul 4 07:33:12 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 04 Jul 2008 16:33:12 +0200 Subject: [mapserver-users] hiding the geometry (WFS)UID 6267) In-Reply-To: <6bc4857cf7248107e1ba3bafce174f65@pop02.backbone.tiscomhosting.nl> References: <6bc4857cf7248107e1ba3bafce174f65@pop02.backbone.tiscomhosting.nl> Message-ID: <6ba06b36f7529f0396cd3eb9239ea472@pop02.backbone.tiscomhosting.nl> I remembered it again: "GML_GEOMETRIES" "none" I'll add a note to the WFS server HOWTO document. Best regards, Bart On Fri, 04 Jul 2008 16:11:16 +0200, wrote: > Hi list, > > I remember a post by Steve Lime, in which he explained how to hide the > geometry from the WFS responses. > > Unfortunately I cannot find the post anymore. > > Does anyone know how to hide the geometry from the WFS GetFeature output? > > TIA. > > Best regards, > Bart > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Jul 4 07:33:53 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 4 Jul 2008 10:33:53 -0400 Subject: [mapserver-users] hiding the geometry (WFS) In-Reply-To: <6bc4857cf7248107e1ba3bafce174f65@pop02.backbone.tiscomhosting.nl> References: <6bc4857cf7248107e1ba3bafce174f65@pop02.backbone.tiscomhosting.nl> Message-ID: On 4-Jul-08, at 10:11 AM, wrote: > Hi list, > > I remember a post by Steve Lime, in which he explained how to hide the > geometry from the WFS responses. > > Unfortunately I cannot find the post anymore. > > Does anyone know how to hide the geometry from the WFS GetFeature > output? Hi Bart, This might be the discussion you refer to: http://www.nabble.com/Hide-tileindex-layer-td7365847.html#a7384305 ..and the answer might be to set the layer metadata: gml_geometries "none" Have a good weekend! --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From warmerdam at pobox.com Fri Jul 4 07:47:29 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 04 Jul 2008 10:47:29 -0400 Subject: [mapserver-users] Mapserfer Wfs and Mapinfo In-Reply-To: <200807041541.14398.iacovlev.pavel@gmail.com> References: <200807031230.33426.iacovlev.pavel@gmail.com> <200807031841.52108.iacovlev.pavel@gmail.com> <486D544F.9050803@zeelandnet.nl> <200807041541.14398.iacovlev.pavel@gmail.com> Message-ID: <486E3801.3000202@pobox.com> Iacovlev Pavel wrote: > Ok I know where the bug is, first of all as written In the begging of the post > I run the wfs server as phpmapscript, so that means no CGI, to load the > parameters passed to the script I use : > > $request = ms_newowsrequestobj(); > foreach ($_REQUEST as $key =>$value) { > $request->setParameter($key, $value); > } > > not because I love this way, just because $request->loadParams(); just does > not work in non CGI environment at all. > > Ok now in GetCapabilities response we tell the WFS client " onlineResource="http://dev1.dmsolutions.ca/cgi-bin/mswfs_gmap?"/>" hey we can > accept RAW XML DATA as POST, that data comes to PHP but it's not in the > $_REQUEST object, but in "php://input", that means that $request does not get > populated and we get an "empty" request. > > 2 ways of fixing this : > 1) Easy & Dirty : > $buffer = str_replace(" onlineResource=\"$yourWfsServerAddressHere\" />", '', $buffer); > > this will just won't allow the client to send HTTP POST REQUEST with XML RAW > DATA > > 2) Pupulate the request object withRAW XML DATA, need help from the community > here : "How do you populate the $request = ms_newowsrequestobj(); with RAW > XML DATA" ? Iacovlev, I have reviewed the code and can fairly conclusively say that currently there is no mapscript mechanism to push an XML Post request into the OWS request object to be processed as normal post requests are. To implement this, we would need to actually implement the msIO_bufferRead() function in mapio.c, and add a function to push data into this buffer (something roughly like msIO_getStdoutBufferString() and msIO_getStdoutBufferBytes() from mapscript/swiginc/msio.i but in the opposite direction). I have created a Trac ticket to note this issue, but I have no plans to implement it in the forseeable future. http://trac.osgeo.org/mapserver/ticket/2681 I would be willing to implement it in 5.4 if there was a sufficiently savvy collaborator willing to help test and debug it (including building from source themselves). NOTE: This issue only affects someone wanting to use POST requests to WxS services from mapscript in a non-cgi environment (like mod_php or mod_python). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bbrehmer at refractions.net Fri Jul 4 14:57:22 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Fri, 04 Jul 2008 14:57:22 -0700 Subject: [mapserver-users] Mapserver 5 migration & PostGIS Message-ID: <486E9CC2.2090409@refractions.net> Dear All, I'm just in the process of changing all of my mapfiles to be 5.x compatible. The PostGIS layer[1] which worked fine with 4.6 now throws an odd error [2] in 5.0.3. If you look at the error, you will notice that the query has ""::text prepended to it although this is not in the DATA statement. It deosn't seem to matter how I manipulate the DATA statement, it always has an empty string prepended to it at runtime which causes this error. Any ideas why an empty string is prepended to a PostGIS query at runtime in Mapserver 5? Thanks, Ben Brehmer [1] LAYER NAME "pointlayer" DATA "the_geom FROM points" CONNECTIONTYPE postgis CONNECTION "host=localhost user=postgres port=5432 dbname=xxx password=xxx" ... .. . [2] msDrawMap(): Image handling error. Failed to draw layer named 'pointlayer'. prepare_database(): Query error. Error declaring cursor: ERROR: zero-length delimited identifier at or near """" at character 43 With query string: DECLARE mycursor BINARY CURSOR FOR SELECT ""::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from points WHERE the_geom && setSRID('BOX3D(-13692533.9246539 5944251.98072804,-13537311.7862516 6063067.47212323)'::BOX3D, find_srid('','points','the_geom') ) From pramsey at cleverelephant.ca Fri Jul 4 15:57:09 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 4 Jul 2008 15:57:09 -0700 Subject: [mapserver-users] Mapserver 5 migration & PostGIS In-Reply-To: <486E9CC2.2090409@refractions.net> References: <486E9CC2.2090409@refractions.net> Message-ID: <30fe546d0807041557u514b6bfk5c9852cd11368032@mail.gmail.com> Does your points table not have a primary key? Probably it's related to the primary key inference code, but don't quote me. If it *does* have a primary key, add a USING UNIQUE clause to your DATA. P On Fri, Jul 4, 2008 at 2:57 PM, Ben Brehmer wrote: > Dear All, > > I'm just in the process of changing all of my mapfiles to be 5.x compatible. > > The PostGIS layer[1] which worked fine with 4.6 now throws an odd error [2] > in 5.0.3. If you look at the error, you will notice that the query has > ""::text prepended to it although this is not in the DATA statement. It > deosn't seem to matter how I manipulate the DATA statement, it always has an > empty string prepended to it at runtime which causes this error. > > Any ideas why an empty string is prepended to a PostGIS query at runtime in > Mapserver 5? > > Thanks, > > Ben Brehmer > > > > [1] > LAYER > NAME "pointlayer" > DATA "the_geom FROM points" > CONNECTIONTYPE postgis > CONNECTION "host=localhost user=postgres port=5432 dbname=xxx password=xxx" > > ... > .. > . > > > [2] > msDrawMap(): Image handling error. Failed to draw layer named 'pointlayer'. > prepare_database(): Query error. Error declaring cursor: ERROR: zero-length > delimited identifier at or near """" at character 43 With query string: > DECLARE mycursor BINARY CURSOR FOR SELECT > ""::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > points WHERE the_geom && setSRID('BOX3D(-13692533.9246539 > 5944251.98072804,-13537311.7862516 6063067.47212323)'::BOX3D, > find_srid('','points','the_geom') ) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bthoen at gisnet.com Fri Jul 4 16:19:50 2008 From: bthoen at gisnet.com (Bill Thoen) Date: Fri, 04 Jul 2008 17:19:50 -0600 Subject: [mapserver-users] Getting MapServer to work with SELinux Message-ID: <486EB016.90605@gisnet.com> I've recently set up a Fedora Core 9 system, and its running SELinux. I've set up MapServer 5.0.3 but SELinux is blocking it from doing anything. However, I can set SELinux to "permissive" mode and it all works fine, so the problem is setting permissions or policies or whatever for MapServer so SELinux will let it do its thing. So does anyone know of a step by step reference detailing how to get MapServer to work under SELinux's "enforced" mode? I've Googled for an answer but haven't found anything I understand. I like the idea of the extra security that SELinux offers, so I'd like to learn how to set up MapServer to work with it. TIA, - Bill Thoen From csgwong328 at yahoo.com.hk Sat Jul 5 02:28:04 2008 From: csgwong328 at yahoo.com.hk (Larry Wong) Date: Sat, 5 Jul 2008 02:28:04 -0700 (PDT) Subject: [mapserver-users] How to access the second database server when performing query on the mapserver Message-ID: <883324.32985.qm@web30306.mail.mud.yahoo.com> Hello List! How to access the second database server when performing non-spatial query on the first server? That mean, when user performing a non-spatial query on the mapserver, (assume the query results a primary key which is?defined in the query template), before the mapserver display the?query result?on browser.? it redirect to the second database server, perform a second SQL command using the primary key from the mapserver, and display whatever the result(s) found in the database server onto the browser. ? ? Thanks _______________________________________ YM - ???? ??????????????????????????????????????????? http://messenger.yahoo.com.hk -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthoen at gisnet.com Sat Jul 5 08:25:07 2008 From: bthoen at gisnet.com (Bill Thoen) Date: Sat, 05 Jul 2008 09:25:07 -0600 Subject: [mapserver-users] Getting MapServer to work with SELinux In-Reply-To: <486EB016.90605@gisnet.com> References: <486EB016.90605@gisnet.com> Message-ID: <486F9253.9000000@gisnet.com> Bill Thoen wrote: > So does anyone know of a step by step reference detailing how to get > MapServer to work under SELinux's "enforcing" mode? I've Googled for > an answer but haven't found anything I understand. I like the idea of > the extra security that SELinux offers, so I'd like to learn how to > set up MapServer to work with it. I think I've figured it out. Or at least I can get MapServer to work under SELinux now. I don't fully understand it yet, but here's the steps I took. The answer came from http://sheltren.com/selinux_pam_mkhomedir and http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385. First, extract all the AVC messages related to mapserv from your /var/log/messages or/var/log/audit/audit.log log file into a separate file. I used: grep "type=AVC" /var/log/audit/audit.log | grep mapserv > avcs Next, create the Type Enforcement file and policy module like so: audit2allow -M mapserv < avcs This creates mapserv.pp and mapserv.te. You can edit mapserv.te if you like and then recompile the policy module (it tells how in the above URLs). Otherwise, just add mapserv.pp to your machine's running policy like so: semodule -i mapserv.pp As soon as I did this, MapServer worked. However, you may need to do this several times because once you fix one permission problem, there a few others that you'll hit. Like I said, I don't fully understand this process; I'm only reporting what seems to work for me, so if there's anyone who knows better and sees a mistake here, please correct me. - Bill Thoen From steve at online-archaeology.co.uk Sat Jul 5 14:10:19 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sat, 5 Jul 2008 22:10:19 +0100 Subject: [mapserver-users] Error: msProcessProjection(): Projection library error. Invalid argument Message-ID: <000501c8dee3$881db590$985920b0$@co.uk> I'm using MS4W 2.2.7 on an XP box with IIS and am testing a few things out. I've got it to the point where I'm sending a WMS request to MapServer but I'm getting this error: msProcessProjection(): Projection library error. Invalid argument I've made sure my environment variables are set correctly and have tested my shapefile for any errors, but can't find anything. Can anyone give me some help in figuring this one out? Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jul 5 15:52:12 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 5 Jul 2008 18:52:12 -0400 Subject: [mapserver-users] Error: msProcessProjection(): Projection library error. Invalid argument In-Reply-To: <000501c8dee3$881db590$985920b0$@co.uk> References: <000501c8dee3$881db590$985920b0$@co.uk> Message-ID: <24F898FB-B452-4DA0-8C35-08BAA01ED160@gatewaygeomatics.com> On 5-Jul-08, at 5:10 PM, Steve White wrote: > I?m using MS4W 2.2.7 on an XP box with IIS and am testing a few > things out. I?ve got it to the point where I?m sending a WMS request > to MapServer but I?m getting this error: > > msProcessProjection(): Projection library error. Invalid argument > > I?ve made sure my environment variables are set correctly and have > tested my shapefile for any errors, but can?t find anything. > > Can anyone give me some help in figuring this one out? > I've hit this before on IIS...in my case it had something to do with allowing access permissions to the /ms4w/proj/nad/ directory. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Sat Jul 5 16:44:41 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sun, 6 Jul 2008 00:44:41 +0100 Subject: [mapserver-users] Error: msProcessProjection(): Projection library error. Invalid argument In-Reply-To: <24F898FB-B452-4DA0-8C35-08BAA01ED160@gatewaygeomatics.com> References: <000501c8dee3$881db590$985920b0$@co.uk> <24F898FB-B452-4DA0-8C35-08BAA01ED160@gatewaygeomatics.com> Message-ID: <000001c8def9$18ae05a0$4a0a10e0$@co.uk> Thanks Jeff - I ended up downloading Process Monitor: http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx This let me to discover that there was an extra entry in the PROJ_LIB env var that was added by another GIS program I was using. As soon as I took this out and left in the reference to proj/nad it all worked fine. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 05 July 2008 23:52 To: Mapserver-users Subject: Re: [mapserver-users] Error: msProcessProjection(): Projection library error. Invalid argument On 5-Jul-08, at 5:10 PM, Steve White wrote: I'm using MS4W 2.2.7 on an XP box with IIS and am testing a few things out. I've got it to the point where I'm sending a WMS request to MapServer but I'm getting this error: msProcessProjection(): Projection library error. Invalid argument I've made sure my environment variables are set correctly and have tested my shapefile for any errors, but can't find anything. Can anyone give me some help in figuring this one out? I've hit this before on IIS...in my case it had something to do with allowing access permissions to the /ms4w/proj/nad/ directory. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Sun Jul 6 04:04:41 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sun, 6 Jul 2008 12:04:41 +0100 Subject: [mapserver-users] GetFeatureInfo error Message-ID: <000a01c8df58$17757970$46606c50$@co.uk> Trying to get some HTML by sending in a GetFeatureInfo request and getting the following error: msWMSLoadGetMapParams(): Image handling error. Unsupported output format (text/html). Here's the test map file: MAP NAME TESTMS STATUS ON UNITS METERS SHAPEPATH "/scripts/" IMAGECOLOR 0 255 255 SIZE 400 400 DEBUG ON IMAGETYPE PNG EXTENT -4.35 56.14 -3.23 56.91 WEB METADATA "wms_title" "TEST MS" "wms_onlineresource" "http://localhost/scripts/mapserv.exe&" "wms_srs" "EPSG:4326 EPSG:54004 EPSG:27700" "wms_feature_info_mime_type" "text/plain" END IMAGEPATH "/tmp/" IMAGEURL "/tmp/" LOG "/tmp/mapserver.log" TEMPLATE "/tmp/template.html" EMPTY "/tmp/template.html" END PROJECTION "init=epsg:4326" END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME MedievalBattlefields METADATA "wms_title" "MedievalBattlefields" "gml_include_items" "all" "wms_include_items" "all" "wms_feature_info_mime_type" "text/html" END TYPE POINT DATA MedievalBattlefields TEMPLATE "/tmp/template.html" STATUS ON PROJECTION "init=epsg:4326" END CLASS SYMBOL "circle" SIZE 10 COLOR 0 0 255 END END #end of layer END # end of mapfile I'm sending in the GetFeatueInfo using a Url like this one: http://localhost/scripts/mapserv.exe?map=MedievalBattlefields.map &SERVICE=WMS&VERSION=1.1.0&REQUEST=GetFeatureInfo&X=1127&Y=336&QUERY_LAYERS= MedievalBattlefields&LAYERS=MedievalBattlefields&INFO_FORMAT=text/html&BBOX= -19.51171875,48.69096039092549,13.07373046875,59.94400716933026&WIDTH=768&HE IGHT=768&SRS=EPSG:4326&FORMAT=text/html Any ideas why the error is being thrown? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Jul 6 05:07:31 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 6 Jul 2008 14:07:31 +0200 Subject: [mapserver-users] Re: [mapserver-dev] suppress label shown for each tile In-Reply-To: <18301374.post@talk.nabble.com> References: <18301374.post@talk.nabble.com> Message-ID: you have to use 5.2 and add PROCESSING "LABEL_NO_CLIP=1" to the layers where you want this behavior thomas On Sun, Jul 6, 2008 at 1:51 PM, SUSANNE wrote: > > Hallo, > Please could somenbode tell me how I can suppress labels shown for each > tile, when an object extends accross mire than one tile. > thanks a lot, Susanne Kalliany > -- > View this message in context: http://www.nabble.com/suppress-label-shown-for-each-tile-tp18301374p18301374.html > Sent from the Mapserver - Dev mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From matthias.buchs at ruch.ch Sun Jul 6 08:41:26 2008 From: matthias.buchs at ruch.ch (Matthias Buchs) Date: Sun, 06 Jul 2008 17:41:26 +0200 Subject: [mapserver-users] Rotating map makes layer disappear Message-ID: <4870E7A6.2010203@ruch.ch> Hello everybody, I am using MapServer 5.0.2 in a MS4W environment (version 2.2.7) via CartoWeb 3.4. When using Cartoweb's pdfrotate functionality (which calls the setRotation function on the MapObj object using PHP/Mapscript) there is one specific layer which does not appear anymore. The layer's data source is a MapInfo file. Its objects are of type point and the style information is contained directly in a Style attribute for each object (it is actually a label). Does anybody know what the problem is, and how I could solve it? Thanks in advance Matthias From jmckenna at gatewaygeomatics.com Sun Jul 6 08:48:26 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 6 Jul 2008 11:48:26 -0400 Subject: [mapserver-users] GetFeatureInfo error In-Reply-To: <000a01c8df58$17757970$46606c50$@co.uk> References: <000a01c8df58$17757970$46606c50$@co.uk> Message-ID: On 6-Jul-08, at 7:04 AM, Steve White wrote: > Trying to get some HTML by sending in a GetFeatureInfo request and > getting the following error: > > msWMSLoadGetMapParams(): Image handling error. Unsupported output > format (text/html). > > Here?s the test map file: > > MAP > NAME TESTMS > STATUS ON > UNITS METERS > SHAPEPATH "/scripts/" > IMAGECOLOR 0 255 255 > SIZE 400 400 > > DEBUG ON > IMAGETYPE PNG > EXTENT -4.35 56.14 -3.23 56.91 > > WEB > METADATA > "wms_title" "TEST MS" > "wms_onlineresource" "http://localhost/scripts/mapserv.exe& > " > "wms_srs" "EPSG:4326 EPSG: > 54004 EPSG:27700" > "wms_feature_info_mime_type" "text/plain" > END > > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > LOG "/tmp/ > mapserver.log" > TEMPLATE "/tmp/ > template.html" > EMPTY "/tmp/ > template.html" > > END > > PROJECTION > "init=epsg:4326" > END > > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > LAYER > > NAME > MedievalBattlefields > METADATA > "wms_title" > "MedievalBattlefields" > "gml_include_items" "all" > "wms_include_items" "all" > "wms_feature_info_mime_type" "text/html" > END > > TYPE POINT > > DATA > MedievalBattlefields > TEMPLATE "/ > tmp/template.html" > > STATUS > ON > > PROJECTION > "init > =epsg:4326" > END > > CLASS > SYMBOL "circle" > SIZE 10 > COLOR 0 0 255 > END > > END #end of layer > > END # end of mapfile > > I?m sending in the GetFeatueInfo using a Url like this one: > > http://localhost/scripts/mapserv.exe?map=MedievalBattlefields.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetFeatureInfo&X=1127&Y=336&QUERY_LAYERS=MedievalBattlefields&LAYERS=MedievalBattlefields&INFO_FORMAT=text/html&BBOX=-19.51171875,48.69096039092549,13.07373046875,59.94400716933026&WIDTH=768&HEIGHT=768&SRS=EPSG:4326&FORMAT=text/html > > Any ideas why the error is being thrown? try changing your web object's "wms_feature_info_mime_type" metadata value to "text/html" maybe, and then verify what formats are supported by checking your GetCapabilities response. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From beckjoh at knology.net Sun Jul 6 12:26:17 2008 From: beckjoh at knology.net (John Beck) Date: Sun, 6 Jul 2008 14:26:17 -0500 Subject: [mapserver-users] Cannot pass variable with php MapScript to the Mapfile Message-ID: <44E6BC700FFE436EA6E896BFF964A0BF@BeckPC> I have an application in which I pass a variable %table% thru the url to the Mapserver mapfile and it works great. My example LAYER CONNECTION " MYSQL:xxxx,user=xxxx,password=xxxxx,port=3306,tables=%table% SELECT * FROM %table% wkbPoint WGS84 " CONNECTIONTYPE OGR But now I am trying to use mapscript to print the map and when I call $image = $mapfile->draw() I get errors wanting to know the value of %table% How do I implement this function when using PHP/Mapscript. When creating a new MapObj and drawing the map, url-parameters or cookies appear not to be passed to the mapserver. -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at tydac.ch Sun Jul 6 23:26:39 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Mon, 07 Jul 2008 08:26:39 +0200 Subject: [mapserver-users] Rotating map makes layer disappear In-Reply-To: <4870E7A6.2010203@ruch.ch> References: <4870E7A6.2010203@ruch.ch> Message-ID: Hi Matthias Make sure that all layers have a projection in the MapFile: LAYER NAME "Gemeindegrenzen" TYPE LINE STATUS ON MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "MI/gemeinden_lines.tab" CLASS NAME "Gemeindegrenzen" STYLE COLOR 255 255 255 SYMBOL "continue" WIDTH 2 END END PROJECTION "init=epsg:21781" END END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From iacovlev.pavel at gmail.com Mon Jul 7 01:53:15 2008 From: iacovlev.pavel at gmail.com (Iacovlev Pavel) Date: Mon, 7 Jul 2008 11:53:15 +0300 Subject: [mapserver-users] Cannot pass variable with php MapScript to the Mapfile In-Reply-To: <44E6BC700FFE436EA6E896BFF964A0BF@BeckPC> References: <44E6BC700FFE436EA6E896BFF964A0BF@BeckPC> Message-ID: <200807071153.15197.iacovlev.pavel@gmail.com> Don't know if you actualy can pass %var% like this in phpmapscript, Use mapscript to set stuff. $layer = $map->getLayerByName('someLayer'); $layer->set('connectiontype', MS_POSTGIS); $layer->setProcessing('close_connection=defer'); $layer->set('connection', $this->db->connString); $layer->set('data', 'YOUR SQL HERE'); On Sunday 06 July 2008 22:26:17 John Beck wrote: > I have an application in which I pass a variable %table% thru the url to > the Mapserver mapfile and it works great. > > My example > > LAYER > CONNECTION " > > MYSQL:xxxx,user=xxxx,password=xxxxx,port=3306,tables=%table% > SELECT * FROM %table% > wkbPoint > WGS84 > > > " > CONNECTIONTYPE OGR > > But now I am trying to use mapscript to print the map and when I call > > $image = $mapfile->draw() > > I get errors wanting to know the value of %table% > > How do I implement this function when using PHP/Mapscript. When creating a > new MapObj and drawing the map, url-parameters or cookies appear not to be > passed to the mapserver. From mail_deamon at tlen.pl Mon Jul 7 04:20:58 2008 From: mail_deamon at tlen.pl (=?UTF-8?Q?Admin?=) Date: Mon, 07 Jul 2008 13:20:58 +0200 Subject: [mapserver-users] Full CADRG and VPF support Message-ID: <16d8fc4b.3e1e8c6f.4871fc1a.740d9@o2.pl> Hello! I have to make my own wms server, which will support various formats like DTED, CADRG/RPF and VPF. I downloaded ms4w-2.2.7. There is DTED support, but only partial CADRG support and there is no support for VPF. Is there any chance to enable this support without recompiling everything? I read that I need OGDI Vectors support for VPF. How to enable it? From reena at indiamail.com Mon Jul 7 04:57:27 2008 From: reena at indiamail.com (Reena Singh) Date: Mon, 7 Jul 2008 06:57:27 -0500 Subject: [mapserver-users] Display layer based on menu item selection Message-ID: <20080707115727.2F627104F0@ws1-3.us4.outblaze.com> I have a html page where I hv made menus and am displaying map also...I had created the layers in an init() function which I was calling in the body of the html page.......Now I want that when one menu item( i hv made lists using ul and li ) is clicked or selected ..the corresponding layer should be displayed....like Road , Rail etc..how to do this? -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul_pag00 at hotmail.com Mon Jul 7 07:22:15 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Mon, 7 Jul 2008 14:22:15 +0000 Subject: [mapserver-users] Spatial queires Message-ID: Hello friends I'm using pmapper as framework, I'm have a question i'm have a spatial query in postgis, i want to know if tis possible use this in mapserver. Here is my query select b.dpa_despar,count (a) as nro_escuelas from parroquias_man_censo b, planteles_man a where st_contains(b.the_geom,a.the_geom) and b.poblac> 20000 group by b.dpa_despar order by b.dpa_despar Thanks _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE From beartreeyoga at yahoo.co.uk Mon Jul 7 07:20:01 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Mon, 7 Jul 2008 14:20:01 +0000 (GMT) Subject: [mapserver-users] Map Demo Setup Help Required Message-ID: <693404.68640.qm@web23001.mail.ird.yahoo.com> Hi I am new to MapServer and I am having problems correctly setting the changes required to Index.html. MapServer is running locally on Windows XP and is located in c:\program files\ms4w and is listening on port 8081 and http://localhost:8081/cgi-bin/mapserv.exe works okay. I have installed the demo files to C:\mapserver_demos\workshop-5.0. Couls someone explain what I should have for the following lines var snippet = "IMAGEPATH '????????'"; snippet += " IMAGEURL '/???????/'"; I have edited the hidden variables as follows and ACTION as
many thanks dcb __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jul 7 08:02:01 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 7 Jul 2008 11:02:01 -0400 Subject: [mapserver-users] Map Demo Setup Help Required In-Reply-To: <693404.68640.qm@web23001.mail.ird.yahoo.com> References: <693404.68640.qm@web23001.mail.ird.yahoo.com> Message-ID: On 7-Jul-08, at 10:20 AM, Derek Bain wrote: > Hi > > I am new to MapServer and I am having problems correctly setting the > changes required to Index.html. MapServer is running locally on > Windows XP and is located in c:\program files\ms4w and is listening > on port 8081 and http://localhost:8081/cgi-bin/mapserv.exe works > okay. I have installed the demo files to C:\mapserver_demos > \workshop-5.0. Couls someone explain what I should have for the > following lines > > var snippet = "IMAGEPATH '????????'"; > snippet += " IMAGEURL '/???????/'"; > > I have edited the hidden variables as follows > > > > > > and ACTION as > > onSubmit="configure()"> > Well MapServer welcomes you! I think these are what you need: 1) var snippet = "IMAGEPATH 'C:/Program Files/ms4w/tmp/ms_tmp/'"; snippet += " IMAGEURL '/ms_tmp/'"; 2) For your hidden vars, your "root" variable should point to the name of the Apache alias that you created: ...where the alias file in C:/Program Files/ms4w/httpd.d/ httpd_mapserv_demo.conf would contain: Alias /mapserv-demo/ "C:/Program Files/ms4w/apps/mapserv-demo/" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all 3) The form action should point to mapserv.exe such as: " --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jul 7 08:06:20 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 7 Jul 2008 11:06:20 -0400 Subject: [mapserver-users] Map Demo Setup Help Required In-Reply-To: References: <693404.68640.qm@web23001.mail.ird.yahoo.com> Message-ID: <607BCDA1-AAB5-4AB7-86E8-79BB575517E4@gatewaygeomatics.com> On 7-Jul-08, at 11:02 AM, Jeff McKenna wrote: > Alias /mapserv-demo/ "C:/Program Files/ms4w/apps/mapserv-demo/" > > > AllowOverride None > Options Indexes FollowSymLinks Multiviews > Order allow,deny > Allow from all > AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all In other words, your alias file in /ms4w/httpd.d/ should point to wherever you installed the mapserver demo. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Jul 7 08:15:51 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Jul 2008 10:15:51 -0500 Subject: [mapserver-users] Display layer based on menu item selection In-Reply-To: <20080707115727.2F627104F0@ws1-3.us4.outblaze.com> References: <20080707115727.2F627104F0@ws1-3.us4.outblaze.com> Message-ID: <4871ECD7.5157.008F.0@dnr.state.mn.us> It's certainly possible but how you do it depends on the client framework you're using: OpenLayers, MapServer templates, p.mapper, etc... Basically the list needs more info to help. Steve >>> On 7/7/2008 at 6:57 AM, in message <20080707115727.2F627104F0 at ws1-3.us4.outblaze.com>, "Reena Singh" wrote: > I have a html page where I hv made menus and am displaying map also...I > had created the layers in an init() function which I was calling in the > body of the html page.......Now I want that when one menu item( i hv made > lists using ul and li ) is clicked or selected ..the corresponding layer > should be displayed....like Road , Rail etc..how to do this? From Steve.Lime at dnr.state.mn.us Mon Jul 7 08:39:22 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Jul 2008 10:39:22 -0500 Subject: [mapserver-users] How to access the second database server whenperforming query on the mapserver In-Reply-To: <883324.32985.qm@web30306.mail.mud.yahoo.com> References: <883324.32985.qm@web30306.mail.mud.yahoo.com> Message-ID: <4871F25A.5157.008F.0@dnr.state.mn.us> Look at URL templates. You can do an attribute (mode=itemquery) query first and then use those results to format a URL to access the second server. The redirection happens without the user having to do anything. Steve >>> On 7/5/2008 at 4:28 AM, in message <883324.32985.qm at web30306.mail.mud.yahoo.com>, Larry Wong wrote: > Hello List! > How to access the second database server when performing non-spatial query > on the first server? > That mean, when user performing a non-spatial query on the mapserver, > (assume the query results a primary key which is defined in the query > template), before the mapserver display the query result on browser. it > redirect to the second database server, perform a second SQL command using > the primary key from the mapserver, and display whatever the result(s) found > in the database server onto the browser. > > > Thanks > > _______________________________________ > YM - ???? > ??????????????????????????????????????????? > http://messenger.yahoo.com.hk From woodbri at swoodbridge.com Mon Jul 7 09:41:18 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 07 Jul 2008 11:41:18 -0500 Subject: [mapserver-users] 5.2 AGG and PHP mapscript problem - possible build issue? Message-ID: <4872472E.80502@swoodbridge.com> Hi all, I could really use some help on this one. This runs for some areas of the map but will segv for others which implies that the trigger is data/mapfile related, although this might be the root issue. I did fine a suspect warning during the compile of mapscript, see below, but not sure what to make of it or why it is happening. The problem I am running into is that php/mapscript is crashing from what appears to be infinite recursion in an AGG function. gdb /home/steve/bin/php run precache-dbg.php -s=50000 -e=-17.8,10.0,65.0,39.8 -m=map2_en -r=42,43 ... vertIndex=42, horizIndex=271 metaTop=-187432, metaLeft=302552, szMetaTileId=t-187392/l302592 szMetaDir=/u/data/ayna-world/map2_en/50000/__base__/def/t-187392/l302592/meta Going to call map->draw QUERY_STRING='mode=map&map=/u/data/maps/en/ayna-master.map&mapext=48.026827464+29.4962617073+48.2833498244+29.7527840677&imgsize=1616+1616&layers=all&map.imagetype=agg/png24&map.debug=5' >junk.png Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208305984 (LWP 6886)] agg::rasterizer_cells_aa::line (this=0x98c986c, x1=-2147483648, y1=-129, x2=715827882, y2=-129) at /u/tools/work/mapserver-5.2.0-beta2/../agg-2.4/include/agg_rasterizer_cells_aa.h:316 316 void rasterizer_cells_aa::line(int x1, int y1, int x2, int y2) Current language: auto; currently c++ (gdb) bt #0 agg::rasterizer_cells_aa::line (this=0x98c986c, x1=-2147483648, y1=-129, x2=715827882, y2=-129) at /u/tools/work/mapserver-5.2.0-beta2/../agg-2.4/include/agg_rasterizer_cells_aa.h:316 #1 0x0020f4ee in agg::rasterizer_cells_aa::line (this=0x98c986c, x1=-2147483648, y1=-129, x2=-715827883, y2=-129) at /u/tools/work/mapserver-5.2.0-beta2/../agg-2.4/include/agg_rasterizer_cells_aa.h:326 #2 0x0020f4ee in agg::rasterizer_cells_aa::line (this=0x98c986c, x1=-2147483648, y1=-129, x2=715827882, y2=-129) at /u/tools/work/mapserver-5.2.0-beta2/../agg-2.4/include/agg_rasterizer_cells_aa.h:326 #3 0x0020f4ee in agg::rasterizer_cells_aa::line (this=0x98c986c, x1=-2147483648, y1=-129, x2=-715827883, y2=-129) at /u/tools/work/mapserver-5.2.0-beta2/../agg-2.4/include/agg_rasterizer_cells_aa.h:326 and this goes on forever as far as I can tell. If I run the same image via: ./mapserv QUERY_STRING='mode=map&map=/u/data/maps/en/ayna-master.map&mapext=48.026827464+29.4962617073+48.2833498244+29.7527840677&ingsize=1616+1616&layers=all&map.imagetype=agg/png24&map.debug=5' >junk.png It exits normally with a segv. The system is Linux centos, it is a clean build on a i386 cpu. ./configure --enable-force-cgi-redirect --with-regex=system -with-gd=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib=/usr --with-freetype-dir=/usr --enable-gd-native-ttf --without-xpm --disable-xml --without-pear --with-pcre-dir=/usr --with-config-file-path=/u/tools/lib I get the same error with 5.2-beta2 and 5.2-beta4 building: # for mapserv-5.2-beta2 using: ./configure \ --enable-ignore-missing-data \ --with-httpd=/usr/sbin/httpd \ --with-proj=/usr \ --with-agg=../agg-2.4 \ --with-gd \ --with-png=/usr \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-php=../php-4.4.8 \ --with-fribidi-config=yes \ --with-gdal \ --with-wfs \ --with-ogr \ --enable-debug #for mapserv-5.2-beta4 using: ./configure \ --enable-ignore-missing-data \ --with-httpd=/usr/sbin/httpd \ --with-proj=/usr \ --with-agg=../agg-2.4 \ --with-gd \ --with-png=/usr \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-php=../php-4.4.8 \ --with-fribidi-config=/usr/local/lib/pkgconfig/fribidi.pc \ --with-gdal \ --with-wfs \ --with-ogr \ --enable-debug I also just noticed the following warning during the compile: gcc -fPIC -g -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4 -DNEED_NONBLOCKING_STDERR -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_WMS_LYR -DUSE_CURL -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/u/tools/work/mapserver-5.2.0-beta4 -I/usr/local/include/fribidi -I/usr/include -I/usr/include -I/usr/include -I/u/tools/work/mapserver-5.2.0-beta4/../agg-2.4/include -I/u/tools/work/mapserver-5.2.0-beta4/../agg-2.4/font_freetype -I/usr/include/freetype2 -I/usr/include -I/u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8 -I/u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/dl -I/u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/main -I/u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/Zend -I/u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/include -I/u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/TSRM -c -o php_mapscript.o php_mapscript.c In file included from /u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/Zend/zend_config.h:1, from /u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/Zend/zend.h:51, from /u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/main/php.h:34, from php_mapscript_util.h:33, from php_mapscript.c:32: /u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/main/../main/php_config.h:111:1: warning: "SIZEOF_LONG" redefined In file included from /usr/include/cpl_port.h:86, from /usr/include/ogr_core.h:33, from /usr/include/ogr_api.h:42, from /u/tools/work/mapserver-5.2.0-beta4/mapserver.h:108, from /u/tools/work/mapserver-5.2.0-beta4/maptemplate.h:33, from php_mapscript.h:54, from php_mapscript.c:31: /usr/include/cpl_config.h:166:1: warning: this is the location of the previous definition [root at map01 mapserver-5.2.0-beta4]# grep SIZEOF_LONG /u/tools/work/mapserver-5.2.0-beta4/../php-4.4.8/main/../main/php_config.h #define SIZEOF_LONG 8 #define SIZEOF_LONG_LONG 8 #define SIZEOF_LONG_LONG_INT 8 [root at map01 mapserver-5.2.0-beta4]# grep SIZEOF_LONG /usr/include/cpl_config.h #define SIZEOF_LONG 4 This seems problematic, any thoughts on this or the other stuff? Thanks, -Steve W From steve at online-archaeology.co.uk Mon Jul 7 11:02:24 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Mon, 7 Jul 2008 19:02:24 +0100 Subject: [mapserver-users] How to query attributes via WMS Message-ID: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> I'm using mapserver to overlay png tiles over a google maps interface and it's working well. I have a series of shp files on the server and I want to build a search interface so the user can query the actual data. An example would be in simple terms: 'select all data from shp where layer = 'thislayer' and field like '%castle%''. Is it possible to interpret a variable if I sent it via the Url with the WMS call? For example, I'll tag on &TestVar=castle to the WMS call. Can the map file be set up to interpret TestVar and perform a query against a shp file field in a given layer? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From BLC at JUB.com Mon Jul 7 12:28:21 2008 From: BLC at JUB.com (Bruce Cheney) Date: Mon, 7 Jul 2008 13:28:21 -0600 Subject: [mapserver-users] How to query attributes via WMS In-Reply-To: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> References: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> Message-ID: I am not answering your question - sorry. Instead I have questions for you. Will Google allow using their maps as a WMS? Did you get special permission for this? Everything I have read says this is not allowed from the Google side. I am asking because we would really like to use Google as a background for our web app also and if this is a new development then we would be interested in doing it also. Thanks. Bruce Cheney ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve White Sent: Monday, July 07, 2008 12:02 PM To: Mapserver-users Subject: [mapserver-users] How to query attributes via WMS I'm using mapserver to overlay png tiles over a google maps interface and it's working well. I have a series of shp files on the server and I want to build a search interface so the user can query the actual data. An example would be in simple terms: 'select all data from shp where layer = 'thislayer' and field like '%castle%''. Is it possible to interpret a variable if I sent it via the Url with the WMS call? For example, I'll tag on &TestVar=castle to the WMS call. Can the map file be set up to interpret TestVar and perform a query against a shp file field in a given layer? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbrehmer at refractions.net Mon Jul 7 12:30:28 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Mon, 07 Jul 2008 12:30:28 -0700 Subject: [mapserver-users] How to query attributes via WMS In-Reply-To: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> References: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> Message-ID: <48726ED4.3040500@refractions.net> Hi Steve, There's some documentation [1] for using Run-time substitutions. You will need to add a regular expression for 'DATAPATTERN' in your mapfile (DATAPATTERN '.*' will allow all substitutions). You will need to modify your WMS call to include something as follows "......&map.layer[layername]=DATA+the_geom+FROM+...&......" where layername is the actual name of the layer. [1] http://mapserver.gis.umn.edu/docs/howto/runsub Cheers, Ben Steve White wrote: > > I?m using mapserver to overlay png tiles over a google maps interface > and it?s working well. I have a series of shp files on the server and > I want to build a search interface so the user can query the actual > data. An example would be in simple terms: ?select all data from shp > where layer = ?thislayer? and field like ?%castle%??. > > Is it possible to interpret a variable if I sent it via the Url with > the WMS call? For example, I?ll tag on &TestVar=castle to the WMS > call. Can the map file be set up to interpret TestVar and perform a > query against a shp file field in a given layer? > > Thanks, > > Steve > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From BLC at JUB.com Mon Jul 7 12:37:01 2008 From: BLC at JUB.com (Bruce Cheney) Date: Mon, 7 Jul 2008 13:37:01 -0600 Subject: [mapserver-users] National basemap data - WMS service In-Reply-To: <485A8510.3010801@pdx.edu> References: <485921FE.4010409@pobox.com> <915271.39149.qm@web33203.mail.mud.yahoo.com> <485A8510.3010801@pdx.edu> Message-ID: Thanks for the great suggestion. We have looked at this but we will need something that can go to a much larger scale. Bruce Cheney -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of percy Sent: Thursday, June 19, 2008 10:11 AM To: Bruce Cheney Cc: mapserver Subject: Re: [mapserver-users] National basemap data - WMS service You might be able to get what you need from the USGS' National Map http://nationalmap.gov/ Depends on what scale you need... Cheers, Percy Bruce Cheney wrote: > I have been trying to hunt down a good US national basemap to use > through mapserver, preferably a WMS service (unless there is a better > option). Alternatively I am also looking to put together our own > national basemap to use. I assume some of you have already been down > this road so maybe can help. > > Here is where I have made it so far but I am struggling to find the > good solution. Google, Yahoo, etc would require an annual fee (not > cheap) to connect to their data (because parts of our site would make > money even if it is not the maps). I am still trying to find out if > they will give permission to connect as a WMS service. From this user > group I get the impression that that might not happen. If we couldn't > use WMS then we would have to connect through something like > openlayers (still requiring the annual fee from the provider). > > If we try to create our own basemap, so far TIGER looks like it has > the most accurate roads, water features, etc. But the data all is > chunked out by the county. That could get hairy to put together in > one and troublesome to load the proper layers if left separate. Not > to mention the size might require a small server farm. > > Is there a better WMS connection we could use? > Is there a better basemap option? > Is there a way to connect to OpenStreetMap (I couldn't find one)? > Will I have hair left when I solve this problem? > > Thanks all for any help you can give. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From steve at online-archaeology.co.uk Mon Jul 7 13:18:36 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Mon, 7 Jul 2008 21:18:36 +0100 Subject: [mapserver-users] How to query attributes via WMS In-Reply-To: References: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> Message-ID: <006e01c8e06e$a35d1530$ea173f90$@co.uk> Bruce - I don't see anything in Google's T&Cs that disallow adding layered tiles over their own. In fact since the API has a class called GTileLayerOverlay it looks like they are encouraging it. http://code.google.com/apis/maps/documentation/reference.html#GTileLayerOver lay Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bruce Cheney Sent: 07 July 2008 20:28 To: Mapserver-users Subject: RE: [mapserver-users] How to query attributes via WMS I am not answering your question - sorry. Instead I have questions for you. Will Google allow using their maps as a WMS? Did you get special permission for this? Everything I have read says this is not allowed from the Google side. I am asking because we would really like to use Google as a background for our web app also and if this is a new development then we would be interested in doing it also. Thanks. Bruce Cheney _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve White Sent: Monday, July 07, 2008 12:02 PM To: Mapserver-users Subject: [mapserver-users] How to query attributes via WMS I'm using mapserver to overlay png tiles over a google maps interface and it's working well. I have a series of shp files on the server and I want to build a search interface so the user can query the actual data. An example would be in simple terms: 'select all data from shp where layer = 'thislayer' and field like '%castle%''. Is it possible to interpret a variable if I sent it via the Url with the WMS call? For example, I'll tag on &TestVar=castle to the WMS call. Can the map file be set up to interpret TestVar and perform a query against a shp file field in a given layer? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From vblanque2 at gmail.com Mon Jul 7 13:35:08 2008 From: vblanque2 at gmail.com (Vincent BLANQUE) Date: Mon, 7 Jul 2008 16:35:08 -0400 Subject: [mapserver-users] Tile generation with MS5W and Kamap too much slow Message-ID: Hi everybody, I am serving "raster tiles" with Mapserver 5.0.2 and Kamap-1.0 on a AMD with 1Go RAM. I use Openlayers 2.6 as viewer with the Kamap layer active. When I try to navigate my server gets very very slow... It creates 15 forks of cgi-bin process (20 Mo RAM each)... I tried to precache the tiles but it's the same problem. I do not know what happen... anybody has the solution ? thanks, Vincent -------------- next part -------------- An HTML attachment was scrubbed... URL: From vhva1976 at yahoo.es Mon Jul 7 16:02:00 2008 From: vhva1976 at yahoo.es (victor valencia) Date: Mon, 7 Jul 2008 23:02:00 +0000 (GMT) Subject: [mapserver-users] hello, a new user that doesn't know how this works Message-ID: <517269.95579.qm@web23401.mail.ird.yahoo.com> Hello: I would like to know how this mail list works. I have some questions about mapserver. What should i do to ask? Thanks Vic ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From BLC at JUB.com Mon Jul 7 16:06:37 2008 From: BLC at JUB.com (Bruce Cheney) Date: Mon, 7 Jul 2008 17:06:37 -0600 Subject: [mapserver-users] How to query attributes via WMS In-Reply-To: <006e01c8e06e$a35d1530$ea173f90$@co.uk> References: <005301c8e05b$9c1e3410$d45a9c30$@co.uk> <006e01c8e06e$a35d1530$ea173f90$@co.uk> Message-ID: Steve, I believe I misunderstood what you are doing. Maybe a slight clarification would be helpful. I see three different options: 1. Create a Mapserver WMS that feeds into the Google Maps API (Google API controls display) = allowed 2. Use Google Maps as a WMS to feed into Mapserver on the server side (Mapserver API controls display) = not allowed 3. Use Google Maps to mesh with Mapserver data on client side (example: Open layers meshes two on client side - Openlayers controls) = allowed If I understand you correctly you are using #1 where Google Maps is the controlling environment. I thought you were implementing #2. For a MapServer discussion reference on this not being allowed see: http://www.nabble.com/Google-Summer-of-Code-Ideas-td9378841.html#a939953 8 Refer to Jan and Daniel's comments. Obviously this is not an official statement. Maybe someone has an official statement from Google that they could post? Bruce Cheney ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve White Sent: Monday, July 07, 2008 2:19 PM To: Bruce Cheney; 'Mapserver-users' Subject: RE: [mapserver-users] How to query attributes via WMS Bruce - I don't see anything in Google's T&Cs that disallow adding layered tiles over their own. In fact since the API has a class called GTileLayerOverlay it looks like they are encouraging it. http://code.google.com/apis/maps/documentation/reference.html#GTileLayer Overlay Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bruce Cheney Sent: 07 July 2008 20:28 To: Mapserver-users Subject: RE: [mapserver-users] How to query attributes via WMS I am not answering your question - sorry. Instead I have questions for you. Will Google allow using their maps as a WMS? Did you get special permission for this? Everything I have read says this is not allowed from the Google side. I am asking because we would really like to use Google as a background for our web app also and if this is a new development then we would be interested in doing it also. Thanks. Bruce Cheney ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve White Sent: Monday, July 07, 2008 12:02 PM To: Mapserver-users Subject: [mapserver-users] How to query attributes via WMS I'm using mapserver to overlay png tiles over a google maps interface and it's working well. I have a series of shp files on the server and I want to build a search interface so the user can query the actual data. An example would be in simple terms: 'select all data from shp where layer = 'thislayer' and field like '%castle%''. Is it possible to interpret a variable if I sent it via the Url with the WMS call? For example, I'll tag on &TestVar=castle to the WMS call. Can the map file be set up to interpret TestVar and perform a query against a shp file field in a given layer? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Mon Jul 7 16:20:25 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon, 7 Jul 2008 19:20:25 -0400 Subject: [mapserver-users] hello, a new user that doesn't know how this works In-Reply-To: <517269.95579.qm@web23401.mail.ird.yahoo.com> References: <517269.95579.qm@web23401.mail.ird.yahoo.com> Message-ID: <3F93E245-DE23-4244-9014-7DF4D5FB5224@dmsolutions.ca> just ask your question On 7-Jul-08, at 7:02 PM, victor valencia wrote: > Hello: > I would like to know how this mail list works. > I have some questions about mapserver. What should i do to ask? > > Thanks > > Vic > > > Enviado desde Correo Yahoo! > La bandeja de entrada m?s inteligente. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From pal.kristensen at statkart.no Tue Jul 8 00:01:07 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 8 Jul 2008 00:01:07 -0700 (PDT) Subject: [MAPSERVER-USERS] Full CADRG and VPF support In-Reply-To: <16d8fc4b.3e1e8c6f.4871fc1a.740d9@o2.pl> References: <16d8fc4b.3e1e8c6f.4871fc1a.740d9@o2.pl> Message-ID: <18333050.post@talk.nabble.com> Hi! What do you mean by partial CADRG/RPF support. What is it that you need that is not supported? Could you pleas be more specific? Regards, P?l Kristensen Admin-267 wrote: > > Hello! > I have to make my own wms server, which will support various formats like > DTED, CADRG/RPF and VPF. I downloaded ms4w-2.2.7. There is DTED support, > but only partial CADRG support and there is no support for VPF. Is there > any chance to enable this support without recompiling everything? I read > that I need OGDI Vectors support for VPF. How to enable it? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Full-CADRG-and-VPF-support-tp18314860p18333050.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mail_deamon at tlen.pl Tue Jul 8 01:22:50 2008 From: mail_deamon at tlen.pl (=?UTF-8?Q?Admin?=) Date: Tue, 08 Jul 2008 10:22:50 +0200 Subject: =?UTF-8?Q?[MAPSERVER-USERS]_Full_CADRG_and_VPF_support?= Message-ID: CADRG works only partialy, I have to add partial files with .ON2 or .ON3 extension as layers, not A.TOC file, which defines this files. For example: Now I have to write: LAYER NAME cadrg_1 TYPE RASTER DATA 'ONZ03\0001P011.ON3' STATUS DEFAULT END . . . LAYER NAME cadrg_n TYPE RASTER DATA 'ONZ03\0001P0nn.ON3' STATUS DEFAULT END But I would like to write: LAYER NAME cadrg_all TYPE RASTER DATA 'A.TOC' STATUS DEFAULT END I read that mapserver have CADRG/RPF support for TOC files, but how to enable it? Also, how to enable VPF support? I know, that i can convert VPF to SHP, but is there other solution? From stefan.schwarzer at grid.unep.ch Tue Jul 8 01:00:28 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Tue, 8 Jul 2008 10:00:28 +0200 Subject: [mapserver-users] queryByPoint problem - rien ne va plus Message-ID: <87578496-7C3D-41B5-9560-F4F7C8E4773C@grid.unep.ch> Hi there, I have a script to query my layers by point or rectangle, which used to run smoothly. But now, don't know what happened... I updated from an old mapserver version to a recent one. Is it that? I have no idea. Here is the code which I use. When it reaches the bottom part with the queryByPoint it stalls... Thanks for any help! Stef //Get the Layer being queried $Layer = $map -> GetLayerByName($lyr_name); //Set the layers status ON (b/c it might not be...) $Layer -> set("status", 1); $ImgWidth = $map -> width; $ImgHeight = $map -> height; $x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1; $y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2)); $x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1; $y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2)); $x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1; $y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2)); $click_pt = ms_newPointObj(); $click_pt -> setXY($x, $y); $click_rt = ms_newRectObj(); $click_rt -> setextent($x1, $y2, $x2, $y1); //Query the Map at the point clicked if (!$imgbox) $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else $a = $map -> queryByRect($click_rt); From vhva1976 at yahoo.es Tue Jul 8 01:41:01 2008 From: vhva1976 at yahoo.es (victor valencia) Date: Tue, 8 Jul 2008 08:41:01 +0000 (GMT) Subject: [mapserver-users] raster tiling of non rectangular images Message-ID: <856086.31991.qm@web23402.mail.ird.yahoo.com> Hi: I need to create a tileindex of several non-rectangular raster images. I tried GdaltIndex, but produces rectangular polygons including the non-data (Null) pixels. These images i have are Landsat 7 saved as *.img, *.tiff, *.Sid. These images are rhomboidal. Since the file is rectangular there is an area with no valid pixels (non-data or Null). I need a boundary polygon that exclude this pixels. I found an arcview 3x extension named Grid to Valid-pixel Polygon Catalog w Stats, that creates a boundary polygons of the valid pixels, but works just with Grid images. I could change the format of my images but this is very very time consuming. Is there any script to create irregular bounding polygons (non-rectangular) from the valid pixels for several images? Best regards Victor ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Tue Jul 8 02:17:41 2008 From: kobben at itc.nl (Barend Kobben) Date: Tue, 08 Jul 2008 11:17:41 +0200 Subject: [mapserver-users] GetFeatureInfo error In-Reply-To: <000a01c8df58$17757970$46606c50$@co.uk> Message-ID: Looking at you request, it seems strange you do a GetFeatureInfo for pixel X=1127&Y=336, when you advertised your map to be only of size WIDTH=768&HEIGHT=768 -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From pal.kristensen at statkart.no Tue Jul 8 02:56:14 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 8 Jul 2008 02:56:14 -0700 (PDT) Subject: [MAPSERVER-USERS] Full CADRG and VPF support In-Reply-To: References: Message-ID: <18335684.post@talk.nabble.com> Hi! You can build a tileindex with the gdaltindex utility, and then reference the tileindex in a raster layer. You have to run the tileindex utility one time for each sub folder gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ03/*.ja* gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ04/*.ja* or for example make a small python script that runs recursively trough all sub folders and executes the gdaltindex utility. I have done this to serve out many JOG products (complete CD's) in on layer. The layer could then look something like this. LAYER NAME "JOG_Mosaic" STATUS ON DEBUG 5 TILEINDEX "rpf_jog.shp" TILEITEM "Location" TYPE RASTER #MINSCALE 300000 MAXSCALE 600000 PROCESSING "RESAMPLE=AVERAGE" #PROCESSING "RESAMPLE=BILINEAR" PROCESSING "OVERSAMPLE_RATIO=8" # 8 improves the output image greatly, could try other values GROUP "JOG" METADATA "wms_title" "JOG Mosaic" "wms_group_title" "JOG" "wms_style" "Default" END PROJECTION "init=epsg:4326" END END Admin-267 wrote: > > CADRG works only partialy, I have to add partial files with .ON2 or .ON3 > extension as layers, not A.TOC file, which defines this files. > > For example: > > Now I have to write: > LAYER > NAME cadrg_1 > TYPE RASTER > DATA 'ONZ03\0001P011.ON3' > STATUS DEFAULT > END > . > . > . > LAYER > NAME cadrg_n > TYPE RASTER > DATA 'ONZ03\0001P0nn.ON3' > STATUS DEFAULT > END > > But I would like to write: > LAYER > NAME cadrg_all > TYPE RASTER > DATA 'A.TOC' > STATUS DEFAULT > END > > I read that mapserver have CADRG/RPF support for TOC files, but how to > enable it? > Also, how to enable VPF support? I know, that i can convert VPF to SHP, > but is there other solution? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Full-CADRG-and-VPF-support-tp18334249p18335684.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andrew at environ-it.co.uk Tue Jul 8 02:59:14 2008 From: andrew at environ-it.co.uk (Andrew Mason) Date: Tue, 8 Jul 2008 10:59:14 +0100 Subject: [mapserver-users] 'Clipping' a raster Message-ID: <78F0B9A7-5FC2-4200-A57B-6156B9F2FDAC@environ-it.co.uk> Hi, I'd like to allow users to specify a bounding polygon and have Mapserver return the contents of a raster (Geotiff) bounded by this polygon. Everything outside the polygon would be transparent. Is there any way to do this? Thanks in advance Andrew From kreshna_iceheart at yahoo.com Tue Jul 8 03:28:04 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 8 Jul 2008 03:28:04 -0700 (PDT) Subject: [mapserver-users] Cannot display query result in popup window Message-ID: <559740.27798.qm@web56108.mail.re3.yahoo.com> Hi, I'm using MapServer for Windows. I made a query on my map. The query result is displayed properly, but I cannot display it on a popup window. The query result is always displayed on the same browser window, "replacing" the map with the result. I have added the following scripts on my template: function toFrame() { if (document.mapserv.mode.value == "query" || document.mapserv.mode.value == "nquery") { document.mapserv.target = "_blank"; } else { document.mapserv.target = "_self"; } } Yet the query above simply does not work; the result of the query is always displayed on the same browser window ("replacing" my map) instead of displayed in a popup window. Am I doing the right thing? I also attach the map file, the HTML template, and the query template. Many thanks. -Kresh -------------- next part -------------- A non-text attachment was scrubbed... Name: GABUNGAN.map Type: application/octet-stream Size: 12322 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Tue Jul 8 03:42:48 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 8 Jul 2008 03:42:48 -0700 (PDT) Subject: [mapserver-users] Cannot display query result in popup window In-Reply-To: <559740.27798.qm@web56108.mail.re3.yahoo.com> Message-ID: <361689.23225.qm@web56115.mail.re3.yahoo.com> It works! I overlooked a very simple thing and forgot to add the "OnClick" function on my map (the tag). Duh! My apologize, -Kresh --- On Tue, 7/8/08, kreshna_iceheart at yahoo.com wrote: > From: kreshna_iceheart at yahoo.com > Subject: [mapserver-users] Cannot display query result in popup window > To: mapserver-users at lists.osgeo.org > Date: Tuesday, July 8, 2008, 6:28 AM > Hi, > > I'm using MapServer for Windows. I made a query on my > map. The query result is displayed properly, but I cannot > display it on a popup window. The query result is always > displayed on the same browser window, "replacing" > the map with the result. > > I have added the following scripts on my template: > function toFrame() { > if (document.mapserv.mode.value == > "query" || document.mapserv.mode.value == > "nquery") { > document.mapserv.target = "_blank"; > } else { > document.mapserv.target = "_self"; > } > } > > Yet the query above simply does not work; the result of the > query is always displayed on the same browser window > ("replacing" my map) instead of displayed in a > popup window. > > Am I doing the right thing? I also attach the map file, the > HTML template, and the query template. Many thanks. > -Kresh_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From andrew at environ-it.co.uk Tue Jul 8 03:47:37 2008 From: andrew at environ-it.co.uk (Andrew Mason) Date: Tue, 8 Jul 2008 11:47:37 +0100 Subject: [mapserver-users] Cannot display query result in popup window In-Reply-To: <559740.27798.qm@web56108.mail.re3.yahoo.com> References: <559740.27798.qm@web56108.mail.re3.yahoo.com> Message-ID: <4B5B2D0A-7005-45F5-BB8B-5B23D6A4E1FE@environ-it.co.uk> Kresh, I may be missing something, but your toFrame() function doesn't seem to be called at any point. I'd have expected it to be called sometime before the form is submitted. Andrew On 8 Jul 2008, at 11:28, kreshna_iceheart at yahoo.com wrote: > Hi, > > I'm using MapServer for Windows. I made a query on my map. The > query result is displayed properly, but I cannot display it on a > popup window. The query result is always displayed on the same > browser window, "replacing" the map with the result. > > I have added the following scripts on my template: > function toFrame() { > if (document.mapserv.mode.value == "query" || > document.mapserv.mode.value == "nquery") { > document.mapserv.target = "_blank"; > } else { > document.mapserv.target = "_self"; > } > } > > Yet the query above simply does not work; the result of the query > is always displayed on the same browser window ("replacing" my map) > instead of displayed in a popup window. > > Am I doing the right thing? I also attach the map file, the HTML > template, and the query template. Many thanks. > -Kresh > > > > > > > > > > __________ > _____________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From beartreeyoga at yahoo.co.uk Tue Jul 8 03:52:32 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Tue, 8 Jul 2008 10:52:32 +0000 (GMT) Subject: [mapserver-users] WMS Client setup Message-ID: <305934.11636.qm@web23001.mail.ird.yahoo.com> Hi I now have the demo application running. I am trying to add MapServer to the list of WMS Servers in World Wind. I tried adding the following to the wms_server_list.xml file Map Server http://localhost:8081/cgi-bin/mapserv 5.0 Map Server However this results in the following error from World Wind when selecting the Tools|WMS Browser menu command "Map Server[Connection Error]" Can anyone help me set this up so that I can see MapServer from World Wind many thanks Derek __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From reena at indiamail.com Tue Jul 8 04:26:18 2008 From: reena at indiamail.com (S.Reena) Date: Tue, 8 Jul 2008 04:26:18 -0700 (PDT) Subject: [MAPSERVER-USERS] blur backgroung map when pop up appears Message-ID: <18336965.post@talk.nabble.com> I am displaying a map on html page......i want that on some pop up window to appear over map on some event....n this should blur the map on background....how to do this? -- View this message in context: http://www.nabble.com/blur-backgroung-map-when-pop-up-appears-tp18336965p18336965.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Tue Jul 8 05:28:23 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 8 Jul 2008 05:28:23 -0700 (PDT) Subject: [MAPSERVER-USERS] raster tiling of non rectangular images In-Reply-To: <856086.31991.qm@web23402.mail.ird.yahoo.com> References: <856086.31991.qm@web23402.mail.ird.yahoo.com> Message-ID: <18338073.post@talk.nabble.com> Hi! To my knowledge a raster (or image) is always rectangular (you can have non square pixel though) . If the actual content is not rectangular, the boundary is filled with "some other data". You have a couple of choices on how to handle this. 1. Use the OFFSITE keyword in the layer object to "exclude" a certain pixel value, e.g OFFSITE 0 0 0 2. Use gdalwarp to mask no-data areas with a alpha channel I don't think it would make any sense to add non rectangular boundary polygon to the tileindex, because MapServer only uses the tileindex to determine which raster tiles to draw, no clipping is done (am I wrong??). It is the actual raster files that is processed, and they would still have the no-data pixels. Regards, P?l Kristensen victor valencia-2 wrote: > > Hi: > > I need to create a tileindex of several non-rectangular raster images. I > tried GdaltIndex, but produces rectangular polygons including the non-data > (Null) pixels. > These images i have are Landsat 7 saved as *.img, *.tiff, *.Sid. > These images are rhomboidal. Since the file is rectangular there is an > area with no valid pixels (non-data or Null). I need a boundary polygon > that exclude this pixels. > > I found an arcview 3x extension named Grid to Valid-pixel Polygon Catalog > w Stats, that creates a boundary polygons of the valid pixels, but works > just with Grid images. I could change the format of my images but this is > very very time consuming. > > Is there any script to create irregular bounding polygons > (non-rectangular) from the valid pixels for several images? > > Best regards > > Victor > > > > ______________________________________________ > Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/raster-tiling-of-non-rectangular-images-tp18334576p18338073.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Tue Jul 8 06:32:56 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 8 Jul 2008 08:32:56 -0500 Subject: [mapserver-users] WMS Client setup In-Reply-To: <305934.11636.qm@web23001.mail.ird.yahoo.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBE97@s-sp22.pca.state.mn.us> I have never had luck adding WMS servers to WorldWind, but hopefully you will. A couple of things that I notice: 1. I am guessing that for ServerUrl, you will want to specify the url to mapserver using a map file that has been set up to be a WMS server, not just your mapserver binary. Something like: http://localhost:8081/cgi-bin/mapserv?map=/my/mapfile/path/mymap.map 2. I am guessing that Version refers to the version of WMS that you are serving (e.g. 1.0, 1.1, etc.) David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Derek Bain Sent: Tuesday, July 08, 2008 5:53 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Client setup Hi I now have the demo application running. I am trying to add MapServer to the list of WMS Servers in World Wind. I tried adding the following to the wms_server_list.xml file Map Server http://localhost:8081/cgi-bin/mapserv 5.0 Map Server However this results in the following error from World Wind when selecting the Tools|WMS Browser menu command "Map Server[Connection Error]" Can anyone help me set this up so that I can see MapServer from World Wind many thanks Derek ________________________________ Not happy with your email address? Get the one you really want - millions of new email addresses available now at Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From giohappy at gmail.com Tue Jul 8 08:24:19 2008 From: giohappy at gmail.com (G. Allegri) Date: Tue, 8 Jul 2008 17:24:19 +0200 Subject: [mapserver-users] php mapscript... missing a "." (dot) Message-ID: Hi list. I've just compiled my Mapserver 5 with php-mapscript. I've copied my php-mapscript.so inside /usr/lib/php5/20060613+lfs, but when I try dl() from php, I get that it's looking for php-mapscriptso... It misses a dot! If I change the .so name to "php-mapscriptso", it gets loaded correctly... Does anyone know why php misspell the name? giovanni -------------- next part -------------- An HTML attachment was scrubbed... URL: From marieeve16 at hotmail.com Tue Jul 8 08:50:28 2008 From: marieeve16 at hotmail.com (=?iso-8859-1?Q?Marie-Eve_L=E9vesque?=) Date: Tue, 8 Jul 2008 11:50:28 -0400 Subject: [mapserver-users] Flash (swf) - Link between buttons and Element? Message-ID: I am using MapServer to generate Flash (.swf). It generally works well, my shapes are generated and I get my events by ElementSelected, and my attributes in the Element object of the generated swf. But, there is one thing that I can't get: the ID associated to a button or to one of the shapes. For example, I have an object with the id "15", the name "Montreal" and the value "10". In "Element", I have all those informations, but I don't know what button is associated to id 15... (in my case, with tests I know that "button164" is associated to my id 15, but how can I know that dynamically?) What I would like to have is, either an "buttonId" attribute in "Element", either an attribute "associatedId" in the button. Is there something like that in MapServer? If it doesn't exists, is there an other way to have that like between my data in Element and the generated buttons? Thanks, Marie-Eve _________________________________________________________________ Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant! http://www.emoticonesgratuites.ca/?icid=EMFRCA120 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Tue Jul 8 11:07:17 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Tue, 8 Jul 2008 19:07:17 +0100 Subject: [mapserver-users] PostGIS connecton error Message-ID: <002101c8e125$75af6e50$610e4af0$@co.uk> After much fiddling around I managed to install PostgreSQL with PostGIS and set up a connection in a layer like this: MAP NAME Test STATUS ON UNITS METERS SHAPEPATH "C:\Inetpub\scripts\data\" IMAGECOLOR 0 255 255 SIZE 400 400 DEBUG ON IMAGETYPE PNG EXTENT -4.35 56.14 -3.23 56.91 DATAPATTERN '.*' WEB METADATA "wms_title" "Test MS" "wms_onlineresource" "http://localhost/scripts/mapserv.exe &" "wms_srs" "EPSG:4326 EPSG:54004 EPSG:27700" "wms_feature_info_mime_type" "text/html" END IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "C:\Inetpub\wwwroot\tmp\" LOG "C:\Inetpub\wwwroot\tmp\mapserver.log" TEMPLATE "C:\Inetpub\wwwroot\OAMap\templates\template.html" EMPTY "C:\Inetpub\wwwroot\OAMap\templates\template.html" END #QUERYMAP # STATUS ON # STYLE HILITE # COLOR 255 255 0 # SIZE 10 #END PROJECTION "init=epsg:4326" END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "test" CONNECTIONTYPE postgis CONNECTION "user=oa password=******* dbname=OA" METADATA "wms_title" "test" "gml_include_items" "all" "wms_include_items" "all" "wms_feature_info_mime_type" "text/html" END TYPE POINT DATA "the_geom from (SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE '%Lewes%') as foo using unique gid using SRID=4326" STATUS ON DUMP TRUE PROJECTION "init=epsg:4326" END CLASS TEMPLATE "C:\Inetpub\wwwroot\OAMap\templates\template.html" SYMBOL "circle" SIZE 10 COLOR 255 0 255 END END #end of layer END # end of mapfile Here's the exception from MapServer: msDrawMap(): Image handling error. Failed to draw layer named 'test'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE '%Lewes%') as foo WHERE the_geom && setSRID('BOX3D(-5.625 52.4827802220782,0 55.7765730186677)'::BOX3D, 4326 )' Postgresql reports the error as 'ERROR: column "gid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),gid::text ... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. As you can see, it says column 'gid' does not exist. This doesn't make any sense to me because I can see a gid column in my table and it has been set up as the PK. If I take out the sub query and just run it in the Query tool using pgAdmin III it works! SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE '%Lewes%' Can anyone give me some clues what's going on here? -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Tue Jul 8 11:16:27 2008 From: even.rouault at mines-paris.org (Even Rouault) Date: Tue, 8 Jul 2008 20:16:27 +0200 Subject: [MAPSERVER-USERS] Full CADRG and VPF support In-Reply-To: <18335684.post@talk.nabble.com> References: <18335684.post@talk.nabble.com> Message-ID: <200807082016.28452.even.rouault@mines-paris.org> Or more simple, from GDAL 1.5, RPF products are directly supported. So you can do : gdaltindex tile_index.shp NITF_TOC_ENTRY:CADRG_JOG-A_250K_1_0:rpf/a.toc NITF_TOC_ENTRY:CADRG_JOG-A_250K_1_1:rpf/a.toc where those NITF_TOC_ENTRY values are the SUBDATASET_X_NAME values reported by gdalinfo on the A.TOC file. For VPF, you need to build OGR with OGDI support. After that, you can handle it directly in mapserver through an OGRConnection (but that may be slow as VPF reading is not fast), or use ogr2ogr to convert it into shapefiles before. I use the latest option in production environment for speed reasons, as you can use spatial indexing on shapefiles. Le Tuesday 08 July 2008 11:56:14 P?l Kristensen, vous avez ?crit?: > Hi! > > You can build a tileindex with the gdaltindex utility, and then reference > the tileindex in a raster layer. You have to run the tileindex utility one > time for each sub folder > > gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ03/*.ja* > gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ04/*.ja* > > or for example make a small python script that runs recursively trough all > sub folders and executes the gdaltindex utility. > > I have done this to serve out many JOG products (complete CD's) in on > layer. The layer could then look something like this. > > LAYER > NAME "JOG_Mosaic" > STATUS ON > DEBUG 5 > TILEINDEX "rpf_jog.shp" > TILEITEM "Location" > TYPE RASTER > #MINSCALE 300000 > MAXSCALE 600000 > PROCESSING "RESAMPLE=AVERAGE" > #PROCESSING "RESAMPLE=BILINEAR" > PROCESSING "OVERSAMPLE_RATIO=8" # 8 improves the output image > greatly, could try other values > GROUP "JOG" > METADATA > "wms_title" "JOG Mosaic" > "wms_group_title" "JOG" > "wms_style" "Default" > END > PROJECTION > "init=epsg:4326" > END > END > > Admin-267 wrote: > > CADRG works only partialy, I have to add partial files with .ON2 or .ON3 > > extension as layers, not A.TOC file, which defines this files. > > > > For example: > > > > Now I have to write: > > LAYER > > NAME cadrg_1 > > TYPE RASTER > > DATA 'ONZ03\0001P011.ON3' > > STATUS DEFAULT > > END > > . > > . > > . > > LAYER > > NAME cadrg_n > > TYPE RASTER > > DATA 'ONZ03\0001P0nn.ON3' > > STATUS DEFAULT > > END > > > > But I would like to write: > > LAYER > > NAME cadrg_all > > TYPE RASTER > > DATA 'A.TOC' > > STATUS DEFAULT > > END > > > > I read that mapserver have CADRG/RPF support for TOC files, but how to > > enable it? > > Also, how to enable VPF support? I know, that i can convert VPF to SHP, > > but is there other solution? > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Jul 8 12:01:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Jul 2008 14:01:50 -0500 Subject: [mapserver-users] raster tiling of non rectangular images In-Reply-To: <856086.31991.qm@web23402.mail.ird.yahoo.com> References: <856086.31991.qm@web23402.mail.ird.yahoo.com> Message-ID: <4873734E.5157.008F.0@dnr.state.mn.us> I don't suppose there are shapefiles with Landsat footprints available that would help? If your data matched standard scene boundaries then perhaps you could build an index from that. ESRI's ArcWorld dataset had such a >>> On 7/8/2008 at 3:41 AM, in message <856086.31991.qm at web23402.mail.ird.yahoo.com>, victor valencia wrote: > Hi: > > I need to create a tileindex of several non-rectangular raster images. I > tried GdaltIndex, but produces rectangular polygons including the non-data > (Null) pixels. > These images i have are Landsat 7 saved as *.img, *.tiff, *.Sid. > These images are rhomboidal. Since the file is rectangular there is an area > with no valid pixels (non-data or Null). I need a boundary polygon that > exclude this pixels. > > I found an arcview 3x extension named Grid to Valid-pixel Polygon Catalog w > Stats, that creates a boundary polygons of the valid pixels, but works just > with Grid images. I could change the format of my images but this is very > very time consuming. > > Is there any script to create irregular bounding polygons (non-rectangular) > from the valid pixels for several images? > > Best regards > > Victor > > > > ______________________________________________ > Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. From boolean10001 at yahoo.com Tue Jul 8 12:13:33 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 8 Jul 2008 12:13:33 -0700 (PDT) Subject: [mapserver-users] Problems with simboloy using fonts Message-ID: <275619.74529.qm@web38203.mail.mud.yahoo.com> ? Greetings list, ? I'm using some ESRI true type fonts to make some simbology for my layers. Mapserver renders multiple characters instead the ones i choose. ? This is what i have: ? symbol ?? name "layer_1" ???type truetype ?? font "ers_infrastructures_stage_01" ?? character "C" end ers_infraestructures_stage_01 is an alias of the ers_v2_infraestructures_st1.ttf file. ? Can someone knows what's happening and how to solve this ? ? Thanks in advance ? ? IC Carlos Ruiz ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Tue Jul 8 16:03:43 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 8 Jul 2008 16:03:43 -0700 Subject: [mapserver-users] PostGIS connecton error In-Reply-To: <002101c8e125$75af6e50$610e4af0$@co.uk> References: <002101c8e125$75af6e50$610e4af0$@co.uk> Message-ID: <30fe546d0807081603q5aad2505gb8554ff79dce4228@mail.gmail.com> Both the_geom and gid (or whatever you declare are your geometry-holding and uid-holding columns) have to exist as output from your subquery, otherwise the code on the outside can't see them to make use of them. So change your DATA to DATA "the_geom from (SELECT the_geom,gid from medievalbattlefieldstable WHERE itemname LIKE '%Lewes%') as foo using unique gid using SRID=4326" P. On Tue, Jul 8, 2008 at 11:07 AM, Steve White wrote: > After much fiddling around I managed to install PostgreSQL with PostGIS and > set up a connection in a layer like this: > > > > MAP > > NAME Test > > STATUS ON > > UNITS METERS > > SHAPEPATH "C:\Inetpub\scripts\data\" > > IMAGECOLOR 0 255 255 > > SIZE 400 400 > > DEBUG ON > > IMAGETYPE PNG > > EXTENT -4.35 56.14 -3.23 > 56.91 > > DATAPATTERN '.*' > > > > WEB > > METADATA > > "wms_title" "Test MS" > > "wms_onlineresource" "http://localhost/scripts/mapserv.exe&" > > "wms_srs" "EPSG:4326 EPSG:54004 > EPSG:27700" > > "wms_feature_info_mime_type" "text/html" > > END > > > > IMAGEPATH "C:\Inetpub\wwwroot\tmp\" > > IMAGEURL "C:\Inetpub\wwwroot\tmp\" > > LOG > "C:\Inetpub\wwwroot\tmp\mapserver.log" > > TEMPLATE > "C:\Inetpub\wwwroot\OAMap\templates\template.html" > > EMPTY > "C:\Inetpub\wwwroot\OAMap\templates\template.html" > > > > END > > > > #QUERYMAP > > # STATUS ON > > # STYLE HILITE > > # COLOR 255 255 0 > > # SIZE 10 > > #END > > > > PROJECTION > > "init=epsg:4326" > > END > > > > SYMBOL > > NAME "circle" > > TYPE ellipse > > FILLED true > > POINTS > > 1 1 > > END > > END > > > > LAYER > > NAME > "test" > > CONNECTIONTYPE > postgis > > CONNECTION "user=oa > password=******* dbname=OA" > > METADATA > > "wms_title" "test" > > "gml_include_items" "all" > > "wms_include_items" "all" > > "wms_feature_info_mime_type" "text/html" > > END > > TYPE > POINT > > DATA > "the_geom from (SELECT the_geom from medievalbattlefieldstable WHERE > itemname LIKE '%Lewes%') as foo using unique gid using SRID=4326" > > > STATUS ON > > DUMP TRUE > > > > PROJECTION > > > > "init=epsg:4326" > > END > > CLASS > > TEMPLATE > "C:\Inetpub\wwwroot\OAMap\templates\template.html" > > SYMBOL "circle" > > SIZE 10 > > COLOR 255 0 255 > > END > > END #end of layer > > > > END # end of mapfile > > > > Here's the exception from MapServer: > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'test'. > > prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from > (SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE > '%Lewes%') as foo WHERE the_geom && > setSRID('BOX3D(-5.625 52.4827802220782,0 55.7765730186677)'::BOX3D, > 4326 )' > > > > Postgresql reports the error as 'ERROR: column "gid" does not > exist > > LINE 1: > ...inary(force_collection(force_2d(the_geom)),'NDR'),gid::text ... > > ^ > > ' > > > > More Help: > > > > Error with POSTGIS data variable. You specified 'check your .map > file'. > > Standard ways of specifiying are : > > (1) 'geometry_column from geometry_table' > > (2) 'geometry_column from (sub query) as foo using unique column name > using SRID=srid#' > > > > Make sure you put in the 'using unique column name' and 'using > SRID=#' clauses in. > > > > For more help, please see http://postgis.refractions.net/documentation/ > > > > Mappostgis.c - version of Jan 23/2004. > > > > > > > > > > As you can see, it says column 'gid' does not exist. This doesn't make any > sense to me because I can see a gid column in my table and it has been set > up as the PK. If I take out the sub query and just run it in the Query tool > using pgAdmin III it works! > > > > SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE '%Lewes%' > > > > Can anyone give me some clues what's going on here? > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mail_deamon at tlen.pl Tue Jul 8 22:36:58 2008 From: mail_deamon at tlen.pl (=?UTF-8?Q?Admin?=) Date: Wed, 09 Jul 2008 07:36:58 +0200 Subject: =?UTF-8?Q?[MAPSERVER-USERS]_Full_CADRG_and_VPF_support?= Message-ID: <158d0e98.6eb08aa.48744e7a.a2f13@o2.pl> Thank you! I will try your methods for CADRG. That means, that only problem which i have is with VPF. I tried to use FWTools, but it didn't work with my client aplication, I have to choose layer and when I use VPF layer I saw only blank screen, that strange, because FWTools have also MapServer. I will try to install ms4w and FWTools and change Apache configurtion to point GDAL path from FWTools. Maybe this will work. From gabmessner at gmail.com Wed Jul 9 01:05:17 2008 From: gabmessner at gmail.com (Gabriel Messner) Date: Wed, 9 Jul 2008 10:05:17 +0200 Subject: [mapserver-users] WFS_ENCODING problems Message-ID: <1708890c0807090105p1e128321j6d1fb38e194d802b@mail.gmail.com> Hi all, I?ve set up a WFS server with mapserver. Data is stored in Postgis database. Encoding settings are the followings: -Spatial Data Base encoding is UTF-8 -For each layer in the mapfile encofing is also UTF-8 indicated with 'layer_encoding' 'UTF-8' The server retuns successfully geometries and attributes but the the characters '?',?,?,?,?,? are missing (spanish). I?ve tried to solve this problem using 'wfs_encofing' 'UTF-8' into the Web object Metadata but when doing so and trying to add a wfs layer with UDig, an alert is displayed saying 'wrong connection parameters'. I?ve also tried with 'ows_endoding' and 'gml_encoding' at Web object Metadata but I fail as well. I?d hughly appreciated if anyone can help me. Thanks in advance. Gabriel Messner -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Wed Jul 9 01:08:08 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 09 Jul 2008 10:08:08 +0200 Subject: [mapserver-users] WFS_ENCODING problems In-Reply-To: <1708890c0807090105p1e128321j6d1fb38e194d802b@mail.gmail.com> References: <1708890c0807090105p1e128321j6d1fb38e194d802b@mail.gmail.com> Message-ID: <487471E8.6050802@neogeo-online.net> just an idea, but maybe check your client_encoding parameter in postgresql.conf I may be wrong, but I think that mapserver id acting as a client for the db, and may have the results returned into the client_encoding character set. Guillaume Gabriel Messner a ?crit : > Hi all, > > I?ve set up a WFS server with mapserver. Data is stored in Postgis > database. Encoding settings are the followings: > > > -Spatial Data Base encoding is UTF-8 > -For each layer in the mapfile encofing is also UTF-8 indicated with > 'layer_encoding' 'UTF-8' > > The server retuns successfully geometries and attributes but the the > characters '?',?,?,?,?,? are missing (spanish). > > I?ve tried to solve this problem using 'wfs_encofing' 'UTF-8' into the > Web object Metadata but when doing so and trying to add a wfs layer with > UDig, an alert is displayed saying 'wrong connection parameters'. I?ve > also tried with 'ows_endoding' and 'gml_encoding' at Web object > Metadata but I fail as well. > > I?d hughly appreciated if anyone can help me. > > Thanks in advance. > > Gabriel Messner > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From iacovlev.pavel at gmail.com Wed Jul 9 03:27:36 2008 From: iacovlev.pavel at gmail.com (Iacovlev Pavel) Date: Wed, 9 Jul 2008 13:27:36 +0300 Subject: [mapserver-users] Cut from raster data files Message-ID: <200807091327.36501.iacovlev.pavel@gmail.com> Good day all. I have some raster data (.tif & .tfw) and created the index file with gdal index. Now I need too "cut" a polygon (I input the polygin data x0,y0,x1,y1,x2,y2...xn,yn) from this raster files, it's ok if the resulting image is not transparent, but I need to preserve image type & dpi. What are the possible ways to do this ? thank you in advance Iacovlev Pavel. From temiz at deprem.gov.tr Wed Jul 9 05:25:49 2008 From: temiz at deprem.gov.tr (orkun) Date: Wed, 09 Jul 2008 15:25:49 +0300 Subject: [mapserver-users] confused on java mapscript Message-ID: <1215606350.7212.6.camel@orkun-desktop> hello I am confused on java mapscript QueryByPoint example which resides in the mapserver official site "Building and using Java Mapscript". which class do I have to import for this ? Map aResult = getResult(shape, layer); # gives incompatible types regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From oliver.christen at camptocamp.com Wed Jul 9 05:41:37 2008 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Wed, 9 Jul 2008 14:41:37 +0200 Subject: [mapserver-users] mapscript queryByPoint - tolerance depends of resolution ? Message-ID: <2A7451FF53BE4CF0BC85B033346C7A94@maunakea> Hi I have a problem when doing a queryByPoint with phpmapscript 4.10.1 By default, the resolution of my map is 96 dpi. I do a queryByPoint on a layer containing polygonal areas. The point is right in the middle of one area. I use a default tolerance (-1) corresponding, if I read correctly the documentation, to 3 pixels. The result obtained is the area containing the coordinates I used, it's absolutly normal and I get what I expect. Now, if I dynamicaly change the resolution of the map to 150 dpi and then do exactly the same queryByPoint as before, I get nothing! Mapserver consider there was nothing at the coordinate I provided. Then, if I redo the query, at 150 dpi, BUT with a tolerance set to 10 (instead of -1), I get a correct and expected result. So, somehow, Mapserver seems to make some very weird calculation with the tolerance and resolution which make it to believe there is nothing when then is something. have you ever heard of such behaviour? is that a bug? any help would be very welcome. thanks in advance Oliver From umberto.nicoletti at gmail.com Wed Jul 9 05:41:48 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 9 Jul 2008 14:41:48 +0200 Subject: [mapserver-users] confused on java mapscript In-Reply-To: <1215606350.7212.6.camel@orkun-desktop> References: <1215606350.7212.6.camel@orkun-desktop> Message-ID: <75b4b93e0807090541o1c9080ceh5ab016ca9d2a0683@mail.gmail.com> Orkun, you will have to code the getResult method yourself depending on your application requirements. It was intentionally left out from the code snippet as a in a 'fill the blanks' example. Sorry if it confused you. Regards, Umberto On Wed, Jul 9, 2008 at 2:25 PM, orkun wrote: > hello > > I am confused on java mapscript QueryByPoint example which > resides in the mapserver official site "Building and using Java > Mapscript". > > > which class do I have to import for this ? > > Map aResult = getResult(shape, layer); # gives incompatible types > > > > regards > > -- > Ahmet Temiz > Jeo. M?h. > Afet ??leri Gen. Md.l??? > Deprem Ar. D. > > Ahmet Temiz > Geo. Eng. > General Dir. of > Disaster Affairs > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From chander.ganesan at gmail.com Wed Jul 9 06:18:43 2008 From: chander.ganesan at gmail.com (Chander Ganesan) Date: Wed, 09 Jul 2008 09:18:43 -0400 Subject: [mapserver-users] Open Technology Group, Inc. announces UMN MapServer Training Message-ID: <4874BAB3.2000400@gmail.com> MORRISVILLE, NC - July 9, 2008 -- Open Technology Group, Inc. announces UMN MapServer Training The Open Technology Group, Inc, a leader in the development and delivery of training solutions centered about Open Source technologies, released the latest in its set of Open Source GIS training courses - Introduction to UMN MapServer. Designed around the University of Minnesota MapServer product, this course teaches students how to leverage Open Source technologies to deliver web map services. "Our enterprise customers are increasingly looking to move away from costly GIS technologies" said Chander Ganesan, President, "this course teaches them how to provide a wide range of Web Map Services without the high overheard of licensing fees". The Introduction to UMN MapServer course teaches students how to use UMN MapServer to provide visualization of GIS data as well as a wide range of web map services, including OGC Compliant Web Feature Services (WFS), and Web Map Services (WMS). The new class is available for both public enrollment and customized on-site delivery worldwide. ABOUT OPEN TECHNOLOGY GROUP, INC. Founded in 2004 and headquartered in Morrisville, NC, the Open Technology Group, Inc. (OTG) has established itself as the leading provider of training solutions centered about Open Source software and solutions. With its comprehensive library of in-house developed intellectual property, OTG is able to deliver comprehensive, customized, and structured training covering a wide range of software solutions. The Open Technology Group offers affordable customized on-site technology training worldwide, as well as public-enrollment courses in both Morrisville, NC and Santa Clara, CA. For more information, and a complete course catalog, visit us online at http://www.otg-nc.com/training-and-courses.php, or contact us at 877-258-8987 . From bartvde at osgis.nl Wed Jul 9 09:14:24 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed, 09 Jul 2008 18:14:24 +0200 Subject: [mapserver-users] did something change in reading in empty TAB files? Message-ID: <4874E3E0.90304@osgis.nl> Hi list, at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a problem with reading empty MapInfo TAB files, whereas in the past (4.6 for sure) this used to work. Is this issue known to someone? The error I get is: 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 expected 2 in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php on line 533 An example TAB file can be found here: www.osgis.nl/download/mapserver/gemgrens.zip Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From matthew.pettis at gmail.com Wed Jul 9 09:17:06 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Wed, 9 Jul 2008 11:17:06 -0500 Subject: [mapserver-users] Reprojection: Maps not lining up Message-ID: <82ba77b80807090917m719fd35cs88b6237848ddb55c@mail.gmail.com> Hi, I am using Openlayers with Mapserver to show a shapefile of roads in MN that are in epsg:26915 and allowing users to toggle between that and Google Maps (spherical Mercator projection per http://spatialreference.org/ref/user/google-projection/). I use mapserv.exe and a .map file to reproject the MN roads into the Google projection, and when I toggle between them, the extents *almost* match up. It appears that the MN roads extent covers a slightly larger area than the Google Maps extent. I don't know if this is an OpenLayers or Mapserver question, but I'm thinking it is a Mapserver one. Can anyone tell me why the extents *almost* match up? I would think that they would either match up almost exactly (or at least in a tolerance that I cannot tell by the naked eye), or I would have messed up my transformations, and it would be completely out of sync. Is it a function of disparities in the data that I cannot fix, or are there fine tunings that I can adjust to compensate? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Jul 9 09:39:35 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 09 Jul 2008 11:39:35 -0500 Subject: [mapserver-users] mapscript queryByPoint - tolerance depends ofresolution ? In-Reply-To: <2A7451FF53BE4CF0BC85B033346C7A94@maunakea> References: <2A7451FF53BE4CF0BC85B033346C7A94@maunakea> Message-ID: <4874A377.5157.008F.0@dnr.state.mn.us> Tolerance computations are based on cellsize. Resolution affects only scale computations, so it is not clear to me how one could affect the other. I just went through the code to verify. Is there any chance that layer scale limits are coming into play here and you're not querying the layer you think you are? Does the behavior persist in 5.x? If you can create a concise test case I'll gladly take a look. Steve >>> On 7/9/2008 at 7:41 AM, in message <2A7451FF53BE4CF0BC85B033346C7A94 at maunakea>, "Oliver Christen" wrote: > Hi > > I have a problem when doing a queryByPoint with phpmapscript 4.10.1 > > By default, the resolution of my map is 96 dpi. > I do a queryByPoint on a layer containing polygonal areas. The point is > right in the middle of one area. > I use a default tolerance (-1) corresponding, if I read correctly the > documentation, to 3 pixels. > > The result obtained is the area containing the coordinates I used, it's > absolutly normal and I get what I expect. > > Now, if I dynamicaly change the resolution of the map to 150 dpi and then do > > exactly the same queryByPoint as before, > I get nothing! > Mapserver consider there was nothing at the coordinate I provided. > > Then, if I redo the query, at 150 dpi, BUT with a tolerance set to 10 > (instead of -1), I get a correct and expected result. > > So, somehow, Mapserver seems to make some very weird calculation with the > tolerance and resolution which make it to believe there is nothing when then > > is something. > > have you ever heard of such behaviour? > is that a bug? > > any help would be very welcome. > > thanks in advance > Oliver > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Jul 9 09:59:17 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 9 Jul 2008 12:59:17 -0400 Subject: [mapserver-users] did something change in reading in empty TAB files? In-Reply-To: <4874E3E0.90304@osgis.nl> References: <4874E3E0.90304@osgis.nl> Message-ID: <3766B978-0161-4063-8D40-739C364A9970@gatewaygeomatics.com> On 9-Jul-08, at 12:14 PM, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a > problem with reading empty MapInfo TAB files, whereas in the past > (4.6 for sure) this used to work. Is this issue known to someone? > > The error I get is: > > 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: > msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 > expected 2 > in D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common > \wrapper\drawmap.php on line 533 > > An example TAB file can be found here: > www.osgis.nl/download/mapserver/gemgrens.zip > > Best regards, > Bart Bart, I tried your test TAB with ms4w 2.2.7 (GDAL 1.5.0 and Mapserver 5.0.2) and: 1) ogrinfo reads the tab normally, 2) shp2img created the blank map image properly with no errors, and 3) I modified /ms4w/Apache/ htdocs/quickmap.php to point to this test mapfile and it also correctly produced a blank map image in the browser. The key points in my test mapfile are: ... EXTENT 149999 349999 150000 350000 UNITS METERS ... LAYER NAME gemgrens TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "./gemgrens.TAB" CLASS NAME "gemgrens" STYLE COLOR 240 240 240 OUTLINECOLOR 199 199 199 END END END # layer --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From kevin.edmundson at wthtechnology.com Wed Jul 9 11:43:17 2008 From: kevin.edmundson at wthtechnology.com (Kevin Edmundson) Date: Wed, 9 Jul 2008 14:43:17 -0400 Subject: [mapserver-users] results window Message-ID: I am using the latest p.mapper application in a MS4W environment on MapServer 5.0.... My question is this. I am using the dynamic results window that has the list of layers with checkboxes...and then a list of results below that with checkboxes as well.....How would I alter the text that is next to each one of those checkboxes? Currently it looks like the application just takes the first defined column for that layer and puts that text there. I am performing a query on an address layer and the results screen just has house numbers listed and no other data. I would like to be able to concatenate more than one field for the label there, is that possible? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jd3 at renci.org Wed Jul 9 13:18:21 2008 From: jd3 at renci.org (John Overton) Date: Wed, 09 Jul 2008 16:18:21 -0400 Subject: [mapserver-users] libgd.a not found by configure script Message-ID: <48751D0D.20308@renci.org> Hello, I am building mapserv from source. But the configure script cannot find the gd libraries even though i can confirm they are in /usr/local/lib Here is the error display for the configure script: configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). I am using GD 2.0.35, and the configure script is finding all of the GD dependencies. I have seen this error on a google search, but I can't find where it is resolved. Thanks, JD From jancis2 at yahoo.com Wed Jul 9 15:44:11 2008 From: jancis2 at yahoo.com (Dzilberte Bekode) Date: Wed, 9 Jul 2008 15:44:11 -0700 (PDT) Subject: [mapserver-users] WFS-Mapscript Message-ID: <498160.85055.qm@web51903.mail.re2.yahoo.com> Hi everybody. I'm trying to handle WFS with Mapscript but it's not working for me. Output of the code below supose to be the name of the GML file, but it's only empty string. What's wrong?? CODE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: getLayerByName("MyWFS"); $GMLname= "= ".$kokot->executeWFSGetfeature()." ="; ?> WFS-pokus > MAPFILE:::::::::::::::::::::::::::::: MAP NAME "demoPlugins" SIZE 600 400 STATUS ON EXTENT -600000 -1334715 -159000 -1132715 IMAGECOLOR 255 255 255 UNITS METERS PROJECTION "init=EPSG:102067" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "msCross WFS Server" ## REQUIRED "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" ## Recommended "wfs_srs" "EPSG:102067 EPSG:3064 EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ## Recommended END END LEGEND STATUS EMBED KEYSIZE 20 15 END ########## # LAYERS # ########## LAYER NAME "MyWFS" CONNECTIONTYPE postgis CONNECTION "user=JAVLLAR password=kreator host=localhost dbname=SlovGis" DATA "the_geom FROM setl" METADATA WMS_SRS "EPSG:28992" "wfs_title" "MyWFS" ## REQUIRED "gml_featureid" "id" ## REQUIRED "gml_include_items" "id" ## Optional (serves all attributes for layer) END DUMP TRUE ## REQUIRED STATUS ON TYPE POINT CLASS NAME "WFSvrstva" STYLE SIZE 5 COLOR 0 0 0 END END END END Thanks for help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Wed Jul 9 18:10:47 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Wed, 9 Jul 2008 21:10:47 -0400 Subject: [mapserver-users] WFS-Mapscript References: <498160.85055.qm@web51903.mail.re2.yahoo.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC29E@ecburexch1.ontario.int.ec.gc.ca> This works on layers of CONNECTIONTYPE WFS (i.e. MapServer fetches from the remote WFS). When I try your PHP code against the following layer def: LAYER NAME envirodat GROUP "VECTOR" TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" PROJECTION "init=epsg:4326" END METADATA "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_version" "1.0.0" "wfs_service" "WFS" "wfs_typename" "envirodat" "wfs_latlonboundingbox" "-64.6622 46.7594 -52.6808 55.2333" END CLASS NAME "Water Quality Monitoring Stations" COLOR 255 255 0 END END I get back the path to the resulting GML file as defined in http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj. Hope this helps. ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Dzilberte Bekode Sent: Wed 09-Jul-08 18:44 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WFS-Mapscript Hi everybody. I'm trying to handle WFS with Mapscript but it's not working for me. Output of the code below supose to be the name of the GML file, but it's only empty string. What's wrong?? CODE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: getLayerByName("MyWFS"); $GMLname= "= ".$kokot->executeWFSGetfeature()." ="; ?> WFS-pokus > MAPFILE:::::::::::::::::::::::::::::: MAP NAME "demoPlugins" SIZE 600 400 STATUS ON EXTENT -600000 -1334715 -159000 -1132715 IMAGECOLOR 255 255 255 UNITS METERS PROJECTION "init=EPSG:102067" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "msCross WFS Server" ## REQUIRED "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" ## Recommended "wfs_srs" "EPSG:102067 EPSG:3064 EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ## Recommended END END LEGEND STATUS EMBED KEYSIZE 20 15 END ########## # LAYERS # ########## LAYER NAME "MyWFS" CONNECTIONTYPE postgis CONNECTION "user=JAVLLAR password=kreator host=localhost dbname=SlovGis" DATA "the_geom FROM setl" METADATA WMS_SRS "EPSG:28992" "wfs_title" "MyWFS" ## REQUIRED "gml_featureid" "id" ## REQUIRED "gml_include_items" "id" ## Optional (serves all attributes for layer) END DUMP TRUE ## REQUIRED STATUS ON TYPE POINT CLASS NAME "WFSvrstva" STYLE SIZE 5 COLOR 0 0 0 END END END END Thanks for help. From Steve.Lime at dnr.state.mn.us Wed Jul 9 19:37:34 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 09 Jul 2008 21:37:34 -0500 Subject: [mapserver-users] MapServer 5.2 Release Candidate 1 Available Message-ID: <48752F9E0200008F000197BD@co5.dnr.state.mn.us> Hi folks: MapServer 5.2 RC 1 has just been released. The source package is available for download at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since 5.0 can be found at the end this message. This is a significant release so we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be relatively easy for folks to test. Please let us know how it goes! This is the 1st, and perhaps only, release candidate (we hope) and if all goes well the final release will be next week. More details can be found in the 5.2 release plan at: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ Steve Version 5.2.0-rc1 (2008-07-09): ------------------------------------- - mapowscommon.c: fix support multiple namespaces (#2690) - Fix OGC simple filters on SDE layers (#2685) - wfs11 getcapabilities: correct memory corruption (#2686) - Allow building against Curl 7.10.6 and older which lack CURLOPT_PROXYAUTH option required for *_proxy_auth_type metadata (#571) - Avoid fatal error when creating new ShapeFileObj with MapScript (#2674) - Fixed problem with WMS INIMAGE exceptions vs AGG output formats (#2438) - mapshape.c: Fixed integer pointer math being applied to uchars (#2667) - Fixed seg fault with saveImage() in PHP MapScript due to #2673 (#2677) - Fixed configure error related to new fribidi2 pkg-config support (#2664) - Fixed windows build problem (#2676) - Fix raster query bounds problem (#2679) From gwatmuff at geographicweb.com.au Wed Jul 9 21:23:07 2008 From: gwatmuff at geographicweb.com.au (Graeme Watmuff) Date: Thu, 10 Jul 2008 13:53:07 +0930 Subject: [mapserver-users] New limitations with mapserver 5 CGI Message-ID: <1215663787.2513.112.camel@bongolx.ringo.net> It has become apparent through some frustrating moments of trial and error that many of the mapfile variables that were changeable via URL with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. There is a hint from the docs that this is because of security concerns? Our java apps don't allow web users to directly interact with the CGI, so security doesn't seem so important in our case. Some examples: map_web_metadata='text1' 'text2' map_layerName_filter= map_layerName_tileindex= map_layerName_data= allow changes to the mapfile via URL with mapserver 4.10.x Following the new syntax specified for v5 + I had expected map_web=metadata+"'text1' 'text2'" or maybe map_web_metadata[0]='text1'+'text2', map_layer[layerName]=filter+, map_layer[layerName]=tileindex+, map_layer[layerName]=data+ to all perform in the time-honoured way. Only 'data' could be changed with this new mapserver 5 syntax. I happened to discover through the change logs that changing tileindex was reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax (map_layerName_tileindex)= - not the new mapserver 5 syntax style (map_layer[layerName]=tileindex+). mapserv 5 CGI throws an error (Parsing error near (filter)) when the new syntax is used for filter and ignores the old 4.10 filter syntax. No URL syntax for changing the web object's metadata content appears acceptable to the mapserver 5. I would dearly like to see changing the layer filter via URL restored also to mapserver 5. And the web object's metadata setting functionality too. Can anyone indicate what mapfile properties are or are not going to be reinstated in mapserver 5 compared to mapserver 4 for change via URL? Obviously this has development ramifications for us when we try to upgrade mapserver. Alternatively, am I missing something with new mapserver 5 syntax? Graeme Watmuff -- Graeme Watmuff Geographic Web Solutions Pty Ltd 17 Tay Road Woodforde South Australia 5072 ph: + 61 8 83364463 From paulborodaev at gmail.com Wed Jul 9 22:49:41 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Wed, 9 Jul 2008 22:49:41 -0700 (PDT) Subject: [MAPSERVER-USERS] new release of ms4w. When? Message-ID: <18376361.post@talk.nabble.com> Just waiting for new release of ms4w (upon mapserver 5.2 release). Is there any plans? (I need new mapscript c# most of all) -- View this message in context: http://www.nabble.com/new-release-of-ms4w.-When--tp18376361p18376361.html Sent from the Mapserver - User mailing list archive at Nabble.com. From florian.thuerkow at ufz.de Wed Jul 9 23:32:05 2008 From: florian.thuerkow at ufz.de (Florian Thuerkow) Date: Thu, 10 Jul 2008 08:32:05 +0200 Subject: [mapserver-users] libgd.a not found by configure script In-Reply-To: <48751D0D.20308@renci.org> References: <48751D0D.20308@renci.org> Message-ID: <4875ACE5.3050704@ufz.de> Hi John, please send us your configuration line. maybe you have to install the libgd2-dev package? best regards, florian thuerkow John Overton schrieb: > Hello, > > I am building mapserv from source. But the configure script cannot > find the gd libraries even though i can confirm they are in > /usr/local/lib Here is the error display for the configure script: > > > configure: checking for GD 2.0.16 or higher... > checking for gdFontCacheSetup in -lgd... no > configure: checking whether GD needs libiconv... > checking for gdFontCacheSetup in -lgd... no > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local. Make sure GD 2.0.16 or higher is compiled before calling > configure. You may also get this error if you didn't specify the > appropriate location for one of GD's dependencies (freetype, libpng, > libjpeg or libiconv). > > I am using GD 2.0.35, and the configure script is finding all of the > GD dependencies. I have seen this error on a google search, but I > can't find where it is resolved. > > Thanks, > JD > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Florian Thuerkow, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig http://www.ufz.de - eMail: florian.thuerkow at ufz.de Information nach ?? 37a HGB, 35a GmbHG: Sitz der Gesellschaft: Leipzig Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703 Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Gr?bel Wissenschaftlicher Gesch?ftsf?hrer: Prof. Dr. Georg Teutsch Administrativer Gesch?ftsf?hrer: Dr. Andreas Schmidt From fabian.rami at wowcompany.com Thu Jul 10 00:26:07 2008 From: fabian.rami at wowcompany.com (Fabian Rami) Date: Thu, 10 Jul 2008 09:26:07 +0200 Subject: [mapserver-users] [Scalebar] Wrong values Message-ID: <4875B98F.1060708@wowcompany.com> Hi everyone, I have a mistake with the scalebar. When i use the demo with my mapfile i have meters for europe level , centimeters for country level and kilometers for street level. I still a beginner with MapServer so if you see something wrong please tell me :) I use Teleatlas data, i have found the specification of the data : Projection: Geographic (not projected) Datum WGS84 (labeled GCS_WGS_1984 in ESRI products) Paramaters: ?GEOGCS["GCS_WGS_1984", ?DATUM["D_WGS_1984", ?SPHEROID["WGS_1984",6378137,298.257223563]], ?PRIMEM["Greenwich",0], ?UNIT["Degree",0.017453292519943295]] THANKS FOR YOUR HELP :o) For the europe.map file i have the following : MAP NAME "EUROPE" EXTENT -12.85 27.22 18.42 55.06 DEBUG ON STATUS ON #SIZE 990 684 IMAGECOLOR 250 245 200 SHAPEPATH "C:\12map\Carto\TeleAtlas" FONTSET "C:\12map\Fonts\fonts.list" SYMBOLSET "C:\12map\Symbols\Symbols35.sym" UNITS Meters IMAGETYPE gif OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB METADATA "max_extents" "-12.85 27.22 18.42 55.06" # Limite gauche | limite bas | limite droite | Limite haut END TEMPLATE mapQuery.htm IMAGEPATH "C:\ms4w\Apache\htdocs\tmp\" IMAGEURL "/tmp/" END QUERYMAP STYLE HILITE COLOR 255 0 0 END LEGEND STATUS ON IMAGECOLOR 192 192 192 LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 10 ANTIALIAS TRUE END END #******************************************************************************* # Outer World # ----------- #******************************************************************************* LAYER NAME "Outer World" DATA "outerworld" STATUS DEFAULT TYPE POLYGON MAXSCALE 100 MINSCALE 0 CLASS COLOR 154 204 255 END END #******************************************************************************* # COUNTRY : Belgique # ------- #******************************************************************************* LAYER NAME "BEL - Land Use" TILEINDEX "BEL\lu\bel_lu" STATUS DEFAULT TYPE POLYGON MAXSCALE 4 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 4 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '7170' OR '[FEATTYP]' eq '9744') COLOR 120 172 117 # Vert END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '7170' OR '[FEATTYP]' eq '9744') COLOR 120 172 117 # Vert LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 4 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9720' OR '[FEATTYP]' eq '9715' OR '[FEATTYP]' eq '9732' OR '[FEATTYP]' eq '9771') COLOR 153 153 153 END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9720' OR '[FEATTYP]' eq '9715' OR '[FEATTYP]' eq '9732' OR '[FEATTYP]' eq '9771') COLOR 153 153 153 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 2 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9353' OR '[FEATTYP]' eq '9731' OR '[FEATTYP]' eq '7110' OR '[FEATTYP]' eq '9745' OR '[FEATTYP]' eq '9748' OR '[FEATTYP]' eq '9754' OR '[FEATTYP]' eq '9761' OR '[FEATTYP]' eq '9767' OR '[FEATTYP]' eq '9768' OR '[FEATTYP]' eq '9790' OR '[FEATTYP]' eq '9776' ) COLOR 192 192 192 END CLASS MAXSCALE 0.2999999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9353' OR '[FEATTYP]' eq '9731' OR '[FEATTYP]' eq '7110' OR '[FEATTYP]' eq '9745' OR '[FEATTYP]' eq '9748' OR '[FEATTYP]' eq '9754' OR '[FEATTYP]' eq '9761' OR '[FEATTYP]' eq '9767' OR '[FEATTYP]' eq '9768' OR '[FEATTYP]' eq '9790' OR '[FEATTYP]' eq '9776' ) COLOR 192 192 192 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 2 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 153 153 153 END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 153 153 153 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 3 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 254 254 204 END CLASS MAXSCALE 3 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 254 254 204 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Land Cover" TILEINDEX "BEL\lc\bel_lc" STATUS DEFAULT TYPE POLYGON MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '7120') COLOR 102 204 153 # Vert END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '7120') COLOR 102 204 153 # Vert LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 7 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9710') COLOR 204 204 102 # jaune END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9710') COLOR 204 204 102 # jaune LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 7 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9725') COLOR 153 204 102 # kaki END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9725') COLOR 153 204 102 # kaki LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Water Polygones" TILEINDEX "BEL\wa\bel_wa" STATUS DEFAULT TYPE POLYGON MAXSCALE 100 MINSCALE 0 LABELITEM "NAME" CLASS NAME "Rivers and lakes high" COLOR 154 204 255 MAXSCALE 100 MINSCALE 4 EXPRESSION ('[DISPCLASS]' < '2') END CLASS MAXSCALE 4 MINSCALE 0 NAME "Rivers and lakes" COLOR 154 204 255 LABEL COLOR 51 102 204 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana_italic SIZE 8 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Water Lines" TILEINDEX "BEL\wl\bel_wl" STATUS DEFAULT TYPE LINE MAXSCALE 4 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 4 MINSCALE 0 COLOR 154 204 255 MINSIZE 10 LABEL COLOR 51 102 204 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana_italic SIZE 7 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Administrative Boundaries 2" TILEINDEX "BEL\a2\bel_a2" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 13 MINSCALE 9 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Administrative Boundaries 7" TILEINDEX "BEL\a7\bel_a7" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 100 MINSCALE 4 EXPRESSION ('[ID]' eq '10560032000040') LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 15 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 8.99999 MINSCALE 5 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Administrative Boundaries 8" TILEINDEX "BEL\a8\bel_a8" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 4.99999 MINSCALE 2 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END LAYER NAME "BEL - Administrative Boundaries 8 - High POPCLASS" TILEINDEX "BEL\a8\bel_a8" STATUS DEFAULT TYPE annotation LABELITEM "NAME" CLASS EXPRESSION ('[POPCLASS]' < '4') MAXSCALE 100 MINSCALE 5 SYMBOL 'circle' SIZE 4 COLOR 0 0 0 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION ur ANGLE auto END END END #******************************************************************************* LAYER NAME "BEL - Administrative Boundaries 9" TILEINDEX "BEL\a9\bel_a9" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 1.99999 MINSCALE 0 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "BEL - Administrative Boundaries 0" TILEINDEX "BEL\a0\bel_a0" STATUS DEFAULT MAXSCALE 100 MINSCALE 0 TYPE POLYGON LABELITEM "NAME" CLASS EXPRESSION ('[ORDER00]' eq '$BE') MAXSCALE 100 MINSCALE 0 COLOR 154 204 255 END CLASS EXPRESSION ('[ORDER00]' ne '$BE') MAXSCALE 100 MINSCALE 15 OUTLINECOLOR 0 50 50 LABEL COLOR 0 50 50 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT verdana_bold SIZE 9 ANTIALIAS TRUE FORCE TRUE POSITION CC BUFFER 2 END END CLASS EXPRESSION ('[ORDER00]' ne '$BE') MAXSCALE 14.99999 MINSCALE 0 OUTLINECOLOR 0 0 0 SYMBOL "dashed1" SIZE 1.5 END END #******************************************************************************* LAYER NAME "BEL - Rail Roads" TILEINDEX "BEL\rr\bel_rr" STATUS DEFAULT TYPE LINE MAXSCALE 2 MINSCALE 0 CLASS NAME "RailRoads" MAXSCALE 2 MINSCALE 0.1 SYMBOL 'circle' COLOR 0 0 0 SIZE 3 OVERLAYSYMBOL 'dcircle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2.5 END CLASS MAXSCALE 0.099999 MINSCALE 0 SYMBOL 'circle' COLOR 0 0 0 SIZE 5 OVERLAYSYMBOL 'dcircle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END END #******************************************************************************* LAYER NAME "BEL - Streets 8" TILEINDEX "BEL\08\bel_08" STATUS DEFAULT TYPE LINE MAXSCALE 0.20 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.199999 COLOR 204 153 102 SYMBOL 'circle' SIZE 1 END CLASS MAXSCALE 0.20 MINSCALE 0.099999 COLOR 204 153 102 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.10 MINSCALE 0.05 COLOR 204 153 102 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 SYMBOL 'circle' COLOR 204 153 102 SIZE 9 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 7 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 204 153 102 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Streets 7" TILEINDEX "BEL\07\bel_07" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.199999 COLOR 153 153 153 SYMBOL 'circle' SIZE 1 END CLASS MAXSCALE 0.20 MINSCALE 0.099999 COLOR 153 153 153 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.10 MINSCALE 0.05 COLOR 153 153 153 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 SYMBOL 'circle' COLOR 153 153 153 SIZE 9 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 7 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Streets 6" TILEINDEX "BEL\06\bel_06" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.199999 COLOR 153 153 153 SYMBOL 'circle' SIZE 1 END CLASS MAXSCALE 0.20 MINSCALE 0.099999 COLOR 153 153 153 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.10 MINSCALE 0.05 COLOR 153 153 153 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 SYMBOL 'circle' COLOR 153 153 153 SIZE 9 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 7 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Streets 5" TILEINDEX "BEL\05\bel_05" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.4 COLOR 153 153 153 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.399999 MINSCALE 0.2 SYMBOL 'circle' COLOR 153 153 153 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 SYMBOL 'circle' COLOR 153 153 153 SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.09999 MINSCALE 0.05 SYMBOL 'circle' COLOR 153 153 153 SIZE 8 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 12 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Streets 4" TILEINDEX "BEL\04\bel_04" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.4 COLOR 153 153 153 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.399999 MINSCALE 0.2 SYMBOL 'circle' COLOR 153 153 153 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 SYMBOL 'circle' COLOR 153 153 153 SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.09999 MINSCALE 0.05 SYMBOL 'circle' COLOR 153 153 153 SIZE 8 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 12 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Main Highways 3" TILEINDEX "BEL\03\bel_03" STATUS DEFAULT TYPE LINE MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 3.5 COLOR 255 0 0 SIZE 1 END CLASS MAXSCALE 3.499999 MINSCALE 0.6 COLOR 255 0 0 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.59999 MINSCALE 0.2 SYMBOL 'circle' COLOR 255 0 0 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 COLOR 255 0 0 SYMBOL 'circle' SIZE 6 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.099999 MINSCALE 0.050000 COLOR 255 0 0 SYMBOL 'circle' SIZE 10 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 4 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 COLOR 255 0 0 SYMBOL 'circle' SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 COLOR 255 0 0 SYMBOL 'circle' SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 8 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Main Highways 2" TILEINDEX "BEL\02\bel_02" STATUS DEFAULT TYPE LINE MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 3.5 COLOR 255 0 0 SIZE 1 END CLASS MAXSCALE 3.499999 MINSCALE 0.6 COLOR 255 0 0 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.59999 MINSCALE 0.2 SYMBOL 'circle' COLOR 255 0 0 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 COLOR 255 0 0 SYMBOL 'circle' SIZE 6 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.099999 MINSCALE 0.050000 COLOR 255 0 0 SYMBOL 'circle' SIZE 10 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 4 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 COLOR 255 0 0 SYMBOL 'circle' SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 COLOR 255 0 0 SYMBOL 'circle' SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 8 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Main Highways 1" TILEINDEX "BEL\01\bel_01" STATUS DEFAULT TYPE LINE MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 3.5 COLOR 255 0 0 SIZE 1 END CLASS MAXSCALE 3.499999 MINSCALE 0.6 COLOR 255 0 0 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.59999 MINSCALE 0.2 SYMBOL 'circle' COLOR 255 0 0 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 COLOR 255 0 0 SYMBOL 'circle' SIZE 6 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.099999 MINSCALE 0.050000 COLOR 255 0 0 SYMBOL 'circle' SIZE 10 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 4 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 COLOR 255 0 0 SYMBOL 'circle' SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 COLOR 255 0 0 SYMBOL 'circle' SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 8 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "BEL - Main Highways 0" TILEINDEX "BEL\00\bel_00" STATUS DEFAULT TYPE LINE MAXSCALE 20 MINSCALE 0 LABELITEM "ROUTENUM" CLASS MAXSCALE 20 MINSCALE 13 COLOR 255 100 0 SYMBOL 'circle' SIZE 2 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 150 TYPE TRUETYPE FONT verdana_bold SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 13 MINSCALE 3.5 COLOR 255 51 0 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 1 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 150 TYPE TRUETYPE FONT verdana_bold SIZE 7 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 3.499999 MINSCALE 0.4 COLOR 255 51 0 SYMBOL 'circle' SIZE 4 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 2 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana_bold SIZE 8 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 0.399999 MINSCALE 0.05 COLOR 255 51 0 SYMBOL 'circle' SIZE 8 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 4 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana_bold SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 0.049999 MINSCALE 0 SYMBOL 'circle' COLOR 255 51 0 SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 10 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana_bold SIZE 11 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* # COUNTRY : Luxembourg # ------- #******************************************************************************* LAYER NAME "LUX - Land Use" TILEINDEX "LUX\lu\lux_lu" STATUS DEFAULT TYPE POLYGON MAXSCALE 4 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 4 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '7170' OR '[FEATTYP]' eq '9744') COLOR 120 172 117 # Vert END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '7170' OR '[FEATTYP]' eq '9744') COLOR 120 172 117 # Vert LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 4 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9720' OR '[FEATTYP]' eq '9715' OR '[FEATTYP]' eq '9732' OR '[FEATTYP]' eq '9771') COLOR 153 153 153 END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9720' OR '[FEATTYP]' eq '9715' OR '[FEATTYP]' eq '9732' OR '[FEATTYP]' eq '9771') COLOR 153 153 153 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 2 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9353' OR '[FEATTYP]' eq '9731' OR '[FEATTYP]' eq '7110' OR '[FEATTYP]' eq '9745' OR '[FEATTYP]' eq '9748' OR '[FEATTYP]' eq '9754' OR '[FEATTYP]' eq '9761' OR '[FEATTYP]' eq '9767' OR '[FEATTYP]' eq '9768' OR '[FEATTYP]' eq '9790' OR '[FEATTYP]' eq '9776' ) COLOR 192 192 192 END CLASS MAXSCALE 0.2999999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9353' OR '[FEATTYP]' eq '9731' OR '[FEATTYP]' eq '7110' OR '[FEATTYP]' eq '9745' OR '[FEATTYP]' eq '9748' OR '[FEATTYP]' eq '9754' OR '[FEATTYP]' eq '9761' OR '[FEATTYP]' eq '9767' OR '[FEATTYP]' eq '9768' OR '[FEATTYP]' eq '9790' OR '[FEATTYP]' eq '9776' ) COLOR 192 192 192 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 2 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 153 153 153 END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 153 153 153 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 3 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 254 254 204 END CLASS MAXSCALE 3 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9737' OR '[FEATTYP]' eq '9738' OR '[FEATTYP]' eq '9739' OR '[FEATTYP]' eq '9740' OR '[FEATTYP]' eq '9742' OR '[FEATTYP]' eq '9743' OR '[FEATTYP]' eq '9753' OR '[FEATTYP]' eq '9762') COLOR 254 254 204 LABEL COLOR 0 51 153 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "LUX - Land Cover" TILEINDEX "LUX\lc\lux_lc" STATUS DEFAULT TYPE POLYGON MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '7120') COLOR 102 204 153 # Vert END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '7120') COLOR 102 204 153 # Vert LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 7 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9710') COLOR 204 204 102 # jaune END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9710') COLOR 204 204 102 # jaune LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 7 MINSCALE 0.3 EXPRESSION ('[FEATTYP]' eq '9725') COLOR 153 204 102 # kaki END CLASS MAXSCALE 0.299999 MINSCALE 0 EXPRESSION ('[FEATTYP]' eq '9725') COLOR 153 204 102 # kaki LABEL COLOR 0 102 51 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "LUX - Water Polygones" TILEINDEX "LUX\wa\lux_wa" STATUS DEFAULT TYPE POLYGON MAXSCALE 100 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 4 MINSCALE 0 NAME "Rivers and lakes" COLOR 154 204 255 LABEL COLOR 51 102 204 OUTLINECOLOR 255 255 255 TYPE TRUETYPE MINDISTANCE 150 FONT verdana_italic SIZE 8 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "LUX - Administrative Boundaries 1" TILEINDEX "LUX\a1\lux_a1" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 13 MINSCALE 9 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "LUX - Administrative Boundaries 4" TILEINDEX "LUX\a7\lux_a7" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 8.99999 MINSCALE 5 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "LUX - Administrative Boundaries 8" TILEINDEX "LUX\a8\lux_a8" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 4.99999 MINSCALE 2 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END LAYER NAME "LUX - Administrative Boundaries 8 - High POPCLASS" TILEINDEX "LUX\a8\lux_a8" STATUS DEFAULT TYPE annotation LABELITEM "NAME" CLASS EXPRESSION ('[POPCLASS]' < '4') MAXSCALE 100 MINSCALE 5 SYMBOL 'circle' SIZE 4 COLOR 0 0 0 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION ur ANGLE auto END END END #******************************************************************************* LAYER NAME "LUX - Administrative Boundaries 9" TILEINDEX "LUX\a9\lux_a9" STATUS DEFAULT TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 1.99999 MINSCALE 0 OUTLINECOLOR 0 100 150 SYMBOL 'dashed3' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END #******************************************************************************* LAYER NAME "LUX - Administrative Boundaries 0" TILEINDEX "LUX\a0\lux_a0" STATUS DEFAULT MAXSCALE 100 MINSCALE 0 TYPE POLYGON LABELITEM "NAME" CLASS MAXSCALE 100 MINSCALE 15 OUTLINECOLOR 0 50 50 LABEL COLOR 0 50 50 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT verdana_bold SIZE 9 ANTIALIAS TRUE FORCE TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 14.99999 MINSCALE 0 OUTLINECOLOR 0 0 0 SYMBOL "dashed1" SIZE 1.5 END END #******************************************************************************* LAYER NAME "LUX - Rail Roads" TILEINDEX "LUX\rr\lux_rr" STATUS DEFAULT TYPE LINE MAXSCALE 2 MINSCALE 0 CLASS MAXSCALE 2 MINSCALE 0.1 SYMBOL 'circle' COLOR 0 0 0 SIZE 3 OVERLAYSYMBOL 'dcircle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2.5 END CLASS MAXSCALE 0.099999 MINSCALE 0 SYMBOL 'circle' COLOR 0 0 0 SIZE 5 OVERLAYSYMBOL 'dcircle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END END #******************************************************************************* LAYER NAME "LUX - Streets 8" TILEINDEX "LUX\08\lux_08" STATUS DEFAULT TYPE LINE MAXSCALE 0.20 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.199999 COLOR 204 153 102 SYMBOL 'circle' SIZE 1 END CLASS MAXSCALE 0.20 MINSCALE 0.099999 COLOR 204 153 102 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.10 MINSCALE 0.05 COLOR 204 153 102 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 SYMBOL 'circle' COLOR 204 153 102 SIZE 9 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 7 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 204 153 102 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Streets 7" TILEINDEX "LUX\07\lux_07" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.199999 COLOR 153 153 153 SYMBOL 'circle' SIZE 1 END CLASS MAXSCALE 0.20 MINSCALE 0.099999 COLOR 153 153 153 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.10 MINSCALE 0.05 COLOR 153 153 153 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 SYMBOL 'circle' COLOR 153 153 153 SIZE 9 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 7 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Streets 6" TILEINDEX "LUX\06\lux_06" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.199999 COLOR 153 153 153 SYMBOL 'circle' SIZE 1 END CLASS MAXSCALE 0.20 MINSCALE 0.099999 COLOR 153 153 153 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.10 MINSCALE 0.05 COLOR 153 153 153 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 SYMBOL 'circle' COLOR 153 153 153 SIZE 9 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 7 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Streets 5" TILEINDEX "LUX\05\lux_05" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.4 COLOR 153 153 153 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.399999 MINSCALE 0.2 SYMBOL 'circle' COLOR 153 153 153 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 SYMBOL 'circle' COLOR 153 153 153 SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.09999 MINSCALE 0.05 SYMBOL 'circle' COLOR 153 153 153 SIZE 8 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 12 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Streets 4" TILEINDEX "LUX\04\lux_04" STATUS DEFAULT TYPE LINE MAXSCALE 0.60 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 0.60 MINSCALE 0.4 COLOR 153 153 153 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.399999 MINSCALE 0.2 SYMBOL 'circle' COLOR 153 153 153 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 SYMBOL 'circle' COLOR 153 153 153 SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 END CLASS MAXSCALE 0.09999 MINSCALE 0.05 SYMBOL 'circle' COLOR 153 153 153 SIZE 8 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025 SYMBOL 'circle' COLOR 153 153 153 SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 10 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 SYMBOL 'circle' COLOR 153 153 153 SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 12 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Main Highways 3" TILEINDEX "LUX\03\lux_03" STATUS DEFAULT TYPE LINE MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 3.5 COLOR 255 0 0 SIZE 1 END CLASS MAXSCALE 3.499999 MINSCALE 0.6 COLOR 255 0 0 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.59999 MINSCALE 0.2 SYMBOL 'circle' COLOR 255 0 0 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 COLOR 255 0 0 SYMBOL 'circle' SIZE 6 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.099999 MINSCALE 0.050000 COLOR 255 0 0 SYMBOL 'circle' SIZE 10 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 4 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 COLOR 255 0 0 SYMBOL 'circle' SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 COLOR 255 0 0 SYMBOL 'circle' SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 8 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Main Highways 2" TILEINDEX "LUX\02\lux_02" STATUS DEFAULT TYPE LINE MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 3.5 COLOR 255 0 0 SIZE 1 END CLASS MAXSCALE 3.499999 MINSCALE 0.6 COLOR 255 0 0 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.59999 MINSCALE 0.2 SYMBOL 'circle' COLOR 255 0 0 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 COLOR 255 0 0 SYMBOL 'circle' SIZE 6 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.099999 MINSCALE 0.050000 COLOR 255 0 0 SYMBOL 'circle' SIZE 10 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 4 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 COLOR 255 0 0 SYMBOL 'circle' SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 COLOR 255 0 0 SYMBOL 'circle' SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 8 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Main Highways 1" TILEINDEX "LUX\01\lux_01" STATUS DEFAULT TYPE LINE MAXSCALE 7 MINSCALE 0 LABELITEM "NAME" CLASS MAXSCALE 7 MINSCALE 3.5 COLOR 255 0 0 SIZE 1 END CLASS MAXSCALE 3.499999 MINSCALE 0.6 COLOR 255 0 0 SYMBOL 'circle' SIZE 2 END CLASS MAXSCALE 0.59999 MINSCALE 0.2 SYMBOL 'circle' COLOR 255 0 0 SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 1 END CLASS MAXSCALE 0.199999 MINSCALE 0.1 COLOR 255 0 0 SYMBOL 'circle' SIZE 6 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 7 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.099999 MINSCALE 0.050000 COLOR 255 0 0 SYMBOL 'circle' SIZE 10 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 4 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.049999 MINSCALE 0.025000 COLOR 255 0 0 SYMBOL 'circle' SIZE 12 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 6 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END CLASS MAXSCALE 0.024999 MINSCALE 0 COLOR 255 0 0 SYMBOL 'circle' SIZE 14 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 8 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS true BUFFER 0 END END END #******************************************************************************* LAYER NAME "LUX - Main Highways 0" TILEINDEX "LUX\00\lux_00" STATUS DEFAULT TYPE LINE MAXSCALE 20 MINSCALE 0 LABELITEM "ROUTENUM" CLASS MAXSCALE 20 MINSCALE 13 COLOR 255 100 0 SYMBOL 'circle' SIZE 2 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 150 TYPE TRUETYPE FONT verdana_bold SIZE 6 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 13 MINSCALE 7 COLOR 255 51 0 SYMBOL 'circle' SIZE 3 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 1 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 150 TYPE TRUETYPE FONT verdana_bold SIZE 7 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS NAME "Motorways" MAXSCALE 6.999999 MINSCALE 3.5 COLOR 255 51 0 SYMBOL 'circle' SIZE 3.5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 1.5 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 150 TYPE TRUETYPE FONT verdana_bold SIZE 8 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 3.499999 MINSCALE 0.4 COLOR 255 51 0 SYMBOL 'circle' SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 2 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana_bold SIZE 8 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 0.399999 MINSCALE 0.05 COLOR 255 51 0 SYMBOL 'circle' SIZE 8 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 4 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana_bold SIZE 10 ANTIALIAS TRUE POSITION CC BUFFER 2 END END CLASS MAXSCALE 0.049999 MINSCALE 0 SYMBOL 'circle' COLOR 255 51 0 SIZE 11 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 221 0 OVERLAYSIZE 8 LABEL OUTLINECOLOR 0 120 0 COLOR 255 255 255 MINDISTANCE 200 TYPE TRUETYPE FONT verdana_bold SIZE 11 ANTIALIAS TRUE POSITION CC BUFFER 2 END END END END From fabian.rami at wowcompany.com Thu Jul 10 02:28:26 2008 From: fabian.rami at wowcompany.com (Fabian Rami) Date: Thu, 10 Jul 2008 11:28:26 +0200 Subject: [mapserver-users] [Scalebar] Wrong values In-Reply-To: <4875B98F.1060708@wowcompany.com> References: <4875B98F.1060708@wowcompany.com> Message-ID: <4875D63A.2060401@wowcompany.com> Fabian Rami a ?crit : > Hi everyone, > > I have a mistake with the scalebar. > When i use the demo with my mapfile i have meters for europe level , > centimeters for country level and kilometers for street level. > > I still a beginner with MapServer so if you see something wrong > please tell me :) > > I use Teleatlas data, i have found the specification of the data : > Projection: Geographic (not projected) > Datum WGS84 (labeled GCS_WGS_1984 in ESRI products) > Paramaters: > ?GEOGCS["GCS_WGS_1984", > ?DATUM["D_WGS_1984", > ?SPHEROID["WGS_1984",6378137,298.257223563]], > ?PRIMEM["Greenwich",0], > ?UNIT["Degree",0.017453292519943295]] > > > THANKS FOR YOUR HELP :o) > > Hummm, i found that the minscale mapscale used to draw the map is the reason of the error. How can i know the good value to put in minscale, maxscale for having a correct behavior at the scalebar ? for example : Before with 65 at the top scale we have a graduation in meters ( +/- 0 to 80 ) Now with 65.000.000 at the top scale we have a graduation in kilometers ( 0 to 4500) How know how to set this value correctly ? From guillaume.sueur at neogeo-online.net Thu Jul 10 02:56:40 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 10 Jul 2008 11:56:40 +0200 Subject: [mapserver-users] ShapeObj->values in python mapscript Message-ID: <4875DCD8.6080407@neogeo-online.net> Hi list, I'd like to access to the values of a ShapeObj in python mapscript but it seems that the values array is not accessible in python. I'm using mapscript 5.0.2 Any hint ? Thanks -- Guillaume From umberto.nicoletti at gmail.com Thu Jul 10 04:27:30 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 10 Jul 2008 13:27:30 +0200 Subject: [mapserver-users] ShapeObj->values in python mapscript In-Reply-To: <4875DCD8.6080407@neogeo-online.net> References: <4875DCD8.6080407@neogeo-online.net> Message-ID: <75b4b93e0807100427s6d298f1aw545981259b115f83@mail.gmail.com> Use getValue(index) instead. Umberto On Thu, Jul 10, 2008 at 11:56 AM, Guillaume Sueur wrote: > Hi list, > > I'd like to access to the values of a ShapeObj in python mapscript but it > seems that the values array is not accessible in python. > I'm using mapscript 5.0.2 > Any hint ? > > Thanks > -- > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ml at lingner.eu Thu Jul 10 05:02:01 2008 From: ml at lingner.eu (Lars Lingner) Date: Thu, 10 Jul 2008 14:02:01 +0200 Subject: [mapserver-users] different attribute values of "subfeatures" and its visualization Message-ID: <4875FA39.70803@lingner.eu> Hello list, I have a bunch of spatial data in my PostgreSQL/PostGIS-DB. They are polyline features. Each polyline has some "global" attributes, which means the attributes are describing the whole line. Length is such an attribute but also the overall diameter could be one. To make it more visual, the polylines should represent tubes. A polyline consists (of course) of one or more lines. Such a line I would call subfeature. Every line has its own length and also e.g. its own diameter attribute. Sometimes the values of diameter are equal at the whole length, that is no problem. I have issues if the values are not equal. My idea was to give the subfeatures with different values an different stroke width, to represent the diameter, or at least an different color. Is there a way to tell mapserver that a feature should have such a complex visualization? I have the coordinates stored at the DB and can query it, if it helps at any point. 1) First I thought I cut the features apart and can then define classes in my mapfile. The drawback is then: I'll loose the state of the whole feature. I want to be able to query the feature and the response should include the "global" attributes and the ones specified by the subfeature. Hmmm... 2) I also could store the "global" attributes with the subfeature. But then I'll end up with a lot redundancy, which I want to avoid. Hmmm... At the end I want to define an WMS and WFS. With way 1) I also get a lot of features returned by the WFS which makes the handling at the client very memory consuming and very very slow. Therefore I want to start with the WMS but now I'm at a dead end. My question is: Is there a an other way (independent from my 1+2) to make the sizing of a feature depended on the attribution on a subfeature? I hope I could make myself understandable. But with such a complex issue (isn't it?) I'll happy to answer any open questions. Thanks in advance lars From guillaume.sueur at neogeo-online.net Thu Jul 10 05:37:36 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 10 Jul 2008 14:37:36 +0200 Subject: [mapserver-users] ShapeObj->values in python mapscript In-Reply-To: <75b4b93e0807100427s6d298f1aw545981259b115f83@mail.gmail.com> References: <4875DCD8.6080407@neogeo-online.net> <75b4b93e0807100427s6d298f1aw545981259b115f83@mail.gmail.com> Message-ID: <48760290.9060202@neogeo-online.net> sure, I've noticed that. But how can I retrieve the fields names ? Thx Umberto Nicoletti a ?crit : > Use getValue(index) instead. > > Umberto > > On Thu, Jul 10, 2008 at 11:56 AM, Guillaume Sueur > wrote: >> Hi list, >> >> I'd like to access to the values of a ShapeObj in python mapscript but it >> seems that the values array is not accessible in python. >> I'm using mapscript 5.0.2 >> Any hint ? >> >> Thanks >> -- >> Guillaume >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From dmorissette at mapgears.com Thu Jul 10 06:01:37 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 10 Jul 2008 09:01:37 -0400 Subject: [mapserver-users] did something change in reading in empty TAB files? In-Reply-To: <4874E3E0.90304@osgis.nl> References: <4874E3E0.90304@osgis.nl> Message-ID: <48760831.1060906@mapgears.com> Bart, The "Invalid Block Type" message comes from the MITAB driver in GDAL/OGR. GDAL 1.3.2 is quite old, is there any way you could switch to a more recent version of GDAL? Based on Jeff's tests this error doesn't seem to happen with MS 5.0.2/GDAL 1.5.0 ... it may also be that the problem is a side-effect of something that changed in MapServer (and would now be fixed in 5.0.x), but the first thing I'd suggest is using a newer GDAL. Daniel Bart van den Eijnden (OSGIS) wrote: > Hi list, > > at least starting Mapserver 4.10 (GDAL 1.3.2) there seems to be a > problem with reading empty MapInfo TAB files, whereas in the past (4.6 > for sure) this used to work. Is this issue known to someone? > > The error I get is: > > 09-Jul-2008 18:08:23] PHP Warning: [MapServer Error]: > msOGRFileNextShape(): InitBlockFromData(): Invalid Block Type: got 0 > expected 2 > in > D:\ms4w\apps\stragisweb\htdocs\common\chameleon\htdocs\common\wrapper\drawmap.php > on line 533 > > An example TAB file can be found here: > www.osgis.nl/download/mapserver/gemgrens.zip > > Best regards, > Bart > -- Daniel Morissette http://www.mapgears.com/ From jd3 at renci.org Thu Jul 10 06:31:15 2008 From: jd3 at renci.org (John Overton) Date: Thu, 10 Jul 2008 09:31:15 -0400 Subject: [mapserver-users] Problem with Mapserver & GRASS vector data Message-ID: <48760F23.1090002@renci.org> Hello, Finally got Mapserver to build and am checking out the connection to GRASS. The gdal connection to display raster data works fine, but when I try to display a vector file from GRASS I get this: ****************************************************************************************** "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, disaster at renci.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log." ******************************************************************************************** Here is the URL query string http://eno.renci.org/cgi-bin/mapserv?map=/home/jd3/ms4w/apps/tutorial/htdocs/example1-A.map&layer=Example2&mode=map Here is the map file I am using MAP IMAGETYPE PNG EXTENT 589980 4913700 609000 4928000 UNITS METERS SIZE 400 300 LAYER NAME "Example2" TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "/home/jd3/grassdata/spearfish60/PERMANENT/vector/t_tracts/head" DATA "1" # Layer number CLASS NAME "Example2" COLOR 155 155 0 END END LAYER NAME "Example1" TYPE RASTER STATUS ON DATA "/home/jd3/grassdata/spearfish60/PERMANENT/cellhd/soils" CLASS NAME "Example1" # You need to have a class definition in the layer END END END Like I said, when I use Example1, the raster layer, it works. Here is what I receive when I do ogrinfo -ro on the vector data from the commandline -bash-3.00$ ogrinfo -ro /home/jd3/grassdata/spearfish60/PERMANENT/vector/t_tracts/head Warning 1: GRASS warning: GISBASE enviroment variable was not set, using: /usr/local/grass-6.2.3 INFO: Open of `/home/jd3/grassdata/spearfish60/PERMANENT/vector/t_tracts/head' using driver `GRASS' successful. 1: 0 (Line String) Seems to work from the commandline. Any ideas? Thanks, John Overton From mschulz at webgis.de Thu Jul 10 07:02:16 2008 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 10 Jul 2008 16:02:16 +0200 Subject: [mapserver-users] legend and layer opacity Message-ID: Hi, does the legend icon generation take the opacity settings of the corresponding layer into account? In a mapfile where a layer is set to 50% opacity the legend shows the colors as if the opacity is 100%. Is there a way to get legend and map display consistent when using layer opacity? Cheers, Michael -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From andrew.deklerk at gmail.com Thu Jul 10 07:11:57 2008 From: andrew.deklerk at gmail.com (Andrew de klerk) Date: Thu, 10 Jul 2008 07:11:57 -0700 (PDT) Subject: [MAPSERVER-USERS] Odd behaviour with openlayers: think Map file error Message-ID: <18383538.post@talk.nabble.com> Hi all I am not sure how to explain this, but i will try my best. I have a mapfile that works perfectly from openlayers through calling Layer.WMS. I then modified the layer file to include a point shapefile. If I then call the mapfile like: http://localhost/cgi-bin/mapserv.exe?map=c:\\ms4w\\apps\\Streetmap\\ZDM.map&Mode=map all works fine, and I see the points. If I however refresh my openlayers map, I see the original map without the points displayed. I then tried to clear my cache and Ctrl f5 again, but still the same problem. I then changed my openlayers from Layer.WMS to Layer.MapServer and tried, but still the same problem. As a final test I changed it to Layer.MapServer.Untiled, and I could see the points....that is until I zoom in, then the points dissapear. So what is the problem? Is it possibly a map file error?, I will give an extract of my mapfile and the offending layer. I must also add that the file did get corrupt at one stage, but I did have a backup in projected file, which I did reproject to WGS84 (essentially re-creating it)...but I have no gaurantee that the backup file is not corrupted...so could all this be the fault of a corrupt shapefile?? Anyway, here is the layer extract and the header of my mapfile: LAYER NAME 'Scheme_Components' TYPE POINT DATA 'Infrastructure\Scheme_Components' METADATA 'wms_title' 'Scheme_Components' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION "init=epsg:4148" END CLASS MINSCALE 1 MAXSCALE 5000000 NAME 'Communal Standpipe' STYLE SYMBOL 'Triangle' SIZE 7 COLOR 182 120 174 END END END _______________________________________________ MAP NAME 'ZDM' SIZE 600 500 UNITS dd SHAPEPATH "D:\ZDM\basedata\" #CONFIG "PROJ_LIB" "D:\WWW\WMSMapServer\ms4w\proj\nad\" CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" FONTSET "Fonts/fonts.txt" SYMBOLSET "Symbols/symbols.sym" EXTENT 29.739840 -28.780849 32.845078 -26.922820 PROJECTION "init=epsg:4148" END OUTPUTFORMAT NAME 'AGG_JPEG' DRIVER AGG/JPEG IMAGEMODE RGB FORMATOPTION "QUALITY=90" END #Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 16 10 LABEL TYPE truetype ANTIALIAS true FONT arial SIZE 9 COLOR 0 0 0 BUFFER 1 PARTIALS false MINDISTANCE 500 END END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 3 LABEL TYPE truetype ANTIALIAS true FONT arial SIZE 7 COLOR 0 0 0 BUFFER 1 PARTIALS false MINDISTANCE 500 END OUTLINECOLOR 0 0 0 POSTLABELCACHE TRUE POSITION LL SIZE 120 4 STATUS ON STYLE 0 UNITS KILOMETERS END WEB # Set IMAGEPATH to the path where MapServer should # write its output. #IMAGEPATH 'D:\ApplicationTemp\' IMAGEPATH 'D:\Inetpub\Uploads\Temp' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL 'Temp/' # WMS server settings METADATA 'wms_title' 'ZDM' 'wms_onlineresource' 'http://wms.mapexchange.co.za/qwms/qwms.aspx?' 'wms_srs' 'EPSG:4148' END TEMPLATE "Streetmap.html" END -- View this message in context: http://www.nabble.com/Odd-behaviour-with-openlayers%3A-think-Map-file-error-tp18383538p18383538.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Thu Jul 10 07:37:59 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 10 Jul 2008 10:37:59 -0400 Subject: [mapserver-users] Flash (swf) - Link between buttons and Element? In-Reply-To: References: Message-ID: <48761EC7.1040905@dmsolutions.ca> Marie-Eve, One possible was of quickly achieving this is would be for the buttons names to reflect the layer and shape they are associated with; so for example a button name would look like button_layerid_shapeid (ex button_2_44 would represent the element 44 on layer 2). I have filed a ticket on this http://trac.osgeo.org/mapserver/ticket/2691 with a patch to achieve this. Could you please review and comment? Best Regards, Marie-Eve L?vesque wrote: > I am using MapServer to generate Flash (.swf). It generally works well, > my shapes are generated and I get my events by ElementSelected, and my > attributes in the Element object of the generated swf. > > But, there is one thing that I can't get: the ID associated to a button > or to one of the shapes. For example, I have an object with the id "15", > the name "Montreal" and the value "10". In "Element", I have all those > informations, but I don't know what button is associated to id 15... (in > my case, with tests I know that "button164" is associated to my id 15, > but how can I know that dynamically?) > > What I would like to have is, either an "buttonId" attribute in > "Element", either an attribute "associatedId" in the button. Is there > something like that in MapServer? > > If it doesn't exists, is there an other way to have that like between my > data in Element and the generated buttons? > > Thanks, > Marie-Eve > > ------------------------------------------------------------------------ > Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant! > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From matthias.buchs at ruch.ch Thu Jul 10 07:09:33 2008 From: matthias.buchs at ruch.ch (Matthias Buchs) Date: Thu, 10 Jul 2008 16:09:33 +0200 Subject: [mapserver-users] Rotating map makes layer disappear Message-ID: <20080710140933.A319A76D48@buenosaires.ruch.ch> Hello Flavio, Thank you for your answer! I had already a projection defined for all layers. However, I tried yours too, but with the same result: All layers are drawn correctly (incl. rotation) except the single one, which is not drawn. The layer definition looks as follows: LAYER NAME "No_parc" TYPE ANNOTATION MAXSCALE 2000 CONNECTIONTYPE OGR CONNECTION "Noparc.TAB" STATUS ON STYLEITEM "AUTO" CLASS END PROJECTION "init=epsg:21781" END END The beginning of the ogrinfo output looks as follows: INFO: Open of `Noparc.TAB' using driver `MapInfo File' successful. Layer name: Noparc Geometry: Point Feature Count: 603 Extent: (576093.803015, 184574.105015) - (579583.217242, 186778.565010) Layer SRS WKT: LOCAL_CS["Nonearth", UNIT["Meter",1.0]] ID: Integer (0.0) OGRFeature(Noparc):1 ID (Integer) = 0 Style = LABEL(t:"518",a:0.000000,s:3.253910g,c:#ff0000,p:1,f:"Arial") POINT (577595.99998399999 186382.12960400002) ... What else could it be? Regards Matthias From Steve.Lime at dnr.state.mn.us Thu Jul 10 07:41:33 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Jul 2008 09:41:33 -0500 Subject: [mapserver-users] ShapeObj->values in python mapscript In-Reply-To: <48760290.9060202@neogeo-online.net> References: <4875DCD8.6080407@neogeo-online.net> <75b4b93e0807100427s6d298f1aw545981259b115f83@mail.gmail.com> <48760290.9060202@neogeo-online.net> Message-ID: <4875D94D.5157.008F.0@dnr.state.mn.us> There's a getItem(index) method at the layer level. Steve >>> On 7/10/2008 at 7:37 AM, in message <48760290.9060202 at neogeo-online.net>, Guillaume Sueur wrote: > sure, I've noticed that. But how can I retrieve the fields names ? > > Thx > > Umberto Nicoletti a ?crit : >> Use getValue(index) instead. >> >> Umberto >> >> On Thu, Jul 10, 2008 at 11:56 AM, Guillaume Sueur >> wrote: >>> Hi list, >>> >>> I'd like to access to the values of a ShapeObj in python mapscript but it >>> seems that the values array is not accessible in python. >>> I'm using mapscript 5.0.2 >>> Any hint ? >>> >>> Thanks >>> -- >>> Guillaume >>> _______________________________________________ >>> 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 guillaume.sueur at neogeo-online.net Thu Jul 10 07:53:40 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 10 Jul 2008 16:53:40 +0200 Subject: [mapserver-users] ShapeObj->values in python mapscript In-Reply-To: <4875D94D.5157.008F.0@dnr.state.mn.us> References: <4875DCD8.6080407@neogeo-online.net> <75b4b93e0807100427s6d298f1aw545981259b115f83@mail.gmail.com> <48760290.9060202@neogeo-online.net> <4875D94D.5157.008F.0@dnr.state.mn.us> Message-ID: <48762274.5010706@neogeo-online.net> Yes, and it helped ! Thanks Steve Lime a ?crit : > There's a getItem(index) method at the layer level. > > Steve > >>>> On 7/10/2008 at 7:37 AM, in message > <48760290.9060202 at neogeo-online.net>, > Guillaume Sueur wrote: >> sure, I've noticed that. But how can I retrieve the fields names ? >> >> Thx >> >> Umberto Nicoletti a ?crit : >>> Use getValue(index) instead. >>> >>> Umberto >>> >>> On Thu, Jul 10, 2008 at 11:56 AM, Guillaume Sueur >>> wrote: >>>> Hi list, >>>> >>>> I'd like to access to the values of a ShapeObj in python mapscript > but it >>>> seems that the values array is not accessible in python. >>>> I'm using mapscript 5.0.2 >>>> Any hint ? >>>> >>>> Thanks >>>> -- >>>> Guillaume >>>> _______________________________________________ >>>> 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 > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From paul_pag00 at hotmail.com Thu Jul 10 08:10:16 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Thu, 10 Jul 2008 15:10:16 +0000 Subject: [mapserver-users] msencrypt mapserver 5.0.0 Message-ID: Hello friends i want ot work with msencrypt in mapserver 5.0 im using pmapper as framework. I look the example in mapsever documentation but it dont work for my. There is another method to use msencrypt on mapserver 5.0.0 Thanks _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From David.Fawcett at state.mn.us Thu Jul 10 08:18:26 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 10 Jul 2008 10:18:26 -0500 Subject: [mapserver-users] Rotating map makes layer disappear In-Reply-To: <20080710140933.A319A76D48@buenosaires.ruch.ch> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBEAD@s-sp22.pca.state.mn.us> Mathias, I see that you set a MAXSCALE of 2000. If you are zoomed out beyond 2000, the layer will not draw. Try commenting it out to see if this is the issue. If so, then set a scale value that works for your purposes. Also, if you are not explicitly calling the layer by name when MapServer is called, you will need to set the LAYER STATUS to DEFAULT for it to draw. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matthias Buchs Sent: Thursday, July 10, 2008 9:10 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rotating map makes layer disappear Hello Flavio, Thank you for your answer! I had already a projection defined for all layers. However, I tried yours too, but with the same result: All layers are drawn correctly (incl. rotation) except the single one, which is not drawn. The layer definition looks as follows: LAYER NAME "No_parc" TYPE ANNOTATION MAXSCALE 2000 CONNECTIONTYPE OGR CONNECTION "Noparc.TAB" STATUS ON STYLEITEM "AUTO" CLASS END PROJECTION "init=epsg:21781" END END The beginning of the ogrinfo output looks as follows: INFO: Open of `Noparc.TAB' using driver `MapInfo File' successful. Layer name: Noparc Geometry: Point Feature Count: 603 Extent: (576093.803015, 184574.105015) - (579583.217242, 186778.565010) Layer SRS WKT: LOCAL_CS["Nonearth", UNIT["Meter",1.0]] ID: Integer (0.0) OGRFeature(Noparc):1 ID (Integer) = 0 Style = LABEL(t:"518",a:0.000000,s:3.253910g,c:#ff0000,p:1,f:"Arial") POINT (577595.99998399999 186382.12960400002) ... What else could it be? Regards Matthias _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From harmo004 at xs4all.nl Thu Jul 10 08:24:53 2008 From: harmo004 at xs4all.nl (Harm Olthof) Date: Thu, 10 Jul 2008 17:24:53 +0200 (CEST) Subject: [mapserver-users] Mapscript tcl Message-ID: <6951.193.173.71.150.1215703493.squirrel@webmail.xs4all.nl> Hello List, Where can I find a pre-build mapscript for Windows XP,Mapserver 5.x and Tcl 8.5.x? Thanks, Harm From Tim.Nolte at ipcswirelessinc.com Thu Jul 10 08:54:43 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 10 Jul 2008 11:54:43 -0400 Subject: [mapserver-users] MapServer + Fusion In-Reply-To: <20E26E52-F8E6-4015-8D86-26FAD49AE348@dmsolutions.ca> References: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> <20E26E52-F8E6-4015-8D86-26FAD49AE348@dmsolutions.ca> Message-ID: Finally got around to trying out Fusion + UMN MapServer. Went with the tutorial below and the latest Fusion 1.0.6. I first tried using my current working MapServer mapfile/environment. That was failing with not loading any tool icons or map, just blue & white boxes. In IE7 I get 'maps is null or not an object' and in Firefox I get 'mapGroup has no properties'. Does anyone have any ideas on how to get this working? Thanks. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Paul Spencer > Sent: Monday, April 07, 2008 8:24 AM > To: "Gregorio Mu?oz Avila" > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer + Fusion > > Hi, > there is a simple tutorial at: > http://trac.osgeo.org/fusion/wiki/MapServerTutorial > > Cheers > > Paul > > On 7-Apr-08, at 6:08 AM, Gregorio Mu?oz Avila wrote: > > Does anyone know how to integrate Fusion in Mapserver? > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From temiz at deprem.gov.tr Thu Jul 10 10:38:06 2008 From: temiz at deprem.gov.tr (orkun) Date: Thu, 10 Jul 2008 20:38:06 +0300 Subject: [mapserver-users] java mapscript - couldn't manage queryByPoint Message-ID: <1215711486.10103.12.camel@orkun-desktop> hello I couldn't manage queryByPoint function in java mapscript here is the code I have tried : double tolerance = map1.getWidth()/100; //we use this tolerance if (jeolayer.queryByPoint(map1, pt1, mapscript.MS_SINGLE ,tolerance )== 1) { resultCacheObj qresult = jeolayer.getResults() ; if (qresult.getNumresults() > 0) { int shapeInd = qresult.getResult(0).getShapeindex(); jeolayer.open(); shapeObj shape=jeolayer.getFeature(shapeInd, -1); //iterate fields and getting values for(int i=0; i< jeolayer.getNumitems() ; i++) { //jeolayer.getItem(i); String item=jeolayer.getItem(i); String shapeval=shape.getValue(i); String tamam="tamam" ; } } } where am I doing wrong ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From aboudreault at mapgears.com Thu Jul 10 10:43:33 2008 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 10 Jul 2008 13:43:33 -0400 Subject: [mapserver-users] MapServer + Fusion In-Reply-To: References: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> <20E26E52-F8E6-4015-8D86-26FAD49AE348@dmsolutions.ca> Message-ID: <48764A45.8080904@mapgears.com> Hi Tim Is your fusion webpage can be accessed via the web ? In this way, i should take a look to see what's wrong. Thanks, Alan Nolte, Tim wrote: > Finally got around to trying out Fusion + UMN MapServer. Went with the tutorial below and the latest Fusion 1.0.6. I first tried using my current working MapServer mapfile/environment. That was failing with not loading any tool icons or map, just blue & white boxes. In IE7 I get 'maps is null or not an object' and in Firefox I get 'mapGroup has no properties'. Does anyone have any ideas on how to get this working? Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Paul Spencer >> Sent: Monday, April 07, 2008 8:24 AM >> To: "Gregorio Mu?oz Avila" >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] MapServer + Fusion >> >> Hi, >> there is a simple tutorial at: >> http://trac.osgeo.org/fusion/wiki/MapServerTutorial >> >> Cheers >> >> Paul >> >> On 7-Apr-08, at 6:08 AM, Gregorio Mu?oz Avila wrote: >> >>> Does anyone know how to integrate Fusion in Mapserver? >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://www.dmsolutions.ca/ >> >> _______________________________________________ >> 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 > -- Alan Boudreault Mapgears http://www.mapgears.com From matthias.buchs at ruch.ch Thu Jul 10 11:27:44 2008 From: matthias.buchs at ruch.ch (Matthias Buchs) Date: Thu, 10 Jul 2008 20:27:44 +0200 Subject: [mapserver-users] Rotating map makes layer disappear In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBEAD@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBEAD@s-sp22.pca.state.mn.us> Message-ID: <487654A0.9060700@ruch.ch> Hi David, Thanks for answering! I tried both of your suggestions, but unfortunately neither works :(. Zooming-in the generated map (a pdf file actually) revealed that MapServer paints some pixels at the right places. They are nearly invisible in the chosen scale (60) though. So the situation is that as long as no rotation is set, everything works fine. As soon as any rotation is set (even 0.01?!) all layers are drawn correctly, except the one I mentioned. The only difference that I can see between the layers is that this one contains the style information in the data source. A very strange behavior... Regards Matthias Fawcett, David wrote: > Mathias, > > I see that you set a MAXSCALE of 2000. If you are zoomed out beyond > 2000, the layer will not draw. Try commenting it out to see if this is > the issue. If so, then set a scale value that works for your purposes. > > > Also, if you are not explicitly calling the layer by name when MapServer > is called, you will need to set the LAYER STATUS to DEFAULT for it to > draw. > > David. > > From percyd at pdx.edu Thu Jul 10 12:14:30 2008 From: percyd at pdx.edu (percy) Date: Thu, 10 Jul 2008 12:14:30 -0700 Subject: [mapserver-users] WMS raster display, getfeatureinfo from vector layer Message-ID: <48765F96.20209@pdx.edu> I discussed this issue with Tom K. on the IRC yesterday, and he thought it was of general interest and should be posted and potentially requested as a feature. Scenario: we have a Geologic map that has super complex cartography that we don't want to reproduce in the mapfile (600+ classes, tons of patterns, etc). So we dumped out a raster of it to serve as WMS. However, when the user does a GetFeatureInfo on this WMS, we want to return attribute data from the original shapefile. I can envision this being taken care of at the layer level as a metadata tag like "WMS_query_redirect". In the short term we're working on a little apache mod_rewrite magic to take care of it :-) Cheers, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From Tim.Nolte at ipcswirelessinc.com Thu Jul 10 12:26:15 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 10 Jul 2008 15:26:15 -0400 Subject: [mapserver-users] MapServer + Fusion In-Reply-To: <48764A45.8080904@mapgears.com> References: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> <20E26E52-F8E6-4015-8D86-26FAD49AE348@dmsolutions.ca> <48764A45.8080904@mapgears.com> Message-ID: So, I found under fusion->templates->mapserver->standard sample files for me to try. I was able to get the gmap demo data working and even my own current Production MapServer .map file. There are a lot of strange issues that make it seem as thought I'm going to need to make a new .map file that is tuned for Fusion. I'm going to have to do some reading. Off hand, does anyone have any pointers? I'm thinking that I'm going to have to add a bunch of meta data for this to work correctly. Is Fusion using my MapServer install/mapfile as a WMS or WFS source? - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Alan Boudreault > Sent: Thursday, July 10, 2008 1:44 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer + Fusion > > Hi Tim > > Is your fusion webpage can be accessed via the web ? In this way, i > should take a look to see what's wrong. > > Thanks, > Alan > > Nolte, Tim wrote: > > Finally got around to trying out Fusion + UMN MapServer. > Went with the tutorial below and the latest Fusion 1.0.6. I > first tried using my current working MapServer > mapfile/environment. That was failing with not loading any > tool icons or map, just blue & white boxes. In IE7 I get > 'maps is null or not an object' and in Firefox I get > 'mapGroup has no properties'. Does anyone have any ideas on > how to get this working? Thanks. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > >> Paul Spencer > >> Sent: Monday, April 07, 2008 8:24 AM > >> To: "Gregorio Mu?oz Avila" > >> Cc: mapserver-users at lists.osgeo.org > >> Subject: Re: [mapserver-users] MapServer + Fusion > >> > >> Hi, > >> there is a simple tutorial at: > >> http://trac.osgeo.org/fusion/wiki/MapServerTutorial > >> > >> Cheers > >> > >> Paul > >> > >> On 7-Apr-08, at 6:08 AM, Gregorio Mu?oz Avila wrote: > >> > >>> Does anyone know how to integrate Fusion in Mapserver? > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >> __________________________________________ > >> > >> Paul Spencer > >> Chief Technology Officer > >> DM Solutions Group Inc > >> http://www.dmsolutions.ca/ > >> > >> _______________________________________________ > >> 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 > > > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From matthew.pettis at gmail.com Thu Jul 10 14:35:51 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Thu, 10 Jul 2008 16:35:51 -0500 Subject: [mapserver-users] Reprojection: Maps not lining up Message-ID: <82ba77b80807101435k4f342d99w4359f4c8c5b9188e@mail.gmail.com> (This is a repost, the other one got no responses). Hi, I am using Openlayers with Mapserver to show a shapefile of roads in MN that are in epsg:26915 and allowing users to toggle between that and Google Maps (spherical Mercator projection per http://spatialreference.org/ref/user/google-projection/). I use mapserv.exe and a .map file to reproject the MN roads into the Google projection, and when I toggle between them, the extents *almost* match up. It appears that the MN roads extent covers a slightly larger area than the Google Maps extent. I don't know if this is an OpenLayers or Mapserver question, but I'm thinking it is a Mapserver one. Can anyone tell me why the extents *almost* match up? I would think that they would either match up almost exactly (or at least in a tolerance that I cannot tell by the naked eye), or I would have messed up my transformations, and it would be completely out of sync. Is it a function of disparities in the data that I cannot fix, or are there fine tunings that I can adjust to compensate? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From Steve.Lime at dnr.state.mn.us Thu Jul 10 14:38:08 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Jul 2008 16:38:08 -0500 Subject: [mapserver-users] Reprojection: Maps not lining up In-Reply-To: <82ba77b80807101435k4f342d99w4359f4c8c5b9188e@mail.gmail.com> References: <82ba77b80807101435k4f342d99w4359f4c8c5b9188e@mail.gmail.com> Message-ID: <48763AF0.5157.008F.0@dnr.state.mn.us> I'd cc the OpenLayers list too since I think more folks with the Google projection hang out there... Steve >>> On 7/10/2008 at 4:35 PM, in message <82ba77b80807101435k4f342d99w4359f4c8c5b9188e at mail.gmail.com>, "Matthew Pettis" wrote: > (This is a repost, the other one got no responses). > > Hi, > > I am using Openlayers with Mapserver to show a shapefile of roads in MN that > are in epsg:26915 and allowing users to toggle between that and Google Maps > (spherical Mercator projection per > http://spatialreference.org/ref/user/google-projection/). I use mapserv.exe > and a .map file to reproject the MN roads into the Google projection, and > when I toggle between them, the extents *almost* match up. It appears that > the MN roads extent covers a slightly larger area than the Google Maps > extent. > > I don't know if this is an OpenLayers or Mapserver question, but I'm > thinking it is a Mapserver one. Can anyone tell me why the extents *almost* > match up? I would think that they would either match up almost exactly (or > at least in a tolerance that I cannot tell by the naked eye), or I would > have messed up my transformations, and it would be completely out of sync. > Is it a function of disparities in the data that I cannot fix, or are there > fine tunings that I can adjust to compensate? > > Thanks, > Matt From Steve.Lime at dnr.state.mn.us Thu Jul 10 14:41:10 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Jul 2008 16:41:10 -0500 Subject: [mapserver-users] WMS raster display,getfeatureinfo from vector layer In-Reply-To: <48765F96.20209@pdx.edu> References: <48765F96.20209@pdx.edu> Message-ID: <48763BA5.5157.008F.0@dnr.state.mn.us> What about using GROUPs or layers with the same name where the second layer is TYPE QUERY? Steve >>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy wrote: > I discussed this issue with Tom K. on the IRC yesterday, and he thought > it was of general interest and should be posted and potentially > requested as a feature. > > Scenario: we have a Geologic map that has super complex cartography that > we don't want to reproduce in the mapfile (600+ classes, tons of > patterns, etc). So we dumped out a raster of it to serve as WMS. > > However, when the user does a GetFeatureInfo on this WMS, we want to > return attribute data from the original shapefile. > > I can envision this being taken care of at the layer level as a metadata > tag like "WMS_query_redirect". > > In the short term we're working on a little apache mod_rewrite magic to > take care of it :-) > > Cheers, > Percy From Steve.Lime at dnr.state.mn.us Thu Jul 10 15:13:03 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Jul 2008 17:13:03 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <1215663787.2513.112.camel@bongolx.ringo.net> References: <1215663787.2513.112.camel@bongolx.ringo.net> Message-ID: <4876431F.5157.008F.0@dnr.state.mn.us> Hi Graeme: Comments inline... I definitely underestimated the impacts of those changes. Anyway... >>> On 7/9/2008 at 11:23 PM, in message <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff wrote: > It has become apparent through some frustrating moments of trial and > error that many of the mapfile variables that were changeable via URL > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. > There is a hint from the docs that this is because of security concerns? > Our java apps don't allow web users to directly interact with the CGI, > so security doesn't seem so important in our case. Allowing unaltered, direct modification of things like FILTERs or CONNECTIONS is a potential security risk although I've never run across a documented case. Filters are risky because they are passed to the underlying data driver which generally trust the contents. > Some examples: > > map_web_metadata='text1' 'text2' > map_layerName_filter= > map_layerName_tileindex= > map_layerName_data= > > allow changes to the mapfile via URL with mapserver 4.10.x > > Following the new syntax specified for v5 + I had expected > > map_web=metadata+"'text1' 'text2'" or maybe > map_web_metadata[0]='text1'+'text2', > map_layer[layerName]=filter+, > map_layer[layerName]=tileindex+, > map_layer[layerName]=data+ > > to all perform in the time-honoured way. And they don't... If they did you could combine modifications to a layer in a single variable: map_layer[layerName]=filter++tileindex++data+ > Only 'data' could be changed with this new mapserver 5 syntax. I > happened to discover through the change logs that changing tileindex was > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax > (map_layerName_tileindex)= - not the new mapserver 5 > syntax style (map_layer[layerName]=tileindex+). Looking at the code, TILEINDEX is not changable via a URL with any syntax. The change log references a bug fix to 4.10. The old syntax doesn't work at all. > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new > syntax is used for filter and ignores the old 4.10 filter syntax. This is expected. It will fail with an error as opposed to the silent failure of versions past. > No URL syntax for changing the web object's metadata content appears > acceptable to the mapserver 5. Correct. > I would dearly like to see changing the layer filter via URL restored > also to mapserver 5. And the web object's metadata setting functionality > too. It's possible to customize this behavior by editing maplexer.l and recompiling the code. Simply find the keyword you're interested in supporting and change the states at which it is valid. So, for TILEINDEX: tileindex becomes: tileindex Same goes for the other parameters you'd want to activate. > Can anyone indicate what mapfile properties are or are not going to be > reinstated in mapserver 5 compared to mapserver 4 for change via URL? > Obviously this has development ramifications for us when we try to > upgrade mapserver. If I (or anyone) can think of a way to make this tunable at runtime I'd love to talk more about it. The set of parameters supported in 5.2 has only changed a little bit since 5.0 based on user input. I can't see exposing more without good reason. FILTER in particular is worrisome and there is a work around with the runtime substitution (e.g. FILTER %someval%). In that example you can pass someval via URL but you have to define a validation pattern (a regex) to check it against. > Alternatively, am I missing something with new mapserver 5 syntax? I'm curious if updating maplexer.l to fit your particular needs is workable. > Graeme Watmuff Steve From woodbri at swoodbridge.com Thu Jul 10 16:26:12 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 10 Jul 2008 18:26:12 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <4876431F.5157.008F.0@dnr.state.mn.us> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> Message-ID: <48769A94.6090000@swoodbridge.com> Steve L, There was some discussion about using metadata regex's to validate changes via the URL. Did this not go into play? I thought we were going to do something like: 1) default it is restricted or disabled 2) if metadata "validate_some_parameter" "some_regex" then allow those changes that validate. Then if someone wanted to unrestrict it they could use a regex "/./" to allow anything or set it to whatever. -Steve W Steve Lime wrote: > Hi Graeme: Comments inline... I definitely underestimated the impacts > of those changes. Anyway... > >>>> On 7/9/2008 at 11:23 PM, in message > <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff > wrote: >> It has become apparent through some frustrating moments of trial >> and error that many of the mapfile variables that were changeable >> via URL with mapserver 4.10.x CGI seem no longer changeable with >> v5.x or 5.2.x. There is a hint from the docs that this is because >> of security concerns? Our java apps don't allow web users to >> directly interact with the CGI, so security doesn't seem so >> important in our case. > > Allowing unaltered, direct modification of things like FILTERs or > CONNECTIONS is a potential security risk although I've never run > across a documented case. Filters are risky because they are passed > to the underlying data driver which generally trust the contents. > >> Some examples: >> >> map_web_metadata='text1' 'text2' map_layerName_filter= >> map_layerName_tileindex= >> map_layerName_data= >> >> allow changes to the mapfile via URL with mapserver 4.10.x >> >> Following the new syntax specified for v5 + I had expected >> >> map_web=metadata+"'text1' 'text2'" or maybe >> map_web_metadata[0]='text1'+'text2', >> map_layer[layerName]=filter+, >> map_layer[layerName]=tileindex+, >> map_layer[layerName]=data+ >> >> to all perform in the time-honoured way. > > And they don't... If they did you could combine modifications to a > layer in a single variable: > > map_layer[layerName]=filter++tileindex++data+ > > >> Only 'data' could be changed with this new mapserver 5 syntax. I >> happened to discover through the change logs that changing >> tileindex was reinstated for mapserver 5 CGI, but using the old >> mapserver 4.10 syntax (map_layerName_tileindex)= - >> not the new mapserver 5 syntax style >> (map_layer[layerName]=tileindex+). > > Looking at the code, TILEINDEX is not changable via a URL with any > syntax. The change log references a bug fix to 4.10. The old syntax > doesn't work at all. > >> mapserv 5 CGI throws an error (Parsing error near (filter)) when >> the new syntax is used for filter and ignores the old 4.10 filter >> syntax. > > This is expected. It will fail with an error as opposed to the silent > failure of versions past. > >> No URL syntax for changing the web object's metadata content >> appears acceptable to the mapserver 5. > > Correct. > >> I would dearly like to see changing the layer filter via URL >> restored also to mapserver 5. And the web object's metadata setting >> functionality too. > > It's possible to customize this behavior by editing maplexer.l and > recompiling the code. Simply find the keyword you're interested in > supporting and change the states at which it is valid. So, for > TILEINDEX: > > tileindex > > becomes: > > tileindex > > Same goes for the other parameters you'd want to activate. > >> Can anyone indicate what mapfile properties are or are not going to >> be reinstated in mapserver 5 compared to mapserver 4 for change via >> URL? Obviously this has development ramifications for us when we >> try to upgrade mapserver. > > If I (or anyone) can think of a way to make this tunable at runtime > I'd love to talk more about it. The set of parameters supported in > 5.2 has only changed a little bit since 5.0 based on user input. I > can't see exposing more without good reason. FILTER in particular is > worrisome and there is a work around with the runtime substitution > (e.g. FILTER %someval%). In that example you can pass someval via URL > but you have to define a validation pattern (a regex) to check it > against. > >> Alternatively, am I missing something with new mapserver 5 syntax? > > I'm curious if updating maplexer.l to fit your particular needs is > workable. > >> Graeme Watmuff > > Steve > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Jul 10 15:49:28 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Jul 2008 17:49:28 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <48769A94.6090000@swoodbridge.com> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <48769A94.6090000@swoodbridge.com> Message-ID: <48764BA8.5157.008F.0@dnr.state.mn.us> That didn't get put in place, there were implementation issues at the time and I haven't revisited. For example, we use metadata to store validation patterns you can't very well allow URL modification of metadata then. You can I guess but at risk. Plus it's not really practical to write patterns that would match large blocks of a mapfile. A single parameter maybe, like the runtime validation but not a block. Perhaps the TEMPLATEPATTERN. DATAPATTERN concept could be extend to more general use for those particularly vulnerable variables (e.g. FILTER). If you look at mapfile.c you'll see how that comes into play when changing a TEMPLATE via URL. Steve >>> On 7/10/2008 at 6:26 PM, in message <48769A94.6090000 at swoodbridge.com>, Stephen Woodbridge wrote: > Steve L, > > There was some discussion about using metadata regex's to validate > changes via the URL. Did this not go into play? I thought we were going > to do something like: > > 1) default it is restricted or disabled > 2) if metadata "validate_some_parameter" "some_regex" then allow those > changes that validate. > > Then if someone wanted to unrestrict it they could use a regex "/./" to > allow anything or set it to whatever. > > -Steve W > > Steve Lime wrote: >> Hi Graeme: Comments inline... I definitely underestimated the impacts >> of those changes. Anyway... >> >>>>> On 7/9/2008 at 11:23 PM, in message >> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >> wrote: >>> It has become apparent through some frustrating moments of trial >>> and error that many of the mapfile variables that were changeable >>> via URL with mapserver 4.10.x CGI seem no longer changeable with >>> v5.x or 5.2.x. There is a hint from the docs that this is because >>> of security concerns? Our java apps don't allow web users to >>> directly interact with the CGI, so security doesn't seem so >>> important in our case. >> >> Allowing unaltered, direct modification of things like FILTERs or >> CONNECTIONS is a potential security risk although I've never run >> across a documented case. Filters are risky because they are passed >> to the underlying data driver which generally trust the contents. >> >>> Some examples: >>> >>> map_web_metadata='text1' 'text2' map_layerName_filter= >>> map_layerName_tileindex= >>> map_layerName_data= >>> >>> allow changes to the mapfile via URL with mapserver 4.10.x >>> >>> Following the new syntax specified for v5 + I had expected >>> >>> map_web=metadata+"'text1' 'text2'" or maybe >>> map_web_metadata[0]='text1'+'text2', >>> map_layer[layerName]=filter+, >>> map_layer[layerName]=tileindex+, >>> map_layer[layerName]=data+ >>> >>> to all perform in the time-honoured way. >> >> And they don't... If they did you could combine modifications to a >> layer in a single variable: >> >> >map_layer[layerName]=filter++tileindex++data+ e> >> >> >>> Only 'data' could be changed with this new mapserver 5 syntax. I >>> happened to discover through the change logs that changing >>> tileindex was reinstated for mapserver 5 CGI, but using the old >>> mapserver 4.10 syntax (map_layerName_tileindex)= - >>> not the new mapserver 5 syntax style >>> (map_layer[layerName]=tileindex+). >> >> Looking at the code, TILEINDEX is not changable via a URL with any >> syntax. The change log references a bug fix to 4.10. The old syntax >> doesn't work at all. >> >>> mapserv 5 CGI throws an error (Parsing error near (filter)) when >>> the new syntax is used for filter and ignores the old 4.10 filter >>> syntax. >> >> This is expected. It will fail with an error as opposed to the silent >> failure of versions past. >> >>> No URL syntax for changing the web object's metadata content >>> appears acceptable to the mapserver 5. >> >> Correct. >> >>> I would dearly like to see changing the layer filter via URL >>> restored also to mapserver 5. And the web object's metadata setting >>> functionality too. >> >> It's possible to customize this behavior by editing maplexer.l and >> recompiling the code. Simply find the keyword you're interested in >> supporting and change the states at which it is valid. So, for >> TILEINDEX: >> >> tileindex >> >> becomes: >> >> tileindex >> >> Same goes for the other parameters you'd want to activate. >> >>> Can anyone indicate what mapfile properties are or are not going to >>> be reinstated in mapserver 5 compared to mapserver 4 for change via >>> URL? Obviously this has development ramifications for us when we >>> try to upgrade mapserver. >> >> If I (or anyone) can think of a way to make this tunable at runtime >> I'd love to talk more about it. The set of parameters supported in >> 5.2 has only changed a little bit since 5.0 based on user input. I >> can't see exposing more without good reason. FILTER in particular is >> worrisome and there is a work around with the runtime substitution >> (e.g. FILTER %someval%). In that example you can pass someval via URL >> but you have to define a validation pattern (a regex) to check it >> against. >> >>> Alternatively, am I missing something with new mapserver 5 syntax? >> >> I'm curious if updating maplexer.l to fit your particular needs is >> workable. >> >>> Graeme Watmuff >> >> Steve >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From percyd at pdx.edu Thu Jul 10 16:42:41 2008 From: percyd at pdx.edu (percy) Date: Thu, 10 Jul 2008 16:42:41 -0700 Subject: [mapserver-users] WMS raster display,getfeatureinfo from vector layer In-Reply-To: <48763BA5.5157.008F.0@dnr.state.mn.us> References: <48765F96.20209@pdx.edu> <48763BA5.5157.008F.0@dnr.state.mn.us> Message-ID: <48769E71.2040601@pdx.edu> thanks, nice idea. I tried it, and that did not work... relevant mapfile section: LAYER NAME "Geologic_Map_Of_North_America" TYPE RASTER STATUS ON data "/vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif" maxscale 10000000 MINSCALE 500000 Metadata "WMS_TITLE" "Geologic Map Of North America" "WMS_SRS" "epsg:4326" END # metadata END #layer LAYER NAME "Geologic_Map_Of_North_America" TYPE query STATUS On data GMNA_S_OneGeo TOLERANCE 0 TOLERANCEUNITS pixels TRANSFORM TRUE DUMP TRUE HEADER "templates/GMNA_query_header.html" TEMPLATE "templates/GMNA_query_body.html" FOOTER "templates/GMNA_query_footer.html" Metadata "WMS_TITLE" "Geologic Map Of North America" "WMS_SRS" "epsg:4326" GML_INCLUDE_ITEMS "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" WMS_INCLUDE_ITEMS "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" END # metadata END #layer Steve Lime wrote: > What about using GROUPs or layers with the same name where the second layer > is TYPE QUERY? > > Steve > >>>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy > wrote: >> I discussed this issue with Tom K. on the IRC yesterday, and he thought >> it was of general interest and should be posted and potentially >> requested as a feature. >> >> Scenario: we have a Geologic map that has super complex cartography that >> we don't want to reproduce in the mapfile (600+ classes, tons of >> patterns, etc). So we dumped out a raster of it to serve as WMS. >> >> However, when the user does a GetFeatureInfo on this WMS, we want to >> return attribute data from the original shapefile. >> >> I can envision this being taken care of at the layer level as a metadata >> tag like "WMS_query_redirect". >> >> In the short term we're working on a little apache mod_rewrite magic to >> take care of it :-) >> >> Cheers, >> Percy > > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From jmckenna at gatewaygeomatics.com Thu Jul 10 17:31:46 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Jul 2008 20:31:46 -0400 Subject: [MAPSERVER-USERS] new release of ms4w. When? In-Reply-To: <18376361.post@talk.nabble.com> References: <18376361.post@talk.nabble.com> Message-ID: On 10-Jul-08, at 1:49 AM, BrainDrain wrote: > > Just waiting for new release of ms4w (upon mapserver 5.2 release). > Is there > any plans? (I need new mapscript c# most of all) > -- The best way to follow MS4W releases and announcements is to subscribe to the MS4W mailing list: http://lists.maptools.org/mailman/listinfo/ms4w-users Another option is to see the MS4W link on the MapServer Beta download page: http://mapserver.gis.umn.edu/download/beta/ --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From gwatmuff at geographicweb.com.au Thu Jul 10 18:05:13 2008 From: gwatmuff at geographicweb.com.au (Graeme Watmuff) Date: Fri, 11 Jul 2008 10:35:13 +0930 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <4876431F.5157.008F.0@dnr.state.mn.us> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> Message-ID: <1215738314.2481.73.camel@bongolx.ringo.net> Hi Steve, Thanks for replying and thanks for the coding pointers. You are right about the mapserv 4.10 tileindex syntax. Like filter, it is simply ignored by v5 rather than throwing an error. My apologies. Would it make sense to create a 'secure' version for the paranoid and a another version with full functionality? I realize this would create more maintenance work for you, but not all mapserver users are going to be able to climb inside the code themselves to modify functionality (fortunately we can). Regarding security, I presume you are concerned about mapserver exposing sensitive data to unintended users. If so, should you be taking that responsibility on yourself by limiting mapserver or should the onus be upon mapserver users to manage their own data more responsibly? I am a great believer in personal responsibility. If the security risk is made clear to users, they can make their own decisions as to the data they potentially expose to the world. We have greatly appreciated and benefited from the tremendous work you and your associates have done in bringing mapserver to the world and we have always looked forward to the added features of each new version. But upgrading now comes at some degree of inconvenience for us and maybe others unless someone wants to publish the workaround to resurrect lost functionality for all to simply acquire. I am not convinced that limiting the previous functionality is the right direction for mapserver unless you fear say a litigious threat from security breaches that people may bring upon themselves (hardly your responsibility). Those with seriously sensitive data are not going to want expose the CGI to all the world via a browser-sent URL anyway. I would expect them to send URLs from say, a java web app embedded in a secured tomcat container. Just my thoughts. Regards and best wishes Graeme On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: > Hi Graeme: Comments inline... I definitely underestimated the impacts of those > changes. Anyway... > > >>> On 7/9/2008 at 11:23 PM, in message > <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff > wrote: > > It has become apparent through some frustrating moments of trial and > > error that many of the mapfile variables that were changeable via URL > > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. > > There is a hint from the docs that this is because of security concerns? > > Our java apps don't allow web users to directly interact with the CGI, > > so security doesn't seem so important in our case. > > Allowing unaltered, direct modification of things like FILTERs or CONNECTIONS > is a potential security risk although I've never run across a documented case. Filters > are risky because they are passed to the underlying data driver which generally > trust the contents. > > > Some examples: > > > > map_web_metadata='text1' 'text2' > > map_layerName_filter= > > map_layerName_tileindex= > > map_layerName_data= > > > > allow changes to the mapfile via URL with mapserver 4.10.x > > > > Following the new syntax specified for v5 + I had expected > > > > map_web=metadata+"'text1' 'text2'" or maybe > > map_web_metadata[0]='text1'+'text2', > > map_layer[layerName]=filter+, > > map_layer[layerName]=tileindex+, > > map_layer[layerName]=data+ > > > > to all perform in the time-honoured way. > > And they don't... If they did you could combine modifications to a layer in a single > variable: > > map_layer[layerName]=filter++tileindex++data+ > > > Only 'data' could be changed with this new mapserver 5 syntax. I > > happened to discover through the change logs that changing tileindex was > > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax > > (map_layerName_tileindex)= - not the new mapserver 5 > > syntax style (map_layer[layerName]=tileindex+). > > Looking at the code, TILEINDEX is not changable via a URL with any syntax. The > change log references a bug fix to 4.10. The old syntax doesn't work at all. > > > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new > > syntax is used for filter and ignores the old 4.10 filter syntax. > > This is expected. It will fail with an error as opposed to the silent failure of versions > past. > > > No URL syntax for changing the web object's metadata content appears > > acceptable to the mapserver 5. > > Correct. > > > I would dearly like to see changing the layer filter via URL restored > > also to mapserver 5. And the web object's metadata setting functionality > > too. > > It's possible to customize this behavior by editing maplexer.l and recompiling > the code. Simply find the keyword you're interested in supporting and change > the states at which it is valid. So, for TILEINDEX: > > tileindex > > becomes: > > tileindex > > Same goes for the other parameters you'd want to activate. > > > Can anyone indicate what mapfile properties are or are not going to be > > reinstated in mapserver 5 compared to mapserver 4 for change via URL? > > Obviously this has development ramifications for us when we try to > > upgrade mapserver. > > If I (or anyone) can think of a way to make this tunable at runtime I'd love > to talk more about it. The set of parameters supported in 5.2 has only changed > a little bit since 5.0 based on user input. I can't see exposing more without > good reason. FILTER in particular is worrisome and there is a work around with > the runtime substitution (e.g. FILTER %someval%). In that example you can > pass someval via URL but you have to define a validation pattern (a regex) to > check it against. > > > Alternatively, am I missing something with new mapserver 5 syntax? > > I'm curious if updating maplexer.l to fit your particular needs is workable. > > > Graeme Watmuff > > Steve > -- Graeme Watmuff Geographic Web Solutions Pty Ltd 17 Tay Road Woodforde South Australia 5072 ph: + 61 8 83364463 From pramsey at cleverelephant.ca Thu Jul 10 20:19:32 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 10 Jul 2008 20:19:32 -0700 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <1215738314.2481.73.camel@bongolx.ringo.net> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215738314.2481.73.camel@bongolx.ringo.net> Message-ID: <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> I'd like to see backwards feature compatibility available, and I think the CGI override controller is one of the most powerful (under-appreciated) features of Mapserver. Since the control of what is over-rideable is in the lexer though, we're sort of in a narrow box. We could do a compile-time option, which would allow us to default to strict but allow (relatively) easy conversion to flexible. That wouldn't really help our Windows brethren though, since they mostly rely on pre-compiled versions, and binary maintainers don't maintain lots of different builds. Having a map-level run-time directive to control the availability of URL over-rides would be the ideal, IMO. Default, NONE. Other options, STRICT and FULL. However, I don't see how to get there from here with the lexer requirement. P. On Thu, Jul 10, 2008 at 6:05 PM, Graeme Watmuff wrote: > Hi Steve, > > Thanks for replying and thanks for the coding pointers. You are right > about the mapserv 4.10 tileindex syntax. Like filter, it is simply > ignored by v5 rather than throwing an error. My apologies. > > Would it make sense to create a 'secure' version for the paranoid and a > another version with full functionality? I realize this would create > more maintenance work for you, but not all mapserver users are going to > be able to climb inside the code themselves to modify functionality > (fortunately we can). > > Regarding security, I presume you are concerned about mapserver exposing > sensitive data to unintended users. If so, should you be taking that > responsibility on yourself by limiting mapserver or should the onus be > upon mapserver users to manage their own data more responsibly? I am a > great believer in personal responsibility. If the security risk is made > clear to users, they can make their own decisions as to the data they > potentially expose to the world. > > We have greatly appreciated and benefited from the tremendous work you > and your associates have done in bringing mapserver to the world and we > have always looked forward to the added features of each new version. > But upgrading now comes at some degree of inconvenience for us and maybe > others unless someone wants to publish the workaround to resurrect lost > functionality for all to simply acquire. > > I am not convinced that limiting the previous functionality is the right > direction for mapserver unless you fear say a litigious threat from > security breaches that people may bring upon themselves (hardly your > responsibility). Those with seriously sensitive data are not going to > want expose the CGI to all the world via a browser-sent URL anyway. I > would expect them to send URLs from say, a java web app embedded in a > secured tomcat container. > > Just my thoughts. > > Regards and best wishes > > Graeme > > On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: >> Hi Graeme: Comments inline... I definitely underestimated the impacts of those >> changes. Anyway... >> >> >>> On 7/9/2008 at 11:23 PM, in message >> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >> wrote: >> > It has become apparent through some frustrating moments of trial and >> > error that many of the mapfile variables that were changeable via URL >> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. >> > There is a hint from the docs that this is because of security concerns? >> > Our java apps don't allow web users to directly interact with the CGI, >> > so security doesn't seem so important in our case. >> >> Allowing unaltered, direct modification of things like FILTERs or CONNECTIONS >> is a potential security risk although I've never run across a documented case. Filters >> are risky because they are passed to the underlying data driver which generally >> trust the contents. >> >> > Some examples: >> > >> > map_web_metadata='text1' 'text2' >> > map_layerName_filter= >> > map_layerName_tileindex= >> > map_layerName_data= >> > >> > allow changes to the mapfile via URL with mapserver 4.10.x >> > >> > Following the new syntax specified for v5 + I had expected >> > >> > map_web=metadata+"'text1' 'text2'" or maybe >> > map_web_metadata[0]='text1'+'text2', >> > map_layer[layerName]=filter+, >> > map_layer[layerName]=tileindex+, >> > map_layer[layerName]=data+ >> > >> > to all perform in the time-honoured way. >> >> And they don't... If they did you could combine modifications to a layer in a single >> variable: >> >> map_layer[layerName]=filter++tileindex++data+ >> >> > Only 'data' could be changed with this new mapserver 5 syntax. I >> > happened to discover through the change logs that changing tileindex was >> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax >> > (map_layerName_tileindex)= - not the new mapserver 5 >> > syntax style (map_layer[layerName]=tileindex+). >> >> Looking at the code, TILEINDEX is not changable via a URL with any syntax. The >> change log references a bug fix to 4.10. The old syntax doesn't work at all. >> >> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new >> > syntax is used for filter and ignores the old 4.10 filter syntax. >> >> This is expected. It will fail with an error as opposed to the silent failure of versions >> past. >> >> > No URL syntax for changing the web object's metadata content appears >> > acceptable to the mapserver 5. >> >> Correct. >> >> > I would dearly like to see changing the layer filter via URL restored >> > also to mapserver 5. And the web object's metadata setting functionality >> > too. >> >> It's possible to customize this behavior by editing maplexer.l and recompiling >> the code. Simply find the keyword you're interested in supporting and change >> the states at which it is valid. So, for TILEINDEX: >> >> tileindex >> >> becomes: >> >> tileindex >> >> Same goes for the other parameters you'd want to activate. >> >> > Can anyone indicate what mapfile properties are or are not going to be >> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? >> > Obviously this has development ramifications for us when we try to >> > upgrade mapserver. >> >> If I (or anyone) can think of a way to make this tunable at runtime I'd love >> to talk more about it. The set of parameters supported in 5.2 has only changed >> a little bit since 5.0 based on user input. I can't see exposing more without >> good reason. FILTER in particular is worrisome and there is a work around with >> the runtime substitution (e.g. FILTER %someval%). In that example you can >> pass someval via URL but you have to define a validation pattern (a regex) to >> check it against. >> >> > Alternatively, am I missing something with new mapserver 5 syntax? >> >> I'm curious if updating maplexer.l to fit your particular needs is workable. >> >> > Graeme Watmuff >> >> Steve >> > -- > Graeme Watmuff > Geographic Web Solutions Pty Ltd > 17 Tay Road > Woodforde > South Australia 5072 > ph: + 61 8 83364463 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Jul 10 22:24:38 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 11 Jul 2008 00:24:38 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215738314.2481.73.camel@bongolx.ringo.net> <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> Message-ID: <4876EE96.3020705@swoodbridge.com> Paul Ramsey wrote: > I'd like to see backwards feature compatibility available, and I think > the CGI override controller is one of the most powerful > (under-appreciated) features of Mapserver. > > Since the control of what is over-rideable is in the lexer though, > we're sort of in a narrow box. We could do a compile-time option, > which would allow us to default to strict but allow (relatively) easy > conversion to flexible. That wouldn't really help our Windows brethren > though, since they mostly rely on pre-compiled versions, and binary > maintainers don't maintain lots of different builds. > > Having a map-level run-time directive to control the availability of > URL over-rides would be the ideal, IMO. Default, NONE. Other > options, STRICT and FULL. However, I don't see how to get there from > here with the lexer requirement. Paul, I think you would just build it with the lexer support always enabled but have the runtime restrict access to the feature based on the NONE|STRICT|FULL control flag. -Steve W > P. > > On Thu, Jul 10, 2008 at 6:05 PM, Graeme Watmuff > wrote: >> Hi Steve, >> >> Thanks for replying and thanks for the coding pointers. You are right >> about the mapserv 4.10 tileindex syntax. Like filter, it is simply >> ignored by v5 rather than throwing an error. My apologies. >> >> Would it make sense to create a 'secure' version for the paranoid and a >> another version with full functionality? I realize this would create >> more maintenance work for you, but not all mapserver users are going to >> be able to climb inside the code themselves to modify functionality >> (fortunately we can). >> >> Regarding security, I presume you are concerned about mapserver exposing >> sensitive data to unintended users. If so, should you be taking that >> responsibility on yourself by limiting mapserver or should the onus be >> upon mapserver users to manage their own data more responsibly? I am a >> great believer in personal responsibility. If the security risk is made >> clear to users, they can make their own decisions as to the data they >> potentially expose to the world. >> >> We have greatly appreciated and benefited from the tremendous work you >> and your associates have done in bringing mapserver to the world and we >> have always looked forward to the added features of each new version. >> But upgrading now comes at some degree of inconvenience for us and maybe >> others unless someone wants to publish the workaround to resurrect lost >> functionality for all to simply acquire. >> >> I am not convinced that limiting the previous functionality is the right >> direction for mapserver unless you fear say a litigious threat from >> security breaches that people may bring upon themselves (hardly your >> responsibility). Those with seriously sensitive data are not going to >> want expose the CGI to all the world via a browser-sent URL anyway. I >> would expect them to send URLs from say, a java web app embedded in a >> secured tomcat container. >> >> Just my thoughts. >> >> Regards and best wishes >> >> Graeme >> >> On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: >>> Hi Graeme: Comments inline... I definitely underestimated the impacts of those >>> changes. Anyway... >>> >>>>>> On 7/9/2008 at 11:23 PM, in message >>> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >>> wrote: >>>> It has become apparent through some frustrating moments of trial and >>>> error that many of the mapfile variables that were changeable via URL >>>> with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. >>>> There is a hint from the docs that this is because of security concerns? >>>> Our java apps don't allow web users to directly interact with the CGI, >>>> so security doesn't seem so important in our case. >>> Allowing unaltered, direct modification of things like FILTERs or CONNECTIONS >>> is a potential security risk although I've never run across a documented case. Filters >>> are risky because they are passed to the underlying data driver which generally >>> trust the contents. >>> >>>> Some examples: >>>> >>>> map_web_metadata='text1' 'text2' >>>> map_layerName_filter= >>>> map_layerName_tileindex= >>>> map_layerName_data= >>>> >>>> allow changes to the mapfile via URL with mapserver 4.10.x >>>> >>>> Following the new syntax specified for v5 + I had expected >>>> >>>> map_web=metadata+"'text1' 'text2'" or maybe >>>> map_web_metadata[0]='text1'+'text2', >>>> map_layer[layerName]=filter+, >>>> map_layer[layerName]=tileindex+, >>>> map_layer[layerName]=data+ >>>> >>>> to all perform in the time-honoured way. >>> And they don't... If they did you could combine modifications to a layer in a single >>> variable: >>> >>> map_layer[layerName]=filter++tileindex++data+ >>> >>>> Only 'data' could be changed with this new mapserver 5 syntax. I >>>> happened to discover through the change logs that changing tileindex was >>>> reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax >>>> (map_layerName_tileindex)= - not the new mapserver 5 >>>> syntax style (map_layer[layerName]=tileindex+). >>> Looking at the code, TILEINDEX is not changable via a URL with any syntax. The >>> change log references a bug fix to 4.10. The old syntax doesn't work at all. >>> >>>> mapserv 5 CGI throws an error (Parsing error near (filter)) when the new >>>> syntax is used for filter and ignores the old 4.10 filter syntax. >>> This is expected. It will fail with an error as opposed to the silent failure of versions >>> past. >>> >>>> No URL syntax for changing the web object's metadata content appears >>>> acceptable to the mapserver 5. >>> Correct. >>> >>>> I would dearly like to see changing the layer filter via URL restored >>>> also to mapserver 5. And the web object's metadata setting functionality >>>> too. >>> It's possible to customize this behavior by editing maplexer.l and recompiling >>> the code. Simply find the keyword you're interested in supporting and change >>> the states at which it is valid. So, for TILEINDEX: >>> >>> tileindex >>> >>> becomes: >>> >>> tileindex >>> >>> Same goes for the other parameters you'd want to activate. >>> >>>> Can anyone indicate what mapfile properties are or are not going to be >>>> reinstated in mapserver 5 compared to mapserver 4 for change via URL? >>>> Obviously this has development ramifications for us when we try to >>>> upgrade mapserver. >>> If I (or anyone) can think of a way to make this tunable at runtime I'd love >>> to talk more about it. The set of parameters supported in 5.2 has only changed >>> a little bit since 5.0 based on user input. I can't see exposing more without >>> good reason. FILTER in particular is worrisome and there is a work around with >>> the runtime substitution (e.g. FILTER %someval%). In that example you can >>> pass someval via URL but you have to define a validation pattern (a regex) to >>> check it against. >>> >>>> Alternatively, am I missing something with new mapserver 5 syntax? >>> I'm curious if updating maplexer.l to fit your particular needs is workable. >>> >>>> Graeme Watmuff >>> Steve >>> >> -- >> Graeme Watmuff >> Geographic Web Solutions Pty Ltd >> 17 Tay Road >> Woodforde >> South Australia 5072 >> ph: + 61 8 83364463 >> >> _______________________________________________ >> 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 pramsey at cleverelephant.ca Thu Jul 10 21:32:18 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 10 Jul 2008 21:32:18 -0700 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <4876EE96.3020705@swoodbridge.com> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215738314.2481.73.camel@bongolx.ringo.net> <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> <4876EE96.3020705@swoodbridge.com> Message-ID: <30fe546d0807102132y52187d24x3c356f2b55b9304@mail.gmail.com> Well, yes, but you have to understand, I'm very very lazy :) P On Thu, Jul 10, 2008 at 10:24 PM, Stephen Woodbridge wrote: > Paul Ramsey wrote: >> >> I'd like to see backwards feature compatibility available, and I think >> the CGI override controller is one of the most powerful >> (under-appreciated) features of Mapserver. >> >> Since the control of what is over-rideable is in the lexer though, >> we're sort of in a narrow box. We could do a compile-time option, >> which would allow us to default to strict but allow (relatively) easy >> conversion to flexible. That wouldn't really help our Windows brethren >> though, since they mostly rely on pre-compiled versions, and binary >> maintainers don't maintain lots of different builds. >> >> Having a map-level run-time directive to control the availability of >> URL over-rides would be the ideal, IMO. Default, NONE. Other >> options, STRICT and FULL. However, I don't see how to get there from >> here with the lexer requirement. > > Paul, > > I think you would just build it with the lexer support always enabled but > have the runtime restrict access to the feature based on the > NONE|STRICT|FULL control flag. > > -Steve W > > >> P. >> >> On Thu, Jul 10, 2008 at 6:05 PM, Graeme Watmuff >> wrote: >>> >>> Hi Steve, >>> >>> Thanks for replying and thanks for the coding pointers. You are right >>> about the mapserv 4.10 tileindex syntax. Like filter, it is simply >>> ignored by v5 rather than throwing an error. My apologies. >>> >>> Would it make sense to create a 'secure' version for the paranoid and a >>> another version with full functionality? I realize this would create >>> more maintenance work for you, but not all mapserver users are going to >>> be able to climb inside the code themselves to modify functionality >>> (fortunately we can). >>> >>> Regarding security, I presume you are concerned about mapserver exposing >>> sensitive data to unintended users. If so, should you be taking that >>> responsibility on yourself by limiting mapserver or should the onus be >>> upon mapserver users to manage their own data more responsibly? I am a >>> great believer in personal responsibility. If the security risk is made >>> clear to users, they can make their own decisions as to the data they >>> potentially expose to the world. >>> >>> We have greatly appreciated and benefited from the tremendous work you >>> and your associates have done in bringing mapserver to the world and we >>> have always looked forward to the added features of each new version. >>> But upgrading now comes at some degree of inconvenience for us and maybe >>> others unless someone wants to publish the workaround to resurrect lost >>> functionality for all to simply acquire. >>> >>> I am not convinced that limiting the previous functionality is the right >>> direction for mapserver unless you fear say a litigious threat from >>> security breaches that people may bring upon themselves (hardly your >>> responsibility). Those with seriously sensitive data are not going to >>> want expose the CGI to all the world via a browser-sent URL anyway. I >>> would expect them to send URLs from say, a java web app embedded in a >>> secured tomcat container. >>> >>> Just my thoughts. >>> >>> Regards and best wishes >>> >>> Graeme >>> >>> On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: >>>> >>>> Hi Graeme: Comments inline... I definitely underestimated the impacts of >>>> those >>>> changes. Anyway... >>>> >>>>>>> On 7/9/2008 at 11:23 PM, in message >>>> >>>> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >>>> wrote: >>>>> >>>>> It has become apparent through some frustrating moments of trial and >>>>> error that many of the mapfile variables that were changeable via URL >>>>> with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. >>>>> There is a hint from the docs that this is because of security >>>>> concerns? >>>>> Our java apps don't allow web users to directly interact with the CGI, >>>>> so security doesn't seem so important in our case. >>>> >>>> Allowing unaltered, direct modification of things like FILTERs or >>>> CONNECTIONS >>>> is a potential security risk although I've never run across a documented >>>> case. Filters >>>> are risky because they are passed to the underlying data driver which >>>> generally >>>> trust the contents. >>>> >>>>> Some examples: >>>>> >>>>> map_web_metadata='text1' 'text2' >>>>> map_layerName_filter= >>>>> map_layerName_tileindex= >>>>> map_layerName_data= >>>>> >>>>> allow changes to the mapfile via URL with mapserver 4.10.x >>>>> >>>>> Following the new syntax specified for v5 + I had expected >>>>> >>>>> map_web=metadata+"'text1' 'text2'" or maybe >>>>> map_web_metadata[0]='text1'+'text2', >>>>> map_layer[layerName]=filter+, >>>>> map_layer[layerName]=tileindex+, >>>>> map_layer[layerName]=data+ >>>>> >>>>> to all perform in the time-honoured way. >>>> >>>> And they don't... If they did you could combine modifications to a layer >>>> in a single >>>> variable: >>>> >>>> >>>> map_layer[layerName]=filter++tileindex++data+ >>>> >>>>> Only 'data' could be changed with this new mapserver 5 syntax. I >>>>> happened to discover through the change logs that changing tileindex >>>>> was >>>>> reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax >>>>> (map_layerName_tileindex)= - not the new mapserver 5 >>>>> syntax style (map_layer[layerName]=tileindex+). >>>> >>>> Looking at the code, TILEINDEX is not changable via a URL with any >>>> syntax. The >>>> change log references a bug fix to 4.10. The old syntax doesn't work at >>>> all. >>>> >>>>> mapserv 5 CGI throws an error (Parsing error near (filter)) when the >>>>> new >>>>> syntax is used for filter and ignores the old 4.10 filter syntax. >>>> >>>> This is expected. It will fail with an error as opposed to the silent >>>> failure of versions >>>> past. >>>> >>>>> No URL syntax for changing the web object's metadata content appears >>>>> acceptable to the mapserver 5. >>>> >>>> Correct. >>>> >>>>> I would dearly like to see changing the layer filter via URL restored >>>>> also to mapserver 5. And the web object's metadata setting >>>>> functionality >>>>> too. >>>> >>>> It's possible to customize this behavior by editing maplexer.l and >>>> recompiling >>>> the code. Simply find the keyword you're interested in supporting and >>>> change >>>> the states at which it is valid. So, for TILEINDEX: >>>> >>>> tileindex >>>> >>>> becomes: >>>> >>>> tileindex >>>> >>>> Same goes for the other parameters you'd want to activate. >>>> >>>>> Can anyone indicate what mapfile properties are or are not going to be >>>>> reinstated in mapserver 5 compared to mapserver 4 for change via URL? >>>>> Obviously this has development ramifications for us when we try to >>>>> upgrade mapserver. >>>> >>>> If I (or anyone) can think of a way to make this tunable at runtime I'd >>>> love >>>> to talk more about it. The set of parameters supported in 5.2 has only >>>> changed >>>> a little bit since 5.0 based on user input. I can't see exposing more >>>> without >>>> good reason. FILTER in particular is worrisome and there is a work >>>> around with >>>> the runtime substitution (e.g. FILTER %someval%). In that example you >>>> can >>>> pass someval via URL but you have to define a validation pattern (a >>>> regex) to >>>> check it against. >>>> >>>>> Alternatively, am I missing something with new mapserver 5 syntax? >>>> >>>> I'm curious if updating maplexer.l to fit your particular needs is >>>> workable. >>>> >>>>> Graeme Watmuff >>>> >>>> Steve >>>> >>> -- >>> Graeme Watmuff >>> Geographic Web Solutions Pty Ltd >>> 17 Tay Road >>> Woodforde >>> South Australia 5072 >>> ph: + 61 8 83364463 >>> >>> _______________________________________________ >>> 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 percyd at pdx.edu Fri Jul 11 07:38:40 2008 From: percyd at pdx.edu (percy) Date: Fri, 11 Jul 2008 07:38:40 -0700 Subject: [mapserver-users] WMS raster display,getfeatureinfo from vector layer In-Reply-To: <48769E71.2040601@pdx.edu> References: <48765F96.20209@pdx.edu> <48763BA5.5157.008F.0@dnr.state.mn.us> <48769E71.2040601@pdx.edu> Message-ID: <48777070.6030303@pdx.edu> I'm starting to think that just handling this with a mapscript wrapper script might be the easiest approach. Any thoughts? Thanks, Percy percy wrote: > thanks, nice idea. I tried it, and that did not work... > > relevant mapfile section: > > LAYER > NAME "Geologic_Map_Of_North_America" > TYPE RASTER > STATUS ON > data "/vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif" > maxscale 10000000 > MINSCALE 500000 > Metadata > "WMS_TITLE" "Geologic Map Of North America" > "WMS_SRS" "epsg:4326" > END # metadata > END #layer > LAYER > NAME "Geologic_Map_Of_North_America" > TYPE query > STATUS On > data GMNA_S_OneGeo > TOLERANCE 0 > TOLERANCEUNITS pixels > TRANSFORM TRUE > DUMP TRUE > HEADER "templates/GMNA_query_header.html" > TEMPLATE "templates/GMNA_query_body.html" > FOOTER "templates/GMNA_query_footer.html" > Metadata > "WMS_TITLE" "Geologic Map Of North America" > "WMS_SRS" "epsg:4326" > GML_INCLUDE_ITEMS > "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" > WMS_INCLUDE_ITEMS > "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" > END # metadata > END #layer > > > Steve Lime wrote: >> What about using GROUPs or layers with the same name where the second >> layer >> is TYPE QUERY? >> >> Steve >> >>>>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy >> wrote: >>> I discussed this issue with Tom K. on the IRC yesterday, and he >>> thought it was of general interest and should be posted and >>> potentially requested as a feature. >>> >>> Scenario: we have a Geologic map that has super complex cartography >>> that we don't want to reproduce in the mapfile (600+ classes, tons >>> of patterns, etc). So we dumped out a raster of it to serve as WMS. >>> >>> However, when the user does a GetFeatureInfo on this WMS, we want to >>> return attribute data from the original shapefile. >>> >>> I can envision this being taken care of at the layer level as a >>> metadata tag like "WMS_query_redirect". >>> >>> In the short term we're working on a little apache mod_rewrite magic >>> to take care of it :-) >>> >>> Cheers, >>> Percy >> >> > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From Tom.Kralidis at ec.gc.ca Fri Jul 11 07:43:17 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 11 Jul 2008 10:43:17 -0400 Subject: [mapserver-users] WMS raster display, getfeatureinfo from vectorlayer References: <48765F96.20209@pdx.edu> <48763BA5.5157.008F.0@dnr.state.mn.us> <48769E71.2040601@pdx.edu> <48777070.6030303@pdx.edu> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC2A8@ecburexch1.ontario.int.ec.gc.ca> You could use a mapscript WxS wrapper to, when receiving a GetFeatureInfo request, replace the LAYERS/QUERY_LAYERS parameters with the vector layer. ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of percy Sent: Fri 11-Jul-08 10:38 To: mapserver Cc: Steve Lime Subject: Re: [mapserver-users] WMS raster display,getfeatureinfo from vectorlayer I'm starting to think that just handling this with a mapscript wrapper script might be the easiest approach. Any thoughts? Thanks, Percy percy wrote: > thanks, nice idea. I tried it, and that did not work... > > relevant mapfile section: > > LAYER > NAME "Geologic_Map_Of_North_America" > TYPE RASTER > STATUS ON > data "/vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif" > maxscale 10000000 > MINSCALE 500000 > Metadata > "WMS_TITLE" "Geologic Map Of North America" > "WMS_SRS" "epsg:4326" > END # metadata > END #layer > LAYER > NAME "Geologic_Map_Of_North_America" > TYPE query > STATUS On > data GMNA_S_OneGeo > TOLERANCE 0 > TOLERANCEUNITS pixels > TRANSFORM TRUE > DUMP TRUE > HEADER "templates/GMNA_query_header.html" > TEMPLATE "templates/GMNA_query_body.html" > FOOTER "templates/GMNA_query_footer.html" > Metadata > "WMS_TITLE" "Geologic Map Of North America" > "WMS_SRS" "epsg:4326" > GML_INCLUDE_ITEMS > "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" > WMS_INCLUDE_ITEMS > "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" > END # metadata > END #layer > > > Steve Lime wrote: >> What about using GROUPs or layers with the same name where the second >> layer >> is TYPE QUERY? >> >> Steve >> >>>>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy >> wrote: >>> I discussed this issue with Tom K. on the IRC yesterday, and he >>> thought it was of general interest and should be posted and >>> potentially requested as a feature. >>> >>> Scenario: we have a Geologic map that has super complex cartography >>> that we don't want to reproduce in the mapfile (600+ classes, tons >>> of patterns, etc). So we dumped out a raster of it to serve as WMS. >>> >>> However, when the user does a GetFeatureInfo on this WMS, we want to >>> return attribute data from the original shapefile. >>> >>> I can envision this being taken care of at the layer level as a >>> metadata tag like "WMS_query_redirect". >>> >>> In the short term we're working on a little apache mod_rewrite magic >>> to take care of it :-) >>> >>> Cheers, >>> Percy >> >> > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From BLC at JUB.com Fri Jul 11 08:34:07 2008 From: BLC at JUB.com (Bruce Cheney) Date: Fri, 11 Jul 2008 09:34:07 -0600 Subject: [mapserver-users] WMS raster display, getfeatureinfo from vectorlayer In-Reply-To: <48769E71.2040601@pdx.edu> References: <48765F96.20209@pdx.edu> <48763BA5.5157.008F.0@dnr.state.mn.us> <48769E71.2040601@pdx.edu> Message-ID: Just a couple of thoughts - shouldn't your type be Polygon if you are referring to your polygon shapefile? Then make the symbology for this layer nonintrusive (so the users don't see it). I believe your query will reference the NAME item to obtain specific feature information. LAYER NAME QUERYLAYER DATA yourshapefilename TYPE POLYGON STATUS ON CLASS Define symbology - one symbol for entire layer END TEMPLATE "x" END Bruce Cheney -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of percy Sent: Thursday, July 10, 2008 5:43 PM To: Steve Lime Cc: mapserver Subject: Re: [mapserver-users] WMS raster display,getfeatureinfo from vectorlayer thanks, nice idea. I tried it, and that did not work... relevant mapfile section: LAYER NAME "Geologic_Map_Of_North_America" TYPE RASTER STATUS ON data "/vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif" maxscale 10000000 MINSCALE 500000 Metadata "WMS_TITLE" "Geologic Map Of North America" "WMS_SRS" "epsg:4326" END # metadata END #layer LAYER NAME "Geologic_Map_Of_North_America" TYPE query STATUS On data GMNA_S_OneGeo TOLERANCE 0 TOLERANCEUNITS pixels TRANSFORM TRUE DUMP TRUE HEADER "templates/GMNA_query_header.html" TEMPLATE "templates/GMNA_query_body.html" FOOTER "templates/GMNA_query_footer.html" Metadata "WMS_TITLE" "Geologic Map Of North America" "WMS_SRS" "epsg:4326" GML_INCLUDE_ITEMS "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" WMS_INCLUDE_ITEMS "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" END # metadata END #layer Steve Lime wrote: > What about using GROUPs or layers with the same name where the second > layer is TYPE QUERY? > > Steve > >>>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy > wrote: >> I discussed this issue with Tom K. on the IRC yesterday, and he >> thought it was of general interest and should be posted and >> potentially requested as a feature. >> >> Scenario: we have a Geologic map that has super complex cartography >> that we don't want to reproduce in the mapfile (600+ classes, tons of >> patterns, etc). So we dumped out a raster of it to serve as WMS. >> >> However, when the user does a GetFeatureInfo on this WMS, we want to >> return attribute data from the original shapefile. >> >> I can envision this being taken care of at the layer level as a >> metadata tag like "WMS_query_redirect". >> >> In the short term we're working on a little apache mod_rewrite magic >> to take care of it :-) >> >> Cheers, >> Percy > > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Fri Jul 11 09:41:23 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 11 Jul 2008 11:41:23 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215738314.2481.73.camel@bongolx.ringo.net> <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> Message-ID: <487746E3.5157.008F.0@dnr.state.mn.us> We aren't limited solely to the lexer. DATA and TEMPLATE, the two most widely used CGI overrides have a second control: DATAPATTERN and TEMPLATEPATTERN. When in a particular parsing state we check the appropriate pattern (which NULL, or unmatchable, by default) to decide if we should accept the override or not. The parameters at issue are those that aren't held to any validation by the lexer. Colors, sizes and such all have to be of a certain format or data type. Others like filters, data paths, connection strings etc... aren't subject to validation. We could impose validation like DATAPATTERN or TEMPLATEPATTERN on those parameters specifically. I wouldn't want to add a boat load of new parameters but we could do something like this in layer metadata: METADATA data_validation_pattern 'my pattern' filter_validation_pattern 'another pattern' ... END We already use this scheme for validation of runtime substitutions and query strings for attribute tables. This way the user could control which of these parameters could be overridden at runtime. All parameters that are subject to validation as part of mapfile parsing would be web accessible by default. Other parameters that we never want to allow override of can still be controlled within the lexer. The METADATA code would need special provisions to never allow setting keys ending in "_validation_pattern" from a URL source. DATAPATTERN and TEMPLATEPATTERN would become deprecated. Steve >>> On 7/10/2008 at 10:19 PM, in message <30fe546d0807102019y52beb686oe3ba5ba311cbee49 at mail.gmail.com>, "Paul Ramsey" wrote: > I'd like to see backwards feature compatibility available, and I think > the CGI override controller is one of the most powerful > (under-appreciated) features of Mapserver. > > Since the control of what is over-rideable is in the lexer though, > we're sort of in a narrow box. We could do a compile-time option, > which would allow us to default to strict but allow (relatively) easy > conversion to flexible. That wouldn't really help our Windows brethren > though, since they mostly rely on pre-compiled versions, and binary > maintainers don't maintain lots of different builds. > > Having a map-level run-time directive to control the availability of > URL over-rides would be the ideal, IMO. Default, NONE. Other > options, STRICT and FULL. However, I don't see how to get there from > here with the lexer requirement. > > P. > > On Thu, Jul 10, 2008 at 6:05 PM, Graeme Watmuff > wrote: >> Hi Steve, >> >> Thanks for replying and thanks for the coding pointers. You are right >> about the mapserv 4.10 tileindex syntax. Like filter, it is simply >> ignored by v5 rather than throwing an error. My apologies. >> >> Would it make sense to create a 'secure' version for the paranoid and a >> another version with full functionality? I realize this would create >> more maintenance work for you, but not all mapserver users are going to >> be able to climb inside the code themselves to modify functionality >> (fortunately we can). >> >> Regarding security, I presume you are concerned about mapserver exposing >> sensitive data to unintended users. If so, should you be taking that >> responsibility on yourself by limiting mapserver or should the onus be >> upon mapserver users to manage their own data more responsibly? I am a >> great believer in personal responsibility. If the security risk is made >> clear to users, they can make their own decisions as to the data they >> potentially expose to the world. >> >> We have greatly appreciated and benefited from the tremendous work you >> and your associates have done in bringing mapserver to the world and we >> have always looked forward to the added features of each new version. >> But upgrading now comes at some degree of inconvenience for us and maybe >> others unless someone wants to publish the workaround to resurrect lost >> functionality for all to simply acquire. >> >> I am not convinced that limiting the previous functionality is the right >> direction for mapserver unless you fear say a litigious threat from >> security breaches that people may bring upon themselves (hardly your >> responsibility). Those with seriously sensitive data are not going to >> want expose the CGI to all the world via a browser-sent URL anyway. I >> would expect them to send URLs from say, a java web app embedded in a >> secured tomcat container. >> >> Just my thoughts. >> >> Regards and best wishes >> >> Graeme >> >> On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: >>> Hi Graeme: Comments inline... I definitely underestimated the impacts of > those >>> changes. Anyway... >>> >>> >>> On 7/9/2008 at 11:23 PM, in message >>> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >>> wrote: >>> > It has become apparent through some frustrating moments of trial and >>> > error that many of the mapfile variables that were changeable via URL >>> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. >>> > There is a hint from the docs that this is because of security concerns? >>> > Our java apps don't allow web users to directly interact with the CGI, >>> > so security doesn't seem so important in our case. >>> >>> Allowing unaltered, direct modification of things like FILTERs or > CONNECTIONS >>> is a potential security risk although I've never run across a documented > case. Filters >>> are risky because they are passed to the underlying data driver which > generally >>> trust the contents. >>> >>> > Some examples: >>> > >>> > map_web_metadata='text1' 'text2' >>> > map_layerName_filter= >>> > map_layerName_tileindex= >>> > map_layerName_data= >>> > >>> > allow changes to the mapfile via URL with mapserver 4.10.x >>> > >>> > Following the new syntax specified for v5 + I had expected >>> > >>> > map_web=metadata+"'text1' 'text2'" or maybe >>> > map_web_metadata[0]='text1'+'text2', >>> > map_layer[layerName]=filter+, >>> > map_layer[layerName]=tileindex+, >>> > map_layer[layerName]=data+ >>> > >>> > to all perform in the time-honoured way. >>> >>> And they don't... If they did you could combine modifications to a layer in > a single >>> variable: >>> >>> > map_layer[layerName]=filter++tileindex++data+ rce> >>> >>> > Only 'data' could be changed with this new mapserver 5 syntax. I >>> > happened to discover through the change logs that changing tileindex was >>> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax >>> > (map_layerName_tileindex)= - not the new mapserver 5 >>> > syntax style (map_layer[layerName]=tileindex+). >>> >>> Looking at the code, TILEINDEX is not changable via a URL with any syntax. > The >>> change log references a bug fix to 4.10. The old syntax doesn't work at all. >>> >>> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new >>> > syntax is used for filter and ignores the old 4.10 filter syntax. >>> >>> This is expected. It will fail with an error as opposed to the silent > failure of versions >>> past. >>> >>> > No URL syntax for changing the web object's metadata content appears >>> > acceptable to the mapserver 5. >>> >>> Correct. >>> >>> > I would dearly like to see changing the layer filter via URL restored >>> > also to mapserver 5. And the web object's metadata setting functionality >>> > too. >>> >>> It's possible to customize this behavior by editing maplexer.l and > recompiling >>> the code. Simply find the keyword you're interested in supporting and change >>> the states at which it is valid. So, for TILEINDEX: >>> >>> tileindex >>> >>> becomes: >>> >>> tileindex >>> >>> Same goes for the other parameters you'd want to activate. >>> >>> > Can anyone indicate what mapfile properties are or are not going to be >>> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? >>> > Obviously this has development ramifications for us when we try to >>> > upgrade mapserver. >>> >>> If I (or anyone) can think of a way to make this tunable at runtime I'd love >>> to talk more about it. The set of parameters supported in 5.2 has only > changed >>> a little bit since 5.0 based on user input. I can't see exposing more > without >>> good reason. FILTER in particular is worrisome and there is a work around > with >>> the runtime substitution (e.g. FILTER %someval%). In that example you can >>> pass someval via URL but you have to define a validation pattern (a regex) > to >>> check it against. >>> >>> > Alternatively, am I missing something with new mapserver 5 syntax? >>> >>> I'm curious if updating maplexer.l to fit your particular needs is workable. >>> >>> > Graeme Watmuff >>> >>> Steve >>> >> -- >> Graeme Watmuff >> Geographic Web Solutions Pty Ltd >> 17 Tay Road >> Woodforde >> South Australia 5072 >> ph: + 61 8 83364463 >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From Steve.Lime at dnr.state.mn.us Fri Jul 11 12:40:05 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 11 Jul 2008 14:40:05 -0500 Subject: [mapserver-users] Fwd: [OSGeo-Discuss] Quick Survey References: <7A3E12B0-20BE-4368-9ADF-69094502AE38@osgeo.org> Message-ID: <487770C5.5157.008F.0@dnr.state.mn.us> Hi all: The OSGeo folks are looking for info to aid in conference planning... Steve >>> On 7/11/2008 at 2:22 PM, in message <7A3E12B0-20BE-4368-9ADF-69094502AE38 at osgeo.org>, "Tyler Mitchell (OSGeo)" wrote: > We've got some good responses so far to the OSGeo Survey re: FOSS4G > and other conferences. I know we can get some more input if we > forwarded the invitation to other OSGeo-related software project > lists. I'd love to have some more feedback from software users since > they might attend these events but not be on this list. Could you > please forward to your other lists, where applicable? > > Here is the very short survey: > http://community.osgeo.net/survey/osgeo_events > _______________________________________________ > Discuss mailing list > Discuss at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/discuss From Steve.Lime at dnr.state.mn.us Fri Jul 11 13:10:01 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 11 Jul 2008 15:10:01 -0500 Subject: [mapserver-users] [Scalebar] Wrong values In-Reply-To: <4875D63A.2060401@wowcompany.com> References: <4875B98F.1060708@wowcompany.com> <4875D63A.2060401@wowcompany.com> Message-ID: <487777C9.5157.008F.0@dnr.state.mn.us> Unfortunately MapServer only supports 1 scalebar object so you're kinda stuck unless you change things from your interface. For example, you could get at the scale in a templated interface via the [scale] tag and with a little javascript you could change the UNITS parameter for the scalebar. Something like this (assumes MapServer 5.0+) in your template: and then add a call to updateScalebar() to your onload method, passing a reference to the image used to display the scalebar. A similar technique would work with other clients. The idea of supporting multiple scalebars with MIN/MAX scale denominators is interesting though. I'll file a ticket so it doesn't get lost... Steve >>> On 7/10/2008 at 4:28 AM, in message <4875D63A.2060401 at wowcompany.com>, Fabian Rami wrote: > Fabian Rami a ?crit : >> Hi everyone, >> >> I have a mistake with the scalebar. >> When i use the demo with my mapfile i have meters for europe level , >> centimeters for country level and kilometers for street level. >> >> I still a beginner with MapServer so if you see something wrong >> please tell me :) >> >> I use Teleatlas data, i have found the specification of the data : >> Projection: Geographic (not projected) >> Datum WGS84 (labeled GCS_WGS_1984 in ESRI products) >> Paramaters: >> ?GEOGCS["GCS_WGS_1984", >> ?DATUM["D_WGS_1984", >> ?SPHEROID["WGS_1984",6378137,298.257223563]], >> ?PRIMEM["Greenwich",0], >> ?UNIT["Degree",0.017453292519943295]] >> >> >> THANKS FOR YOUR HELP :o) >> >> > Hummm, i found that the minscale mapscale used to draw the map is the > reason of the error. > > How can i know the good value to put in minscale, maxscale for having a > correct behavior at the scalebar ? > for example : > Before with 65 at the top scale we have a graduation in meters ( +/- 0 > to 80 ) > Now with 65.000.000 at the top scale we have a graduation in kilometers > ( 0 to 4500) > > How know how to set this value correctly ? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Fri Jul 11 13:16:27 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 11 Jul 2008 15:16:27 -0500 Subject: [mapserver-users] legend and layer opacity In-Reply-To: References: Message-ID: <4877794B.5157.008F.0@dnr.state.mn.us> I think your stuck. I consider this a bug (probably) so if you'd be so kind as to file a ticket we can take a look for the 5.4 release or perhaps earlier depending on how difficult the solution is. One work around, although not a great one, would be do develop the image to use for a given layer or class outside of mapserver and use the KEYIMAGE class property to reference it instead of generating one. Steve >>> On 7/10/2008 at 9:02 AM, in message , "Michael Schulz" wrote: > Hi, > > does the legend icon generation take the opacity settings of the > corresponding layer into account? In a mapfile where a layer is set to > 50% opacity the legend shows the colors as if the opacity is 100%. Is > there a way to get legend and map display consistent when using layer > opacity? > > Cheers, Michael From percyd at pdx.edu Fri Jul 11 15:12:17 2008 From: percyd at pdx.edu (percy) Date: Fri, 11 Jul 2008 15:12:17 -0700 Subject: [mapserver-users] WMS raster display, getfeatureinfo from vectorlayer In-Reply-To: References: <48765F96.20209@pdx.edu> <48763BA5.5157.008F.0@dnr.state.mn.us> <48769E71.2040601@pdx.edu> Message-ID: <4877DAC1.4040300@pdx.edu> Bruce, thanks for the suggestion. That might work, and I might try it at some point, but I need this to work across all clients, and what I've noticed is that even if have layers named the same thing, each instance shows up in the list of available layers to the client. Then if the user selects the unobtrusive layer to turn on, they won't see anything, and if they choose the one that has the raster, it won't be queryable! I think either the WxS wrapper or a mod_rewrite are my two potential short term solutions. I'd be delighted to hear otherwise :-) Cheers, Percy Bruce Cheney wrote: > Just a couple of thoughts - shouldn't your type be Polygon if you are > referring to your polygon shapefile? Then make the symbology for this > layer nonintrusive (so the users don't see it). I believe your query > will reference the NAME item to obtain specific feature information. > > LAYER > NAME QUERYLAYER > DATA yourshapefilename > TYPE POLYGON > STATUS ON > > CLASS > Define symbology - one symbol for entire layer > END > > TEMPLATE "x" > END > > > Bruce Cheney > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of percy > Sent: Thursday, July 10, 2008 5:43 PM > To: Steve Lime > Cc: mapserver > Subject: Re: [mapserver-users] WMS raster display,getfeatureinfo from > vectorlayer > > thanks, nice idea. I tried it, and that did not work... > > relevant mapfile section: > > LAYER > NAME "Geologic_Map_Of_North_America" > TYPE RASTER > STATUS ON > data "/vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif" > maxscale 10000000 > MINSCALE 500000 > Metadata > "WMS_TITLE" "Geologic Map Of North America" > "WMS_SRS" "epsg:4326" > END # metadata > END #layer > LAYER > NAME "Geologic_Map_Of_North_America" > TYPE query > STATUS On > data GMNA_S_OneGeo > TOLERANCE 0 > TOLERANCEUNITS pixels > TRANSFORM TRUE > DUMP TRUE > HEADER "templates/GMNA_query_header.html" > TEMPLATE "templates/GMNA_query_body.html" > FOOTER "templates/GMNA_query_footer.html" > Metadata > "WMS_TITLE" "Geologic Map Of North America" > "WMS_SRS" "epsg:4326" > GML_INCLUDE_ITEMS > "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" > WMS_INCLUDE_ITEMS > "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" > END # metadata > END #layer > > > Steve Lime wrote: >> What about using GROUPs or layers with the same name where the second >> layer is TYPE QUERY? >> >> Steve >> >>>>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy >> wrote: >>> I discussed this issue with Tom K. on the IRC yesterday, and he >>> thought it was of general interest and should be posted and >>> potentially requested as a feature. >>> >>> Scenario: we have a Geologic map that has super complex cartography >>> that we don't want to reproduce in the mapfile (600+ classes, tons of > >>> patterns, etc). So we dumped out a raster of it to serve as WMS. >>> >>> However, when the user does a GetFeatureInfo on this WMS, we want to >>> return attribute data from the original shapefile. >>> >>> I can envision this being taken care of at the layer level as a >>> metadata tag like "WMS_query_redirect". >>> >>> In the short term we're working on a little apache mod_rewrite magic >>> to take care of it :-) >>> >>> Cheers, >>> Percy >> > > -- > David Percy > Geospatial Data Manager > Geology Department > Portland State University > http://gisgeek.pdx.edu > 503-725-3373 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From bbrehmer at refractions.net Fri Jul 11 16:03:01 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Fri, 11 Jul 2008 16:03:01 -0700 Subject: [mapserver-users] CGI controls - Symbol Message-ID: <4877E6A5.5040903@refractions.net> Dear All, Just wondering if there are any known problems when trying to modify a symbol via the URL in Mapserver 5.0.3. I am trying to do on-the-fly symbol changes with the CGI variables as follows: ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'./blue_star.gif'&... The above produces no errors and a blank image. Seems to me as though the symbol is simply ignored in the URL because when I assign a color (map.layer[0].class[0].style[0]=COLOR+151+151+151) I get a whole whack of points back. Predefining the SYMBOL in the mapfile (SYMBOL "./blue_star.gif") also works perfectly fine. Not sure if I'm doing something wrong, but I've tried pretty much every combination including using using non-image symbols, playing around with the mapfile, and pulling out my hair. Note that I am also using the DATA CGI var to supply dynamic data content in the same URL (not sure if this would make a difference). Any ideas/suggestions would be greatly appreciated. Thanks, Ben Brehmer The mapfile is pretty straight forward: . .. ... DATAPATTERN ".*" LAYER NAME "pointlayer" DATA "" CONNECTIONTYPE postgis CONNECTION "host=localhost user=postgres port=5432 dbname=name password=pass" CLASSITEM "point_id" CLASS NAME "" STYLE END END ... .. . Mapserver is compiled with the following options: MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From temiz at deprem.gov.tr Sat Jul 12 06:17:45 2008 From: temiz at deprem.gov.tr (orkun) Date: Sat, 12 Jul 2008 16:17:45 +0300 Subject: [mapserver-users] problems and questions in java mapscript Message-ID: <1215868665.8546.30.camel@orkun-desktop> I couldn't manage with java mapscript queryByPoint. I followed this procedure. int q= jeolayer.queryByPoint(map1, pt1, mapscript.MS_SINGLE , 0); int numResults =jeolayer.getNumResults(); if (numResults != 0) { jeolayer.open(); for (int j = 0; j< numResults; j++) { resultCacheMemberObj resultMember = jeolayer.getResult(j); shapeObj shape = new shapeObj(jeolayer.getType().swigValue()); # # Is .swigValue() correct ? int qshape=jeolayer.getShape(shape,resultMember.getTileindex(), resultMember.getShapeindex()); ### it doesn't return to shapeObj ? if (shape != null) { mresult.put(j, shape); #mresult is my Map type object ... # how can I get values of db column . Whatever I tried I got weird results } } jeolayer.close(); I would appreciate if anyone made suggestions regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From temiz at deprem.gov.tr Sat Jul 12 06:23:11 2008 From: temiz at deprem.gov.tr (orkun) Date: Sat, 12 Jul 2008 16:23:11 +0300 Subject: [mapserver-users] couldn't find "mapscript.MS_SUCCESS" Message-ID: <1215868991.8546.33.camel@orkun-desktop> hello I am using java mapscript. I couldn't find anything in my library as "mapscript.MS_SUCCESS" Is compilation error likely ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From yjacolin at free.fr Sun Jul 13 02:20:12 2008 From: yjacolin at free.fr (Yves Jacolin) Date: Sun, 13 Jul 2008 11:20:12 +0200 Subject: [mapserver-users] Typo error in documentation page Message-ID: <200807131120.12888.yjacolin@free.fr> Hi, Working on a french article to present new features for the next release of MS, I found a typo error on the documentation of the WCS 1.1.0: >SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities should be >SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities ---------------------------------------^ in 4.1 GetCapabilities section (http://mapserver.gis.umn.edu/docs/howto/wcs_server/#wcs-1-1-0-issues) Regards, Y. -- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet --- Yves Jacolin http://yjacolin.gloobe.org http://www.gloobe.org -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From woklist at kyngchaos.com Sun Jul 13 09:13:17 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Sun, 13 Jul 2008 11:13:17 -0500 Subject: [mapserver-users] fastcgi/no-fastcgi Message-ID: While reorganizing my OSX build setup, it occurred to me that I might simplify the mapserv CGI build. I've been compiling 2 separate mapserv binaries for with/without fastcgi. Question: if I build mapserv CGI with fastcgi support, can it still run as a normal CGI if desired? ----- William Kyngesburye http://www.kyngchaos.com/ Earth: "Mostly harmless" - revised entry in the HitchHiker's Guide to the Galaxy From jmckenna at gatewaygeomatics.com Sun Jul 13 09:30:18 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 13 Jul 2008 12:30:18 -0400 Subject: [mapserver-users] fastcgi/no-fastcgi In-Reply-To: References: Message-ID: <0DCBEDE9-6175-4A38-A1D7-E57BDF909718@gatewaygeomatics.com> On 13-Jul-08, at 12:13 PM, William Kyngesburye wrote: > While reorganizing my OSX build setup, it occurred to me that I > might simplify the mapserv CGI build. I've been compiling 2 > separate mapserv binaries for with/without fastcgi. > > Question: if I build mapserv CGI with fastcgi support, can it still > run as a normal CGI if desired? > > I don't think 2 mapserv binaries are necessary. For MS4W it will be one mapserv binary, but Apache will be configured for 2 different script aliases for the cgi-bin directory (one with fastcgi settings and one without). So to answer your question: yes a fastcgi-compiled mapserv can run as a normal cgi. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From woklist at kyngchaos.com Sun Jul 13 11:07:14 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Sun, 13 Jul 2008 13:07:14 -0500 Subject: [mapserver-users] fastcgi/no-fastcgi In-Reply-To: <0DCBEDE9-6175-4A38-A1D7-E57BDF909718@gatewaygeomatics.com> References: <0DCBEDE9-6175-4A38-A1D7-E57BDF909718@gatewaygeomatics.com> Message-ID: On Jul 13, 2008, at 11:30 AM, Jeff McKenna wrote: > On 13-Jul-08, at 12:13 PM, William Kyngesburye wrote: > >> While reorganizing my OSX build setup, it occurred to me that I >> might simplify the mapserv CGI build. I've been compiling 2 >> separate mapserv binaries for with/without fastcgi. >> >> Question: if I build mapserv CGI with fastcgi support, can it still >> run as a normal CGI if desired? >> >> > > I don't think 2 mapserv binaries are necessary. For MS4W it will be > one mapserv binary, but Apache will be configured for 2 different > script aliases for the cgi-bin directory (one with fastcgi settings > and one without). So to answer your question: yes a fastcgi- > compiled mapserv can run as a normal cgi. > So, without the Apache configuration to load and configure the apache fastcgi module, "mapserv-fcgi" would run as a normal CGI? Makes sense I guess. Took me a while for this to occur to me ;) Sure simplifies compilation (once, not twice). ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From temiz at deprem.gov.tr Mon Jul 14 01:00:22 2008 From: temiz at deprem.gov.tr (orkun) Date: Mon, 14 Jul 2008 11:00:22 +0300 Subject: [mapserver-users] Java Mapscript shapeObj problem Message-ID: <1216022422.6763.16.camel@orkun-desktop> according to documentation (Building and using Java Mapscript) shapeObj shape = new shapeObj(layer.getType()); But it doesn't return to shapeObj type shapeObj shape = new shapeObj(jeolayer.getType().swigValue()); returns to shapeObj type. Bu I am not sure it is correct implementation. what should I do ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From temiz at deprem.gov.tr Mon Jul 14 05:11:14 2008 From: temiz at deprem.gov.tr (orkun) Date: Mon, 14 Jul 2008 15:11:14 +0300 Subject: [mapserver-users] java mapscript shape.getValue gives nothing Message-ID: <1216037474.6763.28.camel@orkun-desktop> shape.getIndex() # I get this value as 9 that corresponds to correct record number But for (int z=0;z<=shape.getNumvalues();z++) { String VAL=shape.getValue(z); this gives nothing } I have included this to my map file CLASS TEMPLATE "/usr/local/WebApplication23/web/resources/jeo.html" EXPRESSION ('[simge_25]' eq 'Ku' ) STYLE COLOR 2 110 0 END END #class So, what might the reason be ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From anakreon at csd.auth.gr Mon Jul 14 07:18:46 2008 From: anakreon at csd.auth.gr (Anakreon Mentis) Date: Mon, 14 Jul 2008 17:18:46 +0300 Subject: [mapserver-users] Logging Message-ID: <18555.24646.129173.944778@mathind.csd.auth.gr> Hello all. I use mapserver for a small application via the cgi interface. It was working fine but after an upgrade of mapserver (in Debian linux) the app stopped working. The message I get is "Internal Server Error" which gives no hint on what is wrong. I have set: CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" DEBUG ON but the file mapserver.log remains empty despite the error message. I also set to the WEB section of the map: LOG "/tmp/mapserver2.log" but this file is never created. Is my configuration wrong? What should I do to make mapserver log the errors? Thanks in advance, Anakreon From dmorissette at mapgears.com Mon Jul 14 07:23:17 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 14 Jul 2008 10:23:17 -0400 Subject: [mapserver-users] Logging In-Reply-To: <18555.24646.129173.944778@mathind.csd.auth.gr> References: <18555.24646.129173.944778@mathind.csd.auth.gr> Message-ID: <487B6155.4020601@mapgears.com> Anakreon Mentis wrote: > > I use mapserver for a small application via the cgi interface. > It was working fine but after an upgrade of mapserver (in Debian linux) > the app stopped working. > > The message I get is "Internal Server Error" which gives no hint on > what is wrong. > Have a look at your Apache's error_log file. It will very likely contain some hints about the problem. Daniel -- Daniel Morissette http://www.mapgears.com/ From anakreon at csd.auth.gr Mon Jul 14 07:27:14 2008 From: anakreon at csd.auth.gr (Anakreon Mentis) Date: Mon, 14 Jul 2008 17:27:14 +0300 Subject: [mapserver-users] Logging In-Reply-To: <487B6155.4020601@mapgears.com> References: <18555.24646.129173.944778@mathind.csd.auth.gr> <487B6155.4020601@mapgears.com> Message-ID: <18555.25154.239446.494527@mathind.csd.auth.gr> It says: Premature end of script headers: mapserv Can you tell what this means? From dmorissette at mapgears.com Mon Jul 14 07:33:41 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 14 Jul 2008 10:33:41 -0400 Subject: [mapserver-users] Logging In-Reply-To: <18555.25154.239446.494527@mathind.csd.auth.gr> References: <18555.24646.129173.944778@mathind.csd.auth.gr> <487B6155.4020601@mapgears.com> <18555.25154.239446.494527@mathind.csd.auth.gr> Message-ID: <487B63C5.8080408@mapgears.com> Anakreon Mentis wrote: > It says: > Premature end of script headers: mapserv > > Can you tell what this means? Most likely cause is a segmentation fault (i.e. complete crash). If you just access mapserv with no parameters in the URL then do you get the message "No query information to decode. QUERY_STRING is set, but empty." as exepcted or does it crash as well? Perhaps also try running the request that crashes at the command line to see if you also get the crash there: /path/to/mapserv "QUERY_STRING=map=/path/to/yourmap.map&mode=...&..." If it crashes, then you'll need to find out where in the code and why... can you use 'gdb'? Did you build from source or get prebuilt binaries from somewhere? Which version of MapServer did you use before, and now after the upgrade? Daniel -- Daniel Morissette http://www.mapgears.com/ From anakreon at csd.auth.gr Mon Jul 14 07:45:34 2008 From: anakreon at csd.auth.gr (Anakreon Mentis) Date: Mon, 14 Jul 2008 17:45:34 +0300 Subject: [mapserver-users] Logging In-Reply-To: <487B63C5.8080408@mapgears.com> References: <18555.24646.129173.944778@mathind.csd.auth.gr> <487B6155.4020601@mapgears.com> <18555.25154.239446.494527@mathind.csd.auth.gr> <487B63C5.8080408@mapgears.com> Message-ID: <18555.26254.658521.94426@mathind.csd.auth.gr> Daniel Morissette writes: > Anakreon Mentis wrote: > > It says: > > Premature end of script headers: mapserv > > > > Can you tell what this means? > > Most likely cause is a segmentation fault (i.e. complete crash). > > If you just access mapserv with no parameters in the URL then do you get > the message "No query information to decode. QUERY_STRING is set, but > empty." as exepcted or does it crash as well? No. I get the that message > > Perhaps also try running the request that crashes at the command line to > see if you also get the crash there: > > /path/to/mapserv "QUERY_STRING=map=/path/to/yourmap.map&mode=...&..." I pass only the path to the map as parameter. I get a segmentation fault mapserv "QUERY_STRING=map=/home/anakreon/ekby_site/web/gis_files/maps/ekby.map" > > If it crashes, then you'll need to find out where in the code and why... > can you use 'gdb'? Did you build from source or get prebuilt binaries > from somewhere? Which version of MapServer did you use before, and now > after the upgrade? > > Daniel I have binaries from debian. Current version is: cgi-mapserver 5.0.2-3 > -- > Daniel Morissette > http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Mon Jul 14 08:05:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 10:05:02 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <1215735745.2481.71.camel@bongolx.ringo.net> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215735745.2481.71.camel@bongolx.ringo.net> Message-ID: <487B24CD.5157.008F.0@dnr.state.mn.us> Graeme: Did you look at my last reply in the thread? I outlined a possible solution that I would be willing to implement for 5.2.1/5.4 if ok with the PSC. Does that seem workable for you? Steve >>> On 7/10/2008 at 7:22 PM, in message <1215735745.2481.71.camel at bongolx.ringo.net>, Graeme Watmuff wrote: > Hi Steve, > > Thanks for replying and thanks for the coding pointers. You are right > about the mapserv 4.10 tileindex syntax. Like filter, it is simply > ignored by v5 rather than throwing an error. My apologies. > > Would it make sense to create a 'secure' version for the paranoid and a > another version with full functionality? I realize this would create > more maintenance work for you, but not all mapserver users are going to > be able to climb inside the code themselves to modify functionality > (fortunately we can). > > Regarding security, I presume you are concerned about mapserver exposing > sensitive data to unintended users. If so, should you be taking that > responsibility on yourself by limiting mapserver or should the onus be > upon mapserver users to manage their own data more responsibly? I am a > great believer in personal responsibility. If the security risk is made > clear to users, they can make their own decisions as to the data they > potentially expose to the world. > > We have greatly appreciated and benefited from the tremendous work you > and your associates have done in bringing mapserver to the world and we > have always looked forward to the added features of each new version. > But upgrading now comes at some degree of inconvenience for us and maybe > others unless someone wants to publish the workaround to resurrect lost > functionality for all to simply acquire. > > I am not convinced that limiting the previous functionality is the right > direction for mapserver unless you fear say a litigious threat from > security breaches that people may bring upon themselves (hardly your > responsibility). Those with seriously sensitive data are not going to > want expose the CGI to all the world via a browser-sent URL anyway. I > would expect them to send URLs from say, a java web app embedded in a > secured tomcat container. > > Just my thoughts. > > Regards and best wishes > > Graeme > > On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: >> Hi Graeme: Comments inline... I definitely underestimated the impacts of > those >> changes. Anyway... >> >> >>> On 7/9/2008 at 11:23 PM, in message >> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >> wrote: >> > It has become apparent through some frustrating moments of trial and >> > error that many of the mapfile variables that were changeable via URL >> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. >> > There is a hint from the docs that this is because of security concerns? >> > Our java apps don't allow web users to directly interact with the CGI, >> > so security doesn't seem so important in our case. >> >> Allowing unaltered, direct modification of things like FILTERs or > CONNECTIONS >> is a potential security risk although I've never run across a documented > case. Filters >> are risky because they are passed to the underlying data driver which > generally >> trust the contents. >> >> > Some examples: >> > >> > map_web_metadata='text1' 'text2' >> > map_layerName_filter= >> > map_layerName_tileindex= >> > map_layerName_data= >> > >> > allow changes to the mapfile via URL with mapserver 4.10.x >> > >> > Following the new syntax specified for v5 + I had expected >> > >> > map_web=metadata+"'text1' 'text2'" or maybe >> > map_web_metadata[0]='text1'+'text2', >> > map_layer[layerName]=filter+, >> > map_layer[layerName]=tileindex+, >> > map_layer[layerName]=data+ >> > >> > to all perform in the time-honoured way. >> >> And they don't... If they did you could combine modifications to a layer in > a single >> variable: >> >> > map_layer[layerName]=filter++tileindex++data+ rce> >> >> > Only 'data' could be changed with this new mapserver 5 syntax. I >> > happened to discover through the change logs that changing tileindex was >> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax >> > (map_layerName_tileindex)= - not the new mapserver 5 >> > syntax style (map_layer[layerName]=tileindex+). >> >> Looking at the code, TILEINDEX is not changable via a URL with any syntax. > The >> change log references a bug fix to 4.10. The old syntax doesn't work at all. >> >> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new >> > syntax is used for filter and ignores the old 4.10 filter syntax. >> >> This is expected. It will fail with an error as opposed to the silent > failure of versions >> past. >> >> > No URL syntax for changing the web object's metadata content appears >> > acceptable to the mapserver 5. >> >> Correct. >> >> > I would dearly like to see changing the layer filter via URL restored >> > also to mapserver 5. And the web object's metadata setting functionality >> > too. >> >> It's possible to customize this behavior by editing maplexer.l and > recompiling >> the code. Simply find the keyword you're interested in supporting and change >> the states at which it is valid. So, for TILEINDEX: >> >> tileindex >> >> becomes: >> >> tileindex >> >> Same goes for the other parameters you'd want to activate. >> >> > Can anyone indicate what mapfile properties are or are not going to be >> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? >> > Obviously this has development ramifications for us when we try to >> > upgrade mapserver. >> >> If I (or anyone) can think of a way to make this tunable at runtime I'd love >> to talk more about it. The set of parameters supported in 5.2 has only > changed >> a little bit since 5.0 based on user input. I can't see exposing more > without >> good reason. FILTER in particular is worrisome and there is a work around > with >> the runtime substitution (e.g. FILTER %someval%). In that example you can >> pass someval via URL but you have to define a validation pattern (a regex) > to >> check it against. >> >> > Alternatively, am I missing something with new mapserver 5 syntax? >> >> I'm curious if updating maplexer.l to fit your particular needs is workable. >> >> > Graeme Watmuff >> >> Steve >> From dmorissette at mapgears.com Mon Jul 14 08:20:08 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 14 Jul 2008 11:20:08 -0400 Subject: [mapserver-users] Logging In-Reply-To: <18555.26254.658521.94426@mathind.csd.auth.gr> References: <18555.24646.129173.944778@mathind.csd.auth.gr> <487B6155.4020601@mapgears.com> <18555.25154.239446.494527@mathind.csd.auth.gr> <487B63C5.8080408@mapgears.com> <18555.26254.658521.94426@mathind.csd.auth.gr> Message-ID: <487B6EA8.6060003@mapgears.com> Anakreon Mentis wrote: > I pass only the path to the map as parameter. I get a segmentation fault > mapserv "QUERY_STRING=map=/home/anakreon/ekby_site/web/gis_files/maps/ekby.map" > ouch! Does it seg fault as well with one of the MapServer demos, for instance the one at http://mapserver.gis.umn.edu/download/current/demo5x/ ? If the demo mapfile above seg faults as well then that would indicate a problem with the Debian build or some conflict of libs on your box... very little we can do about this, you'd have to report the issue to the package maintainers. You could consider using prebuilt binaries from FGS (http://maptools.org/fgs/) or build completely from source (much more work). If the demo doesn't seg fault, then it could be something in your ekby.map that triggers a bug in the parser or something like that. In this case if you could create a ticket in Trac and attach your mapfile we could try to reproduce the crash on a dev box. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Mon Jul 14 07:58:26 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 09:58:26 -0500 Subject: [mapserver-users] CGI controls - Symbol In-Reply-To: <4877E6A5.5040903@refractions.net> References: <4877E6A5.5040903@refractions.net> Message-ID: <487B2341.5157.008F.0@dnr.state.mn.us> I wonder if this is related to using an image. If you define another named symbol in your mapfile, e.g.: SYMBOL TYPE PIXMAP NAME 'blue_star' IMAGE ./blue_star.gif END and then try to reference it: ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'blue_star'&... Does that work? Might be a reasonable workaround. MapServer resolves symbol names at the end of mapfile parsing and that's probably not happening in this case. The reason we wait until the end is because symbols and symbolsets can be anywhere in the file. This is probably a bug if you'd please file a ticket... Steve >>> On 7/11/2008 at 6:03 PM, in message <4877E6A5.5040903 at refractions.net>, Ben Brehmer wrote: > Dear All, > > Just wondering if there are any known problems when trying to modify a > symbol via the URL in Mapserver 5.0.3. > > I am trying to do on-the-fly symbol changes with the CGI variables as > follows: > > ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'./blue_star.gif'&... > > > The above produces no errors and a blank image. Seems to me as though > the symbol is simply ignored in the URL because when I assign a color > (map.layer[0].class[0].style[0]=COLOR+151+151+151) I get a whole whack > of points back. Predefining the SYMBOL in the mapfile (SYMBOL > "./blue_star.gif") also works perfectly fine. > > > Not sure if I'm doing something wrong, but I've tried pretty much every > combination including using using non-image symbols, playing around with > the mapfile, and pulling out my hair. Note that I am also using the DATA > CGI var to supply dynamic data content in the same URL (not sure if this > would make a difference). > > Any ideas/suggestions would be greatly appreciated. > > Thanks, > > Ben Brehmer > > > > > The mapfile is pretty straight forward: > . > .. > ... > DATAPATTERN ".*" > > LAYER > NAME "pointlayer" > DATA "" > CONNECTIONTYPE postgis > CONNECTION "host=localhost user=postgres port=5432 dbname=name > password=pass" > CLASSITEM "point_id" > CLASS > NAME "" > STYLE > END > END > ... > .. > . > > Mapserver is compiled with the following options: > MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > SUPPORTS=FASTCGI INPUT=EPPL7 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 From anakreon at csd.auth.gr Mon Jul 14 08:26:35 2008 From: anakreon at csd.auth.gr (Anakreon Mentis) Date: Mon, 14 Jul 2008 18:26:35 +0300 Subject: [mapserver-users] Logging In-Reply-To: <487B6EA8.6060003@mapgears.com> References: <18555.24646.129173.944778@mathind.csd.auth.gr> <487B6155.4020601@mapgears.com> <18555.25154.239446.494527@mathind.csd.auth.gr> <487B63C5.8080408@mapgears.com> <18555.26254.658521.94426@mathind.csd.auth.gr> <487B6EA8.6060003@mapgears.com> Message-ID: <18555.28715.178118.155589@mathind.csd.auth.gr> Daniel Morissette writes: > Anakreon Mentis wrote: > > I pass only the path to the map as parameter. I get a segmentation fault > > mapserv "QUERY_STRING=map=/home/anakreon/ekby_site/web/gis_files/maps/ekby.map" > > > > ouch! > > Does it seg fault as well with one of the MapServer demos, for instance > the one at http://mapserver.gis.umn.edu/download/current/demo5x/ ? It segfaults. > > If the demo mapfile above seg faults as well then that would indicate a > problem with the Debian build or some conflict of libs on your box... > very little we can do about this, you'd have to report the issue to the > package maintainers. You could consider using prebuilt binaries from FGS > (http://maptools.org/fgs/) or build completely from source (much more work). > I will report to debian. Thanks for your time. From Steve.Lime at dnr.state.mn.us Mon Jul 14 08:49:37 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 10:49:37 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <487746E3.5157.008F.0@dnr.state.mn.us> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215738314.2481.73.camel@bongolx.ringo.net> <30fe546d0807102019y52beb686oe3ba5ba311cbee49@mail.gmail.com> <487746E3.5157.008F.0@dnr.state.mn.us> Message-ID: <487B2F40.5157.008F.0@dnr.state.mn.us> FYI I've created ticket http://trac.osgeo.org/mapserver/ticket/2699 to track this... Steve >>> On 7/11/2008 at 11:41 AM, in message <487746E3.5157.008F.0 at dnr.state.mn.us>, "Steve Lime" wrote: > We aren't limited solely to the lexer. DATA and TEMPLATE, the two most widely > used CGI > overrides have a second control: DATAPATTERN and TEMPLATEPATTERN. When in a > particular > parsing state we check the appropriate pattern (which NULL, or unmatchable, > by default) to > decide if we should accept the override or not. The parameters at issue are > those that aren't > held to any validation by the lexer. Colors, sizes and such all have to be > of a certain format > or data type. Others like filters, data paths, connection strings etc... > aren't subject to > validation. We could impose validation like DATAPATTERN or TEMPLATEPATTERN > on those > parameters specifically. I wouldn't want to add a boat load of new > parameters but we could > do something like this in layer metadata: > > METADATA > data_validation_pattern 'my pattern' > filter_validation_pattern 'another pattern' > ... > END > > We already use this scheme for validation of runtime substitutions and query > strings for attribute > tables. This way the user could control which of these parameters could be > overridden at runtime. > All parameters that are subject to validation as part of mapfile parsing > would be web accessible > by default. Other parameters that we never want to allow override of can > still be controlled within > the lexer. > > The METADATA code would need special provisions to never allow setting keys > ending in > "_validation_pattern" from a URL source. > > DATAPATTERN and TEMPLATEPATTERN would become deprecated. > > Steve > >>>> On 7/10/2008 at 10:19 PM, in message > <30fe546d0807102019y52beb686oe3ba5ba311cbee49 at mail.gmail.com>, "Paul Ramsey" > wrote: >> I'd like to see backwards feature compatibility available, and I think >> the CGI override controller is one of the most powerful >> (under-appreciated) features of Mapserver. >> >> Since the control of what is over-rideable is in the lexer though, >> we're sort of in a narrow box. We could do a compile-time option, >> which would allow us to default to strict but allow (relatively) easy >> conversion to flexible. That wouldn't really help our Windows brethren >> though, since they mostly rely on pre-compiled versions, and binary >> maintainers don't maintain lots of different builds. >> >> Having a map-level run-time directive to control the availability of >> URL over-rides would be the ideal, IMO. Default, NONE. Other >> options, STRICT and FULL. However, I don't see how to get there from >> here with the lexer requirement. >> >> P. >> >> On Thu, Jul 10, 2008 at 6:05 PM, Graeme Watmuff >> wrote: >>> Hi Steve, >>> >>> Thanks for replying and thanks for the coding pointers. You are right >>> about the mapserv 4.10 tileindex syntax. Like filter, it is simply >>> ignored by v5 rather than throwing an error. My apologies. >>> >>> Would it make sense to create a 'secure' version for the paranoid and a >>> another version with full functionality? I realize this would create >>> more maintenance work for you, but not all mapserver users are going to >>> be able to climb inside the code themselves to modify functionality >>> (fortunately we can). >>> >>> Regarding security, I presume you are concerned about mapserver exposing >>> sensitive data to unintended users. If so, should you be taking that >>> responsibility on yourself by limiting mapserver or should the onus be >>> upon mapserver users to manage their own data more responsibly? I am a >>> great believer in personal responsibility. If the security risk is made >>> clear to users, they can make their own decisions as to the data they >>> potentially expose to the world. >>> >>> We have greatly appreciated and benefited from the tremendous work you >>> and your associates have done in bringing mapserver to the world and we >>> have always looked forward to the added features of each new version. >>> But upgrading now comes at some degree of inconvenience for us and maybe >>> others unless someone wants to publish the workaround to resurrect lost >>> functionality for all to simply acquire. >>> >>> I am not convinced that limiting the previous functionality is the right >>> direction for mapserver unless you fear say a litigious threat from >>> security breaches that people may bring upon themselves (hardly your >>> responsibility). Those with seriously sensitive data are not going to >>> want expose the CGI to all the world via a browser-sent URL anyway. I >>> would expect them to send URLs from say, a java web app embedded in a >>> secured tomcat container. >>> >>> Just my thoughts. >>> >>> Regards and best wishes >>> >>> Graeme >>> >>> On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: >>>> Hi Graeme: Comments inline... I definitely underestimated the impacts of >> those >>>> changes. Anyway... >>>> >>>> >>> On 7/9/2008 at 11:23 PM, in message >>>> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff >>>> wrote: >>>> > It has become apparent through some frustrating moments of trial and >>>> > error that many of the mapfile variables that were changeable via URL >>>> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. >>>> > There is a hint from the docs that this is because of security concerns? >>>> > Our java apps don't allow web users to directly interact with the CGI, >>>> > so security doesn't seem so important in our case. >>>> >>>> Allowing unaltered, direct modification of things like FILTERs or >> CONNECTIONS >>>> is a potential security risk although I've never run across a documented >> case. Filters >>>> are risky because they are passed to the underlying data driver which >> generally >>>> trust the contents. >>>> >>>> > Some examples: >>>> > >>>> > map_web_metadata='text1' 'text2' >>>> > map_layerName_filter= >>>> > map_layerName_tileindex= >>>> > map_layerName_data= >>>> > >>>> > allow changes to the mapfile via URL with mapserver 4.10.x >>>> > >>>> > Following the new syntax specified for v5 + I had expected >>>> > >>>> > map_web=metadata+"'text1' 'text2'" or maybe >>>> > map_web_metadata[0]='text1'+'text2', >>>> > map_layer[layerName]=filter+, >>>> > map_layer[layerName]=tileindex+, >>>> > map_layer[layerName]=data+ >>>> > >>>> > to all perform in the time-honoured way. >>>> >>>> And they don't... If they did you could combine modifications to a layer in >> a single >>>> variable: >>>> >>>> >> map_layer[layerName]=filter++tileindex++data+> rce> >>>> >>>> > Only 'data' could be changed with this new mapserver 5 syntax. I >>>> > happened to discover through the change logs that changing tileindex was >>>> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax >>>> > (map_layerName_tileindex)= - not the new mapserver 5 >>>> > syntax style (map_layer[layerName]=tileindex+). >>>> >>>> Looking at the code, TILEINDEX is not changable via a URL with any syntax. >> The >>>> change log references a bug fix to 4.10. The old syntax doesn't work at all. >>>> >>>> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new >>>> > syntax is used for filter and ignores the old 4.10 filter syntax. >>>> >>>> This is expected. It will fail with an error as opposed to the silent >> failure of versions >>>> past. >>>> >>>> > No URL syntax for changing the web object's metadata content appears >>>> > acceptable to the mapserver 5. >>>> >>>> Correct. >>>> >>>> > I would dearly like to see changing the layer filter via URL restored >>>> > also to mapserver 5. And the web object's metadata setting functionality >>>> > too. >>>> >>>> It's possible to customize this behavior by editing maplexer.l and >> recompiling >>>> the code. Simply find the keyword you're interested in supporting and change >>>> the states at which it is valid. So, for TILEINDEX: >>>> >>>> tileindex >>>> >>>> becomes: >>>> >>>> tileindex >>>> >>>> Same goes for the other parameters you'd want to activate. >>>> >>>> > Can anyone indicate what mapfile properties are or are not going to be >>>> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? >>>> > Obviously this has development ramifications for us when we try to >>>> > upgrade mapserver. >>>> >>>> If I (or anyone) can think of a way to make this tunable at runtime I'd love >>>> to talk more about it. The set of parameters supported in 5.2 has only >> changed >>>> a little bit since 5.0 based on user input. I can't see exposing more >> without >>>> good reason. FILTER in particular is worrisome and there is a work around >> with >>>> the runtime substitution (e.g. FILTER %someval%). In that example you can >>>> pass someval via URL but you have to define a validation pattern (a regex) >> to >>>> check it against. >>>> >>>> > Alternatively, am I missing something with new mapserver 5 syntax? >>>> >>>> I'm curious if updating maplexer.l to fit your particular needs is workable. >>>> >>>> > Graeme Watmuff >>>> >>>> Steve >>>> >>> -- >>> Graeme Watmuff >>> Geographic Web Solutions Pty Ltd >>> 17 Tay Road >>> Woodforde >>> South Australia 5072 >>> ph: + 61 8 83364463 >>> >>> _______________________________________________ >>> 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 schroeter at netgis.de Mon Jul 14 09:23:27 2008 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 14 Jul 2008 18:23:27 +0200 Subject: [mapserver-users] toWKT() method Message-ID: <002a01c8e5cd$f2ea5900$08b2a8c0@SVEN> Hi all, I'm using PHP-Mapscript with GEOS (Mapserver 5) to get a WKT-String from a POSTGIS-Table: $mywkt = $shpobj->toWKT(); Everything works fine for POLYGON, LINESTRING and POINT - tables. If I try the "toWKT()" Method for MULTIPOLYGON-Tables I get back a POLYGON WKT-String. What can I do? Thanks, Sven -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Jul 14 09:39:12 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 14 Jul 2008 12:39:12 -0400 Subject: [mapserver-users] toWKT() method In-Reply-To: <002a01c8e5cd$f2ea5900$08b2a8c0@SVEN> References: <002a01c8e5cd$f2ea5900$08b2a8c0@SVEN> Message-ID: <487B8130.7080806@pobox.com> Sven Schroeter wrote: > Hi all, > > I'm using PHP-Mapscript with GEOS (Mapserver 5) to get a WKT-String from > a POSTGIS-Table: > > $mywkt = $shpobj->toWKT(); > > Everything works fine for POLYGON, LINESTRING and POINT - tables. > If I try the "toWKT()" Method for MULTIPOLYGON-Tables I get back a > POLYGON WKT-String. > What can I do? Sven, The MapServer internal geometry model does not differentiate between polygons and multipolygons so it is very hard to preserve the original multipolygon without doing a great deal of processing on the rings held by mapserver to determine whether they are really holes in a polygon or distinct polygons in a multipolygon. Basically, you are out of luck. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bbrehmer at refractions.net Mon Jul 14 09:57:46 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Mon, 14 Jul 2008 09:57:46 -0700 Subject: [mapserver-users] CGI controls - Symbol In-Reply-To: <487B2341.5157.008F.0@dnr.state.mn.us> References: <4877E6A5.5040903@refractions.net> <487B2341.5157.008F.0@dnr.state.mn.us> Message-ID: <487B858A.8000306@refractions.net> Thanks Steve, Just tried creating a symbol image in my mapfile and referencing that through the URL with no luck. I've created a ticket for this: http://trac.osgeo.org/mapserver/ticket/2700 Cheers, Ben Steve Lime wrote: > I wonder if this is related to using an image. If you define another named symbol in your > mapfile, e.g.: > > SYMBOL > TYPE PIXMAP > NAME 'blue_star' > IMAGE ./blue_star.gif > END > > and then try to reference it: > > ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'blue_star'&... > > Does that work? Might be a reasonable workaround. > > MapServer resolves symbol names at the end of mapfile parsing and that's probably not > happening in this case. The reason we wait until the end is because symbols and symbolsets > can be anywhere in the file. This is probably a bug if you'd please file a ticket... > > Steve > > > >>>> On 7/11/2008 at 6:03 PM, in message <4877E6A5.5040903 at refractions.net>, Ben >>>> > Brehmer wrote: > >> Dear All, >> >> Just wondering if there are any known problems when trying to modify a >> symbol via the URL in Mapserver 5.0.3. >> >> I am trying to do on-the-fly symbol changes with the CGI variables as >> follows: >> >> ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'./blue_star.gif'&... >> >> >> The above produces no errors and a blank image. Seems to me as though >> the symbol is simply ignored in the URL because when I assign a color >> (map.layer[0].class[0].style[0]=COLOR+151+151+151) I get a whole whack >> of points back. Predefining the SYMBOL in the mapfile (SYMBOL >> "./blue_star.gif") also works perfectly fine. >> >> >> Not sure if I'm doing something wrong, but I've tried pretty much every >> combination including using using non-image symbols, playing around with >> the mapfile, and pulling out my hair. Note that I am also using the DATA >> CGI var to supply dynamic data content in the same URL (not sure if this >> would make a difference). >> >> Any ideas/suggestions would be greatly appreciated. >> >> Thanks, >> >> Ben Brehmer >> >> >> >> >> The mapfile is pretty straight forward: >> . >> .. >> ... >> DATAPATTERN ".*" >> >> LAYER >> NAME "pointlayer" >> DATA "" >> CONNECTIONTYPE postgis >> CONNECTION "host=localhost user=postgres port=5432 dbname=name >> password=pass" >> CLASSITEM "point_id" >> CLASS >> NAME "" >> STYLE >> END >> END >> ... >> .. >> . >> >> Mapserver is compiled with the following options: >> MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >> SUPPORTS=FASTCGI INPUT=EPPL7 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 >> > > From Steve.Lime at dnr.state.mn.us Mon Jul 14 10:53:36 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 12:53:36 -0500 Subject: [mapserver-users] toWKT() method In-Reply-To: <487B8130.7080806@pobox.com> References: <002a01c8e5cd$f2ea5900$08b2a8c0@SVEN> <487B8130.7080806@pobox.com> Message-ID: <487B4C4F.5157.008F.0@dnr.state.mn.us> In the GEOS code though I go to great length to create a proper multipolygon geometry in GEOS by determining which rings are inner or outer. GEOS in turn should generate a multipolygon WKT string then if appropriate. That said, this is all done on a shape by shape basis with no connection to the source table type. In other words you'll only see a multipolygon if the geometry truly is one. If you have a multipolygon that isn't right in wkt then we have a bug to address. Steve >>> On 7/14/2008 at 11:39 AM, in message <487B8130.7080806 at pobox.com>, Frank Warmerdam wrote: > Sven Schroeter wrote: >> Hi all, >> >> I'm using PHP-Mapscript with GEOS (Mapserver 5) to get a WKT-String from >> a POSTGIS-Table: >> >> $mywkt = $shpobj->toWKT(); >> >> Everything works fine for POLYGON, LINESTRING and POINT - tables. >> If I try the "toWKT()" Method for MULTIPOLYGON-Tables I get back a >> POLYGON WKT-String. >> What can I do? > > Sven, > > The MapServer internal geometry model does not differentiate between > polygons > and multipolygons so it is very hard to preserve the original multipolygon > without doing a great deal of processing on the rings held by mapserver to > determine whether they are really holes in a polygon or distinct polygons > in a multipolygon. > > Basically, you are out of luck. > > Best regards, From Steve.Lime at dnr.state.mn.us Mon Jul 14 10:54:31 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 12:54:31 -0500 Subject: [mapserver-users] CGI controls - Symbol In-Reply-To: <487B858A.8000306@refractions.net> References: <4877E6A5.5040903@refractions.net> <487B2341.5157.008F.0@dnr.state.mn.us> <487B858A.8000306@refractions.net> Message-ID: <487B4C87.5157.008F.0@dnr.state.mn.us> Looking at the code I see why referencing another named symbol won't work either. Same reason as with an image. If you reference the symbol by index then you'll have a shot at making this work as the code sits now... Steve >>> On 7/14/2008 at 11:57 AM, in message <487B858A.8000306 at refractions.net>, Ben Brehmer wrote: > Thanks Steve, > > Just tried creating a symbol image in my mapfile and referencing that > through the URL with no luck. > > I've created a ticket for this: http://trac.osgeo.org/mapserver/ticket/2700 > > Cheers, > > Ben > > Steve Lime wrote: >> I wonder if this is related to using an image. If you define another named > symbol in your >> mapfile, e.g.: >> >> SYMBOL >> TYPE PIXMAP >> NAME 'blue_star' >> IMAGE ./blue_star.gif >> END >> >> and then try to reference it: >> >> ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'blue_star'&... >> >> Does that work? Might be a reasonable workaround. >> >> MapServer resolves symbol names at the end of mapfile parsing and that's > probably not >> happening in this case. The reason we wait until the end is because symbols > and symbolsets >> can be anywhere in the file. This is probably a bug if you'd please file a > ticket... >> >> Steve >> >> >> >>>>> On 7/11/2008 at 6:03 PM, in message <4877E6A5.5040903 at refractions.net>, Ben >>>>> >> Brehmer wrote: >> >>> Dear All, >>> >>> Just wondering if there are any known problems when trying to modify a >>> symbol via the URL in Mapserver 5.0.3. >>> >>> I am trying to do on-the-fly symbol changes with the CGI variables as >>> follows: >>> >>> ...&map.layer[0].CLASS[0].STYLE[0]=SYMBOL+'./blue_star.gif'&... >>> >>> >>> The above produces no errors and a blank image. Seems to me as though >>> the symbol is simply ignored in the URL because when I assign a color >>> (map.layer[0].class[0].style[0]=COLOR+151+151+151) I get a whole whack >>> of points back. Predefining the SYMBOL in the mapfile (SYMBOL >>> "./blue_star.gif") also works perfectly fine. >>> >>> >>> Not sure if I'm doing something wrong, but I've tried pretty much every >>> combination including using using non-image symbols, playing around with >>> the mapfile, and pulling out my hair. Note that I am also using the DATA >>> CGI var to supply dynamic data content in the same URL (not sure if this >>> would make a difference). >>> >>> Any ideas/suggestions would be greatly appreciated. >>> >>> Thanks, >>> >>> Ben Brehmer >>> >>> >>> >>> >>> The mapfile is pretty straight forward: >>> . >>> .. >>> ... >>> DATAPATTERN ".*" >>> >>> LAYER >>> NAME "pointlayer" >>> DATA "" >>> CONNECTIONTYPE postgis >>> CONNECTION "host=localhost user=postgres port=5432 dbname=name >>> password=pass" >>> CLASSITEM "point_id" >>> CLASS >>> NAME "" >>> STYLE >>> END >>> END >>> ... >>> .. >>> . >>> >>> Mapserver is compiled with the following options: >>> MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >>> SUPPORTS=FASTCGI INPUT=EPPL7 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 >>> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jjschlafley at yahoo.com Mon Jul 14 13:49:05 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Mon, 14 Jul 2008 13:49:05 -0700 (PDT) Subject: [mapserver-users] toWkt() precision Message-ID: <750910.27683.qm@web52302.mail.re2.yahoo.com> Does anyone know how you would change the precision of the geometry coming from the toWkt() function.? It returns, like, 17 decimal places for every coordinate value.? This is quite overkill in my opinion and adds large amount of file length to the wkt string.? Is this something that would have to be changed at the source, or has anyone?written a php function to do?the process? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at gmail.com Mon Jul 14 16:27:33 2008 From: iansgis at gmail.com (Ian) Date: Mon, 14 Jul 2008 16:27:33 -0700 Subject: [mapserver-users] Changing layer template via URL Message-ID: <5b61c6c50807141627l3b760625yb8aefca35a61a059@mail.gmail.com> Hello, I'm using MapServer version 5.0.0 and can successfully change other parameters via a URL, but am having trouble changing the layer template. I keep getting "loadLayer(): General error message. URL-based TEMPLATE configuration failed pattern validation." The documentation on TEMPLATEPATTERN is sparse but from another post ( http://www.nabble.com/Dinamically-changing-HTML-Template-using-CGI-parameter--(instead-of-hardcoded)-td17626183.html ) it sounds like it is necessary. Both templates work when hard-coded: Mapfile: NAME "Test" STATUS ON TEMPLATEPATTERN ".*" ... LAYER NAME volcanoes TEMPLATE 'templates/volcanoes.html' ... URL: http://host/cgi-bin/mapserv?map=/maps/wms.map&mode=query&qlayer=volcanoes&mapxy=-121+40&map.layer[volcanoes]=TEMPLATE+'templates/volcanoesQuery.html ' Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwatmuff at geographicweb.com.au Mon Jul 14 20:21:32 2008 From: gwatmuff at geographicweb.com.au (Graeme Watmuff) Date: Tue, 15 Jul 2008 12:51:32 +0930 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <487B24CD.5157.008F.0@dnr.state.mn.us> References: <1215663787.2513.112.camel@bongolx.ringo.net> <4876431F.5157.008F.0@dnr.state.mn.us> <1215735745.2481.71.camel@bongolx.ringo.net> <487B24CD.5157.008F.0@dnr.state.mn.us> Message-ID: <1216092092.2501.134.camel@bongolx.ringo.net> Hi Steve, That sounds okay. We don't have to be able to set the MAP METADATA object's properties on the fly - it was just a convenience thing. Changing the LAYER object's FILTER and TILEINDEX properties are crucial though. I presume a valid '_validation_pattern' pattern would allow a wildcard (*) in case we need that degree of flexibility. Its hard to predict what other presently disallowed LAYER properties may be important to change via URL, but I guess if the new framework you propose is in place, users can let you know if the boat needs a bit more cargo! Thanks for this and the tremendous job you and the mapserver team are doing. Regards Graeme Mon, 2008-07-14 at 10:05 -0500, Steve Lime wrote: > Graeme: Did you look at my last reply in the thread? I outlined a possible > solution that I would be willing to implement for 5.2.1/5.4 if ok with the > PSC. Does that seem workable for you? > > Steve > > >>> On 7/10/2008 at 7:22 PM, in message > <1215735745.2481.71.camel at bongolx.ringo.net>, Graeme Watmuff > wrote: > > Hi Steve, > > > > Thanks for replying and thanks for the coding pointers. You are right > > about the mapserv 4.10 tileindex syntax. Like filter, it is simply > > ignored by v5 rather than throwing an error. My apologies. > > > > Would it make sense to create a 'secure' version for the paranoid and a > > another version with full functionality? I realize this would create > > more maintenance work for you, but not all mapserver users are going to > > be able to climb inside the code themselves to modify functionality > > (fortunately we can). > > > > Regarding security, I presume you are concerned about mapserver exposing > > sensitive data to unintended users. If so, should you be taking that > > responsibility on yourself by limiting mapserver or should the onus be > > upon mapserver users to manage their own data more responsibly? I am a > > great believer in personal responsibility. If the security risk is made > > clear to users, they can make their own decisions as to the data they > > potentially expose to the world. > > > > We have greatly appreciated and benefited from the tremendous work you > > and your associates have done in bringing mapserver to the world and we > > have always looked forward to the added features of each new version. > > But upgrading now comes at some degree of inconvenience for us and maybe > > others unless someone wants to publish the workaround to resurrect lost > > functionality for all to simply acquire. > > > > I am not convinced that limiting the previous functionality is the right > > direction for mapserver unless you fear say a litigious threat from > > security breaches that people may bring upon themselves (hardly your > > responsibility). Those with seriously sensitive data are not going to > > want expose the CGI to all the world via a browser-sent URL anyway. I > > would expect them to send URLs from say, a java web app embedded in a > > secured tomcat container. > > > > Just my thoughts. > > > > Regards and best wishes > > > > Graeme > > > > On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: > >> Hi Graeme: Comments inline... I definitely underestimated the impacts of > > those > >> changes. Anyway... > >> > >> >>> On 7/9/2008 at 11:23 PM, in message > >> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff > >> wrote: > >> > It has become apparent through some frustrating moments of trial and > >> > error that many of the mapfile variables that were changeable via URL > >> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. > >> > There is a hint from the docs that this is because of security concerns? > >> > Our java apps don't allow web users to directly interact with the CGI, > >> > so security doesn't seem so important in our case. > >> > >> Allowing unaltered, direct modification of things like FILTERs or > > CONNECTIONS > >> is a potential security risk although I've never run across a documented > > case. Filters > >> are risky because they are passed to the underlying data driver which > > generally > >> trust the contents. > >> > >> > Some examples: > >> > > >> > map_web_metadata='text1' 'text2' > >> > map_layerName_filter= > >> > map_layerName_tileindex= > >> > map_layerName_data= > >> > > >> > allow changes to the mapfile via URL with mapserver 4.10.x > >> > > >> > Following the new syntax specified for v5 + I had expected > >> > > >> > map_web=metadata+"'text1' 'text2'" or maybe > >> > map_web_metadata[0]='text1'+'text2', > >> > map_layer[layerName]=filter+, > >> > map_layer[layerName]=tileindex+, > >> > map_layer[layerName]=data+ > >> > > >> > to all perform in the time-honoured way. > >> > >> And they don't... If they did you could combine modifications to a layer in > > a single > >> variable: > >> > >> > > map_layer[layerName]=filter++tileindex++data+ > rce> > >> > >> > Only 'data' could be changed with this new mapserver 5 syntax. I > >> > happened to discover through the change logs that changing tileindex was > >> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax > >> > (map_layerName_tileindex)= - not the new mapserver 5 > >> > syntax style (map_layer[layerName]=tileindex+). > >> > >> Looking at the code, TILEINDEX is not changable via a URL with any syntax. > > The > >> change log references a bug fix to 4.10. The old syntax doesn't work at all. > >> > >> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new > >> > syntax is used for filter and ignores the old 4.10 filter syntax. > >> > >> This is expected. It will fail with an error as opposed to the silent > > failure of versions > >> past. > >> > >> > No URL syntax for changing the web object's metadata content appears > >> > acceptable to the mapserver 5. > >> > >> Correct. > >> > >> > I would dearly like to see changing the layer filter via URL restored > >> > also to mapserver 5. And the web object's metadata setting functionality > >> > too. > >> > >> It's possible to customize this behavior by editing maplexer.l and > > recompiling > >> the code. Simply find the keyword you're interested in supporting and change > >> the states at which it is valid. So, for TILEINDEX: > >> > >> tileindex > >> > >> becomes: > >> > >> tileindex > >> > >> Same goes for the other parameters you'd want to activate. > >> > >> > Can anyone indicate what mapfile properties are or are not going to be > >> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? > >> > Obviously this has development ramifications for us when we try to > >> > upgrade mapserver. > >> > >> If I (or anyone) can think of a way to make this tunable at runtime I'd love > >> to talk more about it. The set of parameters supported in 5.2 has only > > changed > >> a little bit since 5.0 based on user input. I can't see exposing more > > without > >> good reason. FILTER in particular is worrisome and there is a work around > > with > >> the runtime substitution (e.g. FILTER %someval%). In that example you can > >> pass someval via URL but you have to define a validation pattern (a regex) > > to > >> check it against. > >> > >> > Alternatively, am I missing something with new mapserver 5 syntax? > >> > >> I'm curious if updating maplexer.l to fit your particular needs is workable. > >> > >> > Graeme Watmuff > >> > >> Steve > >> -- Graeme Watmuff Geographic Web Solutions Pty Ltd 17 Tay Road Woodforde South Australia 5072 ph: + 61 8 83364463 From Steve.Lime at dnr.state.mn.us Mon Jul 14 21:03:09 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 23:03:09 -0500 Subject: [mapserver-users] Changing layer template via URL Message-ID: <487BDB2E0200008F00019A37@co5.dnr.state.mn.us> The templatepattern takes a regex as an argument, sorry for the confusion. A "match-all" pattern would simply be ".". Steve >>> Ian 07/14/08 6:28 PM >>> Hello, I'm using MapServer version 5.0.0 and can successfully change other parameters via a URL, but am having trouble changing the layer template. I keep getting "loadLayer(): General error message. URL-based TEMPLATE configuration failed pattern validation." The documentation on TEMPLATEPATTERN is sparse but from another post ( http://www.nabble.com/Dinamically-changing-HTML-Template-using-CGI-parameter--(instead-of-hardcoded)-td17626183.html ) it sounds like it is necessary. Both templates work when hard-coded: Mapfile: NAME "Test" STATUS ON TEMPLATEPATTERN ".*" ... LAYER NAME volcanoes TEMPLATE 'templates/volcanoes.html' ... URL: http://host/cgi-bin/mapserv?map=/maps/wms.map&mode=query&qlayer=volcanoes&mapxy=-121+40&map.layer[volcanoes]=TEMPLATE+'templates/volcanoesQuery.html ' Thank you. From Steve.Lime at dnr.state.mn.us Mon Jul 14 21:10:25 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 14 Jul 2008 23:10:25 -0500 Subject: [mapserver-users] New limitations with mapserver 5 CGI Message-ID: <487BDCE10200008F00019A3C@co5.dnr.state.mn.us> Well, we're getting feedback from the current framework now I guess. You should be able to set METADATA, just not keys of a certain format. By wildcard I'm assuming you mean on the pattern side so to allow any FILTER you'd do: filter_validation_pattern '.' Or something like that. One problem with the current proposal is how to handle nested objects, especially class expressions since classes don't have metadata. This will have to take the form of an RFC I guess. Steve >>> Graeme Watmuff 07/14/08 10:22 PM >>> Hi Steve, That sounds okay. We don't have to be able to set the MAP METADATA object's properties on the fly - it was just a convenience thing. Changing the LAYER object's FILTER and TILEINDEX properties are crucial though. I presume a valid '_validation_pattern' pattern would allow a wildcard (*) in case we need that degree of flexibility. Its hard to predict what other presently disallowed LAYER properties may be important to change via URL, but I guess if the new framework you propose is in place, users can let you know if the boat needs a bit more cargo! Thanks for this and the tremendous job you and the mapserver team are doing. Regards Graeme Mon, 2008-07-14 at 10:05 -0500, Steve Lime wrote: > Graeme: Did you look at my last reply in the thread? I outlined a possible > solution that I would be willing to implement for 5.2.1/5.4 if ok with the > PSC. Does that seem workable for you? > > Steve > > >>> On 7/10/2008 at 7:22 PM, in message > <1215735745.2481.71.camel at bongolx.ringo.net>, Graeme Watmuff > wrote: > > Hi Steve, > > > > Thanks for replying and thanks for the coding pointers. You are right > > about the mapserv 4.10 tileindex syntax. Like filter, it is simply > > ignored by v5 rather than throwing an error. My apologies. > > > > Would it make sense to create a 'secure' version for the paranoid and a > > another version with full functionality? I realize this would create > > more maintenance work for you, but not all mapserver users are going to > > be able to climb inside the code themselves to modify functionality > > (fortunately we can). > > > > Regarding security, I presume you are concerned about mapserver exposing > > sensitive data to unintended users. If so, should you be taking that > > responsibility on yourself by limiting mapserver or should the onus be > > upon mapserver users to manage their own data more responsibly? I am a > > great believer in personal responsibility. If the security risk is made > > clear to users, they can make their own decisions as to the data they > > potentially expose to the world. > > > > We have greatly appreciated and benefited from the tremendous work you > > and your associates have done in bringing mapserver to the world and we > > have always looked forward to the added features of each new version. > > But upgrading now comes at some degree of inconvenience for us and maybe > > others unless someone wants to publish the workaround to resurrect lost > > functionality for all to simply acquire. > > > > I am not convinced that limiting the previous functionality is the right > > direction for mapserver unless you fear say a litigious threat from > > security breaches that people may bring upon themselves (hardly your > > responsibility). Those with seriously sensitive data are not going to > > want expose the CGI to all the world via a browser-sent URL anyway. I > > would expect them to send URLs from say, a java web app embedded in a > > secured tomcat container. > > > > Just my thoughts. > > > > Regards and best wishes > > > > Graeme > > > > On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: > >> Hi Graeme: Comments inline... I definitely underestimated the impacts of > > those > >> changes. Anyway... > >> > >> >>> On 7/9/2008 at 11:23 PM, in message > >> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff > >> wrote: > >> > It has become apparent through some frustrating moments of trial and > >> > error that many of the mapfile variables that were changeable via URL > >> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. > >> > There is a hint from the docs that this is because of security concerns? > >> > Our java apps don't allow web users to directly interact with the CGI, > >> > so security doesn't seem so important in our case. > >> > >> Allowing unaltered, direct modification of things like FILTERs or > > CONNECTIONS > >> is a potential security risk although I've never run across a documented > > case. Filters > >> are risky because they are passed to the underlying data driver which > > generally > >> trust the contents. > >> > >> > Some examples: > >> > > >> > map_web_metadata='text1' 'text2' > >> > map_layerName_filter= > >> > map_layerName_tileindex= > >> > map_layerName_data= > >> > > >> > allow changes to the mapfile via URL with mapserver 4.10.x > >> > > >> > Following the new syntax specified for v5 + I had expected > >> > > >> > map_web=metadata+"'text1' 'text2'" or maybe > >> > map_web_metadata[0]='text1'+'text2', > >> > map_layer[layerName]=filter+, > >> > map_layer[layerName]=tileindex+, > >> > map_layer[layerName]=data+ > >> > > >> > to all perform in the time-honoured way. > >> > >> And they don't... If they did you could combine modifications to a layer in > > a single > >> variable: > >> > >> > > map_layer[layerName]=filter++tileindex++data+ > rce> > >> > >> > Only 'data' could be changed with this new mapserver 5 syntax. I > >> > happened to discover through the change logs that changing tileindex was > >> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax > >> > (map_layerName_tileindex)= - not the new mapserver 5 > >> > syntax style (map_layer[layerName]=tileindex+). > >> > >> Looking at the code, TILEINDEX is not changable via a URL with any syntax. > > The > >> change log references a bug fix to 4.10. The old syntax doesn't work at all. > >> > >> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new > >> > syntax is used for filter and ignores the old 4.10 filter syntax. > >> > >> This is expected. It will fail with an error as opposed to the silent > > failure of versions > >> past. > >> > >> > No URL syntax for changing the web object's metadata content appears > >> > acceptable to the mapserver 5. > >> > >> Correct. > >> > >> > I would dearly like to see changing the layer filter via URL restored > >> > also to mapserver 5. And the web object's metadata setting functionality > >> > too. > >> > >> It's possible to customize this behavior by editing maplexer.l and > > recompiling > >> the code. Simply find the keyword you're interested in supporting and change > >> the states at which it is valid. So, for TILEINDEX: > >> > >> tileindex > >> > >> becomes: > >> > >> tileindex > >> > >> Same goes for the other parameters you'd want to activate. > >> > >> > Can anyone indicate what mapfile properties are or are not going to be > >> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? > >> > Obviously this has development ramifications for us when we try to > >> > upgrade mapserver. > >> > >> If I (or anyone) can think of a way to make this tunable at runtime I'd love > >> to talk more about it. The set of parameters supported in 5.2 has only > > changed > >> a little bit since 5.0 based on user input. I can't see exposing more > > without > >> good reason. FILTER in particular is worrisome and there is a work around > > with > >> the runtime substitution (e.g. FILTER %someval%). In that example you can > >> pass someval via URL but you have to define a validation pattern (a regex) > > to > >> check it against. > >> > >> > Alternatively, am I missing something with new mapserver 5 syntax? > >> > >> I'm curious if updating maplexer.l to fit your particular needs is workable. > >> > >> > Graeme Watmuff > >> > >> Steve > >> -- Graeme Watmuff Geographic Web Solutions Pty Ltd 17 Tay Road Woodforde South Australia 5072 ph: + 61 8 83364463 From gwatmuff at geographicweb.com.au Tue Jul 15 00:33:38 2008 From: gwatmuff at geographicweb.com.au (Graeme Watmuff) Date: Tue, 15 Jul 2008 17:03:38 +0930 Subject: [mapserver-users] New limitations with mapserver 5 CGI In-Reply-To: <487BDCE10200008F00019A3C@co5.dnr.state.mn.us> References: <487BDCE10200008F00019A3C@co5.dnr.state.mn.us> Message-ID: <1216107218.2501.172.camel@bongolx.ringo.net> Hi Steve, Comment in line. Graeme On Mon, 2008-07-14 at 23:10 -0500, Steve Lime wrote: > Well, we're getting feedback from the current framework now I guess. You should be able > to set METADATA, just not keys of a certain format. I presume you mean the layer's metadata object because the map web metadata obj is not changeable via URL (unless you plan to alter that) > By wildcard I'm assuming you mean > on the pattern side so to allow any FILTER you'd do: > > filter_validation_pattern '.' > > Or something like that. Correct > > One problem with the current proposal is how to handle nested objects, especially > class expressions since classes don't have metadata. This will have to take the form of an > RFC I guess. Haven't found the need to alter CLASS EXPRESSION on the fly yet if that's what you mean and we have been using mapserver a number of years now. I gather from your comment this property of the class object is also not over-rideable via URL in mapserver 5. > > Steve > > >>> Graeme Watmuff 07/14/08 10:22 PM >>> > Hi Steve, > > That sounds okay. We don't have to be able to set the MAP METADATA > object's properties on the fly - it was just a convenience thing. > > Changing the LAYER object's FILTER and TILEINDEX properties are crucial > though. I presume a valid '_validation_pattern' pattern would allow a > wildcard (*) in case we need that degree of flexibility. > > Its hard to predict what other presently disallowed LAYER properties may > be important to change via URL, but I guess if the new framework you > propose is in place, users can let you know if the boat needs a bit more > cargo! > > Thanks for this and the tremendous job you and the mapserver team are > doing. > > Regards > > Graeme > > Mon, 2008-07-14 at 10:05 -0500, Steve Lime wrote: > > Graeme: Did you look at my last reply in the thread? I outlined a possible > > solution that I would be willing to implement for 5.2.1/5.4 if ok with the > > PSC. Does that seem workable for you? > > > > Steve > > > > >>> On 7/10/2008 at 7:22 PM, in message > > <1215735745.2481.71.camel at bongolx.ringo.net>, Graeme Watmuff > > wrote: > > > Hi Steve, > > > > > > Thanks for replying and thanks for the coding pointers. You are right > > > about the mapserv 4.10 tileindex syntax. Like filter, it is simply > > > ignored by v5 rather than throwing an error. My apologies. > > > > > > Would it make sense to create a 'secure' version for the paranoid and a > > > another version with full functionality? I realize this would create > > > more maintenance work for you, but not all mapserver users are going to > > > be able to climb inside the code themselves to modify functionality > > > (fortunately we can). > > > > > > Regarding security, I presume you are concerned about mapserver exposing > > > sensitive data to unintended users. If so, should you be taking that > > > responsibility on yourself by limiting mapserver or should the onus be > > > upon mapserver users to manage their own data more responsibly? I am a > > > great believer in personal responsibility. If the security risk is made > > > clear to users, they can make their own decisions as to the data they > > > potentially expose to the world. > > > > > > We have greatly appreciated and benefited from the tremendous work you > > > and your associates have done in bringing mapserver to the world and we > > > have always looked forward to the added features of each new version. > > > But upgrading now comes at some degree of inconvenience for us and maybe > > > others unless someone wants to publish the workaround to resurrect lost > > > functionality for all to simply acquire. > > > > > > I am not convinced that limiting the previous functionality is the right > > > direction for mapserver unless you fear say a litigious threat from > > > security breaches that people may bring upon themselves (hardly your > > > responsibility). Those with seriously sensitive data are not going to > > > want expose the CGI to all the world via a browser-sent URL anyway. I > > > would expect them to send URLs from say, a java web app embedded in a > > > secured tomcat container. > > > > > > Just my thoughts. > > > > > > Regards and best wishes > > > > > > Graeme > > > > > > On Thu, 2008-07-10 at 17:13 -0500, Steve Lime wrote: > > >> Hi Graeme: Comments inline... I definitely underestimated the impacts of > > > those > > >> changes. Anyway... > > >> > > >> >>> On 7/9/2008 at 11:23 PM, in message > > >> <1215663787.2513.112.camel at bongolx.ringo.net>, Graeme Watmuff > > >> wrote: > > >> > It has become apparent through some frustrating moments of trial and > > >> > error that many of the mapfile variables that were changeable via URL > > >> > with mapserver 4.10.x CGI seem no longer changeable with v5.x or 5.2.x. > > >> > There is a hint from the docs that this is because of security concerns? > > >> > Our java apps don't allow web users to directly interact with the CGI, > > >> > so security doesn't seem so important in our case. > > >> > > >> Allowing unaltered, direct modification of things like FILTERs or > > > CONNECTIONS > > >> is a potential security risk although I've never run across a documented > > > case. Filters > > >> are risky because they are passed to the underlying data driver which > > > generally > > >> trust the contents. > > >> > > >> > Some examples: > > >> > > > >> > map_web_metadata='text1' 'text2' > > >> > map_layerName_filter= > > >> > map_layerName_tileindex= > > >> > map_layerName_data= > > >> > > > >> > allow changes to the mapfile via URL with mapserver 4.10.x > > >> > > > >> > Following the new syntax specified for v5 + I had expected > > >> > > > >> > map_web=metadata+"'text1' 'text2'" or maybe > > >> > map_web_metadata[0]='text1'+'text2', > > >> > map_layer[layerName]=filter+, > > >> > map_layer[layerName]=tileindex+, > > >> > map_layer[layerName]=data+ > > >> > > > >> > to all perform in the time-honoured way. > > >> > > >> And they don't... If they did you could combine modifications to a layer in > > > a single > > >> variable: > > >> > > >> > > > map_layer[layerName]=filter++tileindex++data+ > > rce> > > >> > > >> > Only 'data' could be changed with this new mapserver 5 syntax. I > > >> > happened to discover through the change logs that changing tileindex was > > >> > reinstated for mapserver 5 CGI, but using the old mapserver 4.10 syntax > > >> > (map_layerName_tileindex)= - not the new mapserver 5 > > >> > syntax style (map_layer[layerName]=tileindex+). > > >> > > >> Looking at the code, TILEINDEX is not changable via a URL with any syntax. > > > The > > >> change log references a bug fix to 4.10. The old syntax doesn't work at all. > > >> > > >> > mapserv 5 CGI throws an error (Parsing error near (filter)) when the new > > >> > syntax is used for filter and ignores the old 4.10 filter syntax. > > >> > > >> This is expected. It will fail with an error as opposed to the silent > > > failure of versions > > >> past. > > >> > > >> > No URL syntax for changing the web object's metadata content appears > > >> > acceptable to the mapserver 5. > > >> > > >> Correct. > > >> > > >> > I would dearly like to see changing the layer filter via URL restored > > >> > also to mapserver 5. And the web object's metadata setting functionality > > >> > too. > > >> > > >> It's possible to customize this behavior by editing maplexer.l and > > > recompiling > > >> the code. Simply find the keyword you're interested in supporting and change > > >> the states at which it is valid. So, for TILEINDEX: > > >> > > >> tileindex > > >> > > >> becomes: > > >> > > >> tileindex > > >> > > >> Same goes for the other parameters you'd want to activate. > > >> > > >> > Can anyone indicate what mapfile properties are or are not going to be > > >> > reinstated in mapserver 5 compared to mapserver 4 for change via URL? > > >> > Obviously this has development ramifications for us when we try to > > >> > upgrade mapserver. > > >> > > >> If I (or anyone) can think of a way to make this tunable at runtime I'd love > > >> to talk more about it. The set of parameters supported in 5.2 has only > > > changed > > >> a little bit since 5.0 based on user input. I can't see exposing more > > > without > > >> good reason. FILTER in particular is worrisome and there is a work around > > > with > > >> the runtime substitution (e.g. FILTER %someval%). In that example you can > > >> pass someval via URL but you have to define a validation pattern (a regex) > > > to > > >> check it against. > > >> > > >> > Alternatively, am I missing something with new mapserver 5 syntax? > > >> > > >> I'm curious if updating maplexer.l to fit your particular needs is workable. > > >> > > >> > Graeme Watmuff > > >> > > >> Steve > > >> -- Graeme Watmuff Geographic Web Solutions Pty Ltd 17 Tay Road Woodforde South Australia 5072 ph: + 61 8 83364463 From jpchiron at gmail.com Tue Jul 15 01:56:24 2008 From: jpchiron at gmail.com (Jean-Paul Chiron) Date: Tue, 15 Jul 2008 10:56:24 +0200 Subject: [mapserver-users] gap between layers Message-ID: <4f1781a40807150156k71165f1off9069ad9d702282@mail.gmail.com> Hello, when I've migrate one mapserver application from a server to another, with the same version of software ( mapserver 4.6.1 ), I've a big gap between the base map (which is based on .shp file) et the layers which are based on postgis. The problem cannot came from postgis, because it's the same database between the two servers. I was thinking that it comes from GDAL, but I didn't see anything... Is there anybody have an idear for that problem ? Where can I investigate to find the mistake ? Thank you. From ven.tammineni at gmail.com Tue Jul 15 03:56:57 2008 From: ven.tammineni at gmail.com (venkat) Date: Tue, 15 Jul 2008 16:26:57 +0530 Subject: [mapserver-users] Reg:About Native Microsoft SQL Server 2008 Driver for MapServer Message-ID: <79ad14900807150356r727a6a3fpcb9ca838f5cf54c6@mail.gmail.com> Dear All, I am Venkat.I am developing web application based on MapServer. Upto now I have used PostgreSQL/PostGIS.Now I want to upgrade my application to Ms SQL Server 2008.But I am not able to find " msplugin_mssql2008.dll".Where I can find this dll. Please can you help me. I am waiting for your great response. Advanced Thanks Regards Venkat. -- Thanks And Regards, VENKATRAO TAMMINENI -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Tue Jul 15 04:07:56 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 15 Jul 2008 04:07:56 -0700 (PDT) Subject: [MAPSERVER-USERS] Error: Schema definition in postgis layer Message-ID: <18462568.post@talk.nabble.com> Hello, I am connecting to postgis for displaying maps. I have a schema named as 'testschema' and table 'test' I get these errors when I try to display the map. 1.Without specifying schema: DATA "the_geom FROM test USING UNIQUE fid SRID -1" msDrawMap(): Image handling error. Failed to draw layer named 'test'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from test WHERE the_geom && setSRID('BOX3D(-548821.411568409 1455242,-506293.588431591 1487129)'::BOX3D, find_srid('','test','the_geom') )' Postgresql reports the error as 'ERROR: relation "test" does not exist '............... 2. After specifying schema DATA "the_geom FROM testschema.test USING UNIQUE fid SRID -1" msDrawMap(): Image handling error. Failed to draw layer named 'test'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from testschema.test WHERE the_geom && setSRID('BOX3D(-548821.411568409 1455242,-506293.588431591 1487129)'::BOX3D, find_srid('','testschema.test','the_geom') )' Postgresql reports the error as 'ERROR: function force_2d(scott.geometry) does not exist LINE 1: ...INARY CURSOR FOR SELECT asbinary(force_collection(force_2d(t... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ' ................ Also, when I keep the table in public schema, it works without any error. I need to know the correct way to define schema in mapfile while using postgis. Right now I am using these statements in my mapfile: CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=map host=xx.xx.xxx.xxx port=5432" DATA "the_geom from test USING UNIQUE fid SRID -1" Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Error%3A-Schema-definition-in-postgis-layer-tp18462568p18462568.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Tue Jul 15 04:09:24 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 15 Jul 2008 04:09:24 -0700 (PDT) Subject: [MAPSERVER-USERS] Error: Schema definition in postgis layer Message-ID: <18462571.post@talk.nabble.com> Hello, I am connecting to postgis for displaying maps. I have a schema named as 'testschema' and table 'test' I get these errors when I try to display the map. 1.Without specifying schema: DATA "the_geom FROM test USING UNIQUE fid SRID -1" msDrawMap(): Image handling error. Failed to draw layer named 'test'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from test WHERE the_geom && setSRID('BOX3D(-548821.411568409 1455242,-506293.588431591 1487129)'::BOX3D, find_srid('','test','the_geom') )' Postgresql reports the error as 'ERROR: relation "test" does not exist '............... 2. After specifying schema DATA "the_geom FROM testschema.test USING UNIQUE fid SRID -1" msDrawMap(): Image handling error. Failed to draw layer named 'test'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from testschema.test WHERE the_geom && setSRID('BOX3D(-548821.411568409 1455242,-506293.588431591 1487129)'::BOX3D, find_srid('','testschema.test','the_geom') )' Postgresql reports the error as 'ERROR: function force_2d(testschema.geometry) does not exist LINE 1: ...INARY CURSOR FOR SELECT asbinary(force_collection(force_2d(t... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ' ................ Also, when I keep the table in public schema, it works without any error. I need to know the correct way to define schema in mapfile while using postgis. Right now I am using these statements in my mapfile: CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=map host=xx.xx.xxx.xxx port=5432" DATA "the_geom from test USING UNIQUE fid SRID -1" Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Error%3A-Schema-definition-in-postgis-layer-tp18462571p18462571.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mail_deamon at tlen.pl Tue Jul 15 05:21:34 2008 From: mail_deamon at tlen.pl (=?UTF-8?Q?Admin?=) Date: Tue, 15 Jul 2008 14:21:34 +0200 Subject: =?UTF-8?Q?[mapserver-users]_Full_CADRG_and_VPF_support?= Message-ID: <1c48cab0.3f715bde.487c964e.46e96@o2.pl> Hi, thats me again:-) I have problems with VPF. I use FWTools 2.2.1, raster data and shapes are working perfectly, but VPF no :-(. My actual map file look that: MAP NAME World EXTENT -60 30 180 90 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 640 480 PROJECTION 'init=epsg:4326' END LAYER NAME shaded_relief TYPE LINE CONNECTIONTYPE OGR CONNECTION "gltp:/vrf/C:/v0eur/vmaplv0/eurnasia" DATA "polbndl at bnd(*)_line" STATUS DEFAULT END END When I type in my browser: "http://127.0.0.1/cgi-bin/mapserv.exe?map=world.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=shaded_relief&STYLES=&SRS=EPSG:4326&BBOX=14.1,49,24.08,54.85&WIDTH=1600&HEIGHT=900&FORMAT=image/png" I see only white output, without any lines, without any errors. Thank you for your future advices :-) From oliver.christen at camptocamp.com Tue Jul 15 05:27:00 2008 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 15 Jul 2008 14:27:00 +0200 Subject: [mapserver-users] mapscript queryByPoint - tolerancedepends ofresolution ? References: <2A7451FF53BE4CF0BC85B033346C7A94@maunakea> <4874A377.5157.008F.0@dnr.state.mn.us> Message-ID: Hi The problem was not in mapserver but came from our script: when the dpi is changed, the tolerance is globaly adjusted so all the related features dont get over/undersized. But when a value of -1 is used in queryByPoint, the global tolerance recalculated result in -3.25~ when passing from 96 to 150 dpi and mapserver do not know what to do with such value, it only understand -1 or >=0. The problem was solved by specifying a special case when -1 was used in our script for queryByPoint, so the tolerance stay at -1 at 96 and 150 dpi Could you possible modify a bit the mapscript documentation of queryByPoint ? It say "Passing buffer <=0 defaults to tolerances set in the map file ..." but thats not exactly the case. It would be "Passing buffer -1 defaults to tolerances set in the map file..." Thank you Best regards Oliver ----- Original Message ----- From: "Steve Lime" To: "Oliver Christen" ; Sent: Wednesday, July 09, 2008 6:39 PM Subject: Re: [mapserver-users] mapscript queryByPoint - tolerancedepends ofresolution ? Tolerance computations are based on cellsize. Resolution affects only scale computations, so it is not clear to me how one could affect the other. I just went through the code to verify. Is there any chance that layer scale limits are coming into play here and you're not querying the layer you think you are? Does the behavior persist in 5.x? If you can create a concise test case I'll gladly take a look. Steve >>> On 7/9/2008 at 7:41 AM, in message >>> <2A7451FF53BE4CF0BC85B033346C7A94 at maunakea>, "Oliver Christen" wrote: > Hi > > I have a problem when doing a queryByPoint with phpmapscript 4.10.1 > > By default, the resolution of my map is 96 dpi. > I do a queryByPoint on a layer containing polygonal areas. The point is > right in the middle of one area. > I use a default tolerance (-1) corresponding, if I read correctly the > documentation, to 3 pixels. > > The result obtained is the area containing the coordinates I used, it's > absolutly normal and I get what I expect. > > Now, if I dynamicaly change the resolution of the map to 150 dpi and then > do > > exactly the same queryByPoint as before, > I get nothing! > Mapserver consider there was nothing at the coordinate I provided. > > Then, if I redo the query, at 150 dpi, BUT with a tolerance set to 10 > (instead of -1), I get a correct and expected result. > > So, somehow, Mapserver seems to make some very weird calculation with the > tolerance and resolution which make it to believe there is nothing when > then > > is something. > > have you ever heard of such behaviour? > is that a bug? > > any help would be very welcome. > > thanks in advance > Oliver > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Tue Jul 15 06:02:48 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 15 Jul 2008 09:02:48 -0400 Subject: [mapserver-users] gap between layers In-Reply-To: <4f1781a40807150156k71165f1off9069ad9d702282@mail.gmail.com> References: <4f1781a40807150156k71165f1off9069ad9d702282@mail.gmail.com> Message-ID: <487C9FF8.7030803@pobox.com> Jean-Paul Chiron wrote: > Hello, > when I've migrate one mapserver application from a server to another, > with the same version of software ( mapserver 4.6.1 ), I've a big gap > between the base map (which is based on .shp file) et the layers which > are based on postgis. > > The problem cannot came from postgis, because it's the same database > between the two servers. > > I was thinking that it comes from GDAL, but I didn't see anything... > > Is there anybody have an idear for that problem ? > Where can I investigate to find the mistake ? Jean-Paul, Is there reprojection involved? Datum shifting? Perhaps it relates to a different version of PROJ.4 or difficulty finding datum shift files? There has been a significant change in the how PROJ.4 decides when a change of datum shift should be applied between PROJ 4.5 and 4.6. These are angles I'd look into a bit if I were you. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From David.Fawcett at state.mn.us Tue Jul 15 06:03:31 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 15 Jul 2008 08:03:31 -0500 Subject: [mapserver-users] Full CADRG and VPF support In-Reply-To: <1c48cab0.3f715bde.487c964e.46e96@o2.pl> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBECE@s-sp22.pca.state.mn.us> I know nothing about vpf, but is your layer named 'shaded_relief' real of TYPE 'LINE'? Should it TYPE RASTER? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Admin Sent: Tuesday, July 15, 2008 7:22 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Full CADRG and VPF support Hi, thats me again:-) I have problems with VPF. I use FWTools 2.2.1, raster data and shapes are working perfectly, but VPF no :-(. My actual map file look that: MAP NAME World EXTENT -60 30 180 90 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 640 480 PROJECTION 'init=epsg:4326' END LAYER NAME shaded_relief TYPE LINE CONNECTIONTYPE OGR CONNECTION "gltp:/vrf/C:/v0eur/vmaplv0/eurnasia" DATA "polbndl at bnd(*)_line" STATUS DEFAULT END END When I type in my browser: "http://127.0.0.1/cgi-bin/mapserv.exe?map=world.map&SERVICE=WMS&VERSION= 1.1.0&REQUEST=GetMap&LAYERS=shaded_relief&STYLES=&SRS=EPSG:4326&BBOX=14. 1,49,24.08,54.85&WIDTH=1600&HEIGHT=900&FORMAT=image/png" I see only white output, without any lines, without any errors. Thank you for your future advices :-) _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jpchiron at gmail.com Tue Jul 15 07:54:15 2008 From: jpchiron at gmail.com (Jean-Paul Chiron) Date: Tue, 15 Jul 2008 16:54:15 +0200 Subject: [mapserver-users] gap between layers In-Reply-To: <487C9FF8.7030803@pobox.com> References: <4f1781a40807150156k71165f1off9069ad9d702282@mail.gmail.com> <487C9FF8.7030803@pobox.com> Message-ID: <4f1781a40807150754k5e563112v7a54384ced304fd@mail.gmail.com> 2008/7/15 Frank Warmerdam : > Jean-Paul Chiron wrote: >> >> Hello, >> when I've migrate one mapserver application from a server to another, >> with the same version of software ( mapserver 4.6.1 ), I've a big gap >> between the base map (which is based on .shp file) et the layers which >> are based on postgis. >> >> The problem cannot came from postgis, because it's the same database >> between the two servers. >> >> I was thinking that it comes from GDAL, but I didn't see anything... >> >> Is there anybody have an idear for that problem ? >> Where can I investigate to find the mistake ? > > Jean-Paul, > > Is there reprojection involved? Datum shifting? Perhaps it relates > to a different version of PROJ.4 or difficulty finding datum shift files? > There has been a significant change in the how PROJ.4 decides when a > change of datum shift should be applied between PROJ 4.5 and 4.6. > > These are angles I'd look into a bit if I were you. Well done Franck ! There was a mistake on the new server between proj-4.4.9 and proj-4.5.0 It works with proj-4.5.0. Thank you ! From gabmessner at gmail.com Tue Jul 15 09:09:42 2008 From: gabmessner at gmail.com (Gabriel Messner) Date: Tue, 15 Jul 2008 18:09:42 +0200 Subject: [mapserver-users] WFS Getcapabilities - XML header missing Message-ID: <1708890c0807150909o3999d9e1hdce31e314cb49f10@mail.gmail.com> When I request the WFS capabilities to my WFS server, the XML document generated hasn?t header of type: Therefore, I?m not be able to know the encoding type of my GML... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Tue Jul 15 10:16:51 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 15 Jul 2008 13:16:51 -0400 Subject: [mapserver-users] WFS Getcapabilities - XML header missing References: <1708890c0807150909o3999d9e1hdce31e314cb49f10@mail.gmail.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC2D4@ecburexch1.ontario.int.ec.gc.ca> Which version of MapServer are you using? All XML output from MapServer (AFAIK) writes out an XML declaration (which is required of XML). Note that WFS GetCapabilities does not output GML, but a Capabilities XML document. Or do you mean the character encoding of the document itself (which MapServer also outputs)? ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Gabriel Messner Sent: Tue 15-Jul-08 12:09 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WFS Getcapabilities - XML header missing When I request the WFS capabilities to my WFS server, the XML document generated hasn?t header of type: Therefore, I?m not be able to know the encoding type of my GML... From srph124 at yahoo.com Tue Jul 15 10:29:10 2008 From: srph124 at yahoo.com (Saka Royban) Date: Tue, 15 Jul 2008 10:29:10 -0700 (PDT) Subject: [mapserver-users] MapServer Integration Options? Message-ID: <166993.38512.qm@web58209.mail.re3.yahoo.com> Hi all. I'm doing a search to find out which softwares/packages/libraries i can use with mapserver for a more featureful webgis. for e.g. i know that i can use spatial database PostGIS to hold my data as a back-end or use pgRouting for best path analysis. but what about other features? I'm really interested to hear about other's experiences. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Jul 15 12:38:34 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 15 Jul 2008 15:38:34 -0400 Subject: [mapserver-users] WFS Getcapabilities - XML header missing In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC2D4@ecburexch1.ontario.int.ec.gc.ca> References: <1708890c0807150909o3999d9e1hdce31e314cb49f10@mail.gmail.com> <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC2D4@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <20080715193834.GB22153@metacarta.com> On Tue, Jul 15, 2008 at 01:16:51PM -0400, Kralidis,Tom [Burlington] wrote: > All XML output from MapServer (AFAIK) writes out an XML declaration (which is required of XML). Unrelated to the original question, but: If by 'XML declaration', you mean 'XML prolog', it is not required to be included in XML. If you do not include one, the encoding typically defaults to UTF-8, however, which is likely a problem if you have iso-8859-1 encoded attribute data -- but since I don't think MapServer has any way of knowing the encoding of your data, including one probably doesn't help much anyway. Regards, -- Christopher Schmidt MetaCarta From paul_pag00 at hotmail.com Tue Jul 15 13:58:17 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Tue, 15 Jul 2008 20:58:17 +0000 Subject: [mapserver-users] change layer color dinamically In-Reply-To: <20080715160017.0BBA7E018FB@lists.osgeo.org> References: <20080715160017.0BBA7E018FB@lists.osgeo.org> Message-ID: Hello forum is there a way to change the color of a layer dinamycally, based on an atribute field ? like make a matrix for that Thanks _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE From Steve.Lime at dnr.state.mn.us Tue Jul 15 14:33:54 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 15 Jul 2008 16:33:54 -0500 Subject: [mapserver-users] change layer color dinamically In-Reply-To: References: <20080715160017.0BBA7E018FB@lists.osgeo.org> Message-ID: <487CD172.5157.008F.0@dnr.state.mn.us> Paul: Assuming version 5+ you can bind colors to attributes. For example, STYLE COLOR [coloritem] END Where the coloritem is expected to have a valid MapServer color defintion (e.g. 0 0 255 or #0000FF). Steve >>> On 7/15/2008 at 3:58 PM, in message , Paul Alarcon wrote: > Hello forum is there a way to change the color of a layer dinamycally, based > on an atribute field ? like make a matrix for that > Thanks > > > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE_______ > ________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From percyd at pdx.edu Tue Jul 15 16:07:10 2008 From: percyd at pdx.edu (percy) Date: Tue, 15 Jul 2008 16:07:10 -0700 Subject: [mapserver-users] WMS raster display, getfeatureinfo from vectorlayer In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC2A8@ecburexch1.ontario.int.ec.gc.ca> References: <48765F96.20209@pdx.edu> <48763BA5.5157.008F.0@dnr.state.mn.us> <48769E71.2040601@pdx.edu> <48777070.6030303@pdx.edu> <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC2A8@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <487D2D9E.1000905@pdx.edu> status: RESOLVED I spent a little while trying to get a mapscript wrapper to work... Getcapabilities and getfeatureinfo worked fine, but never got an image out. We ended up solving the problem this way: Created two mapfiles called GMNA_OWS_display.map and GMNA_OWS query.map One identically named layer in each file, Geologic_Map_of North_America Display mapfile has layer set to RASTER, with a template set to null.html so that the layer advertises itself as queryable. Query mapfile has layer set to polygon and points to the vector data, and has all of the template parameters set appropriately. With HTACCESS turned on for that folder, a mod_rewrite section in the .htaccess file looks for the getfeatureinfo string and the mapfile named display and substitutes the query mapfile, actual code below: -----------htaccess file------ RewriteEngine on RewriteCond %{QUERY_STRING} ^[A-z0-9,.%/-?&=]+GetFeatureInfo[A-z0-9,.%/-?&=]+ RewriteCond %{QUERY_STRING} ^(.*)GMNA_OWS_display(.*) RewriteRule ^.*mapserv.cgi.*$ /cgi-bin/mapserv.cgi?%1GMNA_OWS_query%2 [L] ---------end of htaccess---------- I hope this helps someone else for future reference, and thanks for the help, Percy Kralidis,Tom [Burlington] wrote: > You could use a mapscript WxS wrapper to, when receiving a GetFeatureInfo request, replace the LAYERS/QUERY_LAYERS parameters with the vector layer. > > ..Tom > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of percy > Sent: Fri 11-Jul-08 10:38 > To: mapserver > Cc: Steve Lime > Subject: Re: [mapserver-users] WMS raster display,getfeatureinfo from vectorlayer > > I'm starting to think that just handling this with a mapscript wrapper > script might be the easiest approach. Any thoughts? > Thanks, > Percy > > percy wrote: >> thanks, nice idea. I tried it, and that did not work... >> >> relevant mapfile section: >> >> LAYER >> NAME "Geologic_Map_Of_North_America" >> TYPE RASTER >> STATUS ON >> data "/vol/www/ngmdb/htdocs/GMNA_INDEX_tiled.tif" >> maxscale 10000000 >> MINSCALE 500000 >> Metadata >> "WMS_TITLE" "Geologic Map Of North America" >> "WMS_SRS" "epsg:4326" >> END # metadata >> END #layer >> LAYER >> NAME "Geologic_Map_Of_North_America" >> TYPE query >> STATUS On >> data GMNA_S_OneGeo >> TOLERANCE 0 >> TOLERANCEUNITS pixels >> TRANSFORM TRUE >> DUMP TRUE >> HEADER "templates/GMNA_query_header.html" >> TEMPLATE "templates/GMNA_query_body.html" >> FOOTER "templates/GMNA_query_footer.html" >> Metadata >> "WMS_TITLE" "Geologic Map Of North America" >> "WMS_SRS" "epsg:4326" >> GML_INCLUDE_ITEMS >> "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" >> WMS_INCLUDE_ITEMS >> "DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat" >> END # metadata >> END #layer >> >> >> Steve Lime wrote: >>> What about using GROUPs or layers with the same name where the second >>> layer >>> is TYPE QUERY? >>> >>> Steve >>> >>>>>> On 7/10/2008 at 2:14 PM, in message <48765F96.20209 at pdx.edu>, percy >>> wrote: >>>> I discussed this issue with Tom K. on the IRC yesterday, and he >>>> thought it was of general interest and should be posted and >>>> potentially requested as a feature. >>>> >>>> Scenario: we have a Geologic map that has super complex cartography >>>> that we don't want to reproduce in the mapfile (600+ classes, tons >>>> of patterns, etc). So we dumped out a raster of it to serve as WMS. >>>> >>>> However, when the user does a GetFeatureInfo on this WMS, we want to >>>> return attribute data from the original shapefile. >>>> >>>> I can envision this being taken care of at the layer level as a >>>> metadata tag like "WMS_query_redirect". >>>> >>>> In the short term we're working on a little apache mod_rewrite magic >>>> to take care of it :-) >>>> >>>> Cheers, >>>> Percy >>> > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From boice at runskip.com Tue Jul 15 15:36:32 2008 From: boice at runskip.com (boice tomlin) Date: Tue, 15 Jul 2008 18:36:32 -0400 Subject: [mapserver-users] changing projection Message-ID: Hello, We are using mapserver version 4.10 and in our mapfile we don't specify a projection at the map level or in any of the layers. Now we need to change the projection to; North_America_Albers_Equal_Area_Conic projection I have added the following projection information to the map file but it does not effect our map at all. PROJECTION "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" END I'm assuming there are some other things we need to do besides specifying the projection in the mapfile. Can anyone provide me the appropriate steps? We are using PHP Mapscript and shape file from the US census. Should we expect to be able to change projections on the fly by specifying the projection we want to use in the mapfile? thank you for the information. -boice -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Tue Jul 15 19:35:22 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Tue, 15 Jul 2008 22:35:22 -0400 Subject: [mapserver-users] changing projection In-Reply-To: References: Message-ID: You will need to specify the projection of the source data in each of the layers and then specify the output projection you wish to have at the map level and mapserver will reproject your data on the fly. Note that you need to set your extent and units at the map level appropriately to the output projection. For instance, if your source data is in lat/lon (decimal degrees) you would be using UNITS DD but if you change to output the projection below, you would need to change to UNITS METERS Cheers Paul On 15-Jul-08, at 6:36 PM, boice tomlin wrote: > > Hello, > > We are using mapserver version 4.10 and in our mapfile we don't > specify a projection at the map level or in any of the layers. > > Now we need to change the projection to; > > North_America_Albers_Equal_Area_Conic projection > > I have added the following projection information to the map file > but it does not effect our map at all. > > PROJECTION > "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 > +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" > END > > I'm assuming there are some other things we need to do besides > specifying the projection in the mapfile. Can anyone provide me the > appropriate steps? > > We are using PHP Mapscript and shape file from the US census. > > Should we expect to be able to change projections on the fly by > specifying the projection we want to use in the mapfile? > > thank you for the information. > > -boice > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From valerio.vianello at yahoo.it Wed Jul 16 00:12:52 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Wed, 16 Jul 2008 07:12:52 +0000 (GMT) Subject: [mapserver-users] extend mapserver with a driver for atom feed Message-ID: <682315.5507.qm@web27304.mail.ukl.yahoo.com> Hi all, my task is to render atom feed, with georss entry, on the map in the server side.? I know that mapserver and ogr aren't able to read this kind of data so I'm asking community to pointer me to same documentation that a I can read to write a little driver so that MapServer will be able to read, directly or through ogr, data from atom feed. any help are very appreciated. best regards Valerio Posta, news, sport, oroscopo: tutto in una sola pagina. Crea l'home page che piace a te! www.yahoo.it/latuapagina -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail_deamon at tlen.pl Wed Jul 16 00:26:28 2008 From: mail_deamon at tlen.pl (=?UTF-8?Q?Admin?=) Date: Wed, 16 Jul 2008 09:26:28 +0200 Subject: =?UTF-8?Q?[mapserver-users]_How_to_use_CADRG_raster_format_in_mapserver=3F?= Message-ID: <84967fb.ba0daed.487da2a4.c524a@o2.pl> Hi, Dan Did someone help you? Did you now how use this format? > what command line should I add to my map file inorder to display > CADRG raster format? > my RFP file is a.toc > Thanks, > Dan From group.ritesh at gmail.com Wed Jul 16 02:13:40 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Wed, 16 Jul 2008 02:13:40 -0700 (PDT) Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema Message-ID: <18483547.post@talk.nabble.com> Hello Readers, I am facing a problem in defining the DATA path in mapserver while using PostGIS. I have two schemas, lets say 'a' and 'b' in a database 'd' Now, I want to access tables of schema 'a' in the mapserver layer. I define DATA path like this: DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" Please pour in your thoughts for defining schema in the connection/data parameters. Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483547.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Wed Jul 16 02:25:05 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 16 Jul 2008 14:55:05 +0530 Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema In-Reply-To: <18483547.post@talk.nabble.com> References: <18483547.post@talk.nabble.com> Message-ID: <002601c8e725$d6c30390$84490ab0$@com> Hi, Here is my Example .I think it helps you. Layer # Layer starts here Name "GMM 100" #name of the layer ConnectionType POSTGIS #connection type Connection "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" #connection type. Data "the_geom from rgp_gis_gmm_100_metros" #table name Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Wednesday, July 16, 2008 2:44 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema Hello Readers, I am facing a problem in defining the DATA path in mapserver while using PostGIS. I have two schemas, lets say 'a' and 'b' in a database 'd' Now, I want to access tables of schema 'a' in the mapserver layer. I define DATA path like this: DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" Please pour in your thoughts for defining schema in the connection/data parameters. Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc hema-tp18483547p18483547.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 group.ritesh at gmail.com Wed Jul 16 02:37:03 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Wed, 16 Jul 2008 02:37:03 -0700 (PDT) Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema In-Reply-To: <002601c8e725$d6c30390$84490ab0$@com> References: <18483547.post@talk.nabble.com> <002601c8e725$d6c30390$84490ab0$@com> Message-ID: <18483876.post@talk.nabble.com> Hey Venkat, Thanks for the details. I understand the standard way to write a connection parameter. I am sure that this table "rgp_gis_gmm_100_metros" is stored in "public" schema of your database. My question is, what will you write if you keep this table in some other schema? Regards, Venkatrao wrote: > > Hi, > Here is my Example .I think it helps you. > > Layer # Layer starts here > Name "GMM 100" #name of the layer > ConnectionType POSTGIS #connection type > Connection "host=192.168.1.158 dbname=GIS password=administrator > user=postgres port=5432" #connection type. > Data "the_geom from rgp_gis_gmm_100_metros" #table name > > Thanks and Regards > Venkat. > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > Ambastha > Sent: Wednesday, July 16, 2008 2:44 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] Connection parameter errors while using > Postgres > DB Schema > > > Hello Readers, > > I am facing a problem in defining the DATA path in mapserver while using > PostGIS. > > I have two schemas, lets say 'a' and 'b' in a database 'd' > > Now, I want to access tables of schema 'a' in the mapserver layer. > > I define DATA path like this: > > DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" > > Please pour in your thoughts for defining schema in the connection/data > parameters. > > Thanks, > Ritesh Ambastha > -- > View this message in context: > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc > hema-tp18483547p18483547.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483876.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Wed Jul 16 02:53:04 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 16 Jul 2008 15:23:04 +0530 Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema In-Reply-To: <18483876.post@talk.nabble.com> References: <18483547.post@talk.nabble.com> <002601c8e725$d6c30390$84490ab0$@com> <18483876.post@talk.nabble.com> Message-ID: <002a01c8e729$bf83f230$3e8bd690$@com> Hi, Have you checked other schema? See you can use either public or pg_temp_1 right ? if you want to use pg_temp_1 schema u need to have some setting while configuring at add new server connection. This is only as per knowledge. I did not tested. And my suggestion is Use "Pulic".Because ,if there any joining among the table ,that would be again problem. If I am not right ,let me know. Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Wednesday, July 16, 2008 3:07 PM To: mapserver-users at lists.osgeo.org Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema Hey Venkat, Thanks for the details. I understand the standard way to write a connection parameter. I am sure that this table "rgp_gis_gmm_100_metros" is stored in "public" schema of your database. My question is, what will you write if you keep this table in some other schema? Regards, Venkatrao wrote: > > Hi, > Here is my Example .I think it helps you. > > Layer # Layer starts here > Name "GMM 100" #name of the layer > ConnectionType POSTGIS #connection type > Connection "host=192.168.1.158 dbname=GIS password=administrator > user=postgres port=5432" #connection type. > Data "the_geom from rgp_gis_gmm_100_metros" #table name > > Thanks and Regards > Venkat. > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > Ambastha > Sent: Wednesday, July 16, 2008 2:44 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] Connection parameter errors while using > Postgres > DB Schema > > > Hello Readers, > > I am facing a problem in defining the DATA path in mapserver while using > PostGIS. > > I have two schemas, lets say 'a' and 'b' in a database 'd' > > Now, I want to access tables of schema 'a' in the mapserver layer. > > I define DATA path like this: > > DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" > > Please pour in your thoughts for defining schema in the connection/data > parameters. > > Thanks, > Ritesh Ambastha > -- > View this message in context: > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc > hema-tp18483547p18483547.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc hema-tp18483547p18483876.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 ritesh.linux at gmail.com Wed Jul 16 02:52:18 2008 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Wed, 16 Jul 2008 15:22:18 +0530 Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema In-Reply-To: <002a01c8e729$bf83f230$3e8bd690$@com> References: <18483547.post@talk.nabble.com> <002601c8e725$d6c30390$84490ab0$@com> <18483876.post@talk.nabble.com> <002a01c8e729$bf83f230$3e8bd690$@com> Message-ID: <135fc07d0807160252k99ce41ese73b5690b432f339@mail.gmail.com> Venkat, I am looking for that "some setting" :) Cheers, Ritesh On Wed, Jul 16, 2008 at 3:23 PM, Venkat Rao Tammineni < vtammineni at roulacglobal.com> wrote: > Hi, > > Have you checked other schema? See you can use either public or pg_temp_1 > right ? if you want to use pg_temp_1 schema u need to have some setting > while configuring at add new server connection. This is only as per > knowledge. I did not tested. And my suggestion is Use "Pulic".Because ,if > there any joining among the table ,that would be again problem. > > If I am not right ,let me know. > > Thanks and Regards > Venkat. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > Ambastha > Sent: Wednesday, July 16, 2008 3:07 PM > To: mapserver-users at lists.osgeo.org > Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using > Postgres DB Schema > > > Hey Venkat, > > Thanks for the details. > I understand the standard way to write a connection parameter. > > I am sure that this table "rgp_gis_gmm_100_metros" is stored in "public" > schema of your database. > > My question is, what will you write if you keep this table in some other > schema? > > Regards, > > > Venkatrao wrote: > > > > Hi, > > Here is my Example .I think it helps you. > > > > Layer # Layer starts here > > Name "GMM 100" #name of the layer > > ConnectionType POSTGIS #connection type > > Connection "host=192.168.1.158 dbname=GIS password=administrator > > user=postgres port=5432" #connection type. > > Data "the_geom from rgp_gis_gmm_100_metros" #table name > > > > Thanks and Regards > > Venkat. > > > > > > > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > > Ambastha > > Sent: Wednesday, July 16, 2008 2:44 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [MAPSERVER-USERS] Connection parameter errors while using > > Postgres > > DB Schema > > > > > > Hello Readers, > > > > I am facing a problem in defining the DATA path in mapserver while using > > PostGIS. > > > > I have two schemas, lets say 'a' and 'b' in a database 'd' > > > > Now, I want to access tables of schema 'a' in the mapserver layer. > > > > I define DATA path like this: > > > > DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" > > > > Please pour in your thoughts for defining schema in the connection/data > > parameters. > > > > Thanks, > > Ritesh Ambastha > > -- > > View this message in context: > > > > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc > > hema-tp18483547p18483547.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc > hema-tp18483547p18483876.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 warmerdam at pobox.com Wed Jul 16 05:55:32 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 16 Jul 2008 08:55:32 -0400 Subject: [mapserver-users] extend mapserver with a driver for atom feed In-Reply-To: <682315.5507.qm@web27304.mail.ukl.yahoo.com> References: <682315.5507.qm@web27304.mail.ukl.yahoo.com> Message-ID: <487DEFC4.5030305@pobox.com> valerio vianello wrote: > Hi all, > > my task is to render atom feed, with georss entry, on the map in the > server side. I know that mapserver and ogr aren't able to read this > kind of data so I'm asking community to pointer me to same documentation > that a I can read to write a little driver so that MapServer will be > able to read, directly or through ogr, data from atom feed. > > any help are very appreciated. Valerio, I would suggest reviewing the OGR driver implementation tutorial at: http://www.gdal.org/ogr/ogr_drivertut.html and then reviewing some existing XML drivers like: http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/kml http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/gpx http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/gml Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From boolean10001 at yahoo.com Wed Jul 16 07:43:43 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 16 Jul 2008 07:43:43 -0700 (PDT) Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema In-Reply-To: <18483876.post@talk.nabble.com> Message-ID: <427506.87792.qm@web38205.mail.mud.yahoo.com> Ritesh, ? There's a way to stablish the default schema to a postgres user when it connects, maybe this can help you to pull the data from postgres. ? To check what's the current default user's schema, you need to execute this: ? SHOW search_path ? It must throw $user, public ? So, to set the default user's schema, you execute this: ? ALTER USER? SET search_path TO ? I suggest you to create a new role to connect to the database via map file, and then change its default schema. ? Another thing (maybe this was the first step) is to check if the user postgres is the owner of the schema, and if it's not, then check if it haves the USAGE privilege on it. ? Hope this information helps IC Carlos Ruiz ? --- On Wed, 7/16/08, Ritesh Ambastha wrote: From: Ritesh Ambastha Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema To: mapserver-users at lists.osgeo.org Date: Wednesday, July 16, 2008, 4:37 AM Hey Venkat, Thanks for the details. I understand the standard way to write a connection parameter. I am sure that this table "rgp_gis_gmm_100_metros" is stored in "public" schema of your database. My question is, what will you write if you keep this table in some other schema? Regards, Venkatrao wrote: > > Hi, > Here is my Example .I think it helps you. > > Layer # Layer starts here > Name "GMM 100" #name of the layer > ConnectionType POSTGIS #connection type > Connection "host=192.168.1.158 dbname=GIS password=administrator > user=postgres port=5432" #connection type. > Data "the_geom from rgp_gis_gmm_100_metros" #table name > > Thanks and Regards > Venkat. > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > Ambastha > Sent: Wednesday, July 16, 2008 2:44 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] Connection parameter errors while using > Postgres > DB Schema > > > Hello Readers, > > I am facing a problem in defining the DATA path in mapserver while using > PostGIS. > > I have two schemas, lets say 'a' and 'b' in a database 'd' > > Now, I want to access tables of schema 'a' in the mapserver layer. > > I define DATA path like this: > > DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" > > Please pour in your thoughts for defining schema in the connection/data > parameters. > > Thanks, > Ritesh Ambastha > -- > View this message in context: > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc > hema-tp18483547p18483547.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483876.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 myheartsnflorida at gmail.com Wed Jul 16 09:01:13 2008 From: myheartsnflorida at gmail.com (Lena Olympio) Date: Wed, 16 Jul 2008 12:01:13 -0400 Subject: [mapserver-users] Drawing a Line From A Set Start Point to End Point Message-ID: <200721390807160901y65be3fb9xb2d20ca2277f0235@mail.gmail.com> Hello, I am trying to draw tornado paths on my map that I am creating, but I am having a little bit of trouble because now it won't even plot the initial point on my map. The following is my code for attempting to draw a line from start to finish. If anyone has any helpful information, it would be greatly appreciated while($row=mysql_fetch_assoc($result)){ $mypoint=ms_newPointObj(); $mypoint->setXY($row['lon_td'],$row['lat_td']); $myline=ms_newLineObj(); $myline->add($mypoint); $endpoint=ms_newPointObj(); $endpoint->setXY($row['lon_lift'],$row['lat_lift']); $myline->add($endpoint); $mypoint->draw($map,$this_layer_tornado,$image,0,''); } //Create the shape object that will be added to the layer $shape=ms_newShapeObj(MS_SHAPE_LINE); $shape->add($myline); $this_layer_tornado->addFeature($shape); Thank you, Lena -- *Lena Olympio* -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Jul 16 09:34:31 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 16 Jul 2008 18:34:31 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. Message-ID: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> Hi all, I'm in serious trouble with the ambitious project of a web mapping app in a Windows SharePoint Services 3.0 environment; in detail, the application is embedded in a web part. Obviously, I'm developing in c#, that is not my preferred... I've recompiled myself mapserver and the mapscript_csharp assembly. In a debug environment all works fine but when I deploy the web part on the server I allways receive the same error: - Exception of type: System.TypeInitializationException; - with the message: "The type initializer for 'OSGeo.MapServer.mapscript' threw an exception"; - the source: mapscript_csharp; - the InnerException.StackTrace is: -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() -- at OSGeo.MapServer.mapscript..cctor() If anyone has experienced the same or a similar problem, or has more experience than me, can please help me? thanks in advance. ..........................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From Steve.Lime at dnr.state.mn.us Wed Jul 16 10:25:38 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 16 Jul 2008 12:25:38 -0500 Subject: [mapserver-users] Drawing a Line From A Set Start Point to End Point In-Reply-To: <200721390807160901y65be3fb9xb2d20ca2277f0235@mail.gmail.com> References: <200721390807160901y65be3fb9xb2d20ca2277f0235@mail.gmail.com> Message-ID: <487DE8C1.5157.008F.0@dnr.state.mn.us> Start with the obvious... - is the extent of the map ok? - is there a call to prepare image earlier? - you're not checking method return values, perhaps the code is dying at $mypoint->draw? Plus, is $this_tornado_layer referencing a point or line layer? You're drawing it both ways. Steve >>> On 7/16/2008 at 11:01 AM, in message <200721390807160901y65be3fb9xb2d20ca2277f0235 at mail.gmail.com>, "Lena Olympio" wrote: > Hello, > I am trying to draw tornado paths on my map that I am creating, but I am > having a little bit of trouble because now it won't even plot the initial > point on my map. The following is my code for attempting to draw a line from > start to finish. If anyone has any helpful information, it would be greatly > appreciated > > while($row=mysql_fetch_assoc($result)){ > $mypoint=ms_newPointObj(); > $mypoint->setXY($row['lon_td'],$row['lat_td']); > $myline=ms_newLineObj(); > $myline->add($mypoint); > $endpoint=ms_newPointObj(); > $endpoint->setXY($row['lon_lift'],$row['lat_lift']); > $myline->add($endpoint); > $mypoint->draw($map,$this_layer_tornado,$image,0,''); > } > > //Create the shape object that will be added to the layer > $shape=ms_newShapeObj(MS_SHAPE_LINE); > $shape->add($myline); > $this_layer_tornado->addFeature($shape); > > Thank you, > Lena From szekerest at gmail.com Wed Jul 16 12:46:26 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 16 Jul 2008 21:46:26 +0200 Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> Message-ID: Pietro, Could you provide a code sample to investigate the problem in more detail? Best regards, Tamas 2008/7/16 Pietro Giannini : > Hi all, > > I'm in serious trouble with the ambitious project of a web mapping app in > a Windows SharePoint Services 3.0 environment; in detail, the application > is embedded in a web part. > Obviously, I'm developing in c#, that is not my preferred... > > I've recompiled myself mapserver and the mapscript_csharp assembly. In a > debug environment all works fine but when I deploy the web part on the > server I allways receive the same error: > > - Exception of type: System.TypeInitializationException; > - with the message: "The type initializer for 'OSGeo.MapServer.mapscript' > threw an exception"; > - the source: mapscript_csharp; > - the InnerException.StackTrace is: > -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() > -- at OSGeo.MapServer.mapscript..cctor() > > If anyone has experienced the same or a similar problem, or has more > experience than me, can please help me? > > thanks in advance. > > ..........................................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Antti.Roppola at brs.gov.au Wed Jul 16 18:00:13 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Thu, 17 Jul 2008 11:00:13 +1000 Subject: [mapserver-users] Trouble with a Share Point Portal. [SEC=UNCLASSIFIED] In-Reply-To: References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> Message-ID: <61C2DEA055980B418D063F8646FCAEFC05AD18CD@ACT001CL03EX03.agdaff.gov.au> Hi all, For Java bindings (about a year ago), we found that using a current version of SWIG to re-build the pre-canned SWIG interface gave a better result. Before this we has issues with SWIG doing things like flattening structs. We identified and solved the problem by intercepting and inspecting the map objects that threw the exception to ensure they contained what the API said they ought to contain. Cheers, Antti -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Thursday, 17 July 2008 5:46 AM To: Pietro Giannini Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Trouble with a Share Point Portal. Pietro, Could you provide a code sample to investigate the problem in more detail? Best regards, Tamas 2008/7/16 Pietro Giannini : > Hi all, > > I'm in serious trouble with the ambitious project of a web mapping app > in a Windows SharePoint Services 3.0 environment; in detail, the > application is embedded in a web part. > Obviously, I'm developing in c#, that is not my preferred... > > I've recompiled myself mapserver and the mapscript_csharp assembly. In > a debug environment all works fine but when I deploy the web part on > the server I allways receive the same error: > > - Exception of type: System.TypeInitializationException; > - with the message: "The type initializer for 'OSGeo.MapServer.mapscript' > threw an exception"; > - the source: mapscript_csharp; > - the InnerException.StackTrace is: > -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() > -- at OSGeo.MapServer.mapscript..cctor() > > If anyone has experienced the same or a similar problem, or has more > experience than me, can please help me? > > thanks in advance. > > ..........................................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > _______________________________________________ > 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 ------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain sensitive and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ------ From Steve.Lime at dnr.state.mn.us Wed Jul 16 18:51:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 16 Jul 2008 20:51:43 -0500 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released Message-ID: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> Hi all: The MapServer PSC is proud to announce the release of MapServer version 5.2. The source code is available for download at: http://mapserver.gis.umn.edu/download/current Binary distributions will follow shortly. This is a significant release and users are encouraged to upgrade if possible. Nearly 200 tickets were closed as part of this effort. Major feature additions include: * MS RFC 36: Simplified Template Support for Query Output * MS RFC 37: Spatial Reference Improvements and Additions * MS RFC 38: Native Microsoft SQL Server 2008 Support * MS RFC 41: WCS 1.1.x Support * MS RFC 42: Support for Cookie Forwarding * MS RFC 43: Direct Tile Generation for Google Maps API Full RFC text can be found at: http://mapserver.gis.umn.edu/development/rfc Notable enhancements include: * performance enhancements for large shapefile handling * performance enhancements for AGG rendering (an order of magnitude faster in some cases) * fuzzy label outlines for AGG * style-level opacity for AGG * quantization and palette support for PNGs and RGBA modes * SOS 1.0.0 support * WFS 1.1.0 support * proxy and http authentication support for cascaded WMS requests * pre-clip label point computation (helps in tile generation) * extent (e.g. shpext, mapext) template tag attribute handling The full 5.2.0 change log can be found at: http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-0/mapserver/HISTORY.TXT I would like to thank all the folks that worked hard on this release, your efforts are greatly appreciated! Steve From vtammineni at roulacglobal.com Wed Jul 16 21:17:33 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 17 Jul 2008 09:47:33 +0530 Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> Message-ID: <001501c8e7c4$0ab61310$20223930$@com> Hi, Take latest version of mapserver (Ms4W 2.7.7) and update all the dlls form the cgi-bin to Visual Studio add the reference from visual studio.It will work.There is only problem with version.Because I did the same.I think it will help you. Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro Giannini Sent: Wednesday, July 16, 2008 10:05 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Trouble with a Share Point Portal. Hi all, I'm in serious trouble with the ambitious project of a web mapping app in a Windows SharePoint Services 3.0 environment; in detail, the application is embedded in a web part. Obviously, I'm developing in c#, that is not my preferred... I've recompiled myself mapserver and the mapscript_csharp assembly. In a debug environment all works fine but when I deploy the web part on the server I allways receive the same error: - Exception of type: System.TypeInitializationException; - with the message: "The type initializer for 'OSGeo.MapServer.mapscript' threw an exception"; - the source: mapscript_csharp; - the InnerException.StackTrace is: -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() -- at OSGeo.MapServer.mapscript..cctor() If anyone has experienced the same or a similar problem, or has more experience than me, can please help me? thanks in advance. ..........................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From wallacher at innomis.com Thu Jul 17 01:05:46 2008 From: wallacher at innomis.com (wallacher@innomis) Date: Thu, 17 Jul 2008 10:05:46 +0200 Subject: [mapserver-users] Drawing a Line From A Set Start Point to End Point In-Reply-To: <200721390807160901y65be3fb9xb2d20ca2277f0235@mail.gmail.com> References: <200721390807160901y65be3fb9xb2d20ca2277f0235@mail.gmail.com> Message-ID: <487EFD5A.6040506@innomis.com> Hi Lena, if tried this code and it works. $mypoints=array( array(1,1), // 1. point array(40,1), // 1. point array(40,80), // 1. point array(1,80), // 1. point array(1,1), // 1. point ) $myline=ms_newLineObj(); foreach ($mypoints as $key => $value) { $myline->addXY($value[0],$value[1]); } //Create the shape object that will be added to the layer $shape=ms_newShapeObj(MS_SHAPE_LINE); $shape->add($myline); $this_layer_tornado->addFeature($shape); Erik > Hello, > I am trying to draw tornado paths on my map that I am creating, but I > am having a little bit of trouble because now it won't even plot the > initial point on my map. The following is my code for attempting to > draw a line from start to finish. If anyone has any helpful > information, it would be greatly appreciated > > while($row=mysql_fetch_assoc($result)){ > $mypoint=ms_newPointObj(); > $mypoint->setXY($row['lon_td'],$row['lat_td']); > $myline=ms_newLineObj(); > $myline->add($mypoint); > $endpoint=ms_newPointObj(); > $endpoint->setXY($row['lon_lift'],$row['lat_lift']); > $myline->add($endpoint); > $mypoint->draw($map,$this_layer_tornado,$image,0,''); > } > > //Create the shape object that will be added to the layer > $shape=ms_newShapeObj(MS_SHAPE_LINE); > $shape->add($myline); > $this_layer_tornado->addFeature($shape); > > Thank you, > Lena > > -- > *Lena Olympio* > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From group.ritesh at gmail.com Thu Jul 17 03:09:21 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Thu, 17 Jul 2008 03:09:21 -0700 (PDT) Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema In-Reply-To: <427506.87792.qm@web38205.mail.mud.yahoo.com> References: <18483547.post@talk.nabble.com> <002601c8e725$d6c30390$84490ab0$@com> <18483876.post@talk.nabble.com> <427506.87792.qm@web38205.mail.mud.yahoo.com> Message-ID: <18505303.post@talk.nabble.com> Dear Carlos, Never thought that it will be such easy. Thanks a ton! It worked :) Regards, Ritesh Ambastha Carlos Ruiz-5 wrote: > > Ritesh, > > There's a way to stablish the default schema to a postgres user when it > connects, maybe this can help you to pull the data from postgres. > > To check what's the current default user's schema, you need to execute > this: > > SHOW search_path > > It must throw $user, public > > So, to set the default user's schema, you execute this: > > ALTER USER SET search_path TO > > I suggest you to create a new role to connect to the database via map > file, and then > change its default schema. > > Another thing (maybe this was the first step) is to check if the user > postgres is the owner > of the schema, and if it's not, then check if it haves the USAGE privilege > on it. > > Hope this information helps > > IC Carlos Ruiz > > > --- On Wed, 7/16/08, Ritesh Ambastha wrote: > > From: Ritesh Ambastha > Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using > Postgres DB Schema > To: mapserver-users at lists.osgeo.org > Date: Wednesday, July 16, 2008, 4:37 AM > > Hey Venkat, > > Thanks for the details. > I understand the standard way to write a connection parameter. > > I am sure that this table "rgp_gis_gmm_100_metros" is stored in > "public" > schema of your database. > > My question is, what will you write if you keep this table in some other > schema? > > Regards, > > > Venkatrao wrote: >> >> Hi, >> Here is my Example .I think it helps you. >> >> Layer # Layer starts here >> Name "GMM 100" #name of the layer >> ConnectionType POSTGIS #connection type >> Connection "host=192.168.1.158 dbname=GIS password=administrator >> user=postgres port=5432" #connection type. >> Data "the_geom from rgp_gis_gmm_100_metros" #table name >> >> Thanks and Regards >> Venkat. >> >> >> >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh >> Ambastha >> Sent: Wednesday, July 16, 2008 2:44 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] Connection parameter errors while using >> Postgres >> DB Schema >> >> >> Hello Readers, >> >> I am facing a problem in defining the DATA path in mapserver while using >> PostGIS. >> >> I have two schemas, lets say 'a' and 'b' in a database > 'd' >> >> Now, I want to access tables of schema 'a' in the mapserver layer. > >> >> I define DATA path like this: >> >> DATA "the_geom FROM a.table_name USING UNIQUE id SRID -1" >> >> Please pour in your thoughts for defining schema in the connection/data >> parameters. >> >> Thanks, >> Ritesh Ambastha >> -- >> View this message in context: >> > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc >> hema-tp18483547p18483547.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- > View this message in context: > http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483876.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18505303.html Sent from the Mapserver - User mailing list archive at Nabble.com. From r.terhaar at i-real.nl Thu Jul 17 03:08:27 2008 From: r.terhaar at i-real.nl (I-Real - Rob ter Haar) Date: Thu, 17 Jul 2008 12:08:27 +0200 Subject: [mapserver-users] mapserver with sde support child process crash Message-ID: <487F1A1B.8050909@i-real.nl> Hi, Does anyone have experience with mapserver in combination with SDE from esri? I have a problem when i compile mapserver with GCC 4.1 because sde libs are compiled in GCC 3.2 and when compiling i get warnings and no errors Then when I configure mapserver everyting goes well, I see a map, move, zoom etc. But the apache child process who handled a mapserver request is "infected" and in a next request when I parse a php file with the function exec() (but also other filesystem functions) the apache child process crash. I don't now if this done by the sdelib, but when i compile mapserver without sde everything works with no problems. Have someone seen this before? Greetings, R. ter Haar From pgiannini at bytewise.it Thu Jul 17 04:54:11 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 17 Jul 2008 13:54:11 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <487E3F19.60807@zeelandnet.nl> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <487E3F19.60807@zeelandnet.nl> Message-ID: <65427.192.168.1.65.1216295651.squirrel@localhost.localdomain> Milo, I tried: all the dlls resides in \bin directory of the share point virtual directory and the IIS user (and the share point user too) has read, write and execute allowed on the gdal dir and the proj dir; so, maybe, is not a problem of permissions. Otherwise in a normal ASP.NET application, on a different IIS not sharepoint-ized, all works fine. any idea? thanks ..........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Luglio 16, 2008 20:34, Milo van der Linden wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello Pietro, > > This may have to do with permissions on the (I assume) windows 2003 > server. Make sure that the user that runs IIS has enough rights in the > directory your dll's are in but also on the directories where gdal and > proj are. > > Pietro Giannini wrote: >> Hi all, >> >> I'm in serious trouble with the ambitious project of a web mapping app >> in >> a Windows SharePoint Services 3.0 environment; in detail, the >> application >> is embedded in a web part. >> Obviously, I'm developing in c#, that is not my preferred... >> >> I've recompiled myself mapserver and the mapscript_csharp assembly. In a >> debug environment all works fine but when I deploy the web part on the >> server I allways receive the same error: >> >> - Exception of type: System.TypeInitializationException; >> - with the message: "The type initializer for >> 'OSGeo.MapServer.mapscript' >> threw an exception"; >> - the source: mapscript_csharp; >> - the InnerException.StackTrace is: >> -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() >> -- at OSGeo.MapServer.mapscript..cctor() >> >> If anyone has experienced the same or a similar problem, or has more >> experience than me, can please help me? >> >> thanks in advance. >> >> ..........................................pg >> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIfj8Z2oMdf0ahv2kRAlnqAKCLNHBHUnBp5XnNuLCHJBHPKtM9ZQCfRDXo > UzVOlTaR2MYyakjVnscXDNY= > =APdE > -----END PGP SIGNATURE----- > From pgiannini at bytewise.it Thu Jul 17 04:54:25 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 17 Jul 2008 13:54:25 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> Message-ID: <65440.192.168.1.65.1216295665.squirrel@localhost.localdomain> Tamas, the error happens when I try to invoke an instance of mapserver: string v += OSGeo.MapServer.mapscript.msGetVersion(); In the c# project the mapscript_csharp.dll is referenced, and it is also registred in the GAC regards ......................... pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Luglio 16, 2008 21:46, Tamas Szekeres wrote: > Pietro, > > Could you provide a code sample to investigate the problem in more detail? > > Best regards, > > Tamas > > 2008/7/16 Pietro Giannini : >> Hi all, >> >> I'm in serious trouble with the ambitious project of a web mapping app >> in >> a Windows SharePoint Services 3.0 environment; in detail, the >> application >> is embedded in a web part. >> Obviously, I'm developing in c#, that is not my preferred... >> >> I've recompiled myself mapserver and the mapscript_csharp assembly. In a >> debug environment all works fine but when I deploy the web part on the >> server I allways receive the same error: >> >> - Exception of type: System.TypeInitializationException; >> - with the message: "The type initializer for >> 'OSGeo.MapServer.mapscript' >> threw an exception"; >> - the source: mapscript_csharp; >> - the InnerException.StackTrace is: >> -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() >> -- at OSGeo.MapServer.mapscript..cctor() >> >> If anyone has experienced the same or a similar problem, or has more >> experience than me, can please help me? >> >> thanks in advance. >> >> ..........................................pg >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From pgiannini at bytewise.it Thu Jul 17 04:54:40 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 17 Jul 2008 13:54:40 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. [SEC=UNCLASSIFIED] In-Reply-To: <61C2DEA055980B418D063F8646FCAEFC05AD18CD@ACT001CL03EX03.agdaff.gov.au > References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <61C2DEA055980B418D063F8646FCAEFC05AD18CD@ACT001CL03EX03.agdaff.gov.au> Message-ID: <65440.192.168.1.65.1216295680.squirrel@localhost.localdomain> Antti, I downloaded the mapserver buildkit from http://download.osgeo.org/buildkit/mapserver-buildkit-ms502-020508.zip. The error happens when I try to invoke an instance of mapserver, e.g. string v += OSGeo.MapServer.mapscript.msGetVersion(); I used the preconfigured SWIG shipped with it, the compiler is MS Visual Studio 2005. Maybe could you provide me a link or instruction for a better, updated buildkit? many thanks ...............................p -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Luglio 17, 2008 03:00, Roppola, Antti - BRS wrote: > Hi all, > > For Java bindings (about a year ago), we found that using a current > version of SWIG to re-build the pre-canned SWIG interface gave a > better result. Before this we has issues with SWIG doing things like > flattening structs. > > We identified and solved the problem by intercepting and inspecting > the map objects that threw the exception to ensure they contained > what the API said they ought to contain. > > Cheers, > > Antti > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas > Szekeres > Sent: Thursday, 17 July 2008 5:46 AM > To: Pietro Giannini > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Trouble with a Share Point Portal. > > Pietro, > > Could you provide a code sample to investigate the problem in more detail? > > Best regards, > > Tamas > > 2008/7/16 Pietro Giannini : >> Hi all, >> >> I'm in serious trouble with the ambitious project of a web mapping app >> in a Windows SharePoint Services 3.0 environment; in detail, the >> application is embedded in a web part. >> Obviously, I'm developing in c#, that is not my preferred... >> >> I've recompiled myself mapserver and the mapscript_csharp assembly. In >> a debug environment all works fine but when I deploy the web part on >> the server I allways receive the same error: >> >> - Exception of type: System.TypeInitializationException; >> - with the message: "The type initializer for >> 'OSGeo.MapServer.mapscript' >> threw an exception"; >> - the source: mapscript_csharp; >> - the InnerException.StackTrace is: >> -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() >> -- at OSGeo.MapServer.mapscript..cctor() >> >> If anyone has experienced the same or a similar problem, or has more >> experience than me, can please help me? >> >> thanks in advance. >> >> ..........................................pg >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> _______________________________________________ >> 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 > > ------IMPORTANT - This message has been issued by The Department of > Agriculture, Fisheries and Forestry (DAFF). The information transmitted is > for the use of the intended recipient only and may contain sensitive > and/or legally privileged material. It is your responsibility to check any > attachments for viruses and defects before opening or sending them on. > > Any reproduction, publication, communication, re-transmission, disclosure, > dissemination or other use of the information contained in this e-mail by > persons or entities other than the intended recipient is prohibited. The > taking of any action in reliance upon this information by persons or > entities other than the intended recipient is prohibited. If you have > received this e-mail in error please notify the sender and delete all > copies of this transmission together with any attachments. If you have > received this e-mail as part of a valid mailing list and no longer want to > receive a message such as this one advise the sender by return e-mail > accordingly. Only e-mail correspondence which includes this footer, has > been authorised by DAFF > ------ > From pgiannini at bytewise.it Thu Jul 17 04:54:52 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 17 Jul 2008 13:54:52 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <001501c8e7c4$0ab61310$20223930$@com> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <001501c8e7c4$0ab61310$20223930$@com> Message-ID: <65440.192.168.1.65.1216295692.squirrel@localhost.localdomain> Venkat, this is the first I tried, don't work... In Visual Studio I can reference only the mapscript_csharp.dll, how can I reference a non-assembly .dll? regards ........................................... pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote: > Hi, > > Take latest version of mapserver (Ms4W 2.7.7) and update all the dlls > form the cgi-bin to Visual Studio add the reference from visual studio.It > will work.There is only problem with version.Because I did the same.I > think > it will help you. > > Thanks and Regards > Venkat. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro > Giannini > Sent: Wednesday, July 16, 2008 10:05 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Trouble with a Share Point Portal. > > Hi all, > > I'm in serious trouble with the ambitious project of a web mapping app in > a Windows SharePoint Services 3.0 environment; in detail, the application > is embedded in a web part. > Obviously, I'm developing in c#, that is not my preferred... > > I've recompiled myself mapserver and the mapscript_csharp assembly. In a > debug environment all works fine but when I deploy the web part on the > server I allways receive the same error: > > - Exception of type: System.TypeInitializationException; > - with the message: "The type initializer for 'OSGeo.MapServer.mapscript' > threw an exception"; > - the source: mapscript_csharp; > - the InnerException.StackTrace is: > -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() > -- at OSGeo.MapServer.mapscript..cctor() > > If anyone has experienced the same or a similar problem, or has more > experience than me, can please help me? > > thanks in advance. > > ..........................................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From vtammineni at roulacglobal.com Thu Jul 17 05:04:51 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 17 Jul 2008 17:34:51 +0530 Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <65440.192.168.1.65.1216295692.squirrel@localhost.localdomain> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <001501c8e7c4$0ab61310$20223930$@com> <65440.192.168.1.65.1216295692.squirrel@localhost.localdomain> Message-ID: <002d01c8e805$52e32ec0$f8a98c40$@com> Hi, Have you replaced all dll(like libmap.dll etc..) into bin folder? Thanks and Regard Venkat. -----Original Message----- From: Pietro Giannini [mailto:pgiannini at bytewise.it] Sent: Thursday, July 17, 2008 5:25 PM To: mapserver-users at lists.osgeo.org Cc: Venkat Rao Tammineni Subject: RE: [mapserver-users] Trouble with a Share Point Portal. Venkat, this is the first I tried, don't work... In Visual Studio I can reference only the mapscript_csharp.dll, how can I reference a non-assembly .dll? regards ........................................... pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote: > Hi, > > Take latest version of mapserver (Ms4W 2.7.7) and update all the dlls > form the cgi-bin to Visual Studio add the reference from visual studio.It > will work.There is only problem with version.Because I did the same.I > think > it will help you. > > Thanks and Regards > Venkat. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro > Giannini > Sent: Wednesday, July 16, 2008 10:05 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Trouble with a Share Point Portal. > > Hi all, > > I'm in serious trouble with the ambitious project of a web mapping app in > a Windows SharePoint Services 3.0 environment; in detail, the application > is embedded in a web part. > Obviously, I'm developing in c#, that is not my preferred... > > I've recompiled myself mapserver and the mapscript_csharp assembly. In a > debug environment all works fine but when I deploy the web part on the > server I allways receive the same error: > > - Exception of type: System.TypeInitializationException; > - with the message: "The type initializer for 'OSGeo.MapServer.mapscript' > threw an exception"; > - the source: mapscript_csharp; > - the InnerException.StackTrace is: > -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() > -- at OSGeo.MapServer.mapscript..cctor() > > If anyone has experienced the same or a similar problem, or has more > experience than me, can please help me? > > thanks in advance. > > ..........................................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From lysholm at tut.by Thu Jul 17 04:52:18 2008 From: lysholm at tut.by (George A. Dubin) Date: Thu, 17 Jul 2008 14:52:18 +0300 Subject: [mapserver-users] Changing Point style on-the-fly Message-ID: Hi all! I'm firing up a mapserver for our company these days. Mapserver successfully connects to Postgres, and draws points from my database. But I need to change some parameters, such as colour and size of points on-the-fly, depending on the duration of their existence. Is there a way to make Mapserver to pick size and colour of points from Postgres, too? From temiz at deprem.gov.tr Thu Jul 17 05:23:12 2008 From: temiz at deprem.gov.tr (orkun) Date: Thu, 17 Jul 2008 15:23:12 +0300 Subject: [mapserver-users] problem with QuerybyPoint-PostGIS Message-ID: <1216297393.11718.8.camel@orkun-desktop> Hello Although I am following same procedure with shapefile, I can not have success from QuerybyPoint with PostGIS ? I want to get "cat" value of the database here is the my map file fragment concerning postgis : ~~~~~~~~~~~~~~ LAYER #layer hey postgis CONNECTIONTYPE postgis NAME "hey" CONNECTION "user=orkun password=222222 dbname=bzk2 host=localhost" DATA "wkb_geometry FROM (select ogc_fid,wkb_geometry,cat from shey61) as foo using unique ogc_fid using SRID=32636" STATUS ON PROJECTION proj=utm zone=36 ellps=WGS84 no_defs END TYPE POLYGON LABELITEM "cat" CLASS COLOR 0 0 0 LABEL COLOR 0 220 0 SIZE MEDIUM END END END # hey ~~~~~~~~~~~~~ What might the reason be ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From pgiannini at bytewise.it Thu Jul 17 05:24:05 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 17 Jul 2008 14:24:05 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <002d01c8e805$52e32ec0$f8a98c40$@com> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <001501c8e7c4$0ab61310$20223930$@com> <65440.192.168.1.65.1216295692.squirrel@localhost.localdomain> <002d01c8e805$52e32ec0$f8a98c40$@com> Message-ID: <50999.192.168.1.65.1216297445.squirrel@localhost.localdomain> Yes. The strange is that another application, in a non SharePoint IIS, run well with the precompiled binaries shipping in the ms4w package. A Share Point portal (this is Share Point Services 3.0) however has a more restrictive policy for the customized assemblies to deploy in, and an assembly must to be registrered in the Global Assembly Cach and described as "safe control" in the web.config of the site collection (the virtual directory of site). This is the reason I must to recompile the entire project: to have a mapscript_csharp.dll strong-named to add it to GAC. any idea? many thanks .................................. p -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Luglio 17, 2008 14:04, Venkat Rao Tammineni wrote: > Hi, > > Have you replaced all dll(like libmap.dll etc..) into bin folder? > > Thanks and Regard > Venkat. > > -----Original Message----- > From: Pietro Giannini [mailto:pgiannini at bytewise.it] > Sent: Thursday, July 17, 2008 5:25 PM > To: mapserver-users at lists.osgeo.org > Cc: Venkat Rao Tammineni > Subject: RE: [mapserver-users] Trouble with a Share Point Portal. > > Venkat, > this is the first I tried, don't work... > > In Visual Studio I can reference only the mapscript_csharp.dll, how can I > reference a non-assembly .dll? > > regards > ........................................... pg > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote: >> Hi, >> >> Take latest version of mapserver (Ms4W 2.7.7) and update all the >> dlls >> form the cgi-bin to Visual Studio add the reference from visual >> studio.It >> will work.There is only problem with version.Because I did the same.I >> think >> it will help you. >> >> Thanks and Regards >> Venkat. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro >> Giannini >> Sent: Wednesday, July 16, 2008 10:05 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Trouble with a Share Point Portal. >> >> Hi all, >> >> I'm in serious trouble with the ambitious project of a web mapping app >> in >> a Windows SharePoint Services 3.0 environment; in detail, the >> application >> is embedded in a web part. >> Obviously, I'm developing in c#, that is not my preferred... >> >> I've recompiled myself mapserver and the mapscript_csharp assembly. In a >> debug environment all works fine but when I deploy the web part on the >> server I allways receive the same error: >> >> - Exception of type: System.TypeInitializationException; >> - with the message: "The type initializer for >> 'OSGeo.MapServer.mapscript' >> threw an exception"; >> - the source: mapscript_csharp; >> - the InnerException.StackTrace is: >> -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() >> -- at OSGeo.MapServer.mapscript..cctor() >> >> If anyone has experienced the same or a similar problem, or has more >> experience than me, can please help me? >> >> thanks in advance. >> >> ..........................................pg >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > From szekerest at gmail.com Thu Jul 17 05:43:10 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 17 Jul 2008 14:43:10 +0200 Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: <50999.192.168.1.65.1216297445.squirrel@localhost.localdomain> References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <001501c8e7c4$0ab61310$20223930$@com> <65440.192.168.1.65.1216295692.squirrel@localhost.localdomain> <002d01c8e805$52e32ec0$f8a98c40$@com> <50999.192.168.1.65.1216297445.squirrel@localhost.localdomain> Message-ID: 2008/7/17 Pietro Giannini : > Yes. > > The strange is that another application, in a non SharePoint IIS, run well > with the precompiled binaries shipping in the ms4w package. > A Share Point portal (this is Share Point Services 3.0) however has a more > restrictive policy for the customized assemblies to deploy in, and an > assembly must to be registrered in the Global Assembly Cach and described > as "safe control" in the web.config of the site collection (the virtual > directory of site). > This is the reason I must to recompile the entire project: to have a > mapscript_csharp.dll strong-named to add it to GAC. > I'm not sure how the sharepoint process and security model is looking like. But what you've described shows as if the dependent unmanaged dll-s (eg. mapscript.dll) couldn't be accessed at run-time. You can use the dependency walker to inspect how the dll-s are linked to each other and use SysInternals filemon to see which dll cannot be accessed at run-time. You should find out the name of the host process running your application (eg. aspnet_wp.exe or w3wp.exe) and set up a filter to it in filemon. You might anyway have to try copying all of the dependent dll-s into the same directory where the host process is running. As far as I remember as of the 5-0 version the mapscript_csharp.dll is 'strong-named' by default. Best regards, Tamas > any idea? > > many thanks > .................................. p > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Gio, Luglio 17, 2008 14:04, Venkat Rao Tammineni wrote: >> Hi, >> >> Have you replaced all dll(like libmap.dll etc..) into bin folder? >> >> Thanks and Regard >> Venkat. >> >> -----Original Message----- >> From: Pietro Giannini [mailto:pgiannini at bytewise.it] >> Sent: Thursday, July 17, 2008 5:25 PM >> To: mapserver-users at lists.osgeo.org >> Cc: Venkat Rao Tammineni >> Subject: RE: [mapserver-users] Trouble with a Share Point Portal. >> >> Venkat, >> this is the first I tried, don't work... >> >> In Visual Studio I can reference only the mapscript_csharp.dll, how can I >> reference a non-assembly .dll? >> >> regards >> ........................................... pg >> >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> >> On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote: >>> Hi, >>> >>> Take latest version of mapserver (Ms4W 2.7.7) and update all the >>> dlls >>> form the cgi-bin to Visual Studio add the reference from visual >>> studio.It >>> will work.There is only problem with version.Because I did the same.I >>> think >>> it will help you. >>> >>> Thanks and Regards >>> Venkat. >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro >>> Giannini >>> Sent: Wednesday, July 16, 2008 10:05 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Trouble with a Share Point Portal. >>> >>> Hi all, >>> >>> I'm in serious trouble with the ambitious project of a web mapping app >>> in >>> a Windows SharePoint Services 3.0 environment; in detail, the >>> application >>> is embedded in a web part. >>> Obviously, I'm developing in c#, that is not my preferred... >>> >>> I've recompiled myself mapserver and the mapscript_csharp assembly. In a >>> debug environment all works fine but when I deploy the web part on the >>> server I allways receive the same error: >>> >>> - Exception of type: System.TypeInitializationException; >>> - with the message: "The type initializer for >>> 'OSGeo.MapServer.mapscript' >>> threw an exception"; >>> - the source: mapscript_csharp; >>> - the InnerException.StackTrace is: >>> -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() >>> -- at OSGeo.MapServer.mapscript..cctor() >>> >>> If anyone has experienced the same or a similar problem, or has more >>> experience than me, can please help me? >>> >>> thanks in advance. >>> >>> ..........................................pg >>> >>> -- >>> Pietro Giannini >>> Bytewise srl - Area GIS >>> 41?50'38.58"N 12?29'13.39"E >>> >>> _______________________________________________ >>> 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 pspencer at dmsolutions.ca Thu Jul 17 05:47:12 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Thu, 17 Jul 2008 08:47:12 -0400 Subject: [mapserver-users] Changing Point style on-the-fly In-Reply-To: References: Message-ID: <426A262F-59AF-4AB2-AB28-004E5A08A9A3@dmsolutions.ca> If you are using MapServer 5.0 or the brand new 5.2 then you can probably use attribute binding, which allows you to specify an attribute in your data as the source for various parameters in the map file. For instance, if you have a field in your database called point_size that has a size value then you can do this: SIZE [point_size] You can also bind to COLOR and most other attributes inside STYLE and LABEL. I just went to look for documentation on attribute binding and I can't seem to find anything beyond the original rfc (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19 ) so if you are running into trouble, don't hesitate to ask the developers :) Cheers Paul On 17-Jul-08, at 7:52 AM, George A. Dubin wrote: > Hi all! I'm firing up a mapserver for our company these days. > Mapserver successfully connects to Postgres, and draws points from > my database. But I need to change some parameters, such as colour > and size of points on-the-fly, depending on the duration of their > existence. Is there a way to make Mapserver to pick size and colour > of points from Postgres, too? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From Tim.Nolte at ipcswirelessinc.com Thu Jul 17 05:54:22 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 17 Jul 2008 08:54:22 -0400 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> Message-ID: Is there a built-in facility to turn off anti-aliasing for certain layers when using AGG in this build? I had a patch given to me by someone else on the list that worked with MS 5.0, that patch doesn't work on this build. Thanks. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Steve Lime > Sent: Wednesday, July 16, 2008 9:52 PM > To: mapserver-announce at lists.osgeo.org; > mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapServer Version 5.2.0 Source Released > > Hi all: The MapServer PSC is proud to announce the release of > MapServer version 5.2. The source code is available for download at: > > http://mapserver.gis.umn.edu/download/current > > Binary distributions will follow shortly. This is a > significant release and users are encouraged to upgrade if > possible. Nearly 200 tickets were closed as part of this > effort. Major feature additions include: > > * MS RFC 36: Simplified Template Support for Query Output > * MS RFC 37: Spatial Reference Improvements and Additions > * MS RFC 38: Native Microsoft SQL Server 2008 Support > * MS RFC 41: WCS 1.1.x Support > * MS RFC 42: Support for Cookie Forwarding > * MS RFC 43: Direct Tile Generation for Google Maps API > > Full RFC text can be found at: > http://mapserver.gis.umn.edu/development/rfc > > Notable enhancements include: > > * performance enhancements for large shapefile handling > * performance enhancements for AGG rendering (an order of > magnitude faster in some cases) > * fuzzy label outlines for AGG > * style-level opacity for AGG > * quantization and palette support for PNGs and RGBA modes > * SOS 1.0.0 support > * WFS 1.1.0 support > * proxy and http authentication support for cascaded WMS requests > * pre-clip label point computation (helps in tile generation) > * extent (e.g. shpext, mapext) template tag attribute handling > > The full 5.2.0 change log can be found at: > http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-0/mapserv > er/HISTORY.TXT > > I would like to thank all the folks that worked hard on this > release, your efforts are greatly appreciated! > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From codeburg at hotmail.com Thu Jul 17 06:11:33 2008 From: codeburg at hotmail.com (Gail Long) Date: Thu, 17 Jul 2008 07:11:33 -0600 Subject: [mapserver-users] Convert Geo Points to Image Points Message-ID: I'm trying to convert a geopoint into an image coordinate so I can place images on a floating div over a map. I know how to go from image points to geo points and figured that just reversing the process was the way to go back. Apparently it is not. Here is what I was trying: -- Things are only difficult while you don't understand them. _________________________________________________________________ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Thu Jul 17 07:53:40 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 17 Jul 2008 16:53:40 +0200 (CEST) Subject: [mapserver-users] Trouble with a Share Point Portal. In-Reply-To: References: <63977.192.168.1.65.1216226071.squirrel@localhost.localdomain> <001501c8e7c4$0ab61310$20223930$@com> <65440.192.168.1.65.1216295692.squirrel@localhost.localdomain> <002d01c8e805$52e32ec0$f8a98c40$@com> <50999.192.168.1.65.1216297445.squirrel@localhost.localdomain> Message-ID: <60188.192.168.1.65.1216306420.squirrel@localhost.localdomain> Tamas thanks, you are right! 1: the ms4w's mapscript_csharp.dll is strong-named (I tried to add a old version to GAC); 2: with filemon I found the unlinked dll - mapscript, of course. now all works best regards ........................................pietro -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Luglio 17, 2008 14:43, Tamas Szekeres wrote: > 2008/7/17 Pietro Giannini : >> Yes. >> >> The strange is that another application, in a non SharePoint IIS, run >> well >> with the precompiled binaries shipping in the ms4w package. >> A Share Point portal (this is Share Point Services 3.0) however has a >> more >> restrictive policy for the customized assemblies to deploy in, and an >> assembly must to be registrered in the Global Assembly Cach and >> described >> as "safe control" in the web.config of the site collection (the virtual >> directory of site). >> This is the reason I must to recompile the entire project: to have a >> mapscript_csharp.dll strong-named to add it to GAC. >> > > I'm not sure how the sharepoint process and security model is looking > like. But what you've described shows as if the dependent unmanaged > dll-s (eg. mapscript.dll) couldn't be accessed at run-time. You can > use the dependency walker to inspect how the dll-s are linked to each > other and use SysInternals filemon to see which dll cannot be accessed > at run-time. You should find out the name of the host process running > your application (eg. aspnet_wp.exe or w3wp.exe) and set up a filter > to it in filemon. You might anyway have to try copying all of the > dependent dll-s into the same directory where the host process is > running. > As far as I remember as of the 5-0 version the mapscript_csharp.dll is > 'strong-named' by default. > > > Best regards, > > Tamas > > >> any idea? >> >> many thanks >> .................................. p >> >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> >> On Gio, Luglio 17, 2008 14:04, Venkat Rao Tammineni wrote: >>> Hi, >>> >>> Have you replaced all dll(like libmap.dll etc..) into bin folder? >>> >>> Thanks and Regard >>> Venkat. >>> >>> -----Original Message----- >>> From: Pietro Giannini [mailto:pgiannini at bytewise.it] >>> Sent: Thursday, July 17, 2008 5:25 PM >>> To: mapserver-users at lists.osgeo.org >>> Cc: Venkat Rao Tammineni >>> Subject: RE: [mapserver-users] Trouble with a Share Point Portal. >>> >>> Venkat, >>> this is the first I tried, don't work... >>> >>> In Visual Studio I can reference only the mapscript_csharp.dll, how can >>> I >>> reference a non-assembly .dll? >>> >>> regards >>> ........................................... pg >>> >>> >>> -- >>> Pietro Giannini >>> Bytewise srl - Area GIS >>> 41?50'38.58"N 12?29'13.39"E >>> >>> >>> >>> On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote: >>>> Hi, >>>> >>>> Take latest version of mapserver (Ms4W 2.7.7) and update all the >>>> dlls >>>> form the cgi-bin to Visual Studio add the reference from visual >>>> studio.It >>>> will work.There is only problem with version.Because I did the same.I >>>> think >>>> it will help you. >>>> >>>> Thanks and Regards >>>> Venkat. >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro >>>> Giannini >>>> Sent: Wednesday, July 16, 2008 10:05 PM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] Trouble with a Share Point Portal. >>>> >>>> Hi all, >>>> >>>> I'm in serious trouble with the ambitious project of a web mapping app >>>> in >>>> a Windows SharePoint Services 3.0 environment; in detail, the >>>> application >>>> is embedded in a web part. >>>> Obviously, I'm developing in c#, that is not my preferred... >>>> >>>> I've recompiled myself mapserver and the mapscript_csharp assembly. In >>>> a >>>> debug environment all works fine but when I deploy the web part on the >>>> server I allways receive the same error: >>>> >>>> - Exception of type: System.TypeInitializationException; >>>> - with the message: "The type initializer for >>>> 'OSGeo.MapServer.mapscript' >>>> threw an exception"; >>>> - the source: mapscript_csharp; >>>> - the InnerException.StackTrace is: >>>> -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get() >>>> -- at OSGeo.MapServer.mapscript..cctor() >>>> >>>> If anyone has experienced the same or a similar problem, or has more >>>> experience than me, can please help me? >>>> >>>> thanks in advance. >>>> >>>> ..........................................pg >>>> >>>> -- >>>> Pietro Giannini >>>> Bytewise srl - Area GIS >>>> 41?50'38.58"N 12?29'13.39"E >>>> >>>> _______________________________________________ >>>> 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 luigi.cardeles at gmail.com Thu Jul 17 09:12:17 2008 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Thu, 17 Jul 2008 13:12:17 -0300 Subject: [mapserver-users] Error compiling mapserver 5.2 with agg Message-ID: Hi list, i tried compile mapserver 5.2 with agg 2.4-2.1 (x86_64) and i am getting this error message: mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info' with no type mapagg.h:37: error: typedef name may not be a nested-name-specifier mapagg.h:37: error: expected ';' before '<' token mapagg.h:96: error: 'row_data' does not name a type and error go on to mapagg.cpp. Anyone knows how to fix it? Thanks -- Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Thu Jul 17 11:41:27 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 17 Jul 2008 20:41:27 +0200 Subject: [mapserver-users] Error compiling mapserver 5.2 with agg In-Reply-To: References: Message-ID: <487F9257.80202@zeelandnet.nl> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Luigi, Today I compiled Mapserver 5.2 and agg 2.5.0 from source and in that combination the problem does not exist. It seems to me that the problem is in the 2.4-2.1 version of agg? I installed agg this way: wget http://www.antigrain.com/agg-2.5.0.tar.gz tar -xzf agg-2.5.0.tar.gz cd agg-2.5.0 make cd .. mv agg-2.5.0 /usr/local/src/agg ldconfig /usr/local/lib hope this works for you too. Kind regards, Milo Luigi Castro Cardeles wrote: > Hi list, > > i tried compile mapserver 5.2 with agg 2.4-2.1 (x86_64) and i am getting > this error message: > > > mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info' with no > type > mapagg.h:37: error: typedef name may not be a nested-name-specifier > mapagg.h:37: error: expected ';' before '<' token > mapagg.h:96: error: 'row_data' does not name a type > > and error go on to mapagg.cpp. > > Anyone knows how to fix it? > Thanks > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIf5JX2oMdf0ahv2kRAh2QAJ9CRWaoln9VhNjzWk4E2Rnk5OFaRQCfSH1Z V+atMJHt9Crcfs7Fojpqn9Y= =1H57 -----END PGP SIGNATURE----- From jmckenna at gatewaygeomatics.com Thu Jul 17 11:55:19 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 17 Jul 2008 14:55:19 -0400 Subject: [mapserver-users] Changing Point style on-the-fly In-Reply-To: <426A262F-59AF-4AB2-AB28-004E5A08A9A3@dmsolutions.ca> References: <426A262F-59AF-4AB2-AB28-004E5A08A9A3@dmsolutions.ca> Message-ID: <06FD2848-861D-46A1-ACC1-32EE697E9B9D@gatewaygeomatics.com> On 17-Jul-08, at 8:47 AM, Paul Spencer wrote: > > > I just went to look for documentation on attribute binding and I > can't seem to find anything beyond the original rfc (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19 > ) so if you are running into trouble, don't hesitate to ask the > developers :) > The mapfile reference has now been updated accordingly. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Bob.Basques at ci.stpaul.mn.us Thu Jul 17 12:02:11 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 17 Jul 2008 14:02:11 -0500 Subject: [mapserver-users] Legends with Imagemaps. Message-ID: <487F50E3.163B.00A8.0@ci.stpaul.mn.us> Ok, This may sound like a weird request, but . . . Is there any way of generating an Imagemap for a standalone Legend graphic? Ideally I would like to have the TITLE text to have a corresponding imagemap. If only the Symbol can be made to have the imagemap, that will work, but having the text with an imagemap would be better. The more I think about it though, the more I think a Legend would need to be treated more like a regular layer for this to work cleanly. I know most folks would just say to use the HTML legends, but I don't need that complication in our setup, as each data custodian is handling their respective cartography. So this piece about Imagemaps on a legend would be more for them to do. And teaching all to use HTML Legends is not very cost effective. But, they all know how to make a template already, so adding in another for a Legend would be doable task. I want to add in Metadata Linking to the legend imagemaps. Actually, putting an additional Symbol on each legend item line indicating that there was Metadata available, either from the MAPFILE or via a LINK described in the mapfile would work really well. Anyway, just had the thought, figured I would bounce it off of the list. Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjschlafley at yahoo.com Thu Jul 17 13:34:04 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Thu, 17 Jul 2008 13:34:04 -0700 (PDT) Subject: [mapserver-users] nextlabel() getlabel() still being used? Message-ID: <483857.29646.qm@web52303.mail.re2.yahoo.com> Just wondering if PHP Mapscript uses the methods nextlabel() or getlabel() for getting label objects from the label cache?? I know removing or changing this functionality was discussed previously, but cant find where the situation stands. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjh at extensys.com Thu Jul 17 10:43:11 2008 From: tjh at extensys.com (Tom Huras) Date: Thu, 17 Jul 2008 13:43:11 -0400 Subject: [mapserver-users] Ruby MapScript on Mac OS X? Message-ID: <487F84AF.4020103@extensys.com> I'm running the pre-built binaries for MapServer on Mac OS X from Kyng Chaos. Does anyone know how to get Ruby MapScript going on this platform? I understand that if I build MapServer from source I can also build Ruby MapScript. However, I was hoping for an easier path. Thanks /tom -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Thu Jul 17 20:14:15 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 17 Jul 2008 22:14:15 -0500 Subject: [mapserver-users] Ruby MapScript on Mac OS X? In-Reply-To: <487F84AF.4020103@extensys.com> References: <487F84AF.4020103@extensys.com> Message-ID: I haven't given any thought to ruby yet, but I can look into it. Which OSX version? I believe Leopard has Ruby, but not Tiger. I would prefer to start with the system Ruby. A possibility that I haven't worked out fully yet is to use my MapServer framework + MapServer source to build just the Ruby MapScript. On Jul 17, 2008, at 12:43 PM, Tom Huras wrote: > I'm running the pre-built binaries for MapServer on Mac OS X from > Kyng Chaos. Does anyone know how to get Ruby MapScript going on > this platform? > > I understand that if I build MapServer from source I can also build > Ruby MapScript. However, I was hoping for an easier path. > > Thanks > > /tom > -- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From matthew.pettis at gmail.com Thu Jul 17 20:58:38 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Thu, 17 Jul 2008 22:58:38 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 Message-ID: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com> Hi, I am compiling MapServer from source because I want to include fastcgi... anyway, I've fixed most of the compile issues, but I can't get past the following: ================ configure: checking whether we should include PROJ.4 support... configure: error: "Could not find proj_api.h or libproj.a/libproj.so in /usr/include/." ================ However, I verified that /usr/include/proj_api.h does exist, so I'm a bit confused... any suggestions? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From mikesaunt at gmail.com Fri Jul 18 02:46:35 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Fri, 18 Jul 2008 10:46:35 +0100 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in field value Message-ID: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> Hi All I've got a MapFile that used to work fine in v4.10 but now fails in v5.0 Basically the CLASSITEM field has double quote in field value and this is then returning an error - msEvalExpression: Expression parser error. Failed to parse expression The CLASS EXPRESSION looks like this CLASSITEM 'TRAFFIC_TYPE' CLASS EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR '[TRAFFIC_TYPE]' = 'Two-Way Signals') STYLE # Severe (RED) SYMBOL 'triangle' SIZE 9 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END I've tried double quote vs. single quotes in the map file but to no avail Anyone any thoughts? Kind regards Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at deprem.gov.tr Fri Jul 18 03:15:35 2008 From: temiz at deprem.gov.tr (orkun) Date: Fri, 18 Jul 2008 13:15:35 +0300 Subject: [mapserver-users] cannot reach postgis database Message-ID: <1216376135.5872.7.camel@orkun-desktop> hello I cannot reach postgis database. Using apache , what should I do about connection parameters. How can I make connection succesful ? Here is the map file fragment I tried : LAYER #layer hey postgis CONNECTIONTYPE postgis NAME "hey" CONNECTION "user=orkun password=222222 dbname=bzk2 host=localhost" regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From lysholm at tut.by Fri Jul 18 03:12:16 2008 From: lysholm at tut.by (George A. Dubin) Date: Fri, 18 Jul 2008 13:12:16 +0300 Subject: [mapserver-users] Changing Point style on-the-fly In-Reply-To: <426A262F-59AF-4AB2-AB28-004E5A08A9A3@dmsolutions.ca> References: <426A262F-59AF-4AB2-AB28-004E5A08A9A3@dmsolutions.ca> Message-ID: On Thu, 17 Jul 2008 15:47:12 +0300, Paul Spencer wrote: > If you are using MapServer 5.0 or the brand new 5.2 then you can > probably use attribute binding, which allows you to specify an attribute > in your data as the source for various parameters in the map file. For > instance, if you have a field in your database called point_size that > has a size value then you can do this: > > SIZE [point_size] > > You can also bind to COLOR and most other attributes inside STYLE and > LABEL. I just went to look for documentation on attribute binding and I > can't seem to find anything beyond the original rfc > (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19) so if you are > running into trouble, don't hesitate to ask the developers :) > > Cheers > > Paul > > > On 17-Jul-08, at 7:52 AM, George A. Dubin wrote: > >> Hi all! I'm firing up a mapserver for our company these days. Mapserver >> successfully connects to Postgres, and draws points from my database. >> But I need to change some parameters, such as colour and size of points >> on-the-fly, depending on the duration of their existence. Is there a >> way to make Mapserver to pick size and colour of points from Postgres, >> too? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > That really works!!! Thanks a lot! From gabmessner at gmail.com Fri Jul 18 03:28:49 2008 From: gabmessner at gmail.com (Gabriel Messner) Date: Fri, 18 Jul 2008 12:28:49 +0200 Subject: [mapserver-users] WFS_ENCODING problems In-Reply-To: <487476AA.1040301@neogeo-online.net> References: <1708890c0807090105p1e128321j6d1fb38e194d802b@mail.gmail.com> <487471E8.6050802@neogeo-online.net> <1708890c0807090121n5c156252l77f7e079870e9c6e@mail.gmail.com> <487476AA.1040301@neogeo-online.net> Message-ID: <1708890c0807180328x3866a95cw49c0be4893d13e59@mail.gmail.com> I?ve solved the problem; I post de solution for future searchings: 1. I keep de Postgis Database encoding to UTF-8 2. I changed the client_encoding in the postgresql.conf to client encoding = iso-8859-1 3. Then I changed the Layer Metadata in the mapfile to 'Layer_Encoding' 'Latin1'. Now the special characters '?', '?', etc are shown properly. 2008/7/9 Guillaume Sueur : > it's not. > default client_encoding is ASCII > > > Gabriel Messner a ?crit : > >> Thanks, but default client_encoding in PostgreSQL is the database encoding >> (here, UTF-8) >> >> 2008/7/9 Guillaume Sueur > guillaume.sueur at neogeo-online.net>>: >> >> >> just an idea, but maybe check your client_encoding parameter in >> postgresql.conf >> I may be wrong, but I think that mapserver id acting as a client for >> the db, and may have the results returned into the client_encoding >> character set. >> >> Guillaume >> >> Gabriel Messner a ?crit : >> >> Hi all, >> >> I?ve set up a WFS server with mapserver. Data is stored in >> Postgis database. Encoding settings are the followings: >> >> >> -Spatial Data Base encoding is UTF-8 >> -For each layer in the mapfile encofing is also UTF-8 indicated >> with 'layer_encoding' 'UTF-8' >> >> The server retuns successfully geometries and attributes but the >> the characters '?',?,?,?,?,? are missing (spanish). >> >> I?ve tried to solve this problem using 'wfs_encofing' 'UTF-8' >> into the Web object Metadata but when doing so and trying to add >> a wfs layer with UDig, an alert is displayed saying 'wrong >> connection parameters'. I?ve also tried with 'ows_endoding' and >> 'gml_encoding' at Web object Metadata but I fail as well. >> >> I?d hughly appreciated if anyone can help me. >> >> Thanks in advance. >> >> Gabriel Messner >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Jul 18 03:40:46 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 18 Jul 2008 13:40:46 +0300 Subject: [mapserver-users] cannot reach postgis database References: <1216376135.5872.7.camel@orkun-desktop> Message-ID: Hi, Perhaps addind "port" to PostGIS connection settings? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: orkun L?hetetty: pe 18.7.2008 13:15 Vastaanottaja: mapserver Aihe: [mapserver-users] cannot reach postgis database hello I cannot reach postgis database. Using apache , what should I do about connection parameters. How can I make connection succesful ? Here is the map file fragment I tried : LAYER #layer hey postgis CONNECTIONTYPE postgis NAME "hey" CONNECTION "user=orkun password=222222 dbname=bzk2 host=localhost" regards -- Ahmet Temiz Jeo. M?h. Afet Isleri Gen. Md.l?g? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yjacolin at free.fr Fri Jul 18 03:58:04 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Fri, 18 Jul 2008 12:58:04 +0200 Subject: [mapserver-users] cannot reach postgis database In-Reply-To: References: <1216376135.5872.7.camel@orkun-desktop> Message-ID: <200807181258.05128.yjacolin@free.fr> Hi, You could check the postgresql log (in /var/log/postgresql/) and see what is the problem. Y. Le Friday 18 July 2008 12:40:46 Rahkonen Jukka, vous avez ?crit?: > Hi, > > Perhaps addind "port" to PostGIS connection settings? > > -Jukka Rahkonen- > > > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: orkun > L?hetetty: pe 18.7.2008 13:15 > Vastaanottaja: mapserver > Aihe: [mapserver-users] cannot reach postgis database > > hello > > I cannot reach postgis database. > Using apache , what should I do about > connection parameters. > > How can I make connection succesful ? > > Here is the map file fragment I tried : > > LAYER #layer hey postgis > CONNECTIONTYPE postgis > NAME "hey" > > CONNECTION "user=orkun password=222222 dbname=bzk2 host=localhost" > > > regards > > -- > Ahmet Temiz > Jeo. M?h. > Afet Isleri Gen. Md.l?g? > Deprem Ar. D. > > Ahmet Temiz > Geo. Eng. > General Dir. of > Disaster Affairs -- Yves Jacolin --- http://softlibre.gloobe.org From adube at mapgears.com Fri Jul 18 05:41:35 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 18 Jul 2008 08:41:35 -0400 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in field value In-Reply-To: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> Message-ID: <48808F7F.8080005@mapgears.com> Hi Mike, I'm not sure about that, but try eq instead of = EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... Best Regards, Alexandre Mike Saunt wrote: > Hi All > > I've got a MapFile that used to work fine in v4.10 but now fails in v5.0 > > Basically the CLASSITEM field has double quote in field value and this > is then returning an error - msEvalExpression: Expression parser > error. Failed to parse expression > > The CLASS EXPRESSION looks like this > CLASSITEM 'TRAFFIC_TYPE' > CLASS > EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR > '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = 'Road > Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR '[TRAFFIC_TYPE]' = > 'Two-Way Signals') > STYLE # Severe (RED) > SYMBOL 'triangle' > SIZE 9 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > > I've tried double quote vs. single quotes in the map file but to no avail > > Anyone any thoughts? > > Kind regards > Mike > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From mikesaunt at gmail.com Fri Jul 18 05:49:03 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Fri, 18 Jul 2008 13:49:03 +0100 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in field value In-Reply-To: <48808F7F.8080005@mapgears.com> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> <48808F7F.8080005@mapgears.com> Message-ID: <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> thanks Alexandre but unfortunately it didn't work Do you know if there is a way of forcing MapServer to read out the literal string i.e. sort of like escaping it? in .NET you can say @stringvariable and it will ignore quotes inside etc? Cheers Mike 2008/7/18 Alexandre Dube : > Hi Mike, > > I'm not sure about that, but try eq instead of = > > EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... > > Best Regards, > Alexandre > > Mike Saunt wrote: > >> Hi All >> >> I've got a MapFile that used to work fine in v4.10 but now fails in v5.0 >> >> Basically the CLASSITEM field has double quote in field value and this is >> then returning an error - msEvalExpression: Expression parser error. Failed >> to parse expression >> >> The CLASS EXPRESSION looks like this >> CLASSITEM 'TRAFFIC_TYPE' CLASS >> EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR >> '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = 'Road Closure' >> OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR '[TRAFFIC_TYPE]' = 'Two-Way >> Signals') >> STYLE # Severe (RED) >> SYMBOL 'triangle' >> SIZE 9 >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> >> I've tried double quote vs. single quotes in the map file but to no avail >> >> Anyone any thoughts? >> >> Kind regards >> Mike >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Fri Jul 18 06:07:35 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 18 Jul 2008 09:07:35 -0400 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in field value In-Reply-To: <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> <48808F7F.8080005@mapgears.com> <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> Message-ID: <48809597.4010705@mapgears.com> I've been told by developers that there seems to be a bug when using " " in the expression parser... You should use a regular expression instead like the following : EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road Closure$|^Stop\/Go Boards$|^Two-Way Signals$/ See at : http://mapserver.gis.umn.edu/docs/howto/msexpressions Mike Saunt wrote: > thanks Alexandre but unfortunately it didn't work > > Do you know if there is a way of forcing MapServer to read out the > literal string i.e. sort of like escaping it? in .NET you can say > @stringvariable and it will ignore quotes inside etc? > > Cheers > Mike > > 2008/7/18 Alexandre Dube >: > > Hi Mike, > > I'm not sure about that, but try eq instead of = > > EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... > > Best Regards, > Alexandre > > Mike Saunt wrote: > > Hi All > > I've got a MapFile that used to work fine in v4.10 but now > fails in v5.0 > > Basically the CLASSITEM field has double quote in field value > and this is then returning an error - msEvalExpression: > Expression parser error. Failed to parse expression > > The CLASS EXPRESSION looks like this > CLASSITEM 'TRAFFIC_TYPE' CLASS > EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR > '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = > 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR > '[TRAFFIC_TYPE]' = 'Two-Way Signals') > STYLE # Severe (RED) > SYMBOL 'triangle' > SIZE 9 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > > I've tried double quote vs. single quotes in the map file but > to no avail > > Anyone any thoughts? > > Kind regards > Mike > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From matthew.pettis at gmail.com Fri Jul 18 06:12:34 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Fri, 18 Jul 2008 08:12:34 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 In-Reply-To: <488040C6.7000805@neogeo-online.net> References: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com> <488040C6.7000805@neogeo-online.net> Message-ID: <82ba77b80807180612x3992d909g7f0134d7f54fd01d@mail.gmail.com> Hi Guillaume, Milo, Thanks for the replies... please see below MIlo: ----------------------------------------------------------- Ah! I faced this one on debian yesterday! Thanks to great help on the irc channel I can help ou with a solution, aint life great? You say proj_api.h is in that directory, but how about libproj.a/libproj.so? Did you run the ./configure, make , make install for proj? If you did You may need to run: ldconfig /usr/include ----------------------------------------------------------- proj_api.h is in /usr/include/ while libproj.a/libproj.so are in /usr/lib... i didn't build the libproj.* libraries myself, but downloaded them via synaptic -- do i need to do a manual build? Guillaume: ----------------------------------------------------------- On Fri, Jul 18, 2008 at 2:05 AM, Guillaume Sueur wrote: > did you add your lib path to /etc/ld.so.conf and run ldconfig after proj > install ? > > Guillaume > > Matthew Pettis a ?crit : >> >> Hi, >> >> I am compiling MapServer from source because I want to include >> fastcgi... anyway, I've fixed most of the compile issues, but I can't >> get past the following: >> >> ================ >> configure: checking whether we should include PROJ.4 support... >> configure: error: "Could not find proj_api.h or libproj.a/libproj.so >> in /usr/include/." >> ================ >> >> However, I verified that /usr/include/proj_api.h does exist, so I'm a >> bit confused... any suggestions? >> >> Thanks, >> Matt >> > > ----------------------------------------------------------- answer: no, because like I wrote to Milo, I did a synaptic install of the proj library, not a manual build... can i still edit it after doing a synaptic install? my ld.so.conf file looks like this currently: ----------------------------------------------------------- include /etc/ld.so.conf.d/*.conf ----------------------------------------------------------- is this what it should look like? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From mikesaunt at gmail.com Fri Jul 18 06:16:56 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Fri, 18 Jul 2008 14:16:56 +0100 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in field value In-Reply-To: <48809597.4010705@mapgears.com> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> <48808F7F.8080005@mapgears.com> <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> <48809597.4010705@mapgears.com> Message-ID: <5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com> Alexandre Excellent - that works! FYI - This is why I believe that Open Source can easily prevail even when people put down the 'many eyes see more bugs' notion. In another life I worked with / as a partner for a proprietary company (now you can buy franking machines from the same parent company wink wink nudge nudge) and you'd never get this response so quickly and also having 'had it from the horses mouth a.k.a. Developers' that there is an issue and this is the best way around it. Thanks so much Alexandre Kind regards Mike 2008/7/18 Alexandre Dube : > I've been told by developers that there seems to be a bug when using " " in > the expression parser... > > You should use a regular expression instead like the following : > > EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road Closure$|^Stop\/Go > Boards$|^Two-Way Signals$/ > > See at : http://mapserver.gis.umn.edu/docs/howto/msexpressions > > Mike Saunt wrote: > >> thanks Alexandre but unfortunately it didn't work >> >> Do you know if there is a way of forcing MapServer to read out the literal >> string i.e. sort of like escaping it? in .NET you can say @stringvariable >> and it will ignore quotes inside etc? >> >> Cheers >> Mike >> >> 2008/7/18 Alexandre Dube > >>: >> >> >> Hi Mike, >> >> I'm not sure about that, but try eq instead of = >> >> EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... >> >> Best Regards, >> Alexandre >> >> Mike Saunt wrote: >> >> Hi All >> >> I've got a MapFile that used to work fine in v4.10 but now >> fails in v5.0 >> >> Basically the CLASSITEM field has double quote in field value >> and this is then returning an error - msEvalExpression: >> Expression parser error. Failed to parse expression >> >> The CLASS EXPRESSION looks like this >> CLASSITEM 'TRAFFIC_TYPE' CLASS >> EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR >> '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = >> 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR >> '[TRAFFIC_TYPE]' = 'Two-Way Signals') >> STYLE # Severe (RED) >> SYMBOL 'triangle' >> SIZE 9 >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> >> I've tried double quote vs. single quotes in the map file but >> to no avail >> >> Anyone any thoughts? >> >> Kind regards >> Mike >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- Alexandre Dub? >> Mapgears >> www.mapgears.com >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.pettis at gmail.com Fri Jul 18 06:16:59 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Fri, 18 Jul 2008 08:16:59 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup Message-ID: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> Hi, More and different compiling issues from the one I've already posted... My configure script errors as shown below (truncated because I believe the most important part is included): ------------------------------------------------------------------------------------------------------------------ configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from -L -liconv libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). ------------------------------------------------------------------------------------------------------------------ Now, I have libgd version 2.0.35, so this should work... I have gd.h and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is choking because of the gdFontCacheSetup. Any idea on how to fix this? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From beartreeyoga at yahoo.co.uk Fri Jul 18 06:21:36 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Fri, 18 Jul 2008 13:21:36 +0000 (GMT) Subject: [mapserver-users] ECW Problems Message-ID: <757004.15207.qm@web23003.mail.ird.yahoo.com> Hi I cannot get ecw files to work in Mapserver. I have updated my map file (see below). Is there any configuration that I have to do to enable this or is ecw by default. I am using ms4w beta 5.2. My client is WorldWind and I am using the "Import to WMS Url Layer" option. It would appear that MapServer fails when processing the map file. Are there any options to set to enable a debug console window when processing the map file. I have checked that my ecw file is georeferenced and it is.. Thanks Derek LAYER NAME TestECWLayer TYPE RASTER STATUS ON DUMP TRUE DATA "C:/Progra~1/ms4w/Apps/All_Data/data/testfile.ecw" PROJECTION "init=epsg:4326" END METADATA "wms_title" "TestECWLayer" "wms_abstract" "TestECWLayer abstract goes here ...." "wms_srs" "EPSG:4326" "wms_name" "TestECWLayer" "wms_format" "image/png image/jpeg" "wms_extent" "-88.9803405 30.2175328 -88.9755868 30.2216604" "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/Progra~1/ms4w/apps/All_Data/ECW_Test.map" END CLASS NAME "TestECWLayer" COLOR 255 0 0 END END __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Fri Jul 18 06:23:35 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 18 Jul 2008 15:23:35 +0200 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 In-Reply-To: <82ba77b80807180612x3992d909g7f0134d7f54fd01d@mail.gmail.com> References: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com> <488040C6.7000805@neogeo-online.net> <82ba77b80807180612x3992d909g7f0134d7f54fd01d@mail.gmail.com> Message-ID: <48809957.9040102@neogeo-online.net> try to add /usr/lib to your /etc/ld.so.conf and then /sbin/ldconfig if you don't find needed files (proj_api.h etc, but you seem to have them on your disk), always try to install the devel package correspondig to your lib. Guillaume Matthew Pettis a ?crit : > Hi Guillaume, Milo, > > Thanks for the replies... please see below > > MIlo: > ----------------------------------------------------------- > Ah! > > I faced this one on debian yesterday! Thanks to great help on the irc > channel I can help ou with a solution, aint life great? > > You say proj_api.h is in that directory, but how about libproj.a/libproj.so? > > Did you run the ./configure, make , make install for proj? > > If you did > > You may need to run: > > > ldconfig /usr/include > ----------------------------------------------------------- > > proj_api.h is in /usr/include/ while libproj.a/libproj.so are in > /usr/lib... i didn't build the libproj.* libraries myself, but > downloaded them via synaptic -- do i need to do a manual build? > > Guillaume: > ----------------------------------------------------------- > On Fri, Jul 18, 2008 at 2:05 AM, Guillaume Sueur > wrote: >> did you add your lib path to /etc/ld.so.conf and run ldconfig after proj >> install ? >> >> Guillaume >> >> Matthew Pettis a ?crit : >>> Hi, >>> >>> I am compiling MapServer from source because I want to include >>> fastcgi... anyway, I've fixed most of the compile issues, but I can't >>> get past the following: >>> >>> ================ >>> configure: checking whether we should include PROJ.4 support... >>> configure: error: "Could not find proj_api.h or libproj.a/libproj.so >>> in /usr/include/." >>> ================ >>> >>> However, I verified that /usr/include/proj_api.h does exist, so I'm a >>> bit confused... any suggestions? >>> >>> Thanks, >>> Matt >>> >> > ----------------------------------------------------------- > > answer: no, because like I wrote to Milo, I did a synaptic install of > the proj library, not a manual build... can i still edit it after > doing a synaptic install? my ld.so.conf file looks like this > currently: > > ----------------------------------------------------------- > include /etc/ld.so.conf.d/*.conf > ----------------------------------------------------------- > > is this what it should look like? > > Thanks, > Matt > > From dmorissette at mapgears.com Fri Jul 18 06:23:32 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 18 Jul 2008 09:23:32 -0400 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 In-Reply-To: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com> References: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com> Message-ID: <48809954.7060606@mapgears.com> Is it possible that you configured using "--with-proj=/usr/include"? You should use "--with-proj=/usr" only and the configure script should take care of looking in the right subdirectory for each file. Daniel Matthew Pettis wrote: > Hi, > > I am compiling MapServer from source because I want to include > fastcgi... anyway, I've fixed most of the compile issues, but I can't > get past the following: > > ================ > configure: checking whether we should include PROJ.4 support... > configure: error: "Could not find proj_api.h or libproj.a/libproj.so > in /usr/include/." > ================ > > However, I verified that /usr/include/proj_api.h does exist, so I'm a > bit confused... any suggestions? > > Thanks, > Matt > -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Jul 18 06:54:53 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 18 Jul 2008 09:54:53 -0400 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> Message-ID: <4880A0AD.5000408@mapgears.com> As I wrote in a previous message, is it possible that you configured using "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure script should take care of looking in the right subdirectory for each file. Daniel Matthew Pettis wrote: > Hi, > > More and different compiling issues from the one I've already > posted... My configure script errors as shown below (truncated because > I believe the most important part is included): > ------------------------------------------------------------------------------------------------------------------ > configure: checking where libiconv is installed... > checking for iconv_open in -lc... yes > checking for libiconv_open in -liconv... yes > using libiconv from -L -liconv > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.16 or higher... > checking for gdFontCacheSetup in -lgd... no > configure: checking whether GD needs libiconv... > checking for gdFontCacheSetup in -lgd... no > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. > Make sure GD 2.0.16 or higher is compiled before calling configure. > You may also get this error if you didn't specify the appropriate > location for one of GD's dependencies (freetype, libpng, libjpeg or > libiconv). > ------------------------------------------------------------------------------------------------------------------ > > Now, I have libgd version 2.0.35, so this should work... I have gd.h > and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is > choking because of the gdFontCacheSetup. Any idea on how to fix this? > > Thanks, > Matt > -- Daniel Morissette http://www.mapgears.com/ From matthew.pettis at gmail.com Fri Jul 18 07:03:02 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Fri, 18 Jul 2008 09:03:02 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 In-Reply-To: <48809954.7060606@mapgears.com> References: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com> <48809954.7060606@mapgears.com> Message-ID: <82ba77b80807180703t2a384727uc065e76176278dac@mail.gmail.com> Thanks Daniel, Guillaume, Daniel: you are correct in that I configured with "--with-proj=/usr/include", and also tried "--with-proj=/usr/lib". I will try tonight with your suggestion. Thanks! Matt On Fri, Jul 18, 2008 at 8:23 AM, Daniel Morissette wrote: > Is it possible that you configured using "--with-proj=/usr/include"? You > should use "--with-proj=/usr" only and the configure script should take care > of looking in the right subdirectory for each file. > > Daniel > > > Matthew Pettis wrote: >> >> Hi, >> >> I am compiling MapServer from source because I want to include >> fastcgi... anyway, I've fixed most of the compile issues, but I can't >> get past the following: >> >> ================ >> configure: checking whether we should include PROJ.4 support... >> configure: error: "Could not find proj_api.h or libproj.a/libproj.so >> in /usr/include/." >> ================ >> >> However, I verified that /usr/include/proj_api.h does exist, so I'm a >> bit confused... any suggestions? >> >> Thanks, >> Matt >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From woklist at kyngchaos.com Fri Jul 18 07:03:32 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 18 Jul 2008 09:03:32 -0500 Subject: [mapserver-users] Ruby MapScript on Mac OS X? In-Reply-To: <48809312.1070609@extensys.com> References: <487F84AF.4020103@extensys.com> <48809312.1070609@extensys.com> Message-ID: Here's a way to add ruby to my MapServer framework build. Get the matching 5.0 Mapserver source (5.2 release coming soon). Also get the GD 2.0.35 source, since some internal operations use GD. Copy these GD headers into the Mapserver source: entities.h gd_io.h gd.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h gdfx.h Then copy this file to the Mapserver source: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapscriptvars Type: application/octet-stream Size: 631 bytes Desc: not available URL: -------------- next part -------------- Now, in a Terminal window, cd to the ruby mapscript source folder and (as the readme says): ruby extconf.rb make You will probably get an error about a missing architecture, but at least on Leopard it is ignored and I got a ruby mapscript "bundle". If this works, I can include the mapscripvars and instructions in my upcoming 5.2 binaries. On Jul 18, 2008, at 7:56 AM, Tom Huras wrote: > William: > I'm on OS X 10.4.11 with my own Ruby installation to a more recent > version (1.8.5) than shipped with OS X. > > I am using your MapServer framework because it appeared to be a > cleaner way of getting it going. > > A couple of years ago, I attempted the full build from MapServer > source with all its prerequisite software and got bogged down on > some compiler issue with one of the prerequisites. I left it for a > while and then discovered your site where you had done the heavy > lifting to do the build. Thanks for that! > > /tom > > William Kyngesburye wrote: >> >> I haven't given any thought to ruby yet, but I can look into it. >> Which OSX version? I believe Leopard has Ruby, but not Tiger. I >> would prefer to start with the system Ruby. A possibility that I >> haven't worked out fully yet is to use my MapServer framework + >> MapServer source to build just the Ruby MapScript. ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From matthew.pettis at gmail.com Fri Jul 18 07:04:15 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Fri, 18 Jul 2008 09:04:15 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <4880A0AD.5000408@mapgears.com> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> Message-ID: <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> Replied to your previous one -- I will try again tonight with your suggestion and update the list with the results -- Thanks again! Matt On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette wrote: > As I wrote in a previous message, is it possible that you configured using > "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure > script should take care of looking in the right subdirectory for each file. > > Daniel > > Matthew Pettis wrote: >> >> Hi, >> >> More and different compiling issues from the one I've already >> posted... My configure script errors as shown below (truncated because >> I believe the most important part is included): >> >> ------------------------------------------------------------------------------------------------------------------ >> configure: checking where libiconv is installed... >> checking for iconv_open in -lc... yes >> checking for libiconv_open in -liconv... yes >> using libiconv from -L -liconv >> libiconv found. Enabling internationalization (-DUSE_ICONV) >> configure: checking for GD 2.0.16 or higher... >> checking for gdFontCacheSetup in -lgd... no >> configure: checking whether GD needs libiconv... >> checking for gdFontCacheSetup in -lgd... no >> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. >> Make sure GD 2.0.16 or higher is compiled before calling configure. >> You may also get this error if you didn't specify the appropriate >> location for one of GD's dependencies (freetype, libpng, libjpeg or >> libiconv). >> >> ------------------------------------------------------------------------------------------------------------------ >> >> Now, I have libgd version 2.0.35, so this should work... I have gd.h >> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >> choking because of the gdFontCacheSetup. Any idea on how to fix this? >> >> Thanks, >> Matt >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From jmckenna at gatewaygeomatics.com Fri Jul 18 07:50:01 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 18 Jul 2008 10:50:01 -0400 Subject: [mapserver-users] ECW Problems In-Reply-To: <757004.15207.qm@web23003.mail.ird.yahoo.com> References: <757004.15207.qm@web23003.mail.ird.yahoo.com> Message-ID: On 18-Jul-08, at 9:21 AM, Derek Bain wrote: > Hi > I cannot get ecw files to work in Mapserver. I have updated my map > file (see below). > > Is there any configuration that I have to do to enable this or is > ecw by default. I am using ms4w beta 5..2. > > My client is WorldWind and I am using the "Import to WMS Url Layer" > option. It would appear that MapServer fails when processing the map > file. Are there any options to set to enable a debug console window > when processing the map file. > > I have checked that my ecw file is georeferenced and it is. > > Thanks > Derek > > > LAYER > NAME TestECWLayer > TYPE RASTER > STATUS ON > DUMP TRUE > DATA "C:/Progra~1/ms4w/Apps/All_Data/data/testfile.ecw" > PROJECTION > "init=epsg:4326" > END > > > METADATA > "wms_title" "TestECWLayer" > "wms_abstract" "TestECWLayer abstract goes > here ...." > "wms_srs" "EPSG:4326" > "wms_name" "TestECWLayer" > "wms_format" "image/png image/jpeg" > "wms_extent" "-88.9803405 30.2175328 > -88.9755868 30.2216604" > "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/Progra > ~1/ms4w/apps/All_Data/ECW_Test.map" > END > > CLASS > NAME "TestECWLayer" > COLOR 255 0 0 > END > END Hello, I have made some notes for you below to assist you with your ECW issue: 1) MS4W (and its underlying GDAL library) comes ready to use ECW data by default. To verify this, execute /ms4w/setenv.bat at the commandline, and then execute "gdalinfo --formats" to see if ECW is supported, such as: >gdalinfo --formats Supported Formats: VRT (rw+): Virtual Raster GTiff (rw+): GeoTIFF ... ECW (rw): ERMapper Compressed Wavelets ... ADRG (rw+): ARC Digitized Raster Graphics 2) Now that you have established that your local build has ECW support, now use the gdalinfo command on your data to get some basic info on your ecw file, such as: >gdalinfo image1.ecw Driver: ECW/ERMapper Compressed Wavelets Files: image1.ecw image1.ecw.aux.xml Size is 7966, 8274 Coordinate System is: PROJCS["LCC E008", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",49], PARAMETER["standard_parallel_2",77], PARAMETER["latitude_of_origin",49], PARAMETER["central_meridian",-95], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (2878735.262000000100000,995462.974999999980000) Pixel Size = (30.000000000000000,-30.000000000000000) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left ( 2878735.262, 995462.975) ( 52d35'49.00"W, 48d59'18.47"N) Lower Left ( 2878735.262, 747242.975) ( 54d36'32.41"W, 47d13'6.98"N) Upper Right ( 3117715.262, 995462.975) ( 50d 6'40.01"W, 47d37'48.85"N) Lower Right ( 3117715.262, 747242.975) ( 52d 9'36.52"W, 45d55'23.39"N) Center ( 2998225.262, 871352.975) ( 52d22'14.82"W, 47d27'4.74"N) Band 1 Block=7966x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=7966x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=7966x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary 3) Next step is to create a small test mapfile with only one layer, for that ecw file. For the EXTENT parameter you can use the lower left and upper right coordinates listed in your gdalinfo response, such as: # # Start of map file # # NAME ecw-test STATUS ON SIZE 600 400 EXTENT 2878735.262 747242.975 3117715.262 995462.975 UNITS METERS SHAPEPATH "../data" # # Start of layer definitions # LAYER NAME "ecw-image" TYPE RASTER STATUS DEFAULT DATA "image1.ecw" END # Layer END # Map File 4) You can test your tiny mapfile with MapServer's "shp2img" utility that is part of MS4W. (make sure you execute /ms4w/setenv.bat beforehand). shp2img will create a map image file or return a MapServer error at the commandline. You can use this MapServer error to track down the problem in your mapfile. Here is an example shp2img command to show you how to see debugging information with shp2img: >shp2img -m ecw.map -o test.png -map_debug 3 msDrawRasterLayerLow(ecw-image): entering. msDrawMap(): Layer 0 (ecw-image), 0.220s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.220s msSaveImage() total time: 0.010s In the above test case a "test.png" image file was created in the same directory as my "ecw.map" file. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at ipcswirelessinc.com Fri Jul 18 11:31:36 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Fri, 18 Jul 2008 14:31:36 -0400 Subject: [mapserver-users] Layer Vector Hatching MS5.2 In-Reply-To: <82ba77b80807180612x3992d909g7f0134d7f54fd01d@mail.gmail.com> References: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com><488040C6.7000805@neogeo-online.net> <82ba77b80807180612x3992d909g7f0134d7f54fd01d@mail.gmail.com> Message-ID: Just upgraded to MapServer 5.2.0 yesterday. One problem that cropped up is that I now no longer get any type of cross hatching of layers. I had the following setup in MS5.0: symbols.sym: SYMBOL NAME "double-hatch" TYPE vector POINTS 0 0 1 0 1 1 END END default.map: LAYER GROUP "Coverage" NAME "Sprint EVDO Coverage" TYPE POLYGON STATUS OFF DATA "contours/Sprint_EVDO_region" METADATA "static_legend" "1" END # -------------------------------------------------- # Class: Sprint EVDO Coverage # -------------------------------------------------- CLASS NAME "Sprint EVDO Coverage" STYLE SYMBOL "double-hatch" COLOR 240 204 0 ANGLE 45 END END END What has changed in layer CLASS->STYLE that has broken my layer style? - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From jmckenna at gatewaygeomatics.com Fri Jul 18 11:56:21 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 18 Jul 2008 14:56:21 -0400 Subject: [mapserver-users] Layer Vector Hatching MS5.2 In-Reply-To: References: <82ba77b80807172058q227fc0dcleedf13a3a549e9e6@mail.gmail.com><488040C6.7000805@neogeo-online.net> <82ba77b80807180612x3992d909g7f0134d7f54fd01d@mail.gmail.com> Message-ID: On 18-Jul-08, at 2:31 PM, Nolte, Tim wrote: > Just upgraded to MapServer 5.2.0 yesterday. One problem that cropped > up > is that I now no longer get any type of cross hatching of layers. I > had > the following setup in MS5.0: > > symbols.sym: > > SYMBOL > NAME "double-hatch" > TYPE vector > POINTS > 0 0 > 1 0 > 1 1 > END > END > > > default.map: > > LAYER > GROUP "Coverage" > NAME "Sprint EVDO Coverage" > TYPE POLYGON > STATUS OFF > DATA "contours/Sprint_EVDO_region" > METADATA > "static_legend" "1" > END > # -------------------------------------------------- > # Class: Sprint EVDO Coverage > # -------------------------------------------------- > CLASS > NAME "Sprint EVDO Coverage" > STYLE > SYMBOL "double-hatch" > COLOR 240 204 0 > ANGLE 45 > END > END > END > > > What has changed in layer CLASS->STYLE that has broken my layer style? > I think you're missing a SIZE parameter (the distance between the hatched lines) in your STYLE object. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From gemerson at WelshCo.com Fri Jul 18 13:23:32 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Fri, 18 Jul 2008 15:23:32 -0500 Subject: [mapserver-users] Dynamic Reference Map Message-ID: <348277DFCE9FF044B3812A6CF459CD37DCC4BE@welshmail.welshco.com.local> Hello everyone. My apologies if this has been solved already, but I've read through the previous posts on this topic and haven't found a solution that works for me. I'm trying to replace the default reference map image and extent on the fly, using Javascript in my template file. Basically, I want to check if the map is zooming out past a certain scale and/or leaving the area covered by the default reference map, and display a reference map of the entire state (the default is the local metro area). I'm using the 5.2.0 version of mapserv that comes with ms4w 2.2.7 (although ms4w's default index page claims it's still 2.2.6 with mapserv 5.0). From what I've read in the docs and mailing list archives, I should be able to do what I want in one of two ways: -Include in the url: map_reference_image='/images/mnref.gif' -Or alternatively: map_reference=IMAGE+'/images/mnref.gif' The first method gives me this error: loadReferenceMap(): Unknown identifier. Parsing error near (/images/mnref.gif):(line 1) And the second method gives me this: loadReferenceMap(): Unknown identifier. Parsing error near (IMAGE):(line 1) I've tried these with every combination of quotes, escaped quotes, no quotes, etc, without luck. What I CAN do is turn the reference map on and off with map_reference=STATUS+off in the url, but that seems to be the only reference object parameter that I can change. According to what I've read I'm pretty sure this is possible, there was even a code update to make the first method work in an earlier version. Hopefully I'm just missing something obvious and someone can point out my newb mistake. Thanks! Gabe Emerson Research Department Welsh Companies 4350 Baker Road, Suite 400 Minnetonka, MN 55343-8695 952-897-7700, ext. 1306 gemerson at welshco.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.pettis at gmail.com Fri Jul 18 16:26:37 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Fri, 18 Jul 2008 18:26:37 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> Message-ID: <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> Hi All, This still fails... below is my configuration parameter setup and the output of configure are below... any suggestions? thanks, matt === configure parameters === ./configure --with-ogr=/usr \ --with-gdal=/usr \ --with-httpd=/usr/sbin/apache2 \ --with-wfsclient \ --with-wmsclient \ --enable-debug \ --with-curl=/usr \ --with-proj=/usr \ --with-threads \ --with-tiff \ --with-libiconv=/usr/local/lib \ --with-jpeg \ --with-freetype=/usr/lib/xorg/modules/fonts/ \ --with-threads \ --with-wcs \ --with-xml2-config=/usr/bin/xml2-config \ --with-gd=/usr \ --with-php=/usr =================== === output of configure script === checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.0.3' configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from -L -liconv libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). ===================== On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis wrote: > Replied to your previous one -- I will try again tonight with your > suggestion and update the list with the results -- Thanks again! > > Matt > > On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette > wrote: >> As I wrote in a previous message, is it possible that you configured using >> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure >> script should take care of looking in the right subdirectory for each file. >> >> Daniel >> >> Matthew Pettis wrote: >>> >>> Hi, >>> >>> More and different compiling issues from the one I've already >>> posted... My configure script errors as shown below (truncated because >>> I believe the most important part is included): >>> >>> ------------------------------------------------------------------------------------------------------------------ >>> configure: checking where libiconv is installed... >>> checking for iconv_open in -lc... yes >>> checking for libiconv_open in -liconv... yes >>> using libiconv from -L -liconv >>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>> configure: checking for GD 2.0.16 or higher... >>> checking for gdFontCacheSetup in -lgd... no >>> configure: checking whether GD needs libiconv... >>> checking for gdFontCacheSetup in -lgd... no >>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. >>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>> You may also get this error if you didn't specify the appropriate >>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>> libiconv). >>> >>> ------------------------------------------------------------------------------------------------------------------ >>> >>> Now, I have libgd version 2.0.35, so this should work... I have gd.h >>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>> choking because of the gdFontCacheSetup. Any idea on how to fix this? >>> >>> Thanks, >>> Matt >>> >> >> >> -- >> Daniel Morissette >> http://www.mapgears.com/ >> > > > > -- > It is from the wellspring of our despair and the places that we are > broken that we come to repair the world. > -- Murray Waas > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From khairilrizal at yahoo.com Fri Jul 18 18:33:48 2008 From: khairilrizal at yahoo.com (manjacat) Date: Fri, 18 Jul 2008 18:33:48 -0700 (PDT) Subject: [MAPSERVER-USERS] GIS: Display Data from MySQL in Cartoweb Message-ID: <18540317.post@talk.nabble.com> Dear All, I have a problem with my GIS project at the moment. My *.shp database stores lotnumber which is a character ranged from "00001" to "58000" (give or take a few hundred..) my SQL table links this lotnumber to a projectID, for example "00001" to "10060", "00002" to "10103" etc. What I want to do is when a user queries a polygon in my map (I am using Cartoweb3), I want the user to see the data from the *.shp database as well as the data from the SQL database. In other words, I want to join this two tables and display them in Cartoweb when the user queries them. something like this: lotnumber | landuse | projectID ------------------------------------------ 00001 | housing area | 10060 * lotnumber and landuse column is from *.shp, whilst projectID is from MySQL. Any suggestion? any help or lead is greatly appreciated. Thank you in advance. -- View this message in context: http://www.nabble.com/GIS%3A-Display-Data-from-MySQL-in-Cartoweb-tp18540317p18540317.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Fri Jul 18 22:28:00 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 19 Jul 2008 07:28:00 +0200 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> Message-ID: hi, have you installed the libgd development packages ? # apt-get install libgd-dev thomas On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis wrote: > Hi All, > > This still fails... below is my configuration parameter setup and the > output of configure are below... any suggestions? > > thanks, > matt > > === configure parameters === > ./configure --with-ogr=/usr \ > --with-gdal=/usr \ > --with-httpd=/usr/sbin/apache2 \ > --with-wfsclient \ > --with-wmsclient \ > --enable-debug \ > --with-curl=/usr \ > --with-proj=/usr \ > --with-threads \ > --with-tiff \ > --with-libiconv=/usr/local/lib \ > --with-jpeg \ > --with-freetype=/usr/lib/xorg/modules/fonts/ \ > --with-threads \ > --with-wcs \ > --with-xml2-config=/usr/bin/xml2-config \ > --with-gd=/usr \ > --with-php=/usr > =================== > > === output of configure script === > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for ranlib... ranlib > checking for flex... no > checking for lex... no > checking for yywrap in -lfl... no > checking for yywrap in -ll... no > checking for bison... no > checking for byacc... no > checking if compiler supports -R... no > checking if compiler supports -Wl,-rpath,... yes > checking for exp in -lm... yes > checking for __gxx_personality_v0 in -lstdc++... yes > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for strcasecmp... yes > checking for strncasecmp... yes > checking for strdup... yes > checking for strlcat... no > checking for vsnprintf... yes > MapServer Version from mapserver.h: '5.0.3' > configure: checking where FreeType 2.x is installed... > using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype > configure: checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs (-DUSE_ZLIB). > configure: checking where PNG is installed... > checking for png_init_io in -lpng... yes > using libpng from system libs. > configure: checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... yes > using libjpeg from system libs. > configure: checking where libXpm is installed... > checking for XpmFreeXpmImage in -lXpm... yes > using libXpm from system libs. > configure: checking where libiconv is installed... > checking for iconv_open in -lc... yes > checking for libiconv_open in -liconv... yes > using libiconv from -L -liconv > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.16 or higher... > checking for gdFontCacheSetup in -lgd... no > configure: checking whether GD needs libiconv... > checking for gdFontCacheSetup in -lgd... no > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. > Make sure GD 2.0.16 or higher is compiled before calling configure. > You may also get this error if you didn't specify the appropriate > location for one of GD's dependencies (freetype, libpng, libjpeg or > libiconv). > ===================== > > On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis > wrote: >> Replied to your previous one -- I will try again tonight with your >> suggestion and update the list with the results -- Thanks again! >> >> Matt >> >> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette >> wrote: >>> As I wrote in a previous message, is it possible that you configured using >>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure >>> script should take care of looking in the right subdirectory for each file. >>> >>> Daniel >>> >>> Matthew Pettis wrote: >>>> >>>> Hi, >>>> >>>> More and different compiling issues from the one I've already >>>> posted... My configure script errors as shown below (truncated because >>>> I believe the most important part is included): >>>> >>>> ------------------------------------------------------------------------------------------------------------------ >>>> configure: checking where libiconv is installed... >>>> checking for iconv_open in -lc... yes >>>> checking for libiconv_open in -liconv... yes >>>> using libiconv from -L -liconv >>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>> configure: checking for GD 2.0.16 or higher... >>>> checking for gdFontCacheSetup in -lgd... no >>>> configure: checking whether GD needs libiconv... >>>> checking for gdFontCacheSetup in -lgd... no >>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. >>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>> You may also get this error if you didn't specify the appropriate >>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>> libiconv). >>>> >>>> ------------------------------------------------------------------------------------------------------------------ >>>> >>>> Now, I have libgd version 2.0.35, so this should work... I have gd.h >>>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>>> choking because of the gdFontCacheSetup. Any idea on how to fix this? >>>> >>>> Thanks, >>>> Matt >>>> >>> >>> >>> -- >>> Daniel Morissette >>> http://www.mapgears.com/ >>> >> >> >> >> -- >> It is from the wellspring of our despair and the places that we are >> broken that we come to repair the world. >> -- Murray Waas >> > > > > -- > It is from the wellspring of our despair and the places that we are > broken that we come to repair the world. > -- Murray Waas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From temiz at deprem.gov.tr Sat Jul 19 04:26:43 2008 From: temiz at deprem.gov.tr (orkun) Date: Sat, 19 Jul 2008 14:26:43 +0300 Subject: [mapserver-users] cannot reach postgis database In-Reply-To: <200807181258.05128.yjacolin@free.fr> References: <1216376135.5872.7.camel@orkun-desktop> <200807181258.05128.yjacolin@free.fr> Message-ID: <1216466803.9219.1.camel@orkun-desktop> thank you here is the last 4 lines of thew log of postgresql: 2008-07-19 14:12:36 EEST LOG: database system is ready 2008-07-19 14:12:36 EEST LOG: incomplete startup packet 2008-07-19 14:18:45 EEST LOG: could not receive data from client: Connection reset by peer 2008-07-19 14:18:45 EEST LOG: unexpected EOF on client connection (END) On Fri, 2008-07-18 at 12:58 +0200, Jacolin Yves wrote: > Hi, > You could check the postgresql log (in /var/log/postgresql/) and see what is > the problem. > > Y. > Le Friday 18 July 2008 12:40:46 Rahkonen Jukka, vous avez ?crit : > > Hi, > > > > Perhaps addind "port" to PostGIS connection settings? > > > > -Jukka Rahkonen- > > > > > > > > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: orkun > > L?hetetty: pe 18.7.2008 13:15 > > Vastaanottaja: mapserver > > Aihe: [mapserver-users] cannot reach postgis database > > > > hello > > > > I cannot reach postgis database. > > Using apache , what should I do about > > connection parameters. > > > > How can I make connection succesful ? > > > > Here is the map file fragment I tried : > > > > LAYER #layer hey postgis > > CONNECTIONTYPE postgis > > NAME "hey" > > > > CONNECTION "user=orkun password=222222 dbname=bzk2 host=localhost" > > > > > > regards > > > > -- > > Ahmet Temiz > > Jeo. M?h. > > Afet Isleri Gen. Md.l?g? > > Deprem Ar. D. > > > > Ahmet Temiz > > Geo. Eng. > > General Dir. of > > Disaster Affairs > > > > -- > Yves Jacolin > --- > http://softlibre.gloobe.org > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From matthew.pettis at gmail.com Sat Jul 19 09:54:59 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 19 Jul 2008 11:54:59 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> Message-ID: <82ba77b80807190954p251aa88ci2d8eac2b17460666@mail.gmail.com> Hi, I actually downloaded, unpacked, configure/make/make install'ed from http://www.libgd.org/releases/gd-2.0.35.tar.gz . I assume that would be the same thing as your command below? thanks, Matt On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort wrote: > hi, > have you installed the libgd development packages ? > > # apt-get install libgd-dev > > thomas > > On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis > wrote: >> Hi All, >> >> This still fails... below is my configuration parameter setup and the >> output of configure are below... any suggestions? >> >> thanks, >> matt >> >> === configure parameters === >> ./configure --with-ogr=/usr \ >> --with-gdal=/usr \ >> --with-httpd=/usr/sbin/apache2 \ >> --with-wfsclient \ >> --with-wmsclient \ >> --enable-debug \ >> --with-curl=/usr \ >> --with-proj=/usr \ >> --with-threads \ >> --with-tiff \ >> --with-libiconv=/usr/local/lib \ >> --with-jpeg \ >> --with-freetype=/usr/lib/xorg/modules/fonts/ \ >> --with-threads \ >> --with-wcs \ >> --with-xml2-config=/usr/bin/xml2-config \ >> --with-gd=/usr \ >> --with-php=/usr >> =================== >> >> === output of configure script === >> checking for gcc... gcc >> checking for C compiler default output file name... a.out >> checking whether the C compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C compiler... yes >> checking whether gcc accepts -g... yes >> checking for gcc option to accept ANSI C... none needed >> checking for g++... g++ >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking for ranlib... ranlib >> checking for flex... no >> checking for lex... no >> checking for yywrap in -lfl... no >> checking for yywrap in -ll... no >> checking for bison... no >> checking for byacc... no >> checking if compiler supports -R... no >> checking if compiler supports -Wl,-rpath,... yes >> checking for exp in -lm... yes >> checking for __gxx_personality_v0 in -lstdc++... yes >> checking how to run the C preprocessor... gcc -E >> checking for egrep... grep -E >> checking for ANSI C header files... yes >> checking for strcasecmp... yes >> checking for strncasecmp... yes >> checking for strdup... yes >> checking for strlcat... no >> checking for vsnprintf... yes >> MapServer Version from mapserver.h: '5.0.3' >> configure: checking where FreeType 2.x is installed... >> using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype >> configure: checking where Zlib is installed... >> checking for zlibVersion in -lz... yes >> using libz from system libs (-DUSE_ZLIB). >> configure: checking where PNG is installed... >> checking for png_init_io in -lpng... yes >> using libpng from system libs. >> configure: checking whether we should include JPEG support... >> checking for jpeg_read_header in -ljpeg... yes >> using libjpeg from system libs. >> configure: checking where libXpm is installed... >> checking for XpmFreeXpmImage in -lXpm... yes >> using libXpm from system libs. >> configure: checking where libiconv is installed... >> checking for iconv_open in -lc... yes >> checking for libiconv_open in -liconv... yes >> using libiconv from -L -liconv >> libiconv found. Enabling internationalization (-DUSE_ICONV) >> configure: checking for GD 2.0.16 or higher... >> checking for gdFontCacheSetup in -lgd... no >> configure: checking whether GD needs libiconv... >> checking for gdFontCacheSetup in -lgd... no >> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. >> Make sure GD 2.0.16 or higher is compiled before calling configure. >> You may also get this error if you didn't specify the appropriate >> location for one of GD's dependencies (freetype, libpng, libjpeg or >> libiconv). >> ===================== >> >> On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis >> wrote: >>> Replied to your previous one -- I will try again tonight with your >>> suggestion and update the list with the results -- Thanks again! >>> >>> Matt >>> >>> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette >>> wrote: >>>> As I wrote in a previous message, is it possible that you configured using >>>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure >>>> script should take care of looking in the right subdirectory for each file. >>>> >>>> Daniel >>>> >>>> Matthew Pettis wrote: >>>>> >>>>> Hi, >>>>> >>>>> More and different compiling issues from the one I've already >>>>> posted... My configure script errors as shown below (truncated because >>>>> I believe the most important part is included): >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------ >>>>> configure: checking where libiconv is installed... >>>>> checking for iconv_open in -lc... yes >>>>> checking for libiconv_open in -liconv... yes >>>>> using libiconv from -L -liconv >>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>> configure: checking for GD 2.0.16 or higher... >>>>> checking for gdFontCacheSetup in -lgd... no >>>>> configure: checking whether GD needs libiconv... >>>>> checking for gdFontCacheSetup in -lgd... no >>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. >>>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>>> You may also get this error if you didn't specify the appropriate >>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>> libiconv). >>>>> >>>>> ------------------------------------------------------------------------------------------------------------------ >>>>> >>>>> Now, I have libgd version 2.0.35, so this should work... I have gd.h >>>>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>>>> choking because of the gdFontCacheSetup. Any idea on how to fix this? >>>>> >>>>> Thanks, >>>>> Matt >>>>> >>>> >>>> >>>> -- >>>> Daniel Morissette >>>> http://www.mapgears.com/ >>>> >>> >>> >>> >>> -- >>> It is from the wellspring of our despair and the places that we are >>> broken that we come to repair the world. >>> -- Murray Waas >>> >> >> >> >> -- >> It is from the wellspring of our despair and the places that we are >> broken that we come to repair the world. >> -- Murray Waas >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From guillaume.sueur at neogeo-online.net Sat Jul 19 10:30:55 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sat, 19 Jul 2008 19:30:55 +0200 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <82ba77b80807190954p251aa88ci2d8eac2b17460666@mail.gmail.com> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> <82ba77b80807190954p251aa88ci2d8eac2b17460666@mail.gmail.com> Message-ID: <488224CF.5060208@neogeo-online.net> yes, it would. be you probably didn't install it in /usr like you specify in your configure. so try with --with-gd=/usr/local instead good luck ! Guillaume Matthew Pettis a ?crit : > Hi, > > I actually downloaded, unpacked, configure/make/make install'ed from > http://www.libgd.org/releases/gd-2.0.35.tar.gz > . > > I assume that would be the same thing as your command below? > > thanks, > Matt > > On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort > wrote: >> hi, >> have you installed the libgd development packages ? >> >> # apt-get install libgd-dev >> >> thomas >> >> On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis >> wrote: >>> Hi All, >>> >>> This still fails... below is my configuration parameter setup and the >>> output of configure are below... any suggestions? >>> >>> thanks, >>> matt >>> >>> === configure parameters === >>> ./configure --with-ogr=/usr \ >>> --with-gdal=/usr \ >>> --with-httpd=/usr/sbin/apache2 \ >>> --with-wfsclient \ >>> --with-wmsclient \ >>> --enable-debug \ >>> --with-curl=/usr \ >>> --with-proj=/usr \ >>> --with-threads \ >>> --with-tiff \ >>> --with-libiconv=/usr/local/lib \ >>> --with-jpeg \ >>> --with-freetype=/usr/lib/xorg/modules/fonts/ \ >>> --with-threads \ >>> --with-wcs \ >>> --with-xml2-config=/usr/bin/xml2-config \ >>> --with-gd=/usr \ >>> --with-php=/usr >>> =================== >>> >>> === output of configure script === >>> checking for gcc... gcc >>> checking for C compiler default output file name... a.out >>> checking whether the C compiler works... yes >>> checking whether we are cross compiling... no >>> checking for suffix of executables... >>> checking for suffix of object files... o >>> checking whether we are using the GNU C compiler... yes >>> checking whether gcc accepts -g... yes >>> checking for gcc option to accept ANSI C... none needed >>> checking for g++... g++ >>> checking whether we are using the GNU C++ compiler... yes >>> checking whether g++ accepts -g... yes >>> checking for ranlib... ranlib >>> checking for flex... no >>> checking for lex... no >>> checking for yywrap in -lfl... no >>> checking for yywrap in -ll... no >>> checking for bison... no >>> checking for byacc... no >>> checking if compiler supports -R... no >>> checking if compiler supports -Wl,-rpath,... yes >>> checking for exp in -lm... yes >>> checking for __gxx_personality_v0 in -lstdc++... yes >>> checking how to run the C preprocessor... gcc -E >>> checking for egrep... grep -E >>> checking for ANSI C header files... yes >>> checking for strcasecmp... yes >>> checking for strncasecmp... yes >>> checking for strdup... yes >>> checking for strlcat... no >>> checking for vsnprintf... yes >>> MapServer Version from mapserver.h: '5.0.3' >>> configure: checking where FreeType 2.x is installed... >>> using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype >>> configure: checking where Zlib is installed... >>> checking for zlibVersion in -lz... yes >>> using libz from system libs (-DUSE_ZLIB). >>> configure: checking where PNG is installed... >>> checking for png_init_io in -lpng... yes >>> using libpng from system libs. >>> configure: checking whether we should include JPEG support... >>> checking for jpeg_read_header in -ljpeg... yes >>> using libjpeg from system libs. >>> configure: checking where libXpm is installed... >>> checking for XpmFreeXpmImage in -lXpm... yes >>> using libXpm from system libs. >>> configure: checking where libiconv is installed... >>> checking for iconv_open in -lc... yes >>> checking for libiconv_open in -liconv... yes >>> using libiconv from -L -liconv >>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>> configure: checking for GD 2.0.16 or higher... >>> checking for gdFontCacheSetup in -lgd... no >>> configure: checking whether GD needs libiconv... >>> checking for gdFontCacheSetup in -lgd... no >>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. >>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>> You may also get this error if you didn't specify the appropriate >>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>> libiconv). >>> ===================== >>> >>> On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis >>> wrote: >>>> Replied to your previous one -- I will try again tonight with your >>>> suggestion and update the list with the results -- Thanks again! >>>> >>>> Matt >>>> >>>> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette >>>> wrote: >>>>> As I wrote in a previous message, is it possible that you configured using >>>>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure >>>>> script should take care of looking in the right subdirectory for each file. >>>>> >>>>> Daniel >>>>> >>>>> Matthew Pettis wrote: >>>>>> Hi, >>>>>> >>>>>> More and different compiling issues from the one I've already >>>>>> posted... My configure script errors as shown below (truncated because >>>>>> I believe the most important part is included): >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>> configure: checking where libiconv is installed... >>>>>> checking for iconv_open in -lc... yes >>>>>> checking for libiconv_open in -liconv... yes >>>>>> using libiconv from -L -liconv >>>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>>> configure: checking for GD 2.0.16 or higher... >>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>> configure: checking whether GD needs libiconv... >>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib. >>>>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>>>> You may also get this error if you didn't specify the appropriate >>>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>>> libiconv). >>>>>> >>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>> >>>>>> Now, I have libgd version 2.0.35, so this should work... I have gd.h >>>>>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>>>>> choking because of the gdFontCacheSetup. Any idea on how to fix this? >>>>>> >>>>>> Thanks, >>>>>> Matt >>>>>> >>>>> >>>>> -- >>>>> Daniel Morissette >>>>> http://www.mapgears.com/ >>>>> >>>> >>>> >>>> -- >>>> It is from the wellspring of our despair and the places that we are >>>> broken that we come to repair the world. >>>> -- Murray Waas >>>> >>> >>> >>> -- >>> It is from the wellspring of our despair and the places that we are >>> broken that we come to repair the world. >>> -- Murray Waas >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > > From matthew.pettis at gmail.com Sat Jul 19 13:46:26 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 19 Jul 2008 15:46:26 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <488224CF.5060208@neogeo-online.net> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> <82ba77b80807190954p251aa88ci2d8eac2b17460666@mail.gmail.com> <488224CF.5060208@neogeo-online.net> Message-ID: <82ba77b80807191346o4dc90222g9f560537fecac908@mail.gmail.com> Hi Guillaume, All, Guillaume was right, the install is in /usr/local, but when I changed the configure script to take --with-gd=/usr/local I get the same results as before (./configure dump is same as previously posted). Other ideas? Thanks, Matt On Sat, Jul 19, 2008 at 12:30 PM, Guillaume Sueur wrote: > yes, it would. be you probably didn't install it in /usr like you specify in > your configure. > so try with --with-gd=/usr/local instead > > good luck ! > > Guillaume > > > Matthew Pettis a ?crit : >> >> Hi, >> >> I actually downloaded, unpacked, configure/make/make install'ed from >> http://www.libgd.org/releases/gd-2.0.35.tar.gz >> . >> >> I assume that would be the same thing as your command below? >> >> thanks, >> Matt >> >> On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort >> wrote: >>> >>> hi, >>> have you installed the libgd development packages ? >>> >>> # apt-get install libgd-dev >>> >>> thomas >>> >>> On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis >>> wrote: >>>> >>>> Hi All, >>>> >>>> This still fails... below is my configuration parameter setup and the >>>> output of configure are below... any suggestions? >>>> >>>> thanks, >>>> matt >>>> >>>> === configure parameters === >>>> ./configure --with-ogr=/usr \ >>>> --with-gdal=/usr \ >>>> --with-httpd=/usr/sbin/apache2 \ >>>> --with-wfsclient \ >>>> --with-wmsclient \ >>>> --enable-debug \ >>>> --with-curl=/usr \ >>>> --with-proj=/usr \ >>>> --with-threads \ >>>> --with-tiff \ >>>> --with-libiconv=/usr/local/lib \ >>>> --with-jpeg \ >>>> --with-freetype=/usr/lib/xorg/modules/fonts/ \ >>>> --with-threads \ >>>> --with-wcs \ >>>> --with-xml2-config=/usr/bin/xml2-config \ >>>> --with-gd=/usr \ >>>> --with-php=/usr >>>> =================== >>>> >>>> === output of configure script === >>>> checking for gcc... gcc >>>> checking for C compiler default output file name... a.out >>>> checking whether the C compiler works... yes >>>> checking whether we are cross compiling... no >>>> checking for suffix of executables... >>>> checking for suffix of object files... o >>>> checking whether we are using the GNU C compiler... yes >>>> checking whether gcc accepts -g... yes >>>> checking for gcc option to accept ANSI C... none needed >>>> checking for g++... g++ >>>> checking whether we are using the GNU C++ compiler... yes >>>> checking whether g++ accepts -g... yes >>>> checking for ranlib... ranlib >>>> checking for flex... no >>>> checking for lex... no >>>> checking for yywrap in -lfl... no >>>> checking for yywrap in -ll... no >>>> checking for bison... no >>>> checking for byacc... no >>>> checking if compiler supports -R... no >>>> checking if compiler supports -Wl,-rpath,... yes >>>> checking for exp in -lm... yes >>>> checking for __gxx_personality_v0 in -lstdc++... yes >>>> checking how to run the C preprocessor... gcc -E >>>> checking for egrep... grep -E >>>> checking for ANSI C header files... yes >>>> checking for strcasecmp... yes >>>> checking for strncasecmp... yes >>>> checking for strdup... yes >>>> checking for strlcat... no >>>> checking for vsnprintf... yes >>>> MapServer Version from mapserver.h: '5.0.3' >>>> configure: checking where FreeType 2.x is installed... >>>> using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype >>>> configure: checking where Zlib is installed... >>>> checking for zlibVersion in -lz... yes >>>> using libz from system libs (-DUSE_ZLIB). >>>> configure: checking where PNG is installed... >>>> checking for png_init_io in -lpng... yes >>>> using libpng from system libs. >>>> configure: checking whether we should include JPEG support... >>>> checking for jpeg_read_header in -ljpeg... yes >>>> using libjpeg from system libs. >>>> configure: checking where libXpm is installed... >>>> checking for XpmFreeXpmImage in -lXpm... yes >>>> using libXpm from system libs. >>>> configure: checking where libiconv is installed... >>>> checking for iconv_open in -lc... yes >>>> checking for libiconv_open in -liconv... yes >>>> using libiconv from -L -liconv >>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>> configure: checking for GD 2.0.16 or higher... >>>> checking for gdFontCacheSetup in -lgd... no >>>> configure: checking whether GD needs libiconv... >>>> checking for gdFontCacheSetup in -lgd... no >>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. >>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>> You may also get this error if you didn't specify the appropriate >>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>> libiconv). >>>> ===================== >>>> >>>> On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis >>>> wrote: >>>>> >>>>> Replied to your previous one -- I will try again tonight with your >>>>> suggestion and update the list with the results -- Thanks again! >>>>> >>>>> Matt >>>>> >>>>> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette >>>>> wrote: >>>>>> >>>>>> As I wrote in a previous message, is it possible that you configured >>>>>> using >>>>>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the >>>>>> configure >>>>>> script should take care of looking in the right subdirectory for each >>>>>> file. >>>>>> >>>>>> Daniel >>>>>> >>>>>> Matthew Pettis wrote: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> More and different compiling issues from the one I've already >>>>>>> posted... My configure script errors as shown below (truncated >>>>>>> because >>>>>>> I believe the most important part is included): >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>>> configure: checking where libiconv is installed... >>>>>>> checking for iconv_open in -lc... yes >>>>>>> checking for libiconv_open in -liconv... yes >>>>>>> using libiconv from -L -liconv >>>>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>>>> configure: checking for GD 2.0.16 or higher... >>>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>>> configure: checking whether GD needs libiconv... >>>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in >>>>>>> /usr/lib. >>>>>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>>>>> You may also get this error if you didn't specify the appropriate >>>>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>>>> libiconv). >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>>> >>>>>>> Now, I have libgd version 2.0.35, so this should work... I have gd.h >>>>>>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>>>>>> choking because of the gdFontCacheSetup. Any idea on how to fix >>>>>>> this? >>>>>>> >>>>>>> Thanks, >>>>>>> Matt >>>>>>> >>>>>> >>>>>> -- >>>>>> Daniel Morissette >>>>>> http://www.mapgears.com/ >>>>>> >>>>> >>>>> >>>>> -- >>>>> It is from the wellspring of our despair and the places that we are >>>>> broken that we come to repair the world. >>>>> -- Murray Waas >>>>> >>>> >>>> >>>> -- >>>> It is from the wellspring of our despair and the places that we are >>>> broken that we come to repair the world. >>>> -- Murray Waas >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> >> >> > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From guillaume.sueur at neogeo-online.net Sat Jul 19 14:45:02 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sat, 19 Jul 2008 23:45:02 +0200 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <82ba77b80807191346o4dc90222g9f560537fecac908@mail.gmail.com> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> <82ba77b80807190954p251aa88ci2d8eac2b17460666@mail.gmail.com> <488224CF.5060208@neogeo-online.net> <82ba77b80807191346o4dc90222g9f560537fecac908@mail.gmail.com> Message-ID: <4882605E.1030506@neogeo-online.net> configure dump can't be the same. It should say : configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local instead of configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. if it is so, did you check your /etc/ld.so.conf as asked previously and run ldconfig afterwards ? Regards, Guillaume Matthew Pettis a ?crit : > Hi Guillaume, All, > > Guillaume was right, the install is in /usr/local, but when I changed > the configure script to take > > --with-gd=/usr/local > > I get the same results as before (./configure dump is same as > previously posted). Other ideas? > > Thanks, > Matt > > On Sat, Jul 19, 2008 at 12:30 PM, Guillaume Sueur > wrote: >> yes, it would. be you probably didn't install it in /usr like you specify in >> your configure. >> so try with --with-gd=/usr/local instead >> >> good luck ! >> >> Guillaume >> >> >> Matthew Pettis a ?crit : >>> Hi, >>> >>> I actually downloaded, unpacked, configure/make/make install'ed from >>> http://www.libgd.org/releases/gd-2.0.35.tar.gz >>> . >>> >>> I assume that would be the same thing as your command below? >>> >>> thanks, >>> Matt >>> >>> On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort >>> wrote: >>>> hi, >>>> have you installed the libgd development packages ? >>>> >>>> # apt-get install libgd-dev >>>> >>>> thomas >>>> >>>> On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis >>>> wrote: >>>>> Hi All, >>>>> >>>>> This still fails... below is my configuration parameter setup and the >>>>> output of configure are below... any suggestions? >>>>> >>>>> thanks, >>>>> matt >>>>> >>>>> === configure parameters === >>>>> ./configure --with-ogr=/usr \ >>>>> --with-gdal=/usr \ >>>>> --with-httpd=/usr/sbin/apache2 \ >>>>> --with-wfsclient \ >>>>> --with-wmsclient \ >>>>> --enable-debug \ >>>>> --with-curl=/usr \ >>>>> --with-proj=/usr \ >>>>> --with-threads \ >>>>> --with-tiff \ >>>>> --with-libiconv=/usr/local/lib \ >>>>> --with-jpeg \ >>>>> --with-freetype=/usr/lib/xorg/modules/fonts/ \ >>>>> --with-threads \ >>>>> --with-wcs \ >>>>> --with-xml2-config=/usr/bin/xml2-config \ >>>>> --with-gd=/usr \ >>>>> --with-php=/usr >>>>> =================== >>>>> >>>>> === output of configure script === >>>>> checking for gcc... gcc >>>>> checking for C compiler default output file name... a.out >>>>> checking whether the C compiler works... yes >>>>> checking whether we are cross compiling... no >>>>> checking for suffix of executables... >>>>> checking for suffix of object files... o >>>>> checking whether we are using the GNU C compiler... yes >>>>> checking whether gcc accepts -g... yes >>>>> checking for gcc option to accept ANSI C... none needed >>>>> checking for g++... g++ >>>>> checking whether we are using the GNU C++ compiler... yes >>>>> checking whether g++ accepts -g... yes >>>>> checking for ranlib... ranlib >>>>> checking for flex... no >>>>> checking for lex... no >>>>> checking for yywrap in -lfl... no >>>>> checking for yywrap in -ll... no >>>>> checking for bison... no >>>>> checking for byacc... no >>>>> checking if compiler supports -R... no >>>>> checking if compiler supports -Wl,-rpath,... yes >>>>> checking for exp in -lm... yes >>>>> checking for __gxx_personality_v0 in -lstdc++... yes >>>>> checking how to run the C preprocessor... gcc -E >>>>> checking for egrep... grep -E >>>>> checking for ANSI C header files... yes >>>>> checking for strcasecmp... yes >>>>> checking for strncasecmp... yes >>>>> checking for strdup... yes >>>>> checking for strlcat... no >>>>> checking for vsnprintf... yes >>>>> MapServer Version from mapserver.h: '5.0.3' >>>>> configure: checking where FreeType 2.x is installed... >>>>> using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype >>>>> configure: checking where Zlib is installed... >>>>> checking for zlibVersion in -lz... yes >>>>> using libz from system libs (-DUSE_ZLIB). >>>>> configure: checking where PNG is installed... >>>>> checking for png_init_io in -lpng... yes >>>>> using libpng from system libs. >>>>> configure: checking whether we should include JPEG support... >>>>> checking for jpeg_read_header in -ljpeg... yes >>>>> using libjpeg from system libs. >>>>> configure: checking where libXpm is installed... >>>>> checking for XpmFreeXpmImage in -lXpm... yes >>>>> using libXpm from system libs. >>>>> configure: checking where libiconv is installed... >>>>> checking for iconv_open in -lc... yes >>>>> checking for libiconv_open in -liconv... yes >>>>> using libiconv from -L -liconv >>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>> configure: checking for GD 2.0.16 or higher... >>>>> checking for gdFontCacheSetup in -lgd... no >>>>> configure: checking whether GD needs libiconv... >>>>> checking for gdFontCacheSetup in -lgd... no >>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. >>>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>>> You may also get this error if you didn't specify the appropriate >>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>> libiconv). >>>>> ===================== >>>>> >>>>> On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis >>>>> wrote: >>>>>> Replied to your previous one -- I will try again tonight with your >>>>>> suggestion and update the list with the results -- Thanks again! >>>>>> >>>>>> Matt >>>>>> >>>>>> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette >>>>>> wrote: >>>>>>> As I wrote in a previous message, is it possible that you configured >>>>>>> using >>>>>>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the >>>>>>> configure >>>>>>> script should take care of looking in the right subdirectory for each >>>>>>> file. >>>>>>> >>>>>>> Daniel >>>>>>> >>>>>>> Matthew Pettis wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> More and different compiling issues from the one I've already >>>>>>>> posted... My configure script errors as shown below (truncated >>>>>>>> because >>>>>>>> I believe the most important part is included): >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>>>> configure: checking where libiconv is installed... >>>>>>>> checking for iconv_open in -lc... yes >>>>>>>> checking for libiconv_open in -liconv... yes >>>>>>>> using libiconv from -L -liconv >>>>>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>>>>> configure: checking for GD 2.0.16 or higher... >>>>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>>>> configure: checking whether GD needs libiconv... >>>>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in >>>>>>>> /usr/lib. >>>>>>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>>>>>> You may also get this error if you didn't specify the appropriate >>>>>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>>>>> libiconv). >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>>>> >>>>>>>> Now, I have libgd version 2.0.35, so this should work... I have gd.h >>>>>>>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>>>>>>> choking because of the gdFontCacheSetup. Any idea on how to fix >>>>>>>> this? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Matt >>>>>>>> >>>>>>> -- >>>>>>> Daniel Morissette >>>>>>> http://www.mapgears.com/ >>>>>>> >>>>>> >>>>>> -- >>>>>> It is from the wellspring of our despair and the places that we are >>>>>> broken that we come to repair the world. >>>>>> -- Murray Waas >>>>>> >>>>> >>>>> -- >>>>> It is from the wellspring of our despair and the places that we are >>>>> broken that we come to repair the world. >>>>> -- Murray Waas >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>> >>> > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From matthew.pettis at gmail.com Sat Jul 19 18:17:57 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 19 Jul 2008 20:17:57 -0500 Subject: [mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup In-Reply-To: <4882605E.1030506@neogeo-online.net> References: <82ba77b80807180616y4d9f3a7csc63a274181694e62@mail.gmail.com> <4880A0AD.5000408@mapgears.com> <82ba77b80807180704i5be12028l7e95eb3c9c60703e@mail.gmail.com> <82ba77b80807181626k5ea13348l580b27e9dc93e6ae@mail.gmail.com> <82ba77b80807190954p251aa88ci2d8eac2b17460666@mail.gmail.com> <488224CF.5060208@neogeo-online.net> <82ba77b80807191346o4dc90222g9f560537fecac908@mail.gmail.com> <4882605E.1030506@neogeo-online.net> Message-ID: <82ba77b80807191817l4ffd73adwb8cac3ff351f051d@mail.gmail.com> Guillaume, Correct, the output was the same modulo the directory that gd.h and the others were not found in... And I did try your suggested change to ld.so.conf (I wasn't sure how it should be added, so I tried two ways: /usr/lib and include /usr/lib then running /sbin/ldconfig) both with similar results. Thanks, Matt On Sat, Jul 19, 2008 at 4:45 PM, Guillaume Sueur wrote: > configure dump can't be the same. It should say : > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local > instead of > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. > > if it is so, did you check your /etc/ld.so.conf as asked previously and run > ldconfig afterwards ? > > Regards, > > Guillaume > > Matthew Pettis a ?crit : >> >> Hi Guillaume, All, >> >> Guillaume was right, the install is in /usr/local, but when I changed >> the configure script to take >> >> --with-gd=/usr/local >> >> I get the same results as before (./configure dump is same as >> previously posted). Other ideas? >> >> Thanks, >> Matt >> >> On Sat, Jul 19, 2008 at 12:30 PM, Guillaume Sueur >> wrote: >>> >>> yes, it would. be you probably didn't install it in /usr like you specify >>> in >>> your configure. >>> so try with --with-gd=/usr/local instead >>> >>> good luck ! >>> >>> Guillaume >>> >>> >>> Matthew Pettis a ?crit : >>>> >>>> Hi, >>>> >>>> I actually downloaded, unpacked, configure/make/make install'ed from >>>> http://www.libgd.org/releases/gd-2.0.35.tar.gz >>>> . >>>> >>>> I assume that would be the same thing as your command below? >>>> >>>> thanks, >>>> Matt >>>> >>>> On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort >>>> wrote: >>>>> >>>>> hi, >>>>> have you installed the libgd development packages ? >>>>> >>>>> # apt-get install libgd-dev >>>>> >>>>> thomas >>>>> >>>>> On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis >>>>> wrote: >>>>>> >>>>>> Hi All, >>>>>> >>>>>> This still fails... below is my configuration parameter setup and the >>>>>> output of configure are below... any suggestions? >>>>>> >>>>>> thanks, >>>>>> matt >>>>>> >>>>>> === configure parameters === >>>>>> ./configure --with-ogr=/usr \ >>>>>> --with-gdal=/usr \ >>>>>> --with-httpd=/usr/sbin/apache2 \ >>>>>> --with-wfsclient \ >>>>>> --with-wmsclient \ >>>>>> --enable-debug \ >>>>>> --with-curl=/usr \ >>>>>> --with-proj=/usr \ >>>>>> --with-threads \ >>>>>> --with-tiff \ >>>>>> --with-libiconv=/usr/local/lib \ >>>>>> --with-jpeg \ >>>>>> --with-freetype=/usr/lib/xorg/modules/fonts/ \ >>>>>> --with-threads \ >>>>>> --with-wcs \ >>>>>> --with-xml2-config=/usr/bin/xml2-config \ >>>>>> --with-gd=/usr \ >>>>>> --with-php=/usr >>>>>> =================== >>>>>> >>>>>> === output of configure script === >>>>>> checking for gcc... gcc >>>>>> checking for C compiler default output file name... a.out >>>>>> checking whether the C compiler works... yes >>>>>> checking whether we are cross compiling... no >>>>>> checking for suffix of executables... >>>>>> checking for suffix of object files... o >>>>>> checking whether we are using the GNU C compiler... yes >>>>>> checking whether gcc accepts -g... yes >>>>>> checking for gcc option to accept ANSI C... none needed >>>>>> checking for g++... g++ >>>>>> checking whether we are using the GNU C++ compiler... yes >>>>>> checking whether g++ accepts -g... yes >>>>>> checking for ranlib... ranlib >>>>>> checking for flex... no >>>>>> checking for lex... no >>>>>> checking for yywrap in -lfl... no >>>>>> checking for yywrap in -ll... no >>>>>> checking for bison... no >>>>>> checking for byacc... no >>>>>> checking if compiler supports -R... no >>>>>> checking if compiler supports -Wl,-rpath,... yes >>>>>> checking for exp in -lm... yes >>>>>> checking for __gxx_personality_v0 in -lstdc++... yes >>>>>> checking how to run the C preprocessor... gcc -E >>>>>> checking for egrep... grep -E >>>>>> checking for ANSI C header files... yes >>>>>> checking for strcasecmp... yes >>>>>> checking for strncasecmp... yes >>>>>> checking for strdup... yes >>>>>> checking for strlcat... no >>>>>> checking for vsnprintf... yes >>>>>> MapServer Version from mapserver.h: '5.0.3' >>>>>> configure: checking where FreeType 2.x is installed... >>>>>> using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype >>>>>> configure: checking where Zlib is installed... >>>>>> checking for zlibVersion in -lz... yes >>>>>> using libz from system libs (-DUSE_ZLIB). >>>>>> configure: checking where PNG is installed... >>>>>> checking for png_init_io in -lpng... yes >>>>>> using libpng from system libs. >>>>>> configure: checking whether we should include JPEG support... >>>>>> checking for jpeg_read_header in -ljpeg... yes >>>>>> using libjpeg from system libs. >>>>>> configure: checking where libXpm is installed... >>>>>> checking for XpmFreeXpmImage in -lXpm... yes >>>>>> using libXpm from system libs. >>>>>> configure: checking where libiconv is installed... >>>>>> checking for iconv_open in -lc... yes >>>>>> checking for libiconv_open in -liconv... yes >>>>>> using libiconv from -L -liconv >>>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>>> configure: checking for GD 2.0.16 or higher... >>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>> configure: checking whether GD needs libiconv... >>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. >>>>>> Make sure GD 2.0.16 or higher is compiled before calling configure. >>>>>> You may also get this error if you didn't specify the appropriate >>>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>>> libiconv). >>>>>> ===================== >>>>>> >>>>>> On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis >>>>>> wrote: >>>>>>> >>>>>>> Replied to your previous one -- I will try again tonight with your >>>>>>> suggestion and update the list with the results -- Thanks again! >>>>>>> >>>>>>> Matt >>>>>>> >>>>>>> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette >>>>>>> wrote: >>>>>>>> >>>>>>>> As I wrote in a previous message, is it possible that you configured >>>>>>>> using >>>>>>>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the >>>>>>>> configure >>>>>>>> script should take care of looking in the right subdirectory for >>>>>>>> each >>>>>>>> file. >>>>>>>> >>>>>>>> Daniel >>>>>>>> >>>>>>>> Matthew Pettis wrote: >>>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> More and different compiling issues from the one I've already >>>>>>>>> posted... My configure script errors as shown below (truncated >>>>>>>>> because >>>>>>>>> I believe the most important part is included): >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>>>>> configure: checking where libiconv is installed... >>>>>>>>> checking for iconv_open in -lc... yes >>>>>>>>> checking for libiconv_open in -liconv... yes >>>>>>>>> using libiconv from -L -liconv >>>>>>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>>>>>>>> configure: checking for GD 2.0.16 or higher... >>>>>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>>>>> configure: checking whether GD needs libiconv... >>>>>>>>> checking for gdFontCacheSetup in -lgd... no >>>>>>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in >>>>>>>>> /usr/lib. >>>>>>>>> Make sure GD 2.0.16 or higher is compiled before calling >>>>>>>>> configure. >>>>>>>>> You may also get this error if you didn't specify the appropriate >>>>>>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or >>>>>>>>> libiconv). >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------------------------------------------ >>>>>>>>> >>>>>>>>> Now, I have libgd version 2.0.35, so this should work... I have >>>>>>>>> gd.h >>>>>>>>> and libgd.a/libgd.so (the latter are in /usr/lib/). I think it is >>>>>>>>> choking because of the gdFontCacheSetup. Any idea on how to fix >>>>>>>>> this? >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Matt >>>>>>>>> >>>>>>>> -- >>>>>>>> Daniel Morissette >>>>>>>> http://www.mapgears.com/ >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> It is from the wellspring of our despair and the places that we are >>>>>>> broken that we come to repair the world. >>>>>>> -- Murray Waas >>>>>>> >>>>>> >>>>>> -- >>>>>> It is from the wellspring of our despair and the places that we are >>>>>> broken that we come to repair the world. >>>>>> -- Murray Waas >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>> >>>> >> >> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From temiz at deprem.gov.tr Sun Jul 20 03:31:48 2008 From: temiz at deprem.gov.tr (orkun) Date: Sun, 20 Jul 2008 13:31:48 +0300 Subject: [mapserver-users] cannot get data from postgis by querybypoint Message-ID: <1216549908.8185.9.camel@orkun-desktop> hello My postgis layer creates map properly. I think it means database runs normally and any errors are not seen postgre's log file. I have adjusted tcp listening to all. But, I cannot get data from it by querybypoint, although I followed same procedure to shape file layer from which I can get data by querybypoint. what might the reason be ? any hint ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From nipapada at gmail.com Sun Jul 20 10:57:21 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=E9=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Sun, 20 Jul 2008 20:57:21 +0300 Subject: [mapserver-users] Data for Mapserver. Message-ID: <48837C81.2050904@gmail.com> Hallo to everyone. I have some data of a city and i want to retrieve a map from them. I have done other examples with data that have the following file extentions... .dbf .shp .shx. But the new dataset i have found have the following file extentions... .dbf .prj .sbn .sbx .shp .shx Does anybody know a way i can use these data? Thanks... From ritesh.linux at gmail.com Sun Jul 20 11:03:10 2008 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Sun, 20 Jul 2008 23:33:10 +0530 Subject: [mapserver-users] Data for Mapserver. In-Reply-To: <48837C81.2050904@gmail.com> References: <48837C81.2050904@gmail.com> Message-ID: <135fc07d0807201103l643b2e98kc139c1f6e22ab581@mail.gmail.com> You can use this data in the same way you were doing previously. Regards, Ritesh Ambastha On Sun, Jul 20, 2008 at 11:27 PM, ????? ????????? wrote: > Hallo to everyone. > I have some data of a city and i want to retrieve a map from them. > I have done other examples with data that have the following file > extentions... > .dbf .shp .shx. > > But the new dataset i have found have the following file extentions... > .dbf .prj .sbn .sbx .shp .shx > > Does anybody know a way i can use these data? > Thanks... > > > _______________________________________________ > 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 matthew.pettis at gmail.com Sun Jul 20 11:06:41 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sun, 20 Jul 2008 13:06:41 -0500 Subject: [mapserver-users] Data for Mapserver. In-Reply-To: <48837C81.2050904@gmail.com> References: <48837C81.2050904@gmail.com> Message-ID: <82ba77b80807201106x425b3feai41dc0786376e387d@mail.gmail.com> The new files tell you more information above and beyond what you already had in the .dbf, .shp, and .shx files. For example, the .prj file should contain information about the projection that the coordinates are in... That can be used when you need to merge it's information with maps from other projections. As to .sbn, .sbx, I can't tell you, but you should be able to google it or look up shapefile specs. Thanks, Matt On Sun, Jul 20, 2008 at 12:57 PM, ????? ????????? wrote: > Hallo to everyone. > I have some data of a city and i want to retrieve a map from them. > I have done other examples with data that have the following file > extentions... > .dbf .shp .shx. > > But the new dataset i have found have the following file extentions... > .dbf .prj .sbn .sbx .shp .shx > > Does anybody know a way i can use these data? > Thanks... > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From jjschlafley at yahoo.com Sun Jul 20 12:56:56 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Sun, 20 Jul 2008 12:56:56 -0700 (PDT) Subject: [mapserver-users] Data for Mapserver. Message-ID: <851917.55990.qm@web52303.mail.re2.yahoo.com> .sbn and .sbx are shapefile spatial index files... ----- Original Message ---- From: Matthew Pettis To: ????? ????????? Cc: Mapserver Sent: Sunday, July 20, 2008 2:06:41 PM Subject: Re: [mapserver-users] Data for Mapserver. The new files tell you more information above and beyond what you already had in the .dbf, .shp, and .shx files.? For example, the .prj file should contain information about the projection that the coordinates are in... That can be used when you need to merge it's information with maps from other projections.? As to .sbn, .sbx, I can't tell you, but you should be able to google it or look up shapefile specs. Thanks, Matt On Sun, Jul 20, 2008 at 12:57 PM, ????? ????????? wrote: > Hallo to everyone. > I have some data of a city and i want to retrieve a map from them. > I have done other examples with data that have the following file > extentions... > .dbf? .shp? .shx. > > But the new dataset i have found have the following file extentions... > .dbf? .prj? .sbn? .sbx? .shp? .shx > > Does anybody know a way i can use these data? > Thanks... > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Sun Jul 20 13:30:50 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Sun, 20 Jul 2008 15:30:50 -0500 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> Message-ID: <9171C131-1715-4397-A951-AA2D228BD092@kyngchaos.com> My OSX build is finally ready (lots of distractions this week). I added a couple things: - instructions for compiling other mapscripts that are not included in the installer. - a build script (separate download) to compile my framework version. Also supports compiling universal and 64bits (for Leopard). It should work on Panther. Defaults to using my other frameworks and binaries, only GD is required as an external compile. On Jul 16, 2008, at 8:51 PM, Steve Lime wrote: > Hi all: The MapServer PSC is proud to announce the release of > MapServer version 5.2. The source code is available for download at: > > http://mapserver.gis.umn.edu/download/current > > Binary distributions will follow shortly. ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From temiz at deprem.gov.tr Mon Jul 21 00:42:40 2008 From: temiz at deprem.gov.tr (orkun) Date: Mon, 21 Jul 2008 10:42:40 +0300 Subject: [mapserver-users] getting value non-geometry column from postgis db Message-ID: <1216626160.5880.13.camel@orkun-desktop> I want retrive data from postgis layer. When I look the examples, I see mapserver layer renders geometry column like DATA "the_geom FROM roads" . What if I intend to get ID value with geo column of the same table. DATA "the_geom FROM roads" what if DATA "the_geom,"ID" FROM roads" ?? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From stefan.schwarzer at grid.unep.ch Mon Jul 21 02:11:48 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 21 Jul 2008 11:11:48 +0200 Subject: [mapserver-users] Add Content to the Legend Message-ID: <59FB0954-D580-408C-88A0-A7D0192BB89F@grid.unep.ch> Hi there, I would like to add information about the Units of the selected variable into the legend. When using vector data, this wasn't really the problem. I kind of faked empty classes to insert that information. But now, I wonder how to achieve this when using TIF images. As the TIF is already color coded and regrouped into a couple of classes, using faked CLASS values, results in the display of zero pixels - nothing is being displayed. Is there another way to "slip" in some information into the legend? Or is the HTML legend the only alternative? Thanks for any hints, Stef From temiz at deprem.gov.tr Mon Jul 21 05:20:17 2008 From: temiz at deprem.gov.tr (orkun) Date: Mon, 21 Jul 2008 15:20:17 +0300 Subject: [mapserver-users] confused about pulling data from postgis Message-ID: <1216642817.5869.6.camel@orkun-desktop> hello I am confused about pulling data from postgis layer. In addition to wkb_geometry, I also want to get "ogc_fid" using querybypoint. I am using this line in my map file. I am getting wkb_geometry but not ogc_fid DATA "wkb_geometry FROM (select ogc_fid,wkb_geometry,cat from sheydene2) as foo using unique ogc_fid using SRID=32768 what should I change in my map file to get ogc_fid ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From thy at 42.dk Mon Jul 21 05:27:45 2008 From: thy at 42.dk (Kristian Thy) Date: Mon, 21 Jul 2008 14:27:45 +0200 Subject: [mapserver-users] confused about pulling data from postgis In-Reply-To: <1216642817.5869.6.camel@orkun-desktop> References: <1216642817.5869.6.camel@orkun-desktop> Message-ID: <20080721122745.GA25992@42.dk> On Mon, Jul 21, orkun wrote: > In addition to wkb_geometry, I also want to get "ogc_fid" > using querybypoint. > > I am using this line in my map file. I am getting > wkb_geometry but not ogc_fid > > DATA "wkb_geometry FROM (select ogc_fid,wkb_geometry,cat from > sheydene2) as foo using unique ogc_fid using SRID=32768 > > what should I change in my map file to get ogc_fid ? DATA "wkb_geometry, ogc_fid FROM (select ogc_fid,wkb_geometry,cat from sheydene2) as foo using unique ogc_fid using SRID=32768 \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From stefan.schwarzer at grid.unep.ch Mon Jul 21 06:00:01 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 21 Jul 2008 15:00:01 +0200 Subject: [mapserver-users] queryByPoint + PostGIS layers + USING statement Message-ID: Hi there, it seems that it's mandatory for postgis layers to use the "USING" statement in the query. My layer parameters look a bit like this: DATA 'the_geom FROM ( SELECT xxxx FROM xxx LEFT JOIN xxxx WHERE xxx) AS foo USING UNIQUE uid USING srid=4326) ' But nevertheless, mapserver doesn't like it... Can anyone give me a hint what is wrong with that? Thanks for any advice, Stef From thy at 42.dk Mon Jul 21 06:21:03 2008 From: thy at 42.dk (Kristian Thy) Date: Mon, 21 Jul 2008 15:21:03 +0200 Subject: [mapserver-users] queryByPoint + PostGIS layers + USING statement In-Reply-To: References: Message-ID: <20080721132103.GB25992@42.dk> On Mon, Jul 21, Stefan Schwarzer wrote: > My layer parameters look a bit like this: > > DATA 'the_geom FROM ( SELECT xxxx FROM xxx LEFT JOIN xxxx WHERE xxx) > AS foo USING UNIQUE uid USING srid=4326) ' You have an extra ) at the end. > But nevertheless, mapserver doesn't like it... If removing the superfluous ) doesn't solve your problem, you will need to elaborate on what "doesn't like it" means. Does it give an error message? \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From yjacolin at free.fr Mon Jul 21 06:25:44 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Mon, 21 Jul 2008 15:25:44 +0200 Subject: [mapserver-users] Typo error in documentation page In-Reply-To: <200807131120.12888.yjacolin@free.fr> References: <200807131120.12888.yjacolin@free.fr> Message-ID: <200807211525.44756.yjacolin@free.fr> Hi, Does it the right list to inform a possible error in a documentation page or there is an other way? Thanks, Y. Le Sunday 13 July 2008 11:20:12 Yves Jacolin, vous avez ?crit?: > Hi, > > Working on a french article to present new features for the next release of > > MS, I found a typo error on the documentation of the WCS 1.1.0: > >SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities > > should be > > >SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities > > ---------------------------------------^ > > in 4.1 GetCapabilities section > (http://mapserver.gis.umn.edu/docs/howto/wcs_server/#wcs-1-1-0-issues) > Regards, > > Y. > -- > "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner > du pouvoir, de la puissance d'agir." M Gauchet > > "Give freedom to people is not enough, we also have to give them the power > to use this freedom, to act". M Gauchet > --- > Yves Jacolin > > http://yjacolin.gloobe.org > http://www.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From jmckenna at gatewaygeomatics.com Mon Jul 21 06:51:55 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 21 Jul 2008 09:51:55 -0400 Subject: [mapserver-users] Typo error in documentation page In-Reply-To: <200807211525.44756.yjacolin@free.fr> References: <200807131120.12888.yjacolin@free.fr> <200807211525.44756.yjacolin@free.fr> Message-ID: <01EDA4C0-7104-4E04-B136-44DA98B50070@gatewaygeomatics.com> On 21-Jul-08, at 9:25 AM, Jacolin Yves wrote: > Hi, > > Does it the right list to inform a possible error in a documentation > page or > there is an other way? > > Thanks, > > Y. For documentation errors please file a ticket in Trac (http://trac.osgeo.org/mapserver/ ) and select the "MapServer Documentation" component when you file the ticket. thanks. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From yjacolin at free.fr Mon Jul 21 06:56:29 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Mon, 21 Jul 2008 15:56:29 +0200 Subject: [mapserver-users] Typo error in documentation page In-Reply-To: <01EDA4C0-7104-4E04-B136-44DA98B50070@gatewaygeomatics.com> References: <200807131120.12888.yjacolin@free.fr> <200807211525.44756.yjacolin@free.fr> <01EDA4C0-7104-4E04-B136-44DA98B50070@gatewaygeomatics.com> Message-ID: <200807211556.29108.yjacolin@free.fr> Le Monday 21 July 2008 15:51:55 Jeff McKenna, vous avez ?crit?: > On 21-Jul-08, at 9:25 AM, Jacolin Yves wrote: > > Hi, > > > > Does it the right list to inform a possible error in a documentation > > page or > > there is an other way? > > > > Thanks, > > > > Y. > > For documentation errors please file a ticket in Trac > (http://trac.osgeo.org/mapserver/ ) and select the "MapServer > Documentation" component when you file the ticket. thanks. > > > --- > Jeff McKenna > FOSS4G 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 here is the bug in trac: http://trac.osgeo.org/mapserver/ticket/2709 Thanks, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From boolean10001 at yahoo.com Mon Jul 21 07:43:26 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 21 Jul 2008 07:43:26 -0700 (PDT) Subject: [mapserver-users] cannot get data from postgis by querybypoint In-Reply-To: <1216549908.8185.9.camel@orkun-desktop> Message-ID: <997551.75629.qm@web38208.mail.mud.yahoo.com> Do you set the TEMPLATE item within that LAYER ? Because queries doesn't work if you don't have set it. A template is an HTML file wich allows you to format the result of the queries you made. IC Carlos Ruiz --- On Sun, 7/20/08, orkun wrote: From: orkun Subject: [mapserver-users] cannot get data from postgis by querybypoint To: "mapserver" Date: Sunday, July 20, 2008, 5:31 AM hello My postgis layer creates map properly. I think it means database runs normally and any errors are not seen postgre's log file. I have adjusted tcp listening to all. But, I cannot get data from it by querybypoint, although I followed same procedure to shape file layer from which I can get data by querybypoint. what might the reason be ? any hint ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ 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 boolean10001 at yahoo.com Mon Jul 21 07:53:50 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 21 Jul 2008 07:53:50 -0700 (PDT) Subject: [mapserver-users] queryByPoint + PostGIS layers + USING statement In-Reply-To: Message-ID: <511719.12494.qm@web38205.mail.mud.yahoo.com> If you want to retrieve geometry with a specify projection, i suggest you to set it inside the postgres geometry_columns table, to simplify the query in the map file. When you upload some shape file to the database via shp2pgsql utility, you can specify the SRID of the projection, if not, SRID sets to -1. If you're an expert user, you can alter the values of the geometry_columns table. IC Carlos Ruiz? --- On Mon, 7/21/08, Stefan Schwarzer wrote: From: Stefan Schwarzer Subject: [mapserver-users] queryByPoint + PostGIS layers + USING statement To: mapserver-users at lists.osgeo.org Date: Monday, July 21, 2008, 8:00 AM Hi there, it seems that it's mandatory for postgis layers to use the "USING" statement in the query. My layer parameters look a bit like this: DATA 'the_geom FROM ( SELECT xxxx FROM xxx LEFT JOIN xxxx WHERE xxx) AS foo USING UNIQUE uid USING srid=4326) ' But nevertheless, mapserver doesn't like it... Can anyone give me a hint what is wrong with that? Thanks for any advice, Stef _______________________________________________ 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 dnr.state.mn.us Mon Jul 21 08:26:44 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Jul 2008 10:26:44 -0500 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> Message-ID: <48846463.5157.008F.0@dnr.state.mn.us> As far as I know there isn't such a switch. If you could produce the patch we could take a look though. Steve >>> On 7/17/2008 at 7:54 AM, in message , "Nolte, Tim" wrote: > Is there a built-in facility to turn off anti-aliasing for certain > layers when using AGG in this build? I had a patch given to me by > someone else on the list that worked with MS 5.0, that patch doesn't > work on this build. Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Steve Lime >> Sent: Wednesday, July 16, 2008 9:52 PM >> To: mapserver-announce at lists.osgeo.org; >> mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] MapServer Version 5.2.0 Source Released >> >> Hi all: The MapServer PSC is proud to announce the release of >> MapServer version 5.2. The source code is available for download at: >> >> http://mapserver.gis.umn.edu/download/current >> >> Binary distributions will follow shortly. This is a >> significant release and users are encouraged to upgrade if >> possible. Nearly 200 tickets were closed as part of this >> effort. Major feature additions include: >> >> * MS RFC 36: Simplified Template Support for Query Output >> * MS RFC 37: Spatial Reference Improvements and Additions >> * MS RFC 38: Native Microsoft SQL Server 2008 Support >> * MS RFC 41: WCS 1.1.x Support >> * MS RFC 42: Support for Cookie Forwarding >> * MS RFC 43: Direct Tile Generation for Google Maps API >> >> Full RFC text can be found at: >> http://mapserver.gis.umn.edu/development/rfc >> >> Notable enhancements include: >> >> * performance enhancements for large shapefile handling >> * performance enhancements for AGG rendering (an order of >> magnitude faster in some cases) >> * fuzzy label outlines for AGG >> * style-level opacity for AGG >> * quantization and palette support for PNGs and RGBA modes >> * SOS 1.0.0 support >> * WFS 1.1.0 support >> * proxy and http authentication support for cascaded WMS requests >> * pre-clip label point computation (helps in tile generation) >> * extent (e.g. shpext, mapext) template tag attribute handling >> >> The full 5.2.0 change log can be found at: >> http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-0/mapserv >> er/HISTORY.TXT >> >> I would like to thank all the folks that worked hard on this >> release, your efforts are greatly appreciated! >> >> Steve >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Mon Jul 21 10:34:20 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 21 Jul 2008 19:34:20 +0200 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <48846463.5157.008F.0@dnr.state.mn.us> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> <48846463.5157.008F.0@dnr.state.mn.us> Message-ID: Yes, that patch won't apply on 5.2 as there have been substantial changes in that code. You'll have to manually merge it (the logic is the same). The function you're looking for is msDrawLineSymbolAGG -- thomas On Mon, Jul 21, 2008 at 5:26 PM, Steve Lime wrote: > As far as I know there isn't such a switch. If you could produce the patch we could > take a look though. > > Steve > >>>> On 7/17/2008 at 7:54 AM, in message > , "Nolte, Tim" > wrote: >> Is there a built-in facility to turn off anti-aliasing for certain >> layers when using AGG in this build? I had a patch given to me by >> someone else on the list that worked with MS 5.0, that patch doesn't >> work on this build. Thanks. >> >> - Tim >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Steve Lime >>> Sent: Wednesday, July 16, 2008 9:52 PM >>> To: mapserver-announce at lists.osgeo.org; >>> mapserver-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] MapServer Version 5.2.0 Source Released >>> >>> Hi all: The MapServer PSC is proud to announce the release of >>> MapServer version 5.2. The source code is available for download at: >>> >>> http://mapserver.gis.umn.edu/download/current >>> >>> Binary distributions will follow shortly. This is a >>> significant release and users are encouraged to upgrade if >>> possible. Nearly 200 tickets were closed as part of this >>> effort. Major feature additions include: >>> >>> * MS RFC 36: Simplified Template Support for Query Output >>> * MS RFC 37: Spatial Reference Improvements and Additions >>> * MS RFC 38: Native Microsoft SQL Server 2008 Support >>> * MS RFC 41: WCS 1.1.x Support >>> * MS RFC 42: Support for Cookie Forwarding >>> * MS RFC 43: Direct Tile Generation for Google Maps API >>> >>> Full RFC text can be found at: >>> http://mapserver.gis.umn.edu/development/rfc >>> >>> Notable enhancements include: >>> >>> * performance enhancements for large shapefile handling >>> * performance enhancements for AGG rendering (an order of >>> magnitude faster in some cases) >>> * fuzzy label outlines for AGG >>> * style-level opacity for AGG >>> * quantization and palette support for PNGs and RGBA modes >>> * SOS 1.0.0 support >>> * WFS 1.1.0 support >>> * proxy and http authentication support for cascaded WMS requests >>> * pre-clip label point computation (helps in tile generation) >>> * extent (e.g. shpext, mapext) template tag attribute handling >>> >>> The full 5.2.0 change log can be found at: >>> http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-0/mapserv >>> er/HISTORY.TXT >>> >>> I would like to thank all the folks that worked hard on this >>> release, your efforts are greatly appreciated! >>> >>> Steve >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Mon Jul 21 11:28:38 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Jul 2008 13:28:38 -0500 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in fieldvalue In-Reply-To: <5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> <48808F7F.8080005@mapgears.com> <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> <48809597.4010705@mapgears.com> <5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com> Message-ID: <48848F05.5157.008F.0@dnr.state.mn.us> While I'm glad it works (the regex should execute faster too) the other expression should have worked as well. Can you share the data you were using for some testing? Steve >>> On 7/18/2008 at 8:16 AM, in message <5a9686e80807180616n492ec21cma0170d2dfc9633b9 at mail.gmail.com>, "Mike Saunt" wrote: > Alexandre > > Excellent - that works! > > FYI - This is why I believe that Open Source can easily prevail even when > people put down the 'many eyes see more bugs' notion. In another life I > worked with / as a partner for a proprietary company (now you can buy > franking machines from the same parent company wink wink nudge nudge) and > you'd never get this response so quickly and also having 'had it from the > horses mouth a.k.a. Developers' that there is an issue and this is the best > way around it. > > Thanks so much Alexandre > > Kind regards > Mike > > > > > > 2008/7/18 Alexandre Dube : > >> I've been told by developers that there seems to be a bug when using " " in >> the expression parser... >> >> You should use a regular expression instead like the following : >> >> EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road Closure$|^Stop\/Go >> Boards$|^Two-Way Signals$/ >> >> See at : http://mapserver.gis.umn.edu/docs/howto/msexpressions >> >> Mike Saunt wrote: >> >>> thanks Alexandre but unfortunately it didn't work >>> >>> Do you know if there is a way of forcing MapServer to read out the literal >>> string i.e. sort of like escaping it? in .NET you can say @stringvariable >>> and it will ignore quotes inside etc? >>> >>> Cheers >>> Mike >>> >>> 2008/7/18 Alexandre Dube >> >>: >>> >>> >>> Hi Mike, >>> >>> I'm not sure about that, but try eq instead of = >>> >>> EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... >>> >>> Best Regards, >>> Alexandre >>> >>> Mike Saunt wrote: >>> >>> Hi All >>> >>> I've got a MapFile that used to work fine in v4.10 but now >>> fails in v5.0 >>> >>> Basically the CLASSITEM field has double quote in field value >>> and this is then returning an error - msEvalExpression: >>> Expression parser error. Failed to parse expression >>> >>> The CLASS EXPRESSION looks like this >>> CLASSITEM 'TRAFFIC_TYPE' CLASS >>> EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR >>> '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = >>> 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR >>> '[TRAFFIC_TYPE]' = 'Two-Way Signals') >>> STYLE # Severe (RED) >>> SYMBOL 'triangle' >>> SIZE 9 >>> COLOR 255 0 0 >>> OUTLINECOLOR 0 0 0 >>> END >>> END >>> >>> I've tried double quote vs. single quotes in the map file but >>> to no avail >>> >>> Anyone any thoughts? >>> >>> Kind regards >>> Mike >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> -- Alexandre Dub? >>> Mapgears >>> www.mapgears.com >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> -- >> Alexandre Dub? >> Mapgears >> www.mapgears.com >> >> From dmorissette at mapgears.com Mon Jul 21 11:36:06 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 21 Jul 2008 14:36:06 -0400 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in fieldvalue In-Reply-To: <48848F05.5157.008F.0@dnr.state.mn.us> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> <48808F7F.8080005@mapgears.com> <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> <48809597.4010705@mapgears.com> <5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com> <48848F05.5157.008F.0@dnr.state.mn.us> Message-ID: <4884D716.3010800@mapgears.com> Steve is right, I had only guessed that there might be a bug based on the problem description, but we've been unable to reproduce the issue that you report. I meant to reply on Friday asking for a testcase to reproduce but I forgot. Daniel Steve Lime wrote: > While I'm glad it works (the regex should execute faster too) the other > expression should > have worked as well. Can you share the data you were using for some > testing? > > Steve > >>>> On 7/18/2008 at 8:16 AM, in message > <5a9686e80807180616n492ec21cma0170d2dfc9633b9 at mail.gmail.com>, "Mike > Saunt" > wrote: >> Alexandre >> >> Excellent - that works! >> >> FYI - This is why I believe that Open Source can easily prevail even > when >> people put down the 'many eyes see more bugs' notion. In another > life I >> worked with / as a partner for a proprietary company (now you can > buy >> franking machines from the same parent company wink wink nudge nudge) > and >> you'd never get this response so quickly and also having 'had it from > the >> horses mouth a.k.a. Developers' that there is an issue and this is > the best >> way around it. >> >> Thanks so much Alexandre >> >> Kind regards >> Mike >> >> >> >> >> >> 2008/7/18 Alexandre Dube : >> >>> I've been told by developers that there seems to be a bug when using > " " in >>> the expression parser... >>> >>> You should use a regular expression instead like the following : >>> >>> EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road > Closure$|^Stop\/Go >>> Boards$|^Two-Way Signals$/ >>> >>> See at : http://mapserver.gis.umn.edu/docs/howto/msexpressions >>> >>> Mike Saunt wrote: >>> >>>> thanks Alexandre but unfortunately it didn't work >>>> >>>> Do you know if there is a way of forcing MapServer to read out the > literal >>>> string i.e. sort of like escaping it? in .NET you can say > @stringvariable >>>> and it will ignore quotes inside etc? >>>> >>>> Cheers >>>> Mike >>>> >>>> 2008/7/18 Alexandre Dube >>>>> : >>>> >>>> Hi Mike, >>>> >>>> I'm not sure about that, but try eq instead of = >>>> >>>> EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... >>>> >>>> Best Regards, >>>> Alexandre >>>> >>>> Mike Saunt wrote: >>>> >>>> Hi All >>>> >>>> I've got a MapFile that used to work fine in v4.10 but now >>>> fails in v5.0 >>>> >>>> Basically the CLASSITEM field has double quote in field > value >>>> and this is then returning an error - msEvalExpression: >>>> Expression parser error. Failed to parse expression >>>> >>>> The CLASS EXPRESSION looks like this >>>> CLASSITEM 'TRAFFIC_TYPE' CLASS >>>> EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR >>>> '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' > = >>>> 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR >>>> '[TRAFFIC_TYPE]' = 'Two-Way Signals') >>>> STYLE # Severe (RED) >>>> SYMBOL 'triangle' >>>> SIZE 9 >>>> COLOR 255 0 0 >>>> OUTLINECOLOR 0 0 0 >>>> END >>>> END >>>> >>>> I've tried double quote vs. single quotes in the map file > but >>>> to no avail >>>> >>>> Anyone any thoughts? >>>> >>>> Kind regards >>>> Mike >>>> >>>> > ------------------------------------------------------------------------ >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> -- Alexandre Dub? >>>> Mapgears >>>> www.mapgears.com >>>> >>>> >>>> > ------------------------------------------------------------------------ >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> -- >>> Alexandre Dub? >>> Mapgears >>> www.mapgears.com >>> >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From robhyx at gmail.com Mon Jul 21 12:15:13 2008 From: robhyx at gmail.com (Robert Hicks) Date: Mon, 21 Jul 2008 15:15:13 -0400 Subject: [mapserver-users] Failed to transform feature 760 Message-ID: I got this error while running ogr2ogr from a Win 32 command prompt. The .dbf files completed successfully but the .shp file is empty when opened. Any ideas? Exact command: ogr2ogr -s_srs "EPSG:2875" -t_srs "EPSG:4326" -overwrite -f "ESRI Shapefile" shape_4326.shp shape.shp Thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From gemerson at WelshCo.com Mon Jul 21 12:54:37 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Mon, 21 Jul 2008 14:54:37 -0500 Subject: [mapserver-users] Query all layers with blank qlayer? In-Reply-To: <48846463.5157.008F.0@dnr.state.mn.us> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> <48846463.5157.008F.0@dnr.state.mn.us> Message-ID: <348277DFCE9FF044B3812A6CF459CD37DCC725@welshmail.welshco.com.local> Hi everyone, I'm running into trouble when I try to use ItemQuery and ItemNQuery with a blank qlayer. Does the 5.0 release still support querying all layers in this way? If not, what's the current method? I haven't been able to find anything aside from Bill Kropla's text and the online list of CGI controls, which states: If (qlayer) not specified then all layers are searched in turn. However, if I leave qlayer blank in my input form, or enter it in the url with no value, I get the following: mapserv(): Web application error. Query layer not set or references an invalid layer. I do have some layers which are displayed but not queryable (no templates defined), do all layers have to be queryable before this method will work? Thanks! -Gabe Emerson From Steve.Lime at dnr.state.mn.us Mon Jul 21 13:04:00 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Jul 2008 15:04:00 -0500 Subject: [mapserver-users] Add Content to the Legend In-Reply-To: <59FB0954-D580-408C-88A0-A7D0192BB89F@grid.unep.ch> References: <59FB0954-D580-408C-88A0-A7D0192BB89F@grid.unep.ch> Message-ID: <4884A55F.5157.008F.0@dnr.state.mn.us> What do your faked classes look like? Steve >>> On 7/21/2008 at 4:11 AM, in message <59FB0954-D580-408C-88A0-A7D0192BB89F at grid.unep.ch>, Stefan Schwarzer wrote: > Hi there, > > I would like to add information about the Units of the selected > variable into the legend. When using vector data, this wasn't really > the problem. I kind of faked empty classes to insert that information. > > But now, I wonder how to achieve this when using TIF images. As the > TIF is already color coded and regrouped into a couple of classes, > using faked CLASS values, results in the display of zero pixels - > nothing is being displayed. > > Is there another way to "slip" in some information into the legend? Or > is the HTML legend the only alternative? > > Thanks for any hints, > > Stef > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Jul 21 13:12:31 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Jul 2008 15:12:31 -0500 Subject: [mapserver-users] Dynamic Reference Map In-Reply-To: <348277DFCE9FF044B3812A6CF459CD37DCC4BE@welshmail.welshco.com.local> References: <348277DFCE9FF044B3812A6CF459CD37DCC4BE@welshmail.welshco.com.local> Message-ID: <4884A75E.5157.008F.0@dnr.state.mn.us> Gabe: This is related to changes at the 5.0 release level limiting what can be changed via URL. There has been a thread on this in the last couple of weeks or so. I'm going to be trying to restore 5.0 capabilities but with security hobbles in place but that won't happen until 5.2.1 at the earliest and more likely 5.4 so for now you're out of luck unless you're in position to recompile. Steve >>> On 7/18/2008 at 3:23 PM, in message <348277DFCE9FF044B3812A6CF459CD37DCC4BE at welshmail.welshco.com.local>, "Emerson, Gabe" wrote: > Hello everyone. My apologies if this has been solved already, but I've > read through the previous posts on this topic and haven't found a > solution that works for me. > > > > I'm trying to replace the default reference map image and extent on the > fly, using Javascript in my template file. Basically, I want to check if > the map is zooming out past a certain scale and/or leaving the area > covered by the default reference map, and display a reference map of the > entire state (the default is the local metro area). > > > > I'm using the 5.2.0 version of mapserv that comes with ms4w 2.2.7 > (although ms4w's default index page claims it's still 2.2.6 with mapserv > 5.0). From what I've read in the docs and mailing list archives, I > should be able to do what I want in one of two ways: > > > > -Include in the url: map_reference_image='/images/mnref.gif' > > > > -Or alternatively: map_reference=IMAGE+'/images/mnref.gif' > > > > The first method gives me this error: > > loadReferenceMap(): Unknown identifier. Parsing error near > (/images/mnref.gif):(line 1) > > > > And the second method gives me this: > > loadReferenceMap(): Unknown identifier. Parsing error near (IMAGE):(line > 1) > > > > I've tried these with every combination of quotes, escaped quotes, no > quotes, etc, without luck. What I CAN do is turn the reference map on > and off with map_reference=STATUS+off in the url, but that seems to be > the only reference object parameter that I can change. > > > > According to what I've read I'm pretty sure this is possible, there was > even a code update to make the first method work in an earlier version. > Hopefully I'm just missing something obvious and someone can point out > my newb mistake. > > > > Thanks! > > > > > > > > Gabe Emerson > > Research Department > > Welsh Companies > > 4350 Baker Road, Suite 400 > > Minnetonka, MN 55343-8695 > > > > 952-897-7700, ext. 1306 > > gemerson at welshco.com > > From Steve.Lime at dnr.state.mn.us Mon Jul 21 13:17:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Jul 2008 15:17:50 -0500 Subject: [mapserver-users] Query all layers with blank qlayer? In-Reply-To: <348277DFCE9FF044B3812A6CF459CD37DCC725@welshmail.welshco.com.local> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> <48846463.5157.008F.0@dnr.state.mn.us> <348277DFCE9FF044B3812A6CF459CD37DCC725@welshmail.welshco.com.local> Message-ID: <4884A89E.5157.008F.0@dnr.state.mn.us> Attribute queries have been tied to an individual layer for some time now although I don't recall what version started to strictly enforce this. The docs need an update I'm afraid... Steve >>> On 7/21/2008 at 2:54 PM, in message <348277DFCE9FF044B3812A6CF459CD37DCC725 at welshmail.welshco.com.local>, "Emerson, Gabe" wrote: > Hi everyone, > > I'm running into trouble when I try to use ItemQuery and ItemNQuery with > a blank qlayer. Does the 5.0 release still support querying all layers > in this way? If not, what's the current method? I haven't been able to > find anything aside from Bill Kropla's text and the online list of CGI > controls, which states: > > If (qlayer) not specified then all layers are searched in turn. > > However, if I leave qlayer blank in my input form, or enter it in the > url with no value, I get the following: > > mapserv(): Web application error. Query layer not set or references an > invalid layer. > > I do have some layers which are displayed but not queryable (no > templates defined), do all layers have to be queryable before this > method will work? > > Thanks! > > -Gabe Emerson > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From beartreeyoga at yahoo.co.uk Tue Jul 22 03:20:41 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Tue, 22 Jul 2008 10:20:41 +0000 (GMT) Subject: [mapserver-users] Digital Nautical Charts (DNC) Message-ID: <605755.69465.qm@web23001.mail.ird.yahoo.com> Hi Jeff, thanks for help on my previous post. My installation of ms4w must have been corrupted. I reinstalled and all works ok. I had installed ER Mapper SDK etc and this may have been the problem. Not sure, just happy its working :) Anyway, has anyone any experience using Digital Nautical Charts (DNC) with Mapserver. I cannot find any information about how to add these to the map file. If not can someone explain what I would have to code to do this, i.e. plu-in etc and where to get a basic example. Thanks Derek __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at gmail.com Tue Jul 22 03:48:45 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Tue, 22 Jul 2008 11:48:45 +0100 Subject: [mapserver-users] v5.0.0 - CLASSITEM has double quote in fieldvalue In-Reply-To: <4884D716.3010800@mapgears.com> References: <5a9686e80807180246u62bd1671q50a388fd0485a12e@mail.gmail.com> <48808F7F.8080005@mapgears.com> <5a9686e80807180549p46bb234brbcaea3f8a8506481@mail.gmail.com> <48809597.4010705@mapgears.com> <5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com> <48848F05.5157.008F.0@dnr.state.mn.us> <4884D716.3010800@mapgears.com> Message-ID: <5a9686e80807220348k6e927badg933a1334801c13be@mail.gmail.com> Hi Steve / Daniel I'll try to pull something together later today... Kind regards mike On 21/07/2008, Daniel Morissette wrote: > > Steve is right, I had only guessed that there might be a bug based on the > problem description, but we've been unable to reproduce the issue that you > report. I meant to reply on Friday asking for a testcase to reproduce but I > forgot. > > Daniel > > > Steve Lime wrote: > >> While I'm glad it works (the regex should execute faster too) the other >> expression should >> have worked as well. Can you share the data you were using for some >> testing? >> >> Steve >> >> On 7/18/2008 at 8:16 AM, in message >>>>> >>>> <5a9686e80807180616n492ec21cma0170d2dfc9633b9 at mail.gmail.com>, "Mike >> Saunt" >> wrote: >> >>> Alexandre >>> >>> Excellent - that works! >>> >>> FYI - This is why I believe that Open Source can easily prevail even >>> >> when >> >>> people put down the 'many eyes see more bugs' notion. In another >>> >> life I >> >>> worked with / as a partner for a proprietary company (now you can >>> >> buy >> >>> franking machines from the same parent company wink wink nudge nudge) >>> >> and >> >>> you'd never get this response so quickly and also having 'had it from >>> >> the >> >>> horses mouth a.k.a. Developers' that there is an issue and this is >>> >> the best >> >>> way around it. >>> >>> Thanks so much Alexandre >>> >>> Kind regards >>> Mike >>> >>> >>> >>> >>> >>> 2008/7/18 Alexandre Dube : >>> >>> I've been told by developers that there seems to be a bug when using >>>> >>> " " in >> >>> the expression parser... >>>> >>>> You should use a regular expression instead like the following : >>>> >>>> EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road >>>> >>> Closure$|^Stop\/Go >> >>> Boards$|^Two-Way Signals$/ >>>> >>>> See at : http://mapserver.gis.umn.edu/docs/howto/msexpressions >>>> Mike Saunt wrote: >>>> >>>> thanks Alexandre but unfortunately it didn't work >>>>> >>>>> Do you know if there is a way of forcing MapServer to read out the >>>>> >>>> literal >> >>> string i.e. sort of like escaping it? in .NET you can say >>>>> >>>> @stringvariable >> >>> and it will ignore quotes inside etc? >>>>> >>>>> Cheers >>>>> Mike >>>>> >>>>> 2008/7/18 Alexandre Dube >>>> >>>> > >>> : >>>>>>> >>>>>> >>>>> Hi Mike, >>>>> >>>>> I'm not sure about that, but try eq instead of = >>>>> >>>>> EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ... >>>>> >>>>> Best Regards, >>>>> Alexandre >>>>> >>>>> Mike Saunt wrote: >>>>> >>>>> Hi All >>>>> >>>>> I've got a MapFile that used to work fine in v4.10 but now >>>>> fails in v5.0 >>>>> >>>>> Basically the CLASSITEM field has double quote in field >>>>> >>>> value >> >>> and this is then returning an error - msEvalExpression: >>>>> Expression parser error. Failed to parse expression >>>>> >>>>> The CLASS EXPRESSION looks like this >>>>> CLASSITEM 'TRAFFIC_TYPE' CLASS >>>>> EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR >>>>> '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' >>>>> >>>> = >> >>> 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR >>>>> '[TRAFFIC_TYPE]' = 'Two-Way Signals') >>>>> STYLE # Severe (RED) >>>>> SYMBOL 'triangle' >>>>> SIZE 9 >>>>> COLOR 255 0 0 >>>>> OUTLINECOLOR 0 0 0 >>>>> END >>>>> END >>>>> >>>>> I've tried double quote vs. single quotes in the map file >>>>> >>>> but >> >>> to no avail >>>>> >>>>> Anyone any thoughts? >>>>> >>>>> Kind regards >>>>> Mike >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------ >> >>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>> mapserver-users at lists.osgeo.org> >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> -- Alexandre Dub? >>>>> Mapgears >>>>> www.mapgears.com >>>>> >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------ >> >>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> -- >>>> Alexandre Dub? >>>> Mapgears >>>> www.mapgears.com >>>> >>>> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Daniel Morissette > http://www.mapgears.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 beartreeyoga at yahoo.co.uk Tue Jul 22 08:34:50 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Tue, 22 Jul 2008 15:34:50 +0000 (GMT) Subject: [mapserver-users] More info on DNC problem Message-ID: <861895.75430.qm@web23003.mail.ird.yahoo.com> Hi I used the command ogrinfo -ro -summary gltp:/vrf/c:/ms4w/apps/some_folder/data/DNC13/H1316030 on a folder containing digital nautical charts to get the listing below. I then created the map file using the info for layer 14 ( hydarea at hyd(*)_area (Polygon) ) and using the extents from orginfo with hydarea at hyd(*)_area as its parameter. I tried testing the map file using shp2img but keep getting the error "Projection library error. No such file or directory" From what I can find from web searching etc, this error description covers a lot of different errors. From what i can see from hydarea at hyd, hyd is a subfolder of H1316030 i.e C:\ms4w\apps\some_folder\data\DNC13\H1316030\HYD and hydarea is file inside that folder with the extension .AFT Can anyone offer any help Thanks Derek Map File----> # # Digital Nautical Maps for H1316030 # (14: hydarea at hyd(*)_area (Polygon)) # LAYER NAME "hydarea_hyd_area" TYPE POLYGON CONNECTIONTYPE OGR # MapServer Layer = ogrinfo layer - 1 i.e. 14-1 = 13 CONNECTION "C:/ms4w/Apps/some_folder/data/DNC13/H1316030,13" # 14: hydarea at hyd(*)_area (Polygon) STATUS ON PROJECTION "init=epsg:4326" END # End Projection METADATA "wms_title" "hydarea at hyd(*)_area" "wms_abstract" "hydarea at hyd(*)_area abstract goes here ...." "wms_srs" "epsg:4326" "wms_name" "hydarea" # [minx_left] [miny_bottom] [maxx_right] [maxy_top] "wms_extent" "-118.646797 32.933327 -118.475853 33.066673" "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/some_folder/dnc2.map" END # End Metadata CLASS NAME "hydarea" COLOR 255 0 0 END # End Class END # End Layer ORGINFO output-----------> Layer name: hydarea at hyd(*)_area Geometry: Polygon Feature Count: 63 Extent: (-118.646797, 32.933327) - (-118.475853, 33.066673) Layer SRS WKT: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4269"]] id: Integer (10.0) f_code: String (5.0) acc: Integer (5.0) cvh: Real (15.6) cvl: Real (15.6) tile_id: Integer (5.0) fac_id: Integer (10.0) 1: buildnga at cul(*)_area (Polygon) 2: transl at cul(*)_line (Line String) 3: buildngp at cul(*)_point (Point) 4: commp at cul(*)_point (Point) 5: industp at cul(*)_point (Point) 6: ecrarea at ecr(*)_area (Polygon) 7: foreshoa at ecr(*)_area (Polygon) 8: coastl at ecr(*)_line (Line String) 9: foreshol at ecr(*)_line (Line String) 10: islandp at ecr(*)_point (Point) 11: ecrtext at ecr(*)_text (Point) 12: envarea at env(*)_area (Polygon) 13: tidep at env(*)_point (Point) 14: hydarea at hyd(*)_area (Polygon) 15: hydline at hyd(*)_line (Line String) 16: botcharp at hyd(*)_point (Point) 17: soundp at hyd(*)_point (Point) 18: embanka at lcr(*)_area (Polygon) 19: lcrline at lcr(*)_line (Line String) 20: limbndya at lim(*)_area (Polygon) 21: limbndya at lim(*)_area (Polygon) 22: distl at lim(*)_line (Line String) 23: distl at lim(*)_line (Line String) 24: limbndyl at lim(*)_line (Line String) 25: limbndyl at lim(*)_line (Line String) 26: routel at lim(*)_line (Line String) 27: routel at lim(*)_line (Line String) 28: limbndyp at lim(*)_point (Point) 29: leadingl at nav(*)_line (Line String) 30: buoybcnp at nav(*)_point (Point) 31: lightsp at nav(*)_point (Point) 32: dangera at obs(*)_area (Polygon) 33: hazarda at obs(*)_area (Polygon) 34: obstruca at obs(*)_area (Polygon) 35: reefa at obs(*)_area (Polygon) 36: hazardl at obs(*)_line (Line String) 37: dangerp at obs(*)_point (Point) 38: hazardp at obs(*)_point (Point) 39: obstrucp at obs(*)_point (Point) 40: ruinsp at obs(*)_point (Point) 41: piera at por(*)_area (Polygon) 42: structra at por(*)_area (Polygon) 43: pierl at por(*)_line (Line String) 44: structrl at por(*)_line (Line String) 45: relline at rel(*)_line (Line String) 46: relpoint at rel(*)_point (Point) 47: dqyarea at dqy(*)_area (Polygon) 48: tileref at tileref(*)_area (Polygon) 49: libref at libref(*)_line (Line String) __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Jul 22 08:45:03 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 22 Jul 2008 10:45:03 -0500 Subject: [mapserver-users] More info on DNC problem In-Reply-To: <861895.75430.qm@web23003.mail.ird.yahoo.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBEF5@s-sp22.pca.state.mn.us> Derek, It sounds like MapServer can't find your proj4 library. You can add a line to the map file to tell MapServer where to look for proj. Take a look at: http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj If your first test is to just see if you can read the data, strip all of the projection blocks out of your map file. If you aren't trying to re-project or serve the data us as a WMS, you don't need to specify the projection. Just make sure that your extent is expressed in the units of the underlying projection. (decimal degrees) David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Derek Bain Sent: Tuesday, July 22, 2008 10:35 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] More info on DNC problem Hi I used the command ogrinfo -ro -summary gltp:/vrf/c:/ms4w/apps/some_folder/data/DNC13/H1316030 on a folder containing digital nautical charts to get the listing below. I then created the map file using the info for layer 14 ( hydarea at hyd(*)_area (Polygon) ) and using the extents from orginfo with hydarea at hyd(*)_area as its parameter. I tried testing the map file using shp2img but keep getting the error "Projection library error. No such file or directory" From what I can find from web searching etc, this error description covers a lot of different errors. From what i can see from hydarea at hyd, hyd is a subfolder of H1316030 i.e C:\ms4w\apps\some_folder\data\DNC13\H1316030\HYD and hydarea is file inside that folder with the extension .AFT Can anyone offer any help Thanks Derek Map File----> # # Digital Nautical Maps for H1316030 # (14: hydarea at hyd(*)_area (Polygon)) # LAYER NAME "hydarea_hyd_area" TYPE POLYGON CONNECTIONTYPE OGR # MapServer Layer = ogrinfo layer - 1 i.e. 14-1 = 13 CONNECTION "C:/ms4w/Apps/some_folder/data/DNC13/H1316030,13" # 14: hydarea at hyd(*)_area (Polygon) STATUS ON PROJECTION "init=epsg:4326" END # End Projection METADATA "wms_title" "hydarea at hyd(*)_area" "wms_abstract" "hydarea at hyd(*)_area abstract goes here ....." "wms_srs" "epsg:4326" "wms_name" "hydarea" # [minx_left] [miny_bottom] [maxx_right] [maxy_top] "wms_extent" "-118.646797 32.933327 -118.475853 33.066673" "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/some_folder/ dnc2.map" END # End Metadata CLASS NAME "hydarea" COLOR 255 0 0 END # End Class END # End Layer ORGINFO output-----------> Layer name: hydarea at hyd(*)_area Geometry: Polygon Feature Count: 63 Extent: (-118.646797, 32.933327) - (-118.475853, 33.066673) Layer SRS WKT: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4269"]] id: Integer (10.0) f_code: String (5.0) acc: Integer (5.0) cvh: Real (15..6) cvl: Real (15.6) tile_id: Integer (5.0) fac_id: Integer (10.0) 1: buildnga at cul(*)_area (Polygon) 2: transl at cul(*)_line (Line String) 3: buildngp at cul(*)_point (Point) 4: commp at cul(*)_point (Point) 5: industp at cul(*)_point (Point) 6: ecrarea at ecr(*)_area (Polygon) 7: foreshoa at ecr(*)_area (Polygon) 8: coastl at ecr(*)_line (Line String) 9: foreshol at ecr(*)_line (Line String) 10: islandp at ecr(*)_point (Point) 11: ecrtext at ecr(*)_text (Point) 12: envarea at env(*)_area (Polygon) 13: tidep at env(*)_point (Point) 14: hydarea at hyd(*)_area (Polygon) 15: hydline at hyd(*)_line (Line String) 16: botcharp at hyd(*)_point (Point) 17: soundp at hyd(*)_point (Point) 18: embanka at lcr(*)_area (Polygon) 19: lcrline at lcr(*)_line (Line String) 20: limbndya at lim(*)_area (Polygon) 21: limbndya at lim(*)_area (Polygon) 22: distl at lim(*)_line (Line String) 23: distl at lim(*)_line (Line String) 24: limbndyl at lim(*)_line (Line String) 25: limbndyl at lim(*)_line (Line String) 26: routel at lim(*)_line (Line String) 27: routel at lim(*)_line (Line String) 28: limbndyp at lim(*)_point (Point) 29: leadingl at nav(*)_line (Line String) 30: buoybcnp at nav(*)_point (Point) 31: lightsp at nav(*)_point (Point) 32: dangera at obs(*)_area (Polygon) 33: hazarda at obs(*)_area (Polygon) 34: obstruca at obs(*)_area (Polygon) 35: reefa at obs(*)_area (Polygon) 36: hazardl at obs(*)_line (Line String) 37: dangerp at obs(*)_point (Point) 38: hazardp at obs(*)_point (Point) 39: obstrucp at obs(*)_point (Point) 40: ruinsp at obs(*)_point (Point) 41: piera at por(*)_area (Polygon) 42: structra at por(*)_area (Polygon) 43: pierl at por(*)_line (Line String) 44: structrl at por(*)_line (Line String) 45: relline at rel(*)_line (Line String) 46: relpoint at rel(*)_point (Point) 47: dqyarea at dqy(*)_area (Polygon) 48: tileref at tileref(*)_area (Polygon) 49: libref at libref(*)_line (Line String) ________________________________ Not happy with your email address? Get the one you really want - millions of new email addresses available now at Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Tue Jul 22 09:24:41 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 22 Jul 2008 09:24:41 -0700 (PDT) Subject: [mapserver-users] Problems with Postgres table's name in LAYER'S DATA In-Reply-To: <5a9686e80807220348k6e927badg933a1334801c13be@mail.gmail.com> Message-ID: <583358.65635.qm@web38202.mail.mud.yahoo.com> Hi all, I have several tables wich begins with 0 or 1 like 001_street_names. I don't know how to handle it within DATA, because specifying "the_geom FROM 001_street_names" doesn't work. So, it must be written as "the_geom FROM "001_street_names"" but the parser complains, is there a way to handle this ? Thanks in advance IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Maher_Karim at dorsch.com.jo Tue Jul 22 09:38:45 2008 From: Maher_Karim at dorsch.com.jo (Maher Karim) Date: Tue, 22 Jul 2008 19:38:45 +0300 Subject: [mapserver-users] Problems with Postgres table's name in LAYER'S DATA In-Reply-To: <583358.65635.qm@web38202.mail.mud.yahoo.com> Message-ID: Dear Carlos, Try the following Data 'the_geom FROM "001_street_names" using unique gid' Do not forget to check the table permission. Regards Maher Abdel Karim |---------+---------------------------------------> | | Carlos Ruiz | | | | | | Sent by: | | | mapserver-users-bounces at list| | | s.osgeo.org | | | | | | | | | 07/22/2008 07:24 PM | | | Please respond to | | | boolean10001 | |---------+---------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: MAPSERVER USERS | | cc: | | Subject: [mapserver-users] Problems with Postgres table's name in LAYER'S DATA | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi all, I have several tables wich begins with 0 or 1 like 001_street_names. I don't know how to handle it within DATA, because specifying "the_geom FROM 001_street_names" doesn't work. So, it must be written as "the_geom FROM "001_street_names"" but the parser complains, is there a way to handle this ? Thanks in advance IC Carlos Ruiz _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From geothorne at gmail.com Tue Jul 22 10:42:14 2008 From: geothorne at gmail.com (Christopher Thorne) Date: Tue, 22 Jul 2008 13:42:14 -0400 Subject: [mapserver-users] RegEx bug php mapscript Message-ID: <48861BF6.7040907@googlemail.com> Hello all, I found a tricky bug related to RegEx in php mapscript (5.1 build 2600 from MS4W) and 5.1 perl mapscript. In case this is not know. When creating a class with an expression I created a typo that created two different responses between php mapscript vs. perl mapscript. Here is the case. Wrong (with typo see first | after /) : ------ CLASS #1 NAME "Below $500 SF" EXPRESSION /|^[1-4][0-9][0-9]$|^[1-9][0-9]$|^[1-9]$/ ... Correct: ------- CLASS #1 NAME "Below $500 SF" EXPRESSION /^[1-4][0-9][0-9]$|^[1-9][0-9]$|^[1-9]$/ RESULTS ======= In php_mapscript: It ignored the | or treated it as a character, which allowed the statement to work the way I wanted it to. (without the |) In perl mapscript: Had the correct response collecting all values in to the single class. Allowing me to see my typo. Regards, Chris -- Geomatics (GIS) Specialist, Christopher R. Thorne, geothorne at gmail.com ----------------------------- From guillaume.sueur at neogeo-online.net Tue Jul 22 10:54:25 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 22 Jul 2008 19:54:25 +0200 Subject: [mapserver-users] AGG - transparent PNG with QUANTIZE OPTIONS in MS4W Message-ID: <48861ED1.9000803@neogeo-online.net> Hi list, I was wondering if transparent PNG with quantize options were available in MS4W as it requires the option --with-experimental-png . Thanks -- Guillaume From nipapada at gmail.com Tue Jul 22 12:39:21 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=E9=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Tue, 22 Jul 2008 22:39:21 +0300 Subject: [mapserver-users] Data for Mapserver. In-Reply-To: <82ba77b80807201106x425b3feai41dc0786376e387d@mail.gmail.com> References: <48837C81.2050904@gmail.com> <82ba77b80807201106x425b3feai41dc0786376e387d@mail.gmail.com> Message-ID: <48863769.9070604@gmail.com> O/H Matthew Pettis ??????: > The new files tell you more information above and beyond what you > already had in the .dbf, .shp, and .shx files. For example, the .prj > file should contain information about the projection that the > coordinates are in... That can be used when you need to merge it's > information with maps from other projections. As to .sbn, .sbx, I > can't tell you, but you should be able to google it or look up > shapefile specs. > > Thanks, > Matt > > On Sun, Jul 20, 2008 at 12:57 PM, ????? ????????? wrote: > >> Hallo to everyone. >> I have some data of a city and i want to retrieve a map from them. >> I have done other examples with data that have the following file >> extentions... >> .dbf .shp .shx. >> >> But the new dataset i have found have the following file extentions... >> .dbf .prj .sbn .sbx .shp .shx >> >> Does anybody know a way i can use these data? >> Thanks... >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > Is there any way i can find out what layers do these files contain? Because i can retrieve a map ,but an empty map... I tried to read the data using ogr writing in the mapfile LAYER NAME "city" STATUS DEFAULT TYPE line CONNECTIONTYPE OGR CONNECTION v_roads_arc.shp CLASS STYLE COLOR 0 0 0 END END END but unfortunately the result is the same... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jul 22 13:18:33 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 Jul 2008 16:18:33 -0400 Subject: [mapserver-users] AGG - transparent PNG with QUANTIZE OPTIONS in MS4W In-Reply-To: <48861ED1.9000803@neogeo-online.net> References: <48861ED1.9000803@neogeo-online.net> Message-ID: <364E9839-6BDF-4EEC-A881-3BA64EE58B89@gatewaygeomatics.com> On 22-Jul-08, at 1:54 PM, Guillaume Sueur wrote: > Hi list, > > I was wondering if transparent PNG with quantize options were > available in MS4W as it requires the option --with-experimental-png . > > Thanks > Yes this was recently requested and added for the 5.2.0 upgrade package. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Optional RGBA palette png output # ---------------------------------------------------------------------- # Enable support for quantization of rgba pngs #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !IFDEF PNG_DIR RGBA_PNG_ENABLED=-DUSE_RGBA_PNG !ENDIF --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From guillaume.sueur at neogeo-online.net Tue Jul 22 13:27:41 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 22 Jul 2008 22:27:41 +0200 Subject: [mapserver-users] AGG - transparent PNG with QUANTIZE OPTIONS in MS4W In-Reply-To: <364E9839-6BDF-4EEC-A881-3BA64EE58B89@gatewaygeomatics.com> References: <48861ED1.9000803@neogeo-online.net> <364E9839-6BDF-4EEC-A881-3BA64EE58B89@gatewaygeomatics.com> Message-ID: <488642BD.2090301@neogeo-online.net> Thanks Jeff, I didn't know there was an upgrade package and was still using 5.0.2 version ! hmmm, actually it is not so obvious in the main page ;-) Regards, Guillaume Jeff McKenna a ?crit : > On 22-Jul-08, at 1:54 PM, Guillaume Sueur wrote: > >> Hi list, >> >> I was wondering if transparent PNG with quantize options were >> available in MS4W as it requires the option --with-experimental-png . >> >> Thanks >> > > Yes this was recently requested and added for the 5.2.0 upgrade package. > > #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > # Optional RGBA palette png output > # ---------------------------------------------------------------------- > # Enable support for quantization of rgba pngs > #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > !IFDEF PNG_DIR > RGBA_PNG_ENABLED=-DUSE_RGBA_PNG > !ENDIF > > > > --- > Jeff McKenna > FOSS4G 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 jmckenna at gatewaygeomatics.com Tue Jul 22 13:58:01 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 Jul 2008 16:58:01 -0400 Subject: [mapserver-users] AGG - transparent PNG with QUANTIZE OPTIONS in MS4W In-Reply-To: <488642BD.2090301@neogeo-online.net> References: <48861ED1.9000803@neogeo-online.net> <364E9839-6BDF-4EEC-A881-3BA64EE58B89@gatewaygeomatics.com> <488642BD.2090301@neogeo-online.net> Message-ID: On 22-Jul-08, at 4:27 PM, Guillaume Sueur wrote: > Thanks Jeff, I didn't know there was an upgrade package and was > still using 5.0.2 version ! > > hmmm, actually it is not so obvious in the main page ;-) > > Regards, > I recommend following the MS4W mailing list for that exact reason. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From tchaddad at gmail.com Tue Jul 22 14:57:22 2008 From: tchaddad at gmail.com (TC Haddad) Date: Tue, 22 Jul 2008 14:57:22 -0700 Subject: [mapserver-users] Data for Mapserver. In-Reply-To: <48863769.9070604@gmail.com> References: <48837C81.2050904@gmail.com> <82ba77b80807201106x425b3feai41dc0786376e387d@mail.gmail.com> <48863769.9070604@gmail.com> Message-ID: <25de2c7c0807221457w7f668ed2se1f38516b51fb45f@mail.gmail.com> You need to look at the .prj file and see what the projection of the data is, and compare it to your map file extents. It is possible that you can't see the data at the moment because it is in a different coordinate space, and lies outside of the extents of your current map. Tanya 2008/7/22 ????? ????????? : > Is there any way i can find out what layers do these files contain? > Because i can retrieve a map ,but an empty map... > I tried to read the data using ogr writing in the mapfile > > > LAYER > NAME "city" > STATUS DEFAULT > TYPE line > CONNECTIONTYPE OGR > CONNECTION v_roads_arc.shp > CLASS > STYLE > COLOR 0 0 0 > END > END > END > > but unfortunately the result is the same... > > _______________________________________________ > 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 stefan.schwarzer at grid.unep.ch Wed Jul 23 00:19:51 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Wed, 23 Jul 2008 09:19:51 +0200 Subject: [mapserver-users] queryByPoint + PostGIS layers + USING statement In-Reply-To: <20080721132103.GB25992@42.dk> References: <20080721132103.GB25992@42.dk> Message-ID: <14A7D549-A899-4634-B560-E0EB8C05DBD7@grid.unep.ch> > If removing the superfluous ) doesn't solve your problem, you will > need > to elaborate on what "doesn't like it" means. Does it give an error > message? No, no error message... Query of a polygon does result in stalling the whole process. I striped the map file, so that only one single layer appears. Looks like this now: LAYER NAME co2_mdg_total STATUS ON CONNECTIONTYPE postgis CONNECTION 'user=ss_admin password=450_data dbname=geodataportal' TYPE POLYGON DATA "the_geom FROM ( SELECT c.the_geom, c.name, d.id_country AS uid FROM co2_mdg_total AS d RIGHT JOIN xxx ) AS foo USING UNIQUE uid USING srid=4326" CLASSITEM 'value' CLASS NAME '' EXPRESSION ([value]=-10001) TEMPLATE 'empty space' END # CLASS CLASS NAME 'Units: Million Metric Tons of CO2' EXPRESSION ([value]=-110003) TEMPLATE 'units as title in legend' END # CLASS CLASS NAME 'no data' EXPRESSION ([value]=-9999) COLOR 230 230 230 TEMPLATE 'dummy' #OUTLINECOLOR 147 190 238 END # CLASS CLASS NAME '0 to 1197596' EXPRESSION ([value]<=1197596) COLOR 255 255 178 TEMPLATE 'dummy' #OUTLINECOLOR 147 190 238 LABEL FONT arial TYPE truetype ANTIALIAS false SIZE 7 COLOR 200 50 70 POSITION AUTO PARTIALS FALSE FORCE true OFFSET 0 5 #OUTLINECOLOR 0 0 0 END END # CLASS ..... From stefan.schwarzer at grid.unep.ch Wed Jul 23 00:22:57 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Wed, 23 Jul 2008 09:22:57 +0200 Subject: [mapserver-users] Add Content to the Legend In-Reply-To: <4884A55F.5157.008F.0@dnr.state.mn.us> References: <59FB0954-D580-408C-88A0-A7D0192BB89F@grid.unep.ch> <4884A55F.5157.008F.0@dnr.state.mn.us> Message-ID: <2D7FFE6C-A789-4E26-90EB-57D55DA15D00@grid.unep.ch> > What do your faked classes look like? Looks like this: http://www.pixentral.com/show.php?picture=1wRKCRDAq8lKdLJzzaCYoLHHJeFUCu0 That's for the statistical data. The TIF data would display a pre- prepared GIF legend, plus the UNITS info. >> I would like to add information about the Units of the selected >> variable into the legend. When using vector data, this wasn't really >> the problem. I kind of faked empty classes to insert that >> information. >> >> But now, I wonder how to achieve this when using TIF images. As the >> TIF is already color coded and regrouped into a couple of classes, >> using faked CLASS values, results in the display of zero pixels - >> nothing is being displayed. >> >> Is there another way to "slip" in some information into the legend? >> Or >> is the HTML legend the only alternative? >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From beartreeyoga at yahoo.co.uk Wed Jul 23 01:33:26 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Wed, 23 Jul 2008 08:33:26 +0000 (GMT) Subject: [mapserver-users] DCN / Mapfile problems Message-ID: <962089.1561.qm@web23007.mail.ird.yahoo.com> Hi I now get this from shp2img, any ideas. I know on the command line for ogrinfo, the parameter hydarea at hyd(*)_area must be in double quotes or it does not work. For some reason, single quotes suppresses the output. Any ideas on how to further debug this. Note: I am running on Windows XP. My map file is below. Thanks Derek shp2img output ------------------>> C:\ms4w\Apache\cgi-bin>shp2img.exe -m C:\ms4w\apps\SeeTrack_Missions\dnc2.map -o C:\ms4w\apps\SeeTrack_Missions\test.png msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area' .
msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/C:/ms4w/apps/SeeTrack_Missions/data/DNC13/H1316030'. File not found or unsupported format .
MAPFILE ----------------------->> NAME "Test" SIZE 600 400 UNITS DD # force PROJ.4 to use this value CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/" # [minx_left] [miny_bottom] [maxx_right] [maxy_top] EXTENT -180 -90 180 90 # whole world PROJECTION "init=epsg:4326" END # Set Debug file CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/ms_error.txt" # set recommended level for debugging mapfiles DEBUG 3 LAYER NAME "hydarea_hyd_area" GROUP "DNC13" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "gltp:/vrf/C:/ms4w/apps/SeeTrack_Missions/data/DNC13/H1316030" DATA '"hydarea at hyd(*)_area"' STATUS ON PROJECTION "init=epsg:4326" END # End Projection METADATA "wms_title" "hydarea at hyd(*)_area" "wms_abstract" "hydarea at hyd(*)_area abstract goes here ...." "wms_srs" "epsg:4326" "wms_name" "hydarea" # [minx_left] [miny_bottom] [maxx_right] [maxy_top] "wms_extent" "-118.646797 32.933327 -118.475853 33.066673" "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/SeeTrack_Missions/dnc2.map" END # End Metadata CLASS NAME "hydarea" COLOR 255 0 0 END # End Class END # End Layer END __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From enri at 163.com Wed Jul 23 02:03:59 2008 From: enri at 163.com (enri) Date: Wed, 23 Jul 2008 17:03:59 +0800 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? Message-ID: <200807231703407312744@163.com> Hi, guys, I am planning to develop a stand-alone Mapfile editing tool for mapserver based map authoring by a way of WYSWYG, including symbol editing, because I find it's so difficult to use a text editor authoring a mapfile to render beautiful map. But I am not sure if it's usefule for you, or someone else has already done that. If you think that would be useful, please give me a vote and that will encourage me to contribute faster to the community. But if you find I am repeating others work, be kindly tell me please. enri 2008-07-23 From Schoenhammer.Herbert at Regensburg.de Wed Jul 23 04:43:35 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer,_Herbert?=) Date: Wed, 23 Jul 2008 13:43:35 +0200 Subject: [mapserver-users] Again: Some Problems with WMS-GetLegendGraphic using aggand pixmaps Message-ID: Hi list, I have already described my problem with WMS-GetLegendgraphic and AGG-Library (posted on 2008/05/07 with subject "Some Problems with WMS-GetLegendGraphic using aggand pixmaps"). But i did not get any reply until now. So I made some tests with Mapserver 5.2.0 and i recognized the same problems as posted earlier. Now i want to publish an example. Using GD as driver for creating the output, i get the correct legend-image: The definition looks like: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END Only changing the output-driver, I get the following picture: The definition looks like: OUTPUTFORMAT MIMETYPE "image/png" NAME 'AGG_Q' DRIVER AGG/PNG EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END The problem using AGG is this: ======================= If using a pixmap with "KEYIMAGE ...." CLASS NAME "Topografische Karte 1:50.000" KEYIMAGE "/data/raster/topo_karten/tk50_legende.png" END only a part of the raster-image is used for generating the legend (the right side of th picture, the middle of the picture). Does anybody know, if this a problem of my map-file or this is a mapserver-bug ? I would be glad, if anybody can examine this persisting problem ! greetings Herbert Schoenhammer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild (Ger?teunabh?ngige Bitmap) 1.jpg Type: image/jpeg Size: 2649 bytes Desc: Bild (Ger?teunabh?ngige Bitmap) 1.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild (Ger?teunabh?ngige Bitmap) 2.jpg Type: image/jpeg Size: 2425 bytes Desc: Bild (Ger?teunabh?ngige Bitmap) 2.jpg URL: From jmckenna at gatewaygeomatics.com Wed Jul 23 04:59:08 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 Jul 2008 07:59:08 -0400 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? In-Reply-To: <200807231703407312744@163.com> References: <200807231703407312744@163.com> Message-ID: <00C4960D-99A6-47A7-8D0D-0F77DFE737A0@gatewaygeomatics.com> On 23-Jul-08, at 5:03 AM, enri wrote: > Hi, guys, > > I am planning to develop a stand-alone Mapfile editing tool for > mapserver based map authoring by a way of WYSWYG, including symbol > editing, because I find it's so difficult to use a text editor > authoring a mapfile to render beautiful map. But I am not sure if > it's usefule for you, or someone else has already done that. > > If you think that would be useful, please give me a vote and that > will encourage me to contribute faster to the community. But if you > find I am repeating others work, be kindly tell me please. > > enri I can tell you that Quantum GIS' ability to style layers in a desktop environment and export the layers as a mapfile is quite nice. And there is also a mapfile editor named Mapstorer that runs on a database backend. But it is a huge task to maintain such a project, as MapServer is constantly changing and other technologies change (see MapLab). That said, yes we'd all love the perfect tool :) --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From cavallini at faunalia.it Wed Jul 23 05:23:00 2008 From: cavallini at faunalia.it (Paolo Cavallini) Date: Wed, 23 Jul 2008 14:23:00 +0200 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? In-Reply-To: <00C4960D-99A6-47A7-8D0D-0F77DFE737A0@gatewaygeomatics.com> References: <200807231703407312744@163.com> <00C4960D-99A6-47A7-8D0D-0F77DFE737A0@gatewaygeomatics.com> Message-ID: <488722A4.3020404@faunalia.it> Jeff McKenna ha scritto: > On 23-Jul-08, at 5:03 AM, enri wrote: >> I am planning to develop a stand-alone Mapfile editing tool for >> mapserver based map authoring by a way of WYSWYG, including symbol >> editing, because I find it's so difficult to use a text editor >> authoring a mapfile to render beautiful map. But I am not sure if it's >> usefule for you, or someone else has already done that. >> >> If you think that would be useful, please give me a vote and that will >> encourage me to contribute faster to the community. But if you find I >> am repeating others work, be kindly tell me please. ... > I can tell you that Quantum GIS' ability to style layers in a desktop > environment and export the layers as a mapfile is quite nice. And there > is also a mapfile editor named Mapstorer that runs on a database backend. > > But it is a huge task to maintain such a project, as MapServer is > constantly changing and other technologies change (see MapLab). That > said, yes we'd all love the perfect tool :) I think you really need a proper GIS to preview whether your mapfile returns what you need, so I think the qgis approach is a winning one. Please note that the current approach is light and fast, as it is based on a standalone tool in python (so easy to maintain and change as mapfile syntax changes) who takes a qgis project and converts it in a mapfile. I think in the long term a nicer approach would be to use a standard description for both qgis and mapserver (possibly other projects also), with additional tags used for desktop gis and invisible to mapserver, so no conversions would be necessary. SLD might be a good approach in this sense. All the best. pc -- Paolo Cavallini, see: * http://www.faunalia.it/pc * From thomas.bonfort at gmail.com Wed Jul 23 05:34:11 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 23 Jul 2008 14:34:11 +0200 Subject: [mapserver-users] Again: Some Problems with WMS-GetLegendGraphic using aggand pixmaps In-Reply-To: References: Message-ID: Hi, what you mean is that the key image isn't scaled, as it is with GD ? If so, can you open a bug for this issue, and assign it to me (tbonfort) thanks, -- Thomas Bonfort Camptocamp France SAS http://www.camptocamp.com On Wed, Jul 23, 2008 at 1:43 PM, Sch?nhammer, Herbert wrote: > Hi list, > > I have already described my problem with WMS-GetLegendgraphic and > AGG-Library (posted on 2008/05/07 with subject "Some Problems with > WMS-GetLegendGraphic using aggand pixmaps"). > > But i did not get any reply until now. So I made some tests with Mapserver > 5.2.0 and i recognized the same problems as posted earlier. > > Now i want to publish an example. Using GD as driver for creating the > output, i get the correct legend-image: > > > The definition looks like: > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > IMAGEMODE RGBA > TRANSPARENT ON > END > > > Only changing the output-driver, I get the following picture: > > > The definition looks like: > > OUTPUTFORMAT > MIMETYPE "image/png" > NAME 'AGG_Q' > DRIVER AGG/PNG > EXTENSION PNG > IMAGEMODE RGBA > TRANSPARENT ON > END > > The problem using AGG is this: > ======================= > > If using a pixmap with "KEYIMAGE ?." > > CLASS > NAME "Topografische Karte 1:50.000" > KEYIMAGE "/data/raster/topo_karten/tk50_legende.png" > END > > only a part of the raster-image is used for generating the legend (the right > side of th picture, the middle of the picture). > > > Does anybody know, if this a problem of my map-file or this is a > mapserver-bug ? > > I would be glad, if anybody can examine this persisting problem ! > > greetings > > Herbert Schoenhammer > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From beartreeyoga at yahoo.co.uk Wed Jul 23 06:16:26 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Wed, 23 Jul 2008 13:16:26 +0000 (GMT) Subject: [mapserver-users] More info on DCN problem and possible gdal/ogr problem Message-ID: <236992.78959.qm@web23008.mail.ird.yahoo.com> Hi If I run the command ogrinfo -ro -summary gltp:/vrf/c:/ms4w/apps/seetrack_missions/data/DNC13/H1316030 "hydarea at hyd(*)_area" from C:\Program Files\FWTools2.2.0\bin i get INFO: Open of `gltp:/vrf/c:/ms4w/apps/seetrack_missions/data/DNC13/H1316030' using driver `OGDI' successful. Layer name: hydarea at hyd(*)_area Geometry: Polygon HOWEVER, if I run it from C:\ms4w\tools\gdal-ogr i get FAILURE: Unable to open datasource `gltp:/vrf/c:/ms4w/apps/seetrack_missions/data/DNC13/H 1316030' with the following drivers. ESRI Shapefile OGDI I can change the path in SetEnv.bat but this only works for the command line. MapServer still seems to use the files in C:\ms4w\tools\gdal-ogr. I copied the existing contents of the C:\ms4w\tools\gdal-ogr folder to a temp folder and then copied the contents of C:\Program Files\FWTools2.2.0\bin to gdal-org folder. gdalinfo now works but the shp2img still fails with a "... OGR error. Open failed for OGR connection .... " error message. Also I noticed that ogr2ogr pops up a windows message box informing me that ogr2ogr.exe is not a valid Win32 application Has anyone had similar problems, understands what is happening or has any thoughts thanks Derek __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Jul 23 06:20:30 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 23 Jul 2008 08:20:30 -0500 Subject: [mapserver-users] More info on DCN problem and possible gdal/ogrproblem In-Reply-To: <236992.78959.qm@web23008.mail.ird.yahoo.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBEF8@s-sp22.pca.state.mn.us> It is possible that the ogr in your FWTools installation supports additional formats that the ogr from MS4W doesn't. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Derek Bain Sent: Wednesday, July 23, 2008 8:16 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] More info on DCN problem and possible gdal/ogrproblem Hi If I run the command ogrinfo -ro -summary gltp:/vrf/c:/ms4w/apps/seetrack_missions/data/DNC13/H1316030 "hydarea at hyd(*)_area" from C:\Program Files\FWTools2.2.0\bin i get INFO: Open of `gltp:/vrf/c:/ms4w/apps/seetrack_missions/data/DNC13/H1316030' using driver `OGDI' successful. Layer name: hydarea at hyd(*)_area Geometry: Polygon HOWEVER, if I run it from C:\ms4w\tools\gdal-ogr i get FAILURE: Unable to open datasource `gltp:/vrf/c:/ms4w/apps/seetrack_missions/data/DNC13/H 1316030' with the following drivers. ESRI Shapefile OGDI I can change the path in SetEnv.bat but this only works for the command line. MapServer still seems to use the files in C:\ms4w\tools\gdal-ogr. I copied the existing contents of the C:\ms4w\tools\gdal-ogr folder to a temp folder and then copied the contents of C:\Program Files\FWTools2.2.0\bin to gdal-org folder. gdalinfo now works but the shp2img still fails with a "... OGR error. Open failed for OGR connection .... " error message. Also I noticed that ogr2ogr pops up a windows message box informing me that ogr2ogr.exe is not a valid Win32 application Has anyone had similar problems, understands what is happening or has any thoughts thanks Derek ________________________________ Not happy with your email address? Get the one you really want - millions of new email addresses available now at Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at houstonengineeringinc.com Wed Jul 23 07:24:13 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Wed, 23 Jul 2008 09:24:13 -0500 Subject: [mapserver-users] geodatabase and annotation feature class Message-ID: <2EF6E1058C047344B4DE0FD141119167C9DA06@hex01.houstonengineeringinc.com> Hi List, Just curious if anyone else has been successful at using either an annotation feature class in an ESRI personal geodatabase or SDE database? The OGR documentation doesn't explicitly say whether it supports rendering an annotation feature class with mapserver. Any info would be appreciated. Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstonengineeringinc.com Website: www.houstonengineeringinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Jul 23 08:53:23 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 23 Jul 2008 10:53:23 -0500 Subject: [mapserver-users] Add Content to the Legend In-Reply-To: <2D7FFE6C-A789-4E26-90EB-57D55DA15D00@grid.unep.ch> References: <59FB0954-D580-408C-88A0-A7D0192BB89F@grid.unep.ch> <4884A55F.5157.008F.0@dnr.state.mn.us> <2D7FFE6C-A789-4E26-90EB-57D55DA15D00@grid.unep.ch> Message-ID: <48870DA3.5157.008F.0@dnr.state.mn.us> Sorry, I mean in terms of a mapfile definition. Steve >>> On 7/23/2008 at 2:22 AM, in message <2D7FFE6C-A789-4E26-90EB-57D55DA15D00 at grid.unep.ch>, Stefan Schwarzer wrote: >> What do your faked classes look like? > > Looks like this: > > http://www.pixentral.com/show.php?picture=1wRKCRDAq8lKdLJzzaCYoLHHJeFUCu0 > > That's for the statistical data. The TIF data would display a pre- > prepared GIF legend, plus the UNITS info. > >>> I would like to add information about the Units of the selected >>> variable into the legend. When using vector data, this wasn't really >>> the problem. I kind of faked empty classes to insert that >>> information. >>> >>> But now, I wonder how to achieve this when using TIF images. As the >>> TIF is already color coded and regrouped into a couple of classes, >>> using faked CLASS values, results in the display of zero pixels - >>> nothing is being displayed. >>> >>> Is there another way to "slip" in some information into the legend? >>> Or >>> is the HTML legend the only alternative? >>> From yjacolin at free.fr Wed Jul 23 12:13:09 2008 From: yjacolin at free.fr (Yves Jacolin) Date: Wed, 23 Jul 2008 21:13:09 +0200 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? In-Reply-To: <200807231703407312744@163.com> References: <200807231703407312744@163.com> Message-ID: <200807232113.09948.yjacolin@free.fr> Le mercredi 23 juillet 2008 11:03, enri a ?crit?: > Hi, guys, > > I am planning to develop a stand-alone Mapfile editing tool for mapserver > based map authoring by a way of WYSWYG, including symbol editing, because I > find it's so difficult to use a text editor authoring a mapfile to render > beautiful map. But I am not sure if it's usefule for you, or someone else > has already done that. > > If you think that would be useful, please give me a vote and that will > encourage me to contribute faster to the community. But if you find I am > repeating others work, be kindly tell me please. > > enri > 2008-07-23 Hi Enri, +1 for such application, and +1 for Paolo Cavallini as well :) Regards, Y. -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From jkapalczynski at ci.maple-grove.mn.us Wed Jul 23 12:35:14 2008 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 23 Jul 2008 14:35:14 -0500 Subject: [mapserver-users] geodatabase and annotation feature class In-Reply-To: <2EF6E1058C047344B4DE0FD141119167C9DA06@hex01.houstonengineeringinc.com> References: <2EF6E1058C047344B4DE0FD141119167C9DA06@hex01.houstonengineeringinc.com> Message-ID: I am in the same boat...have been asking about this a couple times over the last few months.... Any help would be appreciated.... Brian you find anything please let me know... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fischer, Brian Sent: Wednesday, July 23, 2008 9:24 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] geodatabase and annotation feature class Hi List, Just curious if anyone else has been successful at using either an annotation feature class in an ESRI personal geodatabase or SDE database? The OGR documentation doesn't explicitly say whether it supports rendering an annotation feature class with mapserver. Any info would be appreciated. Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstonengineeringinc.com Website: www.houstonengineeringinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at gmail.com Wed Jul 23 13:04:40 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Wed, 23 Jul 2008 15:04:40 -0500 Subject: [mapserver-users] geodatabase and annotation feature class In-Reply-To: References: <2EF6E1058C047344B4DE0FD141119167C9DA06@hex01.houstonengineeringinc.com> Message-ID: <2F42750E-0848-4E02-AE75-034B371C4717@gmail.com> Definitely a no as far as ArcSDE is concerned... highly doubtful for personal geodatabase as well. Howard On Jul 23, 2008, at 2:35 PM, Jay Kapalczynski wrote: > I am in the same boat?have been asking about this a couple times > over the last few months?. > Any help would be appreciated?. > > Brian you find anything please let me know? > > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org > ] On Behalf Of Fischer, Brian > Sent: Wednesday, July 23, 2008 9:24 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] geodatabase and annotation feature class > > Hi List, > > Just curious if anyone else has been successful at using either an > annotation feature class in an ESRI personal geodatabase or SDE > database? The OGR documentation doesn't explicitly say whether it > supports rendering an annotation feature class with mapserver. Any > info would be appreciated. > > Thanks, > Brian > > Brian Fischer, CFM > GIS Project Manager > Houston Engineering, Inc. | Leave Nothing to ChanceTM > 6901 East Fish Lake Road, Suite 140 > Maple Grove, MN 55369 > Phone: 763.493.4522 / Fax: 763.493.5572 > Email: bfischer at houstonengineeringinc.com > Website: www.houstonengineeringinc.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From neil at asdf.co.nz Wed Jul 23 14:03:49 2008 From: neil at asdf.co.nz (Neil Fincham) Date: Thu, 24 Jul 2008 09:03:49 +1200 Subject: [mapserver-users] ArcSDE and UNICODE In-Reply-To: <2DC861EB-56CA-4E35-81E8-4216897AB550@gmail.com> References: A<47813BD9.9000605@asdf.co.nz> <4BF377919225F449BB097CB76FFE9BC801988790@ptolemy.topozone.com> <47815254.9090704@asdf.co.nz> <2DC861EB-56CA-4E35-81E8-4216897AB550@gmail.com> Message-ID: <006701c8ed07$9c52df90$d4f89eb0$@co.nz> Hi All, Sorry to bring this up again after 6 months of so but the problem has once again landed on my desk. Howard below hit the nail on the head, the text is being stored in nvarchar (or SE_NSTRING as sdetable -o describe calls it) so mapserver is having a lot of problems with the UNICODE. My question is is what is the best way around this? I am sure people have had this problem before and can save me a lot of experimentation. Howard below mentions loading the data as string, how would I do that? SDE does not seem to give me the option. I have tried a sql "alter table alter column Stand varchar(30)" and that does not seem to work. Perhaps I should be using "sdetable -o alter_column" does anyone have the correct syntax for that? Thanks heaps for your time, Neil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Howard Butler Sent: Monday, 7 January 2008 5:47 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Unusual Fonts (resend, image too big) Neil, Looking through your post, and by virtue of using the SDE 9.2 plugin, I'll assume you are connecting to ArcSDE 9.2. First, what does the output of sdetable -o describe say for your SpeciesLabel column about the column data type? Is it NSTRING? Here's the story on unicode characters and MapServer+ArcSDE 9.2... As long as your characters aren't wide format, ie UTF-8'ish, they should be printable and usable with the iconv support in GD/AGG. If they are wide, however, they are garishly converted down to UTF8. My rational for this approach is that many of the Arc tools emit unicode columns for string data in 9.2 SDE layers, but much of the time, people don't want/need that, and they are storing ASCII or LATIN-type data in them anyway. MapServer internally does not support wide characters, however, so there are some significant limitations in this approach, and if MapServer is converting your wide characters down to UTF8, you are pretty much screwed. Another huge limitation of this approach is that it is really only usable for labeling things. You cannot use any expressions on NSTRING columns in ArcSDE with MapServer and expect to do anything. You shouldn't have to specify an encoding for the SDE layer because any NSTRING columns (which SDE stores as UTF-16) are smashed down to UTF8, which iconv/GD/AGG can render and deal with. All of this blather says that the unicode support for MapServer is very immature, and if you can reload your ArcSDE layer to use regular string columns in your ArcSDE layers, things should work much smoother and as expected. Howard On Jan 6, 2008, at 4:12 PM, Neil Fincham wrote: > Hi Ed, > > Thanks for the quick reply, a picture says 1000 words so I have > done a > screen dump out of ArcVIEW for you. > > I have tried a few different fonts and a few different string fields > from the SDE and get the same result with the string's, the integers > and > 's render fine and using a shape file exported directly out of > the > SDE also works fine. > > Very puzzling > > Neil > > Ed McNierney wrote: >> Neil - >> >> Could you give an example of the text in one of the SpeciesLabel >> fields? What alphabet, character set, and language is the >> SpeciesLabel field stored in? If you switch to a different FONT >> does the output change? >> >> At first glance you appear to have code points in the label that >> are not representable in the selected font. That might not be the >> problem, but it's worth eliminating - hence my questions above. >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: 978-251-4242, Fax: 978-251-1396 >> ed at topozone.com >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On Behalf Of Neil Fincham >> Sent: Sunday, January 06, 2008 3:37 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Unusual Fonts >> >> Hi all, >> >> I am really enjoying my first delve into mapping and like to say >> thanks for the great software. >> >> I am havering a bit of a problem and I am sure it is something >> easy, I am getting unusual fonts rendering using SDE. It works >> fine with the shape files but with SDE the text parts come out >> wrong. I have attached a sample. >> >> Here are some bits from my mapfile;- >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> >> LAYER >> NAME LandUnit >> METADATA >> "DESCRIPTION" "Land Unit" >> "RESULT_FIELDS" "ForestCode Description" >> END >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE PLUGIN >> PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >> CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" >> DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" >> TOLERANCE 5 >> TEMPLATE "ttt_query.html" >> CLASS >> SYMBOL 0 >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) >> LABEL >> FONT "vera" >> TYPE truetype >> SIZE 8 >> BUFFER 1 >> COLOR 0 0 0 >> BACKGROUNDCOLOR 255 255 255 >> WRAP " " >> ENCODING UTF-16 >> END >> END >> END # Layer >> >> The [SpeciesLabel] is the one with the problem, the "[YOE] >> [AreaHA]ha" >> are numbers and render correctly. I have tried various ENCODING >> types to no avail. >> >> Thanks for your time >> >> Neil > From chander at otg-nc.com Wed Jul 23 15:28:09 2008 From: chander at otg-nc.com (Chander Ganesan) Date: Wed, 23 Jul 2008 18:28:09 -0400 Subject: [mapserver-users] Data string to access ArcSDE Raster Imagery via GDAL through mapserver... Message-ID: <4887B079.6030003@otg-nc.com> Can anyone tell me what the DATA string would look like to access and ArcSDE Raster layer via GDAL. I want to include it as a map layer. Is this even possible? thanks -- Chander Ganesan Open Technology Group, Inc. One Copley Parkway, Suite 210 Morrisville, NC 27560 919-463-0999/877-258-8987 http://www.otg-nc.com From hobu.inc at gmail.com Wed Jul 23 16:32:56 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Wed, 23 Jul 2008 18:32:56 -0500 Subject: [mapserver-users] Data string to access ArcSDE Raster Imagery via GDAL through mapserver... In-Reply-To: <4887B079.6030003@otg-nc.com> References: <4887B079.6030003@otg-nc.com> Message-ID: <40DA91D4-B074-493E-B220-77A6A0311780@gmail.com> Chander, DATA "SDE:sdemachine.iastate.edu, 5151,database,username,password,fully.specified.tablename,RASTER" TYPE RASTER Your GDAL must be compiled with ArcSDE raster support. Limitations and usage is further described on the format page for ArcSDE raster at http://www.gdal.org/frmt_sde.html Howard On Jul 23, 2008, at 5:28 PM, Chander Ganesan wrote: > Can anyone tell me what the DATA string would look like to access > and ArcSDE Raster layer via GDAL. I want to include it as a map > layer. Is this even possible? > > thanks > > -- > Chander Ganesan > Open Technology Group, Inc. > One Copley Parkway, Suite 210 > Morrisville, NC 27560 > 919-463-0999/877-258-8987 > http://www.otg-nc.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From maurerj at nsidc.org Wed Jul 23 16:59:33 2008 From: maurerj at nsidc.org (John Maurer) Date: Thu, 24 Jul 2008 00:59:33 +0100 Subject: [mapserver-users] SCALE=AUTO applied to current view or entire layer? Message-ID: <4887C5E5.8070402@nsidc.org> Dear MapServer users, When applying the PROCESSING directive "SCALE=AUTO" to a RASTER layer in MapServer, I was hoping this would apply a suitable contrast stretch for the currently selected spatial extent of the layer. But it seems that the contrast stretch is being applied to the entire layer regardless of where I am zoomed into. This means for a file with a large dynamic range that when zooming in to some areas, the contrast stretch is quite horrible (e.g. mostly gray tones or mostly dark tones or mostly light tones). My laborious workaround has been to create separate layers for the same raster data file with separate contrast stretches ranging from ultra-high contrast to ultra-low contrast using different "SCALE=min,max" settings. Is there a better way?? What is needed is a way for MapServer to apply an automatic contrast stretch to the current map view for the selected raster layer. You can get this kind of feature in many image processing applications (e.g. ENVI) so it would be fantastic to have this in MapServer as well. Thanks for any help! Cheers, John Maurer -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From warmerdam at pobox.com Wed Jul 23 17:42:05 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 23 Jul 2008 20:42:05 -0400 Subject: [mapserver-users] SCALE=AUTO applied to current view or entire layer? In-Reply-To: <4887C5E5.8070402@nsidc.org> References: <4887C5E5.8070402@nsidc.org> Message-ID: <4887CFDD.3060604@pobox.com> John Maurer wrote: > Dear MapServer users, > When applying the PROCESSING directive "SCALE=AUTO" to a RASTER layer in > MapServer, I was hoping this would apply a suitable contrast stretch for > the currently selected spatial extent of the layer. But it seems that > the contrast stretch is being applied to the entire layer regardless of > where I am zoomed into. This means for a file with a large dynamic range > that when zooming in to some areas, the contrast stretch is quite > horrible (e.g. mostly gray tones or mostly dark tones or mostly light > tones). My laborious workaround has been to create separate layers for > the same raster data file with separate contrast stretches ranging from > ultra-high contrast to ultra-low contrast using different > "SCALE=min,max" settings. Is there a better way?? What is needed is a > way for MapServer to apply an automatic contrast stretch to the current > map view for the selected raster layer. You can get this kind of feature > in many image processing applications (e.g. ENVI) so it would be > fantastic to have this in MapServer as well. Thanks for any help! John, I'm quite surprised at the behavior you report. MapServer *should* be computing a minimum and maximum for scaling purposes based on the data loaded for the particular map draw request, not the layer as a whole. I've just reviewed the code, and that is what it calls for. Is it possible you have a few pixels which are quite different from the rest in the render areas? This will result in inappropriately broad dynamic ranges. In particular the autoscaling does not doing anything like histogram tail trimming when coming up with the min/max to use. You might want to enable debugging for the layer, and check the "scaling to 8bit, src range=..." reports to see if it really is using the same min/max everywhere. I *suspect* you need smarter min/max computation using histogram tail trimming but doing this runs the risk of slowing things down noticably. PS. the code for autoscaling is in mapdrawgdal.c and looks like this: /* -------------------------------------------------------------------- */ /* If we are using autoscaling, then compute the max and min */ /* now. Perhaps we should eventually honour the offsite value */ /* as a nodata value, or get it from GDAL. */ /* -------------------------------------------------------------------- */ if( dfScaleMin == dfScaleMax ) { dfScaleMin = dfScaleMax = pafRawData[0]; for( i = 1; i < nPixelCount; i++ ) { dfScaleMin = MIN(dfScaleMin,pafRawData[i]); dfScaleMax = MAX(dfScaleMax,pafRawData[i]); } if( dfScaleMin == dfScaleMax ) dfScaleMax = dfScaleMin + 1.0; } if( layer->debug > 0 ) msDebug( "msDrawGDAL(%s): scaling to 8bit, src range=%g,%g\n", layer->name, dfScaleMin, dfScaleMax ); Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From enri at 163.com Wed Jul 23 17:43:33 2008 From: enri at 163.com (enri) Date: Thu, 24 Jul 2008 08:43:33 +0800 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? References: <978312.70577.qm@web33204.mail.mud.yahoo.com> Message-ID: <200807240843315753771@163.com> Hi everybody, Thank you very much for your response and information. Basicly the information I think you give me is that it's necessary provided a perfect or better tool is contributed. Maybe you will be disappointed when you get it. Anyway, this tool will puts focus on windows users and dedicates to MAPFILE authoring, I mean it isn't another desktop GIS, it's a light weight mapfile GUI editor running on windows. Actually I have started the work according to my reqiurements. I think the initial version (version 0.1) will be available in 1 month. For the long run, this tool will support every parameter which MapServer supports in a friendly way. Best regards. Enri ======= 2008-07-24 04:40:39 you wrote?======= >I don't think it in necessary, the old way does work, but I do think it will be very useful & I'm not aware of any other specific such application available. > >However, would it work for you as a QGIS plugin? QGIS can export a mapfile now, but it is a long way from perfect, and that would potentially give you a good head start in this arena? > > >Cheers, > > Brent Wood > > >--- On Wed, 7/23/08, enri wrote: > >> From: enri >> Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? >> To: "mapserver-users" >> Date: Wednesday, July 23, 2008, 9:03 PM >> Hi, guys, >> >> I am planning to develop a stand-alone Mapfile editing tool >> for mapserver based map authoring by a way of WYSWYG, >> including symbol editing, because I find it's so >> difficult to use a text editor authoring a mapfile to >> render beautiful map. But I am not sure if it's usefule >> for you, or someone else has already done that. >> >> If you think that would be useful, please give me a vote >> and that will encourage me to contribute faster to the >> community. But if you find I am repeating others work, be >> kindly tell me please. >> >> enri >> 2008-07-23 >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users = = = = = = = = = = = = = = = = = = = = From neil at asdf.co.nz Wed Jul 23 21:29:23 2008 From: neil at asdf.co.nz (Neil Fincham) Date: Thu, 24 Jul 2008 16:29:23 +1200 Subject: [mapserver-users] ArcSDE and UNICODE In-Reply-To: <006701c8ed07$9c52df90$d4f89eb0$@co.nz> References: A<47813BD9.9000605@asdf.co.nz> <4BF377919225F449BB097CB76FFE9BC801988790@ptolemy.topozone.com> <47815254.9090704@asdf.co.nz> <2DC861EB-56CA-4E35-81E8-4216897AB550@gmail.com> <006701c8ed07$9c52df90$d4f89eb0$@co.nz> Message-ID: <009d01c8ed45$d9286a50$8b793ef0$@co.nz> Hi All, Answered my own question :) . http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Language_suppo rt_in_the_geodatabase You need to set UNICODE_STRING "FALSE" using sdedbtune, then when you load your data it will be just plain old text that mapserver does not have a problem with. Thanks Neil -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Neil Fincham Sent: Thursday, 24 July 2008 9:04 a.m. To: 'Howard Butler'; mapserver-users at lists.osgeo.org Subject: [mapserver-users] ArcSDE and UNICODE Hi All, Sorry to bring this up again after 6 months of so but the problem has once again landed on my desk. Howard below hit the nail on the head, the text is being stored in nvarchar (or SE_NSTRING as sdetable -o describe calls it) so mapserver is having a lot of problems with the UNICODE. My question is is what is the best way around this? I am sure people have had this problem before and can save me a lot of experimentation. Howard below mentions loading the data as string, how would I do that? SDE does not seem to give me the option. I have tried a sql "alter table alter column Stand varchar(30)" and that does not seem to work. Perhaps I should be using "sdetable -o alter_column" does anyone have the correct syntax for that? Thanks heaps for your time, Neil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Howard Butler Sent: Monday, 7 January 2008 5:47 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Unusual Fonts (resend, image too big) Neil, Looking through your post, and by virtue of using the SDE 9.2 plugin, I'll assume you are connecting to ArcSDE 9.2. First, what does the output of sdetable -o describe say for your SpeciesLabel column about the column data type? Is it NSTRING? Here's the story on unicode characters and MapServer+ArcSDE 9.2... As long as your characters aren't wide format, ie UTF-8'ish, they should be printable and usable with the iconv support in GD/AGG. If they are wide, however, they are garishly converted down to UTF8. My rational for this approach is that many of the Arc tools emit unicode columns for string data in 9.2 SDE layers, but much of the time, people don't want/need that, and they are storing ASCII or LATIN-type data in them anyway. MapServer internally does not support wide characters, however, so there are some significant limitations in this approach, and if MapServer is converting your wide characters down to UTF8, you are pretty much screwed. Another huge limitation of this approach is that it is really only usable for labeling things. You cannot use any expressions on NSTRING columns in ArcSDE with MapServer and expect to do anything. You shouldn't have to specify an encoding for the SDE layer because any NSTRING columns (which SDE stores as UTF-16) are smashed down to UTF8, which iconv/GD/AGG can render and deal with. All of this blather says that the unicode support for MapServer is very immature, and if you can reload your ArcSDE layer to use regular string columns in your ArcSDE layers, things should work much smoother and as expected. Howard On Jan 6, 2008, at 4:12 PM, Neil Fincham wrote: > Hi Ed, > > Thanks for the quick reply, a picture says 1000 words so I have > done a > screen dump out of ArcVIEW for you. > > I have tried a few different fonts and a few different string fields > from the SDE and get the same result with the string's, the integers > and > 's render fine and using a shape file exported directly out of > the > SDE also works fine. > > Very puzzling > > Neil > > Ed McNierney wrote: >> Neil - >> >> Could you give an example of the text in one of the SpeciesLabel >> fields? What alphabet, character set, and language is the >> SpeciesLabel field stored in? If you switch to a different FONT >> does the output change? >> >> At first glance you appear to have code points in the label that >> are not representable in the selected font. That might not be the >> problem, but it's worth eliminating - hence my questions above. >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: 978-251-4242, Fax: 978-251-1396 >> ed at topozone.com >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On Behalf Of Neil Fincham >> Sent: Sunday, January 06, 2008 3:37 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Unusual Fonts >> >> Hi all, >> >> I am really enjoying my first delve into mapping and like to say >> thanks for the great software. >> >> I am havering a bit of a problem and I am sure it is something >> easy, I am getting unusual fonts rendering using SDE. It works >> fine with the shape files but with SDE the text parts come out >> wrong. I have attached a sample. >> >> Here are some bits from my mapfile;- >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> >> LAYER >> NAME LandUnit >> METADATA >> "DESCRIPTION" "Land Unit" >> "RESULT_FIELDS" "ForestCode Description" >> END >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE PLUGIN >> PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >> CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" >> DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" >> TOLERANCE 5 >> TEMPLATE "ttt_query.html" >> CLASS >> SYMBOL 0 >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) >> LABEL >> FONT "vera" >> TYPE truetype >> SIZE 8 >> BUFFER 1 >> COLOR 0 0 0 >> BACKGROUNDCOLOR 255 255 255 >> WRAP " " >> ENCODING UTF-16 >> END >> END >> END # Layer >> >> The [SpeciesLabel] is the one with the problem, the "[YOE] >> [AreaHA]ha" >> are numbers and render correctly. I have tried various ENCODING >> types to no avail. >> >> Thanks for your time >> >> Neil > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From maurerj at nsidc.org Wed Jul 23 22:22:33 2008 From: maurerj at nsidc.org (John Maurer) Date: Thu, 24 Jul 2008 06:22:33 +0100 Subject: [mapserver-users] SCALE=AUTO applied to current view or entire layer? In-Reply-To: <4887CFDD.3060604@pobox.com> References: <4887C5E5.8070402@nsidc.org> <4887CFDD.3060604@pobox.com> Message-ID: <48881199.4070401@nsidc.org> > I'm quite surprised at the behavior you report. MapServer *should* be > computing a minimum and maximum for scaling purposes based on the data > loaded for the particular map draw request, not the layer as a whole. Hi Frank, Thanks for your prompt reply! And sorry for the false alarm. Your explanation helped me understand what's going on behind the scenes in MapServer for the SCALE=AUTO directive, and your suspicion was right about needing smarter min/max computation. It would be nice if there was a simple linear 2% contrast stretch available (cut off the least and greatest 2% of values), depending on how bad that slows things down. Is there some way to make this a request for some future version of MapServer? Thanks again!! Cheers, John -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From beartreeyoga at yahoo.co.uk Thu Jul 24 03:06:42 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Thu, 24 Jul 2008 10:06:42 +0000 (GMT) Subject: [mapserver-users] shp2img problem Message-ID: <371505.82050.qm@web23002.mail.ird.yahoo.com> Hi I am using shp2img to test my mapfile.. The functions runs and returns no error to the console window but the output image file generated is only 1K in size and shows a vertical line 2x1 pixels, not the expected output. Can anyone give me some help in getting this to work Derek This is my command line shp2img.exe -m C:\ms4w\apps\dnc2.map -o C:\ms4w\apps\test.png -all_debug 5 and its debug output is [Thu Jul 24 10:54:45 2008].750000 msOGRFileOpen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)... [Thu Jul 24 10:54:45 2008].750000 OGROPen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030) [Thu Jul 24 10:54:46 2008].156000 msConnPoolRegister(coastl at ecr(*)_line,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8) [Thu Jul 24 10:54:46 2008].156000 msOGRFileWhichShapes: Setting spatial filter to -180.000000 -119.899833 180.000000 119.899833 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=0, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=1, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=2, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=3, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=4, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=5, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=6, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=7, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=8, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=9, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=10, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=11, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=12, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=13, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=14, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=15, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=16, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=17, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=18, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=19, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=20, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=21, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=22, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=23, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=24, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=25, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=26, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=27, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=28, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=29, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=30, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=31, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=32, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=33, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=34, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=35, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=36, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=37, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=38, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=39, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=40, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=41, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=42, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=43, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=44, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=45, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=46, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=47, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=48, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=49, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=50, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=51, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=52, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=53, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=54, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=55, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=56, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=57, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=58, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=59, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=60, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=61, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=62, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=63, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=64, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=65, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=66, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=67, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=68, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=69, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=70, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=71, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=72, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=73, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=74, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=75, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=76, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=77, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=78, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=79, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=80, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=81, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=82, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=83, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=84, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=85, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=86, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=87, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=88, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=89, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=90, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=91, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=92, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=93, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=94, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=95, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=96, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=97, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=98, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=99, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=100, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=101, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=102, tile=0 [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning MS_DONE (no more shapes) [Thu Jul 24 10:54:46 2008].156000 msOGRLayerClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030). [Thu Jul 24 10:54:46 2008].156000 msOGRFileClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,7). [Thu Jul 24 10:54:46 2008].156000 msConnPoolRelease(coastl at ecr(*)_line,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8) [Thu Jul 24 10:54:46 2008].156000 msConnPoolClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8) [Thu Jul 24 10:54:46 2008].171000 msDrawMap(): Layer 0 (coastl at ecr(*)_line), 0.421s [Thu Jul 24 10:54:46 2008].171000 msOGRFileOpen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)... [Thu Jul 24 10:54:46 2008]..171000 OGROPen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030) [Thu Jul 24 10:54:46 2008].484000 msConnPoolRegister(hydarea at hyd(*)_area,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40) [Thu Jul 24 10:54:46 2008].484000 msOGRFileWhichShapes: Setting spatial filter to -180.000000 -119.899833 180.000000 119.899833 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=0, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=1, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=2, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=3, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=4, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=5, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=6, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=7, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=8, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=9, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=10, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=11, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=12, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=13, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=14, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=15, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=16, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=17, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=18, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=19, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=20, tile=0 [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=21, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=22, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=23, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=24, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=25, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=26, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=27, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=28, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=29, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=30, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=31, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=32, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=33, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=34, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=35, tile=0 [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=36, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=37, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=38, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=39, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=40, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=41, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=42, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=43, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=44, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=45, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=46, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=47, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=48, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=49, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=50, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=51, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=52, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=53, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=54, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=55, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=56, tile=0 [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=57, tile=0 [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=58, tile=0 [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=59, tile=0 [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=60, tile=0 [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=61, tile=0 [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=62, tile=0 [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning MS_DONE (no more shapes) [Thu Jul 24 10:54:46 2008].531000 msOGRLayerClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030). [Thu Jul 24 10:54:46 2008].531000 msOGRFileClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,13). [Thu Jul 24 10:54:46 2008].531000 msConnPoolRelease(hydarea at hyd(*)_area,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40) [Thu Jul 24 10:54:46 2008].531000 msConnPoolClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40) [Thu Jul 24 10:54:46 2008].531000 msDrawMap(): Layer 1 (hydarea at hyd(*)_area), 0.360s [Thu Jul 24 10:54:46 2008].531000 msDrawMap(): Drawing Label Cache, 0.000s [Thu Jul 24 10:54:46 2008].531000 msDrawMap() total time: 0.781s [Thu Jul 24 10:54:46 2008].546000 msFreeMap(): freeing map at 01365A48. ________________________________ Not happy with your email address? Get the one you really want - millions of new email addresses available now at Yahoo! __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Thu Jul 24 04:55:46 2008 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Thu, 24 Jul 2008 13:55:46 +0200 Subject: [mapserver-users] MapServer with Oracle Spatial Message-ID: <200807241355.46825.iratxe.lejarreta@axios.es> Hi, I installed FGS on Red Hat Enterprise Linux 5.2, but I don't know what I need to configure in MapServer to connect with Oracle 10g. Because, when I run the WFS service, the result is: msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not supported In the Mapserver documentation (http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto) explain that there are 2 options for using Oracle Spatial with Mapserver: 1.- The problem is that I haven't got maporaclespatil.c file 2.- The problem is that I don't know how to compile OGR with OCI Somebody can help me? Thank you in advance. -- Iratxe Lejarreta www.axios.es From Laurent.Saez at developpement-durable.gouv.fr Thu Jul 24 07:18:44 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Thu, 24 Jul 2008 16:18:44 +0200 Subject: [mapserver-users] WFS GetFeature with PostGIS database : the PostGIS request is not well formated (with string fields that contains only numbers) Message-ID: <48888F44.2030505@developpement-durable.gouv.fr> Hi List, I have a PostGIS database. I have a point table representing plots. I have to select a plot using several fields : * num_dep (string) : departement code, * nom_com (string) : city name, * section (string) : section number, * numero (string) : plot number. I use MapServer 4.99 and Postgersql 8.1. All my fields are strings. Result of DescribeFeatureType request : When I do a WFS GetFeature request, mapserver doesn't format correctly strings fields that contains only numbers. Example : (to select the plot where num_dep='66' and nom_com='Baixas' and section='0A' and numero='2651') http://mapserver_i2.cete-mediterranee.i2/maps/mapserv?map=%2Fdata%2Fcarto%2Fref%2Fbdparcellaire%2Fbdparcellaire_2007_iso.map&=&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=bdparcellaire_numero&FILTER=%28%3CFilter%3E%3CAnd%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ecode_dep%3C%2FPropertyName%3E%3CLiteral%3E66%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Enom_com%3C%2FPropertyName%3E%3CLiteral%3EBaixas%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Esection%3C%2FPropertyName%3E%3CLiteral%3E0A%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Enumero%3C%2FPropertyName%3E%3CLiteral%3E2651%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FAnd%3E%3C%2FFilter%3E%29 For human people : map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_iso.map&= &SERVICE=WFS &VERSION=1.0.0 &REQUEST=GetFeature &TYPENAME=bdparcellaire_numero &FILTER=( code_dep 66 nom_com Baixas section 0A numero 2651 ) MapServer sends this instruction to PostGIS : LOG: instruction : DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (select code_dep, nom_com, section, numero, gid, the_geom, oid FROM localisant) as foo WHERE ( (code_dep= 66) And ( (nom_com= 'Baixas') And ( (section= '0A') And (numero= 2651) ) ) ) and (the_geom && setSRID( 'BOX3D(47650 1620400,1197850 2677450)'::BOX3D,27582) ) We can see that code_dep and numero are not quoted. It's not a problem in this example, but when I search the plot with the numero=0256, search returned no results. The plot exists ! The right request in PostGIS returns the plot. It seems that not '0256' is search but 256. Is it a bug ? I think so ! For me it's very very very very disturbing. I can't use mapserver as a WFS server to select plot ! I hope someone could help me ! Regards Laurent -------------- next part -------------- An HTML attachment was scrubbed... URL: From Schoenhammer.Herbert at Regensburg.de Thu Jul 24 07:34:51 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer,_Herbert?=) Date: Thu, 24 Jul 2008 16:34:51 +0200 Subject: AW: [mapserver-users] Again: Some Problems with WMS-GetLegendGraphic using aggand pixmaps In-Reply-To: Message-ID: Hi, Thomas, yes I think it is a scaling problem. I have generatd a ticket and assigned it to you (#2715). thanks Herbert Schoenhammer >-----Urspr?ngliche Nachricht----- >Von: thomas bonfort [mailto:thomas.bonfort at gmail.com] >Gesendet: Mittwoch, 23. Juli 2008 14:34 >An: Sch?nhammer, Herbert >Cc: Mapserver-users (mapserver-users at lists.osgeo.org) >Betreff: Re: [mapserver-users] Again: Some Problems with >WMS-GetLegendGraphic using aggand pixmaps > > >Hi, >what you mean is that the key image isn't scaled, as it is with GD ? >If so, can you open a bug for this issue, and assign it to me >(tbonfort) > >thanks, >-- >Thomas Bonfort >Camptocamp France SAS >http://www.camptocamp.com > >On Wed, Jul 23, 2008 at 1:43 PM, Sch?nhammer, Herbert > wrote: >> Hi list, >> >> I have already described my problem with WMS-GetLegendgraphic and >> AGG-Library (posted on 2008/05/07 with subject "Some Problems with >> WMS-GetLegendGraphic using aggand pixmaps"). >> >> But i did not get any reply until now. So I made some tests >with Mapserver >> 5.2.0 and i recognized the same problems as posted earlier. >> >> Now i want to publish an example. Using GD as driver for creating the >> output, i get the correct legend-image: >> >> >> The definition looks like: >> >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> EXTENSION PNG >> IMAGEMODE RGBA >> TRANSPARENT ON >> END >> >> >> Only changing the output-driver, I get the following picture: >> >> >> The definition looks like: >> >> OUTPUTFORMAT >> MIMETYPE "image/png" >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> EXTENSION PNG >> IMAGEMODE RGBA >> TRANSPARENT ON >> END >> >> The problem using AGG is this: >> ======================= >> >> If using a pixmap with "KEYIMAGE ...." >> >> CLASS >> NAME "Topografische Karte 1:50.000" >> KEYIMAGE "/data/raster/topo_karten/tk50_legende.png" >> END >> >> only a part of the raster-image is used for generating the >legend (the right >> side of th picture, the middle of the picture). >> >> >> Does anybody know, if this a problem of my map-file or this is a >> mapserver-bug ? >> >> I would be glad, if anybody can examine this persisting problem ! >> >> greetings >> >> Herbert Schoenhammer >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From rburghol at vt.edu Thu Jul 24 08:57:54 2008 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Thu, 24 Jul 2008 11:57:54 -0400 Subject: [mapserver-users] php_mapscript compatibility trouble Message-ID: <1216915074.4888a68253c46@webmail.vt.edu> I am getting the following error after recompiling php and mapserv: in Unknown on line 0 Unknown(0) : Warning - PHP Startup: MapScript: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=1, thread-safety=1 These options need to match I believe that I have enabled the debug option in mapserver, and I am using php as a CGI, so I am unsure as to what the trouble is. I don't WANT thread safety, I believe, but cannot seem to figure out how to disable it. Below are my compile options for php and mapserver, any help would be great: PHP config statement: ./configure --with-gd --with-mysql=/usr/local/mysql --with-pgsql --with-zlib --with-ttf --prefix=/usr --enable-debug --enable-maintainer-zts Mapserver config: ./configure --with-wfs --with-wmsclient --with-php=/Users/robertwb/src/php-5.2.5 --with-postgis=/usr/local/pgsql/bin --with-wfsclient --with-wms --with-postgis --with-gdal --with-ogr --with-geos --with-proj --enable-debug Thanks! -- Robert W. Burgholzer -- Finding the occasional straw of truth awash in a great ocean of confusion and bamboozle requires intelligence, vigilance, dedication and courage. But if we don't practice these tough habits of thought, we cannot hope to solve the truly serious problems that face us -- and we risk becoming a nation of suckers, up for grabs by the next charlatan who comes along. -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, 1987 Web Hydrology Objects - Online Collaborative Modeling: http://sourceforge.net/projects/npsource/ Home Page: http://soulswimmer.dynalias.net/ From alim.karim at gmail.com Thu Jul 24 10:28:23 2008 From: alim.karim at gmail.com (alim karim) Date: Thu, 24 Jul 2008 10:28:23 -0700 Subject: [mapserver-users] php_mapscript compatibility trouble In-Reply-To: <1216915074.4888a68253c46@webmail.vt.edu> References: <1216915074.4888a68253c46@webmail.vt.edu> Message-ID: you can try changing the following to enable a debug build of the mapscript module. in mapscript/php3/php_mapscript.c : change #define ZEND_DEBUG 0 to #define ZEND_DEBUG 1 ak On Thu, Jul 24, 2008 at 8:57 AM, Robert W. Burgholzer wrote: > I am getting the following error after recompiling php and mapserv: > > in Unknown on line 0 > Unknown(0) : Warning - PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20060613, debug=0, thread-safety=1 > PHP compiled with module API=20060613, debug=1, thread-safety=1 > These options need to match > > I believe that I have enabled the debug option in mapserver, and I am using > php > as a CGI, so I am unsure as to what the trouble is. I don't WANT thread > safety, I believe, but cannot seem to figure out how to disable it. Below > are > my compile options for php and mapserver, any help would be great: > > PHP config statement: > ./configure --with-gd --with-mysql=/usr/local/mysql --with-pgsql > --with-zlib > --with-ttf --prefix=/usr --enable-debug --enable-maintainer-zts > > Mapserver config: > ./configure --with-wfs --with-wmsclient > --with-php=/Users/robertwb/src/php-5.2.5 > --with-postgis=/usr/local/pgsql/bin --with-wfsclient --with-wms > --with-postgis > --with-gdal --with-ogr --with-geos --with-proj --enable-debug > > Thanks! > > -- > Robert W. Burgholzer > -- > Finding the occasional straw of truth awash in a great ocean of confusion > and > bamboozle requires intelligence, vigilance, dedication and courage. But if > we > don't practice these tough habits of thought, we cannot hope to solve the > truly > serious problems that face us -- and we risk becoming a nation of suckers, > up > for grabs by the next charlatan who comes along. > -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, > 1987 > > Web Hydrology Objects - Online Collaborative Modeling: > http://sourceforge.net/projects/npsource/ > Home Page: > http://soulswimmer.dynalias.net/ > _______________________________________________ > 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 yjacolin at free.fr Thu Jul 24 10:29:51 2008 From: yjacolin at free.fr (Yves Jacolin) Date: Thu, 24 Jul 2008 19:29:51 +0200 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? In-Reply-To: <200807240843315753771@163.com> References: <978312.70577.qm@web33204.mail.mud.yahoo.com> <200807240843315753771@163.com> Message-ID: <200807241929.51666.yjacolin@free.fr> Enri, Le jeudi 24 juillet 2008 02:43, enri a ?crit?: > Anyway, this tool will puts focus on windows users I am sad to read this, can't you think to all other linux geek? :) Depends on the langage you use, might it be portable to another plateform? Regards, Y. -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From Steve.Lime at dnr.state.mn.us Thu Jul 24 10:29:23 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 24 Jul 2008 12:29:23 -0500 Subject: [mapserver-users] shp2img problem In-Reply-To: <371505.82050.qm@web23002.mail.ird.yahoo.com> References: <371505.82050.qm@web23002.mail.ird.yahoo.com> Message-ID: <488875A3.5157.008F.0@dnr.state.mn.us> Can you share the mapfile? Steve >>> On 7/24/2008 at 5:06 AM, in message <371505.82050.qm at web23002.mail.ird.yahoo.com>, Derek Bain wrote: > Hi > > I > am using shp2img to test my mapfile.. The functions runs and returns no > error to the console window but the output image file generated is only > 1K in size and shows a vertical line 2x1 pixels, not the expected > output. > > Can anyone give me some help in getting this to work > > Derek > > This is my command line > shp2img.exe -m C:\ms4w\apps\dnc2.map -o C:\ms4w\apps\test.png -all_debug 5 > > and its debug output is > [Thu Jul 24 10:54:45 2008].750000 > msOGRFileOpen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)... > [Thu Jul 24 10:54:45 2008].750000 > OGROPen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030) > [Thu Jul 24 10:54:46 2008].156000 > msConnPoolRegister(coastl at ecr(*)_line,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316 > 030,01D25AE8) > [Thu Jul 24 10:54:46 2008].156000 msOGRFileWhichShapes: Setting spatial > filter to -180.000000 -119.899833 180.000000 119.899833 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=0, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=1, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=2, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=3, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=4, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=5, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=6, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=7, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=8, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=9, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=10, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=11, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=12, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=13, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=14, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=15, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=16, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=17, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=18, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=19, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=20, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=21, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=22, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=23, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=24, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=25, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=26, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=27, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=28, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=29, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=30, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=31, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=32, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=33, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=34, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=35, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=36, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=37, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=38, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=39, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=40, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=41, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=42, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=43, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=44, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=45, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=46, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=47, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=48, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=49, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=50, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=51, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=52, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=53, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=54, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=55, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=56, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=57, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=58, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=59, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=60, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=61, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=62, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=63, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=64, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=65, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=66, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=67, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=68, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=69, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=70, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=71, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=72, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=73, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=74, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=75, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=76, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=77, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=78, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=79, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=80, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=81, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=82, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=83, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=84, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=85, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=86, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=87, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=88, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=89, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=90, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=91, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=92, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=93, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=94, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=95, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=96, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=97, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=98, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=99, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=100, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=101, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=102, > tile=0 > [Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning MS_DONE (no > more shapes) > [Thu Jul 24 10:54:46 2008].156000 > msOGRLayerClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030). > [Thu Jul 24 10:54:46 2008].156000 > msOGRFileClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,7). > [Thu Jul 24 10:54:46 2008].156000 > msConnPoolRelease(coastl at ecr(*)_line,gltp:/vrf/C:/ms4w/apps/data/DNC13/H13160 > 30,01D25AE8) > [Thu Jul 24 10:54:46 2008].156000 > msConnPoolClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8) > [Thu Jul 24 10:54:46 2008].171000 msDrawMap(): Layer 0 (coastl at ecr(*)_line), > 0.421s > [Thu Jul 24 10:54:46 2008].171000 > msOGRFileOpen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)... > [Thu Jul 24 10:54:46 2008]..171000 > OGROPen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030) > [Thu Jul 24 10:54:46 2008].484000 > msConnPoolRegister(hydarea at hyd(*)_area,gltp:/vrf/C:/ms4w/apps/data/DNC13/H131 > 6030,01D80B40) > [Thu Jul 24 10:54:46 2008].484000 msOGRFileWhichShapes: Setting spatial > filter to -180.000000 -119.899833 180.000000 119.899833 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=0, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=1, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=2, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=3, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=4, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=5, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=6, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=7, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=8, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=9, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=10, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=11, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=12, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=13, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=14, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=15, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=16, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=17, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=18, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=19, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=20, > tile=0 > [Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=21, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=22, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=23, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=24, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=25, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=26, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=27, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=28, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=29, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=30, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=31, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=32, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=33, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=34, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=35, > tile=0 > [Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=36, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=37, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=38, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=39, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=40, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=41, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=42, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=43, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=44, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=45, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=46, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=47, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=48, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=49, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=50, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=51, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=52, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=53, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=54, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=55, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=56, > tile=0 > [Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=57, > tile=0 > [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=58, > tile=0 > [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=59, > tile=0 > [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=60, > tile=0 > [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=61, > tile=0 > [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=62, > tile=0 > [Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning MS_DONE (no > more shapes) > [Thu Jul 24 10:54:46 2008].531000 > msOGRLayerClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030). > [Thu Jul 24 10:54:46 2008].531000 > msOGRFileClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,13). > [Thu Jul 24 10:54:46 2008].531000 > msConnPoolRelease(hydarea at hyd(*)_area,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316 > 030,01D80B40) > [Thu Jul 24 10:54:46 2008].531000 > msConnPoolClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40) > [Thu Jul 24 10:54:46 2008].531000 msDrawMap(): Layer 1 > (hydarea at hyd(*)_area), 0.360s > [Thu Jul 24 10:54:46 2008].531000 msDrawMap(): Drawing Label Cache, 0.000s > [Thu Jul 24 10:54:46 2008].531000 msDrawMap() total time: 0.781s > [Thu Jul 24 10:54:46 2008].546000 msFreeMap(): freeing map at 01365A48. > > > > ________________________________ > Not happy with your email address? > Get the one you really want - millions of new email addresses available now > at Yahoo! > > > __________________________________________________________ > Not happy with your email address?. > Get the one you really want - millions of new email addresses available now > at Yahoo! http://uk.docs.yahoo.com/ymail/new.html From rburghol at vt.edu Thu Jul 24 10:53:28 2008 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Thu, 24 Jul 2008 13:53:28 -0400 Subject: [mapserver-users] php_mapscript compatibility trouble In-Reply-To: References: <1216915074.4888a68253c46@webmail.vt.edu> Message-ID: <1216922008.4888c19842456@webmail.vt.edu> ak, You rule! That did the trick! Is this worthy of a bug-report, or feature request, i.e., a configure switch to have the debug set on php_mapscript -- or should it automagically do it with the enable-debug switch on?? Many thanks! r.b. Quoting alim karim : > you can try changing the following to enable a debug build of the mapscript > module. > > in mapscript/php3/php_mapscript.c : > > change > > #define ZEND_DEBUG 0 > > to > > #define ZEND_DEBUG 1 > > ak > > On Thu, Jul 24, 2008 at 8:57 AM, Robert W. Burgholzer > wrote: > > > I am getting the following error after recompiling php and mapserv: > > > > in Unknown on line 0 > > Unknown(0) : Warning - PHP Startup: MapScript: Unable to initialize module > > Module compiled with module API=20060613, debug=0, thread-safety=1 > > PHP compiled with module API=20060613, debug=1, thread-safety=1 > > These options need to match > > > > I believe that I have enabled the debug option in mapserver, and I am using > > php > > as a CGI, so I am unsure as to what the trouble is. I don't WANT thread > > safety, I believe, but cannot seem to figure out how to disable it. Below > > are > > my compile options for php and mapserver, any help would be great: > > > > PHP config statement: > > ./configure --with-gd --with-mysql=/usr/local/mysql --with-pgsql > > --with-zlib > > --with-ttf --prefix=/usr --enable-debug --enable-maintainer-zts > > > > Mapserver config: > > ./configure --with-wfs --with-wmsclient > > --with-php=/Users/robertwb/src/php-5.2.5 > > --with-postgis=/usr/local/pgsql/bin --with-wfsclient --with-wms > > --with-postgis > > --with-gdal --with-ogr --with-geos --with-proj --enable-debug > > > > Thanks! > > > > -- > > Robert W. Burgholzer > > -- > > Finding the occasional straw of truth awash in a great ocean of confusion > > and > > bamboozle requires intelligence, vigilance, dedication and courage. But if > > we > > don't practice these tough habits of thought, we cannot hope to solve the > > truly > > serious problems that face us -- and we risk becoming a nation of suckers, > > up > > for grabs by the next charlatan who comes along. > > -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, > > 1987 > > > > Web Hydrology Objects - Online Collaborative Modeling: > > http://sourceforge.net/projects/npsource/ > > Home Page: > > http://soulswimmer.dynalias.net/ > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Robert W. Burgholzer -- Finding the occasional straw of truth awash in a great ocean of confusion and bamboozle requires intelligence, vigilance, dedication and courage. But if we don't practice these tough habits of thought, we cannot hope to solve the truly serious problems that face us -- and we risk becoming a nation of suckers, up for grabs by the next charlatan who comes along. -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, 1987 Web Hydrology Objects - Online Collaborative Modeling: http://sourceforge.net/projects/npsource/ Home Page: http://soulswimmer.dynalias.net/ From rburghol at vt.edu Thu Jul 24 10:54:47 2008 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Thu, 24 Jul 2008 13:54:47 -0400 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? In-Reply-To: <200807241929.51666.yjacolin@free.fr> References: <978312.70577.qm@web33204.mail.mud.yahoo.com> <200807240843315753771@163.com> <200807241929.51666.yjacolin@free.fr> Message-ID: <1216922087.4888c1e75e2cf@webmail.vt.edu> If the standalone tool was web-based, then most definitely. :) r.b. Quoting Yves Jacolin : > Enri, > > Le jeudi 24 juillet 2008 02:43, enri a ?crit?: > > Anyway, this tool will puts focus on windows users > I am sad to read this, can't you think to all other linux geek? :) > > Depends on the langage you use, might it be portable to another plateform? > > Regards, > > Y. > -- > Yves Jacolin > ------------- > "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du > pouvoir, de la puissance d'agir." M Gauchet > > "Give freedom to people is not enough, we also have to give them the power to > use this freedom, to act". M Gauchet > ------------- > http://yjacolin.gloobe.org > http://softlibre.gloobe.org > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Robert W. Burgholzer -- Finding the occasional straw of truth awash in a great ocean of confusion and bamboozle requires intelligence, vigilance, dedication and courage. But if we don't practice these tough habits of thought, we cannot hope to solve the truly serious problems that face us -- and we risk becoming a nation of suckers, up for grabs by the next charlatan who comes along. -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, 1987 Web Hydrology Objects - Online Collaborative Modeling: http://sourceforge.net/projects/npsource/ Home Page: http://soulswimmer.dynalias.net/ From alim.karim at gmail.com Thu Jul 24 10:58:52 2008 From: alim.karim at gmail.com (alim karim) Date: Thu, 24 Jul 2008 10:58:52 -0700 Subject: [mapserver-users] php_mapscript compatibility trouble In-Reply-To: <1216922008.4888c19842456@webmail.vt.edu> References: <1216915074.4888a68253c46@webmail.vt.edu> <1216922008.4888c19842456@webmail.vt.edu> Message-ID: the credit for this goes to daniel morissette - i had found a post by him suggesting this a while ago when i ran into the same problem. i'd leave it to the development guys to make the call on whether --enable-debug should automatically change the ZEND_DEBUG flag - it would be nice if it did. ak On Thu, Jul 24, 2008 at 10:53 AM, Robert W. Burgholzer wrote: > ak, > You rule! That did the trick! > > Is this worthy of a bug-report, or feature request, i.e., a configure > switch to > have the debug set on php_mapscript -- or should it automagically do it > with > the enable-debug switch on?? > > Many thanks! > > r.b. > > > Quoting alim karim : > > > you can try changing the following to enable a debug build of the > mapscript > > module. > > > > in mapscript/php3/php_mapscript.c : > > > > change > > > > #define ZEND_DEBUG 0 > > > > to > > > > #define ZEND_DEBUG 1 > > > > ak > > > > On Thu, Jul 24, 2008 at 8:57 AM, Robert W. Burgholzer > > wrote: > > > > > I am getting the following error after recompiling php and mapserv: > > > > > > in Unknown on line 0 > > > Unknown(0) : Warning - PHP Startup: MapScript: Unable to initialize > module > > > Module compiled with module API=20060613, debug=0, thread-safety=1 > > > PHP compiled with module API=20060613, debug=1, thread-safety=1 > > > These options need to match > > > > > > I believe that I have enabled the debug option in mapserver, and I am > using > > > php > > > as a CGI, so I am unsure as to what the trouble is. I don't WANT > thread > > > safety, I believe, but cannot seem to figure out how to disable it. > Below > > > are > > > my compile options for php and mapserver, any help would be great: > > > > > > PHP config statement: > > > ./configure --with-gd --with-mysql=/usr/local/mysql --with-pgsql > > > --with-zlib > > > --with-ttf --prefix=/usr --enable-debug --enable-maintainer-zts > > > > > > Mapserver config: > > > ./configure --with-wfs --with-wmsclient > > > --with-php=/Users/robertwb/src/php-5.2.5 > > > --with-postgis=/usr/local/pgsql/bin --with-wfsclient --with-wms > > > --with-postgis > > > --with-gdal --with-ogr --with-geos --with-proj --enable-debug > > > > > > Thanks! > > > > > > -- > > > Robert W. Burgholzer > > > -- > > > Finding the occasional straw of truth awash in a great ocean of > confusion > > > and > > > bamboozle requires intelligence, vigilance, dedication and courage. > But if > > > we > > > don't practice these tough habits of thought, we cannot hope to solve > the > > > truly > > > serious problems that face us -- and we risk becoming a nation of > suckers, > > > up > > > for grabs by the next charlatan who comes along. > > > -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, > > > 1987 > > > > > > Web Hydrology Objects - Online Collaborative Modeling: > > > http://sourceforge.net/projects/npsource/ > > > Home Page: > > > http://soulswimmer.dynalias.net/ > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > Robert W. Burgholzer > -- > Finding the occasional straw of truth awash in a great ocean of confusion > and > bamboozle requires intelligence, vigilance, dedication and courage. But if > we > don't practice these tough habits of thought, we cannot hope to solve the > truly > serious problems that face us -- and we risk becoming a nation of suckers, > up > for grabs by the next charlatan who comes along. > -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, > 1987 > > Web Hydrology Objects - Online Collaborative Modeling: > http://sourceforge.net/projects/npsource/ > Home Page: > http://soulswimmer.dynalias.net/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Jul 24 12:15:44 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 24 Jul 2008 15:15:44 -0400 Subject: [mapserver-users] SCALE=AUTO applied to current view or entire layer? In-Reply-To: <48881199.4070401@nsidc.org> References: <4887C5E5.8070402@nsidc.org> <4887CFDD.3060604@pobox.com> <48881199.4070401@nsidc.org> Message-ID: <4888D4E0.4090305@pobox.com> John Maurer wrote: > >> I'm quite surprised at the behavior you report. MapServer *should* be >> computing a minimum and maximum for scaling purposes based on the data >> loaded for the particular map draw request, not the layer as a whole. > > Hi Frank, > Thanks for your prompt reply! And sorry for the false alarm. Your > explanation helped me understand what's going on behind the scenes in > MapServer for the SCALE=AUTO directive, and your suspicion was right > about needing smarter min/max computation. It would be nice if there was > a simple linear 2% contrast stretch available (cut off the least and > greatest 2% of values), depending on how bad that slows things down. Is > there some way to make this a request for some future version of > MapServer? Thanks again!! John, Well, you could file an enhancement ticket, but I generally read them once and then never review them so it isn't likely to have much effect beyond my having read this email. Ideally you would prototype an implementation of what you want, and file it as a ticket with a patch. I'd be much more likely to take some time to apply such a patch even if I change it a bit. Of course, if you wanted to fund the work, that would also work. Lastly, if you made one of my clients realize they really want this, that would also help! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From MarkVolz at co.lyon.mn.us Thu Jul 24 12:39:40 2008 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 24 Jul 2008 14:39:40 -0500 Subject: [mapserver-users] Displaying identify results properly precision and scale Message-ID: <3D56274B4A7874468F58FADDBFD0980105EADB5E@llmhs02.r8nssis.local> Hello, I am using Geomoose, which runs over mapserver. I am having issues with how the identify results display. The results are showing up in scientific notation eg acres = 1.5400000 e +002. I would the data to show up as 154.00 Acres. I looked at another shapefile that is working and realized my issue is that the precision and scale are not set in my shapefile. I cannot change the precision and scale through esri because the attributes are joined from an access database. Anyways, Can I format the display of numbers directly within mapserver? If not, does anyone else have any other ideas? Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Thu Jul 24 14:45:39 2008 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Thu, 24 Jul 2008 18:45:39 -0300 Subject: [mapserver-users] Poll: Do you think a standalone Mapfile editing tool is necessary? In-Reply-To: <1216922087.4888c1e75e2cf@webmail.vt.edu> References: <978312.70577.qm@web33204.mail.mud.yahoo.com> <200807240843315753771@163.com> <200807241929.51666.yjacolin@free.fr> <1216922087.4888c1e75e2cf@webmail.vt.edu> Message-ID: hi, maybe we don't need a new tool. A plugin for a text editor maybe do that job. Something like a "extend" auto-complete (when you put the LAYER definition, the plugin also put all the optins you have - CONNECTION, CLASS etc). Sometimes i am lost with so many options (Layer -> Class -> Style -> n options if polygon -> outline color, color, etc). 1+ to cross plataform (with qt or gtk) []'s 2008/7/24 Robert W. Burgholzer : > If the standalone tool was web-based, then most definitely. :) > > r.b. > > > Quoting Yves Jacolin : > > > Enri, > > > > Le jeudi 24 juillet 2008 02:43, enri a ?crit : > > > Anyway, this tool will puts focus on windows users > > I am sad to read this, can't you think to all other linux geek? :) > > > > Depends on the langage you use, might it be portable to another > plateform? > > > > Regards, > > > > Y. > > -- > > Yves Jacolin > > ------------- > > "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner > du > > pouvoir, de la puissance d'agir." M Gauchet > > > > "Give freedom to people is not enough, we also have to give them the > power to > > use this freedom, to act". M Gauchet > > ------------- > > http://yjacolin.gloobe.org > > http://softlibre.gloobe.org > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Robert W. Burgholzer > -- > Finding the occasional straw of truth awash in a great ocean of confusion > and > bamboozle requires intelligence, vigilance, dedication and courage. But if > we > don't practice these tough habits of thought, we cannot hope to solve the > truly > serious problems that face us -- and we risk becoming a nation of suckers, > up > for grabs by the next charlatan who comes along. > -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1, > 1987 > > Web Hydrology Objects - Online Collaborative Modeling: > http://sourceforge.net/projects/npsource/ > Home Page: > http://soulswimmer.dynalias.net/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Jul 24 14:18:56 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Jul 2008 17:18:56 -0400 Subject: [mapserver-users] php_mapscript compatibility trouble In-Reply-To: References: <1216915074.4888a68253c46@webmail.vt.edu> <1216922008.4888c19842456@webmail.vt.edu> Message-ID: <4888F1C0.10304@mapgears.com> alim karim wrote: > > i'd leave it to the development guys to make the call on whether > --enable-debug should automatically change the ZEND_DEBUG flag - it > would be nice if it did. > I don't think --enable-debug should also set the ZEND_DEBUG flag in php_mapscript.c because we sometimes (often in my case) want MapServer/MapScript in debug mode but with a regular (non-debug) PHP build, so the two are not directly linked. That being said, a new --enable-php-debug configure option could possibly be added, or if possible we should consider removing that hardcoded ZEND_DEBUG define in php_mapscript.c since the value is presumably set already in the zend headers and we should not mess with it in our own code. I have filed a ticket in Trac about this so that we don't forget: http://trac.osgeo.org/mapserver/ticket/2717 Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Thu Jul 24 15:05:35 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 24 Jul 2008 17:05:35 -0500 Subject: [mapserver-users] Displaying identify results properly precisionand scale In-Reply-To: <3D56274B4A7874468F58FADDBFD0980105EADB5E@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD0980105EADB5E@llmhs02.r8nssis.local> Message-ID: <4888B65F.5157.008F.0@dnr.state.mn.us> I'm not sure how geomose generates those results but I would imagine it's through templates. If so, then you can use the item tag to control precision. If the column is area then the tag would look like: [item name="area" precision=2] or something along those lines. Steve >>> On 7/24/2008 at 2:39 PM, in message <3D56274B4A7874468F58FADDBFD0980105EADB5E at llmhs02.r8nssis.local>, "Mark Volz" wrote: > Hello, > > I am using Geomoose, which runs over mapserver. I am having issues with how > the identify results display. The results are showing up in scientific > notation eg acres = 1.5400000 e +002. I would the data to show up as 154.00 > Acres. > > I looked at another shapefile that is working and realized my issue is that > the precision and scale are not set in my shapefile. I cannot change the > precision and scale through esri because the attributes are joined from an > access database. > > Anyways, > > Can I format the display of numbers directly within mapserver? If not, does > anyone else have any other ideas? > > > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > (507) 532-8218 > > From stefan.schwarzer at grid.unep.ch Thu Jul 24 22:40:09 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 25 Jul 2008 07:40:09 +0200 Subject: [mapserver-users] Add Content to the Legend In-Reply-To: <48870DA3.5157.008F.0@dnr.state.mn.us> References: <59FB0954-D580-408C-88A0-A7D0192BB89F@grid.unep.ch> <4884A55F.5157.008F.0@dnr.state.mn.us> <2D7FFE6C-A789-4E26-90EB-57D55DA15D00@grid.unep.ch> <48870DA3.5157.008F.0@dnr.state.mn.us> Message-ID: <73C2578B-54E2-40EC-B280-FB5B5681CA8F@grid.unep.ch> Class definition looks like this: LAYER NAME total_co2_90.tif TYPE RASTER STATUS DEFAULT DATA total_co2_90.tif PROJECTION 'init=epsg:4326' END END Normally, when dealing with shapefiles, I have something like this: CLASS NAME 'Units: Teragrams CO2 Equivalent' EXPRESSION ([value]=-110003) TEMPLATE 'units as title in legend' END # CLASS CLASS NAME '0 to 111' EXPRESSION ([value]<=111) COLOR 255 255 178 ..... As I have many different raster files, it would be somewhat of a hassle to hard-code their legends (in mapfile form). These legends are loaded separately as GIFs. I just want to have an additional info displayed, the units, which I would like to display dynamically, as they can be expressed in different languages. Stef On Jul 23, 2008, at 5:53 PM, Steve Lime wrote: > Sorry, I mean in terms of a mapfile definition. > > Steve > >>>> On 7/23/2008 at 2:22 AM, in message > <2D7FFE6C-A789-4E26-90EB-57D55DA15D00 at grid.unep.ch>, Stefan Schwarzer > wrote: >>> What do your faked classes look like? >> >> Looks like this: >> >> http://www.pixentral.com/show.php?picture=1wRKCRDAq8lKdLJzzaCYoLHHJeFUCu0 >> >> That's for the statistical data. The TIF data would display a pre- >> prepared GIF legend, plus the UNITS info. >> >>>> I would like to add information about the Units of the selected >>>> variable into the legend. When using vector data, this wasn't >>>> really >>>> the problem. I kind of faked empty classes to insert that >>>> information. >>>> >>>> But now, I wonder how to achieve this when using TIF images. As the >>>> TIF is already color coded and regrouped into a couple of classes, >>>> using faked CLASS values, results in the display of zero pixels - >>>> nothing is being displayed. >>>> >>>> Is there another way to "slip" in some information into the legend? >>>> Or >>>> is the HTML legend the only alternative? >>>> From beartreeyoga at yahoo.co.uk Fri Jul 25 02:46:27 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Fri, 25 Jul 2008 09:46:27 +0000 (GMT) Subject: [mapserver-users] OGR problems Message-ID: <197638.1087.qm@web23001.mail.ird.yahoo.com> Hi My problem with DNC's were traced to the use of the extents. I use a top level map file with the extents set to the whole world and INCLUDE other map files which define the extents for each layer. This worked okay until I used DNC's. I created a seperate map file for DNC's and had to set the extents at the top of the map file to be the same as the extents for the layers. Now I can draw the layers onto the test.png file. HOWEVER, this only works with the shp2map file supplied by FWTools (v2.2.0) When I try to get the map from MapServer using my client, this is what appears in the ms_debug.txt file from MapServer Fri Jul 25 10:36:14 2008].812000 msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/d:/SeeTrack_Missions/MyTestData/data/DNC13/H1316030'. File not found or unsupported format. [Fri Jul 25 10:36:14 2008].812000 msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'. [Fri Jul 25 10:36:14 2008].812000 msFreeMap(): freeing map at 01495F70. [Fri Jul 25 10:36:15 2008].906000 msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/d:/SeeTrack_Missions/MyTestData/data/DNC13/H1316030'. File not found or unsupported format. [Fri Jul 25 10:36:15 2008].906000 msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'. [Fri Jul 25 10:36:15 2008].906000 msFreeMap(): freeing map at 01495FE8. [Fri Jul 25 10:36:17 2008].46000 msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/d:/SeeTrack_Missions/MyTestData/data/DNC13/H1316030'. File not found or unsupported format. [Fri Jul 25 10:36:17 2008].46000 msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'. [Fri Jul 25 10:36:17 2008].46000 msFreeMap(): freeing map at 01496008. [Fri Jul 25 10:36:17 2008].890000 msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/d:/SeeTrack_Missions/MyTestData/data/DNC13/H1316030'. File not found or unsupported format. [Fri Jul 25 10:36:17 2008].890000 msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'. [Fri Jul 25 10:36:17 2008].890000 msFreeMap(): freeing map at 01496028. [Fri Jul 25 10:36:18 2008].796000 msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/d:/SeeTrack_Missions/MyTestData/data/DNC13/H1316030'. File not found or unsupported format. [Fri Jul 25 10:36:18 2008].796000 msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'. [Fri Jul 25 10:36:18 2008].812000 msFreeMap(): freeing map at 01496048. The OGR connection is okay because shp2img opens it. I see that MapServer is at 5.2 but there is no Windows Binary available for this build. Can someone inform me if v5.2 uses the latest gdal/ogr source code. Also, can I copy files from FWTools to Mapserver to get this working and if so, which file(s) I don't want to break Mapserver. Derek __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From beartreeyoga at yahoo.co.uk Fri Jul 25 03:27:48 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Fri, 25 Jul 2008 10:27:48 +0000 (GMT) Subject: [mapserver-users] 5.2.0 and 5.02 differences and previous OGR problems post Message-ID: <238310.29592.qm@web23001.mail.ird.yahoo.com> Hi I found the 5.2 windows binary udate using google. I installed it and now the ms_debug output shows [Fri Jul 25 11:19:15 2008].437000 msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing [Fri Jul 25 11:19:15 2008].437000 mapserv request processing time (msLoadMap not incl.): 0.000s [Fri Jul 25 11:19:15 2008].437000 msFreeMap(): freeing map at 01495F50. [Fri Jul 25 11:19:16 2008].343000 CGI Request 1 on process 3180 [Fri Jul 25 11:19:16 2008].343000 msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing [Fri Jul 25 11:19:16 2008].359000 mapserv request processing time (msLoadMap not incl.): 0.016s [Fri Jul 25 11:19:16 2008].359000 msFreeMap(): freeing map at 01495F88. [Fri Jul 25 11:19:17 2008].78000 CGI Request 1 on process 1580 [Fri Jul 25 11:19:17 2008].78000 msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing [Fri Jul 25 11:19:17 2008].78000 mapserv request processing time (msLoadMap not incl.): 0.000s [Fri Jul 25 11:19:17 2008].78000 msFreeMap(): freeing map at 01496008. What has happened Derek __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbrehmer at refractions.net Wed Jul 23 12:18:26 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Wed, 23 Jul 2008 12:18:26 -0700 Subject: [mapserver-users] 24 bit PNG transparent symbols Message-ID: <48878402.1020702@refractions.net> Hi List, I've been trying to get 24 bit PNG symbols to be transparent. I've tried both GD and AGG output. I've tried --with-experimental-png. I've tried editing the symbol in photoshop to be transparent. Basically fooled around with all the different output format options. I've tried both RGB and RGBA png images. 8 bit PNG symbols work just fine. But the 24 bit symbols always have a white and non-transparent background (see attached image). Is there any other mapfile configurations I can try before I convert all of my 24 bit images to 8 bit? Or maybe this is a known bug? Thanks, Ben ------------------------------------------ I'm using: MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE (also tried Mapserver 5.2 with SUPPORTS=RGBA_PNG ) The mapfile: MAP .. IMAGETYPE "aggpng24" OUTPUTFORMAT TRANSPARENT ON NAME 'aggpng24' DRIVER "AGG/PNG" MIMETYPE "image/png mode=24bit" EXTENSION "png" IMAGEMODE RGBA #also tried RGB for rgb png images ... #NAME "gdpng24" #DRIVER "GD/PNG" #MIMETYPE "image/png" #EXTENSION "png" #IMAGEMODE RGB #RGBA END LAYER CLASS STYLE SYMBOL "../../htdocs/images/markers/blue_star_32.png" END END ... . END -------------------------------------- gdalinfo output: Driver: PNG/Portable Network Graphics Size is 32, 32 Coordinate System is `' Metadata: Software=Adobe ImageReady Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 32.0) Upper Right ( 32.0, 0.0) Lower Right ( 32.0, 32.0) Center ( 16.0, 16.0) Band 1 Block=32x1 Type=Byte, ColorInterp=Red Band 2 Block=32x1 Type=Byte, ColorInterp=Green Band 3 Block=32x1 Type=Byte, ColorInterp=Blue Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv5.png Type: image/png Size: 36474 bytes Desc: not available URL: From albertvd at gmail.com Sat Jul 26 12:07:19 2008 From: albertvd at gmail.com (Albert) Date: Sat, 26 Jul 2008 22:07:19 +0300 Subject: [mapserver-users] Obtaining actual coordinates from xy position on map Message-ID: <66e9a78f0807261207u5654b05haae093664055edce@mail.gmail.com> Good day, I am new to mapserver. Thus far I have been able to install it on my server and load my map into it. I have also been able to use the CGI to get a map image which can now be used in my application. My map is in UTM with WGS84 datum. The example I'm working with is a 6000x7667 pixel raster image with 15 meter per pixel native resolution. In my application I need to obtain a map image from Mapserver. Ideally this image should be returned by specifying the Center coordinate for the area of interest. This coordinate will be provided by a GPS in decimal degrees, but if required can also be converted to UTM for the query. Is there a way of doing this? I then need to be able to obtain the actual latitude/longitude coordinate when providing the pixel x/y position. Is there a way of doing this? Lastly I note that when specifying the MAPSIZE parameter for the CGI the 6000x7667 pixel image is resized to this specified size. Is there a way of keeping the image in the 6000x7667 resolution but only retrieving say 200x200 pixels around the area of interest? Thank you, Albert From reena at indiamail.com Sun Jul 27 01:34:57 2008 From: reena at indiamail.com (S.Reena) Date: Sun, 27 Jul 2008 01:34:57 -0700 (PDT) Subject: [MAPSERVER-USERS] Display of polygon in map Message-ID: <18674352.post@talk.nabble.com> Hi All, I had a shape file with point features which I had aggregated into polygon and formed a table with gid, newgeom and name attributes. Now that polygon is getting displayed as postgis layer in Quantum GIS but but somehow its not getting displayed in map...Can anyone suggest something? Cheers, Reena. -- View this message in context: http://www.nabble.com/Display-of-polygon-in-map-tp18674352p18674352.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luca76 at gmail.com Sat Jul 26 22:51:27 2008 From: luca76 at gmail.com (Luca Manganelli) Date: Sun, 27 Jul 2008 07:51:27 +0200 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> Message-ID: Where can I have more detail about these improvements? > * performance enhancements for large shapefile handling > * performance enhancements for AGG rendering (an order of magnitude faster in some cases) > * fuzzy label outlines for AGG > * style-level opacity for AGG > * quantization and palette support for PNGs and RGBA modes > * SOS 1.0.0 support > * extent (e.g. shpext, mapext) template tag attribute handling From nipapada at gmail.com Sun Jul 27 09:41:12 2008 From: nipapada at gmail.com (=?UTF-8?B?zp3Ouc66zr/PgiDOoM6xz4DOsc60zqzOus63z4I=?=) Date: Sun, 27 Jul 2008 19:41:12 +0300 Subject: [mapserver-users] Shape Files. In-Reply-To: References: Message-ID: <488CA528.6080906@gmail.com> Hallo.. Does anybody know a way i can read the contents of a shape file in order to see what fields does it contain? Thank you!!! From Jukka.Rahkonen at mmmtike.fi Sun Jul 27 15:01:22 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 28 Jul 2008 01:01:22 +0300 Subject: [mapserver-users] Shape Files. References: <488CA528.6080906@gmail.com> Message-ID: Hi, Yes, ogrinfo. It is included in MS4W package, or you can get it by downloading FWTools. Let's assume you have shapefile named places.shp. Then the following command should give you the information you want: ogrinfo -summary places.shp places Or then you can of course download some free GIS software and have a look on your shapefiles that way. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: ????? ????????? L?hetetty: su 27.7.2008 19:41 Kopio: Mapserver-users (mapserver-users at lists.osgeo.org) Aihe: [mapserver-users] Shape Files. Hallo.. Does anybody know a way i can read the contents of a shape file in order to see what fields does it contain? Thank you!!! _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From fsimon at univali.br Sun Jul 27 20:00:00 2008 From: fsimon at univali.br (Fernando Simon) Date: Mon, 28 Jul 2008 00:00:00 -0300 Subject: [mapserver-users] MapServer with Oracle Spatial In-Reply-To: <200807241355.46825.iratxe.lejarreta@axios.es> References: <200807241355.46825.iratxe.lejarreta@axios.es> Message-ID: <488D3630.20208@univali.br> Hi, To compile the UMN Mapserver with the Oracle Spatial support you need to have (in your system) the Oracle Call Interface (OCI). You can install this library from the Oracle Client installation (or server if you run all in the same server). After this, you can compile the Oracle Spatial support for UMN Mapserver. You can use two ways to connect Oracle Spatial from UMN Mapserver: The specific UMN Mapserver driver (maporaclespatial.c) for Oracle Spatial, that talks directly with Oracle Database. Or you can use the OGR, that you can use to connect with many data formats and databases. Some people in the mailing list tells that maporaclespatial driver is 2.5/3.5x more fast than OGR. Best regards. ---------------------------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial Developer Iratxe Lejarreta wrote: > Hi, > > I installed FGS on Red Hat Enterprise Linux 5.2, but I don't know what I need > to configure in MapServer to connect with Oracle 10g. Because, when I run the > WFS service, the result is: msOracleSpatialLayerOpen(): OracleSpatial error. > OracleSpatial is not supported > In the Mapserver documentation > (http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto) explain that > there are 2 options for using Oracle Spatial with Mapserver: > 1.- The problem is that I haven't got maporaclespatil.c file > 2.- The problem is that I don't know how to compile OGR with OCI > > Somebody can help me? > > Thank you in advance. > > > From domenico.febbo at gmail.com Sun Jul 27 23:56:26 2008 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Mon, 28 Jul 2008 08:56:26 +0200 Subject: [mapserver-users] SSL protocol Message-ID: <97236bbb0807272356v495b5d45nc2a7774fc1373685@mail.gmail.com> Hi all, I need to use WMS service for private data with secure connection. Is it possible to establish secure connection (HTTPS) to connect webGIS client to Mapserver. Or there are other techniques to do that? Thanks in advances? I'm setting up a WMS server on a Linux distro. with apache and mapserver. Domenico -------------- next part -------------- An HTML attachment was scrubbed... URL: From ven.tammineni at gmail.com Mon Jul 28 02:50:09 2008 From: ven.tammineni at gmail.com (venkat) Date: Mon, 28 Jul 2008 15:20:09 +0530 Subject: [mapserver-users] Reg: About Data Loading into MS SQL Server 2008 And Displays data on Map(Mapserver) Message-ID: <79ad14900807280250j43f4aabbiec0c0db2df5dac50@mail.gmail.com> Dear All, I am Venkat, I am not able to load huge data on map.I can able to import .I am not able to display on map. For Example I have one World shape file .I can able to import into data base(MsSQl Server2008). If I try to display on Map(Mapserver) using mapfile, the map will displays only first two Rows(if data or polygon is big) or if data is small (if the shape size small ) then it map will display with more than 2 rows.I do not know where I am doing wrong.Is it a BUG?.I do not know where i am getting struck. I have pasted my mapfile code below.I am using Mapserver 5.0 C# asp.net.The below table will show only Asia and NorthAmerica. When i check with Table ,these continents are in First and Second Row.I do not what exactly the issue ? Please let me know where I am doing wrong. I am waiting for your great response. Advanced Thanks Layer name "World" CONNECTIONTYPE PLUGIN PLUGIN "C:\Inetpub\wwwroot\MapServeConsoleApplication\Plugin\msplugin_mssql2008.dll" #plug in CONNECTION "server=192.168.1.79;uid=sa;pwd=asp123;database=testspatial;Integrated Security=false" # data base server connection DATA "geom from rgp_gis_continent" # table TYPE polygon STATUS ON CLASS STYLE COLOR 0 0 255 WIDTH 8 END END End Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Mon Jul 28 05:44:00 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Mon, 28 Jul 2008 08:44:00 -0400 Subject: [mapserver-users] SSL protocol In-Reply-To: <97236bbb0807272356v495b5d45nc2a7774fc1373685@mail.gmail.com> References: <97236bbb0807272356v495b5d45nc2a7774fc1373685@mail.gmail.com> Message-ID: <20080728124400.GB13997@metacarta.com> On Mon, Jul 28, 2008 at 08:56:26AM +0200, Domenico Febbo wrote: > Hi all, > I need to use WMS service for private data with secure connection. Is it > possible to establish secure connection (HTTPS) to connect webGIS client to > Mapserver. Yes. MapServer running under Apache doesn't need any MapServer specific configuratino for this. You'll just need to look into how to set up SSL for your Apache installation. Regards, -- Christopher Schmidt MetaCarta From Amccracken at i3.com Mon Jul 28 08:04:35 2008 From: Amccracken at i3.com (Alex McCracken) Date: Mon, 28 Jul 2008 09:04:35 -0600 Subject: [mapserver-users] Legend Name Colors Message-ID: <01d201c8f0c3$3f68a250$be39e6f0$@com> Hello, I am trying to have each line of text in a legend to be its own color. I am able to change the color of all of the text in the legend, but not each individually. Is there a way to have each class object in the individual layers change the color of the text that it is referencing or will the legend only allow one color for all text to be generated? Any help would be appreciated. Thanks, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Sun Jul 27 22:52:48 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Mon, 28 Jul 2008 07:52:48 +0200 Subject: [mapserver-users] Legend icon size - question Message-ID: Hi, Can I influence the size of legend icon/image in any way? The documentation says "The size of the legend image is NOT known prior to creation.." and "...legend components are built automatically from class objects from individual layers..." The reason I am asking this is following: I am using a PIXMAP symbol to show some points on the map. If I set the SIZE in the CLASS section to be small enough, then the symbol "Fits" the legend box correctly, but it is not big enough for showing it on the map. If I increase the SIZE, the symbol is shown on the map as I like, but then it doesn't "fit" to legend box and I can only see its portion. So, is there any way to solve this or it is just a mapserver feature, that cannot be changed? thans very much regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul_pag00 at hotmail.com Mon Jul 28 09:20:56 2008 From: paul_pag00 at hotmail.com (pag66) Date: Mon, 28 Jul 2008 09:20:56 -0700 (PDT) Subject: [MAPSERVER-USERS] Display of polygon in map In-Reply-To: <18674352.post@talk.nabble.com> References: <18674352.post@talk.nabble.com> Message-ID: <18693560.post@talk.nabble.com> Hi friend post the connection that you're using maybe it a problem with the select statement, try "the_geom from table using unique gid" if you have and gid field -- View this message in context: http://www.nabble.com/Display-of-polygon-in-map-tp18674352p18693560.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Mon Jul 28 10:16:11 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 28 Jul 2008 12:16:11 -0500 Subject: [mapserver-users] Legend Name Colors In-Reply-To: <01d201c8f0c3$3f68a250$be39e6f0$@com> References: <01d201c8f0c3$3f68a250$be39e6f0$@com> Message-ID: <488DB88B.5157.008F.0@dnr.state.mn.us> Hi Alex: The label object in the legend can only have one color. HTML legends might give you this control. Steve >>> On 7/28/2008 at 10:04 AM, in message <01d201c8f0c3$3f68a250$be39e6f0$@com>, "Alex McCracken" wrote: > Hello, > > I am trying to have each line of text in a legend to be its own color. I am > able to change the color of all of the text in the legend, but not each > individually. Is there a way to have each class object in the individual > layers change the color of the text that it is referencing or will the > legend only allow one color for all text to be generated? Any help would be > appreciated. > > Thanks, > > Alex From Amccracken at i3.com Mon Jul 28 10:53:23 2008 From: Amccracken at i3.com (Alex McCracken) Date: Mon, 28 Jul 2008 11:53:23 -0600 Subject: [mapserver-users] Legend Name Colors In-Reply-To: <488DB88B.5157.008F.0@dnr.state.mn.us> References: <01d201c8f0c3$3f68a250$be39e6f0$@com> <488DB88B.5157.008F.0@dnr.state.mn.us> Message-ID: <01eb01c8f0da$d44249f0$7cc6ddd0$@com> Thank you Steve. Do you, or anyone, know if the background color of the legend (IMAGECOLOR) can be set with an opacity? I know you can set it to transparent or just one color, but is there a way to set this to say a 50% opacity? Perhaps with OUTPUTFORMAT? Alex -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Monday, July 28, 2008 11:16 AM To: Alex McCracken; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Legend Name Colors Hi Alex: The label object in the legend can only have one color. HTML legends might give you this control. Steve >>> On 7/28/2008 at 10:04 AM, in message <01d201c8f0c3$3f68a250$be39e6f0$@com>, "Alex McCracken" wrote: > Hello, > > I am trying to have each line of text in a legend to be its own color. I am > able to change the color of all of the text in the legend, but not each > individually. Is there a way to have each class object in the individual > layers change the color of the text that it is referencing or will the > legend only allow one color for all text to be generated? Any help would be > appreciated. > > Thanks, > > Alex From Steve.Lime at dnr.state.mn.us Mon Jul 28 13:42:26 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 28 Jul 2008 15:42:26 -0500 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> Message-ID: <488DE8E2.5157.008F.0@dnr.state.mn.us> Info inline... I'll file documentation bugs for those issues I noted below... Steve >>> On 7/27/2008 at 12:51 AM, in message , "Luca Manganelli" wrote: > Where can I have more detail about these improvements? > >> * performance enhancements for large shapefile handling http://trac.osgeo.org/mapserver/ticket/2601 http://trac.osgeo.org/mapserver/ticket/2282 No configuration changes are necessary. >> * performance enhancements for AGG rendering (an order of magnitude > faster in some cases) This involved removing alpha channel manipulation that was in place when switching between GD and AGG rendering. It's automatic, no configuration necessary. >> * fuzzy label outlines for AGG Adds OUTLINEWIDTH to LABEL object. Support is for AGG only. Documentation still needs an update. >> * style-level opacity for AGG Adds OPACITY keyword to the STYLE object. Documentation still needs an update. >> * quantization and palette support for PNGs and RGBA modes http://trac.osgeo.org/mapserver/ticket/2436 >> * SOS 1.0.0 support Tom, Assefa? >> * extent (e.g. shpext, mapext) template tag attribute handling http://trac.osgeo.org/mapserver/ticket/2376 http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference (see [mapext]) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Jul 28 13:49:15 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 28 Jul 2008 15:49:15 -0500 Subject: [mapserver-users] nextlabel() getlabel() still being used? In-Reply-To: <483857.29646.qm@web52303.mail.re2.yahoo.com> References: <483857.29646.qm@web52303.mail.re2.yahoo.com> Message-ID: <488DEA7B.5157.008F.0@dnr.state.mn.us> Didn't see any replies, sorry for the delay. Looking at the source these methods look to be gone from PHP/MapScript although they are still present in Swig/MapScript. Perhaps one of the PHP/MapScript maintainers can chime in... Steve >>> On 7/17/2008 at 3:34 PM, in message <483857.29646.qm at web52303.mail.re2.yahoo.com>, "J.J. Schlafley" wrote: > Just wondering if PHP Mapscript uses the methods nextlabel() or getlabel() > for getting label objects from the label cache? I know removing or changing > this functionality was discussed previously, but cant find where the > situation stands. thanks. > > > From yassefa at dmsolutions.ca Mon Jul 28 14:37:41 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 28 Jul 2008 17:37:41 -0400 Subject: [mapserver-dev] Re: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <488DE8E2.5157.008F.0@dnr.state.mn.us> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> <488DE8E2.5157.008F.0@dnr.state.mn.us> Message-ID: <488E3C25.8040804@dmsolutions.ca> >>> * SOS 1.0.0 support > > Tom, Assefa? http://trac.osgeo.org/mapserver/ticket/2246 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hobu.inc at gmail.com Mon Jul 28 18:53:36 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Mon, 28 Jul 2008 20:53:36 -0500 Subject: [mapserver-users] Poll: The MapServer Website Message-ID: <275CBECF-456A-4FA9-9285-517AAEAE55EC@gmail.com> All, I am planning to do some work to address MapServer website needs, but before diving in, I would like to solicit some input on the current state of the website. http://mapserver.gis.umn.edu/community/polls/website-future/ Specifically, I would like to know if our current Plone site is serving the needs of the project, both from a developer's and a user's perspective. If it is serving our needs, but not fully, which areas need to be addressed? If it is failing the project, how can the website be made better (switch to a different system, get a better admin, get a faster machine, etc...)? What works, what doesn't, and where should the MapServer website go? I'll collate the feedback from this email thread and from the poll into an RFC that will outline what we will plan to do. I look forward to your feedback. Howard From reena at indiamail.com Mon Jul 28 23:38:24 2008 From: reena at indiamail.com (S.Reena) Date: Mon, 28 Jul 2008 23:38:24 -0700 (PDT) Subject: [MAPSERVER-USERS] Display of polygon in map In-Reply-To: <18693560.post@talk.nabble.com> References: <18674352.post@talk.nabble.com> <18693560.post@talk.nabble.com> Message-ID: <18706320.post@talk.nabble.com> LAYER NAME gps_polygon STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=gps_data user=postgres password=postgres port=5432" DATA "newgeom FROM gps_polygon USING UNIQUE gid" LABELCACHE on #LABELITEM 'name' HEADER 'templates/header.html' FOOTER 'templates/footer.html' TOLERANCE 3 STYLE #COLOR 212 192 100 # OUTLINECOLOR 200 100 200 OUTLINECOLOR 0 0 255 END LABEL COLOR 255 0 0 POSITION ul SIZE large END # label END # class END # layer pag66 wrote: > > Hi friend post the connection that you're using maybe it a problem with > the select statement, try "the_geom from table using unique gid" if you > have and gid field > > -- View this message in context: http://www.nabble.com/Display-of-polygon-in-map-tp18674352p18706320.html Sent from the Mapserver - User mailing list archive at Nabble.com. From reena at indiamail.com Mon Jul 28 23:44:05 2008 From: reena at indiamail.com (S.Reena) Date: Mon, 28 Jul 2008 23:44:05 -0700 (PDT) Subject: [MAPSERVER-USERS] Display of polygon in map In-Reply-To: <18693560.post@talk.nabble.com> References: <18674352.post@talk.nabble.com> <18693560.post@talk.nabble.com> Message-ID: <18706384.post@talk.nabble.com> here it is..I have tried using gid ,srid etc..n its still not working :( LAYER NAME gps_polygon STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=gps_data user=abc password=xyz port=5432" DATA "newgeom FROM gps_polygon USING UNIQUE gid" LABELCACHE on #LABELITEM 'name' HEADER 'templates/header.html' FOOTER 'templates/footer.html' TOLERANCE 3 STYLE #COLOR 212 192 100 # OUTLINECOLOR 200 100 200 OUTLINECOLOR 0 0 255 END LABEL COLOR 255 0 0 POSITION ul SIZE large END # label END # class END # layer pag66 wrote: > > Hi friend post the connection that you're using maybe it a problem with > the select statement, try "the_geom from table using unique gid" if you > have and gid field > > -- View this message in context: http://www.nabble.com/Display-of-polygon-in-map-tp18674352p18706384.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Jul 29 00:08:35 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 Jul 2008 10:08:35 +0300 Subject: [MAPSERVER-USERS] Display of polygon in map In-Reply-To: <18706384.post@talk.nabble.com> Message-ID: Hi, Guessing will not help you, you need to know what is the unique field in your table that should be used in DATA. What is your table structure like? You can see it from Postgres by using a comman \d , or with pgAdmin utility. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta S.Reena > L?hetetty: 29. hein?kuuta 2008 9:44 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [MAPSERVER-USERS] Display of polygon in map > > > here it is..I have tried using gid ,srid etc..n its still not > working :( > > LAYER > NAME gps_polygon > STATUS on > TYPE polygon > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=gps_data user=abc > password=xyz port=5432" > DATA "newgeom FROM gps_polygon USING UNIQUE gid" > > LABELCACHE on > #LABELITEM 'name' > HEADER 'templates/header.html' > FOOTER 'templates/footer.html' > TOLERANCE 3 > STYLE > #COLOR 212 192 100 > # OUTLINECOLOR 200 100 200 > OUTLINECOLOR 0 0 255 > END > LABEL > COLOR 255 0 0 > POSITION ul > SIZE large > > END # label > END # class > END # layer > > > > > pag66 wrote: > > > > Hi friend post the connection that you're using maybe it a problem > > with the select statement, try "the_geom from table using > unique gid" > > if you have and gid field > > > > > > -- > View this message in context: > http://www.nabble.com/Display-of-polygon-in-map-tp18674352p187 06384.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 clement.monier at v-trafic.com Tue Jul 29 03:09:25 2008 From: clement.monier at v-trafic.com (Monier Clement) Date: Tue, 29 Jul 2008 12:09:25 +0200 Subject: [mapserver-users] Rendering directly geometry and data streams Message-ID: <001901c8f163$30bf0320$a264a8c0@mm.fr> Hi, I would like to know if this functionnality would be possible using MapServer : Inside a C# application, I've got two available variables : the first one contains a geometry stream readed from a shapefile (with geographical objects), and the second is some attribute's data for each object (id related) coming from another source (database). I would like to get a map image of these two sources combined, without writing any additional file (shp or dbf) on the disk. Is there a way to call mapserver rendering engine at that particular step ? Thanks & Regards Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Jul 29 04:42:31 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 29 Jul 2008 13:42:31 +0200 Subject: [mapserver-users] Rendering directly geometry and data streams In-Reply-To: <001901c8f163$30bf0320$a264a8c0@mm.fr> References: <001901c8f163$30bf0320$a264a8c0@mm.fr> Message-ID: Hi, This requirement might require to perform a join between the different data sources. Unfortunately mapserver has only a limited join functionality, mostly related to the CGI version. However you could also use the OGR SQL option to join tables from multiple data sources: http://www.gdal.org/ogr/ogr_sql.html You can specify the SQL definition in the DATA section of the LAYER in the mapfile. The option above would require to read the shapefile data source directly, and you cannot use a stream to feed the data to the OGR driver at the moment. For this purpose you may have to implement either a mapserver plugin (in C/C++) or add the feature with the desired fields to an empty layer manually by using the OGR C# interface. Best regards, Tamas 2008/7/29 Monier Clement : > Hi, > > I would like to know if this functionnality would be possible using > MapServer : > > Inside a C# application, I've got two available variables : the first one > contains a geometry stream readed from a shapefile (with geographical > objects), and the second is some attribute's data for each object (id > related) coming from another source (database). > I would like to get a map image of these two sources combined, without > writing any additional file (shp or dbf) on the disk. > > Is there a way to call mapserver rendering engine at that particular step ? > > Thanks & Regards > > Cl?ment > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Tim.Nolte at ipcswirelessinc.com Tue Jul 29 05:47:34 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Tue, 29 Jul 2008 08:47:34 -0400 Subject: [mapserver-users] WFS & Oracle Spatial Message-ID: Anyone successfully serving WFS layers from an Oracle Spatial source? - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From myheartsnflorida at gmail.com Tue Jul 29 08:35:00 2008 From: myheartsnflorida at gmail.com (Lena Olympio) Date: Tue, 29 Jul 2008 11:35:00 -0400 Subject: [mapserver-users] Symbol Origin Message-ID: <200721390807290835s6509c9b3o151b7693a5d34c25@mail.gmail.com> I was just wondering if anyone knows of a way to make the origin of a symbol the bottom point instead of the top left. For instance I have an upside down triangle and I would like for the bottom tip of it to be my point of interest instead of the top left (which through all the documentation I searched through was understood to be the origin) Thanks, -- *Lena Olympio* -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgleahy at alumni.uwaterloo.ca Tue Jul 29 10:21:59 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Wed, 30 Jul 2008 05:21:59 +1200 Subject: [mapserver-users] mapscript querybypoint on tiled raster layers? Message-ID: <488F51B7.2050900@alumni.uwaterloo.ca> Hello list, I'm sure this one has come up before, but I can't seem to figure out what I need to do. I have some tiled raster layers that I've got in a mapfile that is being used for generating ka-map tiles. I'm trying to query the values on these layer using the queryByPoint function in php_mapscript. I have a generic identify function that returns results for any of my vector layers, and for non-tiled raster layers - just not for the tiled raster layers. Is it possible to query tiled raster layers? If so, can someone spot what I'm doing wrong below? The tiled-raster layers in the mapfile generally look like this: LAYER NAME "Tiled Raster" GROUP "Tiled Raster" STATUS ON TYPE RASTER TILEINDEX "/data/index.shp" TILEITEM "LOCATION" METADATA "imageformat" "AGG_JPEG" END PROJECTION "init=epsg:4326" END END And here is the function in PHP: public function Identify($oMap,$layer,$x,$y,$cellSize) { $oLayer = $oMap->getLayerByName($layer); if (in_array($oLayer->type, array(MS_LAYER_POINT,MS_LAYER_LINE,MS_LAYER_POLYGON))) { $oLayer->set("toleranceunits",$oMap->units); $oLayer->set("tolerance",$cellSize*3); } else { $oLayer->set("tolerance",0); } $oLayer->set("template","dummy.html"); $oQPoint = ms_newPointObj(); $oQPoint->setXY($x,$y); $aResults = array(); if (@$oLayer->queryByPoint($oQPoint,MS_MULTIPLE,$oLayer->tolerance) == MS_SUCCESS) { $oLayer->open(); $nResults = $oLayer->getNumResults(); for ($i=0;$i<$nResults;$i++) { $oResult = $oLayer->getResult($i); $oShape = $oLayer->getShape($oResult->tileindex, $oResult->shapeindex); $aResults[] = array($oResult,$oShape); } } return $aResults; } Thanks in advance for any help, Mike From mgleahy at alumni.uwaterloo.ca Tue Jul 29 10:44:28 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Wed, 30 Jul 2008 05:44:28 +1200 Subject: [mapserver-users] Re: mapscript querybypoint on tiled raster layers? In-Reply-To: <488F51B7.2050900@alumni.uwaterloo.ca> References: <488F51B7.2050900@alumni.uwaterloo.ca> Message-ID: <488F56FC.9070701@alumni.uwaterloo.ca> Ok...I figured out the problem pretty much right after I clicked send on that last message. I had generated my tile index.shp with relative paths for the LOCATION field (i.e., relative to the shp file). I just regenerated it with absolute path names, and it the query function works fine. So would this be a known bug of any sort, or is it just bad practice to use relative filenames with MapServer? Regards, Mike Mike Leahy wrote: > Hello list, > > I'm sure this one has come up before, but I can't seem to figure out > what I need to do. I have some tiled raster layers that I've got in a > mapfile that is being used for generating ka-map tiles. I'm trying to > query the values on these layer using the queryByPoint function in > php_mapscript. I have a generic identify function that returns results > for any of my vector layers, and for non-tiled raster layers - just not > for the tiled raster layers. Is it possible to query tiled raster > layers? If so, can someone spot what I'm doing wrong below? > > The tiled-raster layers in the mapfile generally look like this: > > LAYER > NAME "Tiled Raster" > GROUP "Tiled Raster" > STATUS ON > TYPE RASTER > TILEINDEX "/data/index.shp" > TILEITEM "LOCATION" > METADATA > "imageformat" "AGG_JPEG" > END > PROJECTION > "init=epsg:4326" > END > END > > > And here is the function in PHP: > > > public function Identify($oMap,$layer,$x,$y,$cellSize) > { > $oLayer = $oMap->getLayerByName($layer); > if (in_array($oLayer->type, > array(MS_LAYER_POINT,MS_LAYER_LINE,MS_LAYER_POLYGON))) > { > $oLayer->set("toleranceunits",$oMap->units); > $oLayer->set("tolerance",$cellSize*3); > } > else > { > $oLayer->set("tolerance",0); > } > > $oLayer->set("template","dummy.html"); > > $oQPoint = ms_newPointObj(); > $oQPoint->setXY($x,$y); > > $aResults = array(); > > if (@$oLayer->queryByPoint($oQPoint,MS_MULTIPLE,$oLayer->tolerance) == > MS_SUCCESS) > { > $oLayer->open(); > $nResults = $oLayer->getNumResults(); > > for ($i=0;$i<$nResults;$i++) > { > $oResult = $oLayer->getResult($i); > $oShape = $oLayer->getShape($oResult->tileindex, > $oResult->shapeindex); > $aResults[] = array($oResult,$oShape); > } > } > > return $aResults; > } > > > Thanks in advance for any help, > Mike > From Steve.Lime at dnr.state.mn.us Tue Jul 29 14:36:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 29 Jul 2008 16:36:02 -0500 Subject: [mapserver-users] Re: mapscript querybypoint on tiled raster layers? In-Reply-To: <488F56FC.9070701@alumni.uwaterloo.ca> References: <488F51B7.2050900@alumni.uwaterloo.ca> <488F56FC.9070701@alumni.uwaterloo.ca> Message-ID: <488F4724.5157.008F.0@dnr.state.mn.us> Support for tile names relative to the tile index is brand new in 5.2 so in older versions absolute paths or paths relative to the mapfile were your only options. Steve >>> On 7/29/2008 at 12:44 PM, in message <488F56FC.9070701 at alumni.uwaterloo.ca>, Mike Leahy wrote: > Ok...I figured out the problem pretty much right after I clicked send on > that last message. I had generated my tile index.shp with relative > paths for the LOCATION field (i.e., relative to the shp file). I just > regenerated it with absolute path names, and it the query function works > fine. > > So would this be a known bug of any sort, or is it just bad practice to > use relative filenames with MapServer? > > Regards, > Mike > > Mike Leahy wrote: >> Hello list, >> >> I'm sure this one has come up before, but I can't seem to figure out >> what I need to do. I have some tiled raster layers that I've got in a >> mapfile that is being used for generating ka-map tiles. I'm trying to >> query the values on these layer using the queryByPoint function in >> php_mapscript. I have a generic identify function that returns results >> for any of my vector layers, and for non-tiled raster layers - just not >> for the tiled raster layers. Is it possible to query tiled raster >> layers? If so, can someone spot what I'm doing wrong below? >> >> The tiled-raster layers in the mapfile generally look like this: >> >> LAYER >> NAME "Tiled Raster" >> GROUP "Tiled Raster" >> STATUS ON >> TYPE RASTER >> TILEINDEX "/data/index.shp" >> TILEITEM "LOCATION" >> METADATA >> "imageformat" "AGG_JPEG" >> END >> PROJECTION >> "init=epsg:4326" >> END >> END >> >> >> And here is the function in PHP: >> >> >> public function Identify($oMap,$layer,$x,$y,$cellSize) >> { >> $oLayer = $oMap->getLayerByName($layer); >> if (in_array($oLayer->type, >> array(MS_LAYER_POINT,MS_LAYER_LINE,MS_LAYER_POLYGON))) >> { >> $oLayer->set("toleranceunits",$oMap->units); >> $oLayer->set("tolerance",$cellSize*3); >> } >> else >> { >> $oLayer->set("tolerance",0); >> } >> >> $oLayer->set("template","dummy.html"); >> >> $oQPoint = ms_newPointObj(); >> $oQPoint->setXY($x,$y); >> >> $aResults = array(); >> >> if (@$oLayer->queryByPoint($oQPoint,MS_MULTIPLE,$oLayer->tolerance) == >> MS_SUCCESS) >> { >> $oLayer->open(); >> $nResults = $oLayer->getNumResults(); >> >> for ($i=0;$i<$nResults;$i++) >> { >> $oResult = $oLayer->getResult($i); >> $oShape = $oLayer->getShape($oResult->tileindex, >> $oResult->shapeindex); >> $aResults[] = array($oResult,$oShape); >> } >> } >> >> return $aResults; >> } >> >> >> Thanks in advance for any help, >> Mike >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thy at 42.dk Tue Jul 29 14:38:07 2008 From: thy at 42.dk (Kristian Thy) Date: Tue, 29 Jul 2008 23:38:07 +0200 Subject: [mapserver-users] Symbol Origin In-Reply-To: <200721390807290835s6509c9b3o151b7693a5d34c25@mail.gmail.com> References: <200721390807290835s6509c9b3o151b7693a5d34c25@mail.gmail.com> Message-ID: <20080729213807.GB2020@42.dk> On Tue, Jul 29, Lena Olympio wrote: > I was just wondering if anyone knows of a way to make the origin of a symbol > the bottom point instead of the top left. For instance I have an upside down > triangle and I would like for the bottom tip of it to be my point of > interest instead of the top left (which through all the documentation I > searched through was understood to be the origin) Have you tried inside the style declaration to specify OFFSET x y where x and y is -(width/2) and -(height), respectively, of your triangle? \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From mgleahy at alumni.uwaterloo.ca Tue Jul 29 18:23:53 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Wed, 30 Jul 2008 13:23:53 +1200 Subject: [mapserver-users] Re: mapscript querybypoint on tiled raster layers? In-Reply-To: <488F4724.5157.008F.0@dnr.state.mn.us> References: <488F51B7.2050900@alumni.uwaterloo.ca> <488F56FC.9070701@alumni.uwaterloo.ca> <488F4724.5157.008F.0@dnr.state.mn.us> Message-ID: <488FC2A9.8030205@alumni.uwaterloo.ca> Steve, Thanks for the reply. To clarify, I am using 5.2. I'm guessing by what you're saying is that bugs with a new feature like this are to be expected - I just wanted to check if it was already known to anyone else before submitting a ticket in the trac. Regards, Mike Steve Lime wrote: > Support for tile names relative to the tile index is brand new in 5.2 so in older versions > absolute paths or paths relative to the mapfile were your only options. > > Steve > >>>> On 7/29/2008 at 12:44 PM, in message <488F56FC.9070701 at alumni.uwaterloo.ca>, > Mike Leahy wrote: >> Ok...I figured out the problem pretty much right after I clicked send on >> that last message. I had generated my tile index.shp with relative >> paths for the LOCATION field (i.e., relative to the shp file). I just >> regenerated it with absolute path names, and it the query function works >> fine. >> >> So would this be a known bug of any sort, or is it just bad practice to >> use relative filenames with MapServer? >> >> Regards, >> Mike >> >> Mike Leahy wrote: >>> Hello list, >>> >>> I'm sure this one has come up before, but I can't seem to figure out >>> what I need to do. I have some tiled raster layers that I've got in a >>> mapfile that is being used for generating ka-map tiles. I'm trying to >>> query the values on these layer using the queryByPoint function in >>> php_mapscript. I have a generic identify function that returns results >>> for any of my vector layers, and for non-tiled raster layers - just not >>> for the tiled raster layers. Is it possible to query tiled raster >>> layers? If so, can someone spot what I'm doing wrong below? >>> >>> The tiled-raster layers in the mapfile generally look like this: >>> >>> LAYER >>> NAME "Tiled Raster" >>> GROUP "Tiled Raster" >>> STATUS ON >>> TYPE RASTER >>> TILEINDEX "/data/index.shp" >>> TILEITEM "LOCATION" >>> METADATA >>> "imageformat" "AGG_JPEG" >>> END >>> PROJECTION >>> "init=epsg:4326" >>> END >>> END >>> >>> >>> And here is the function in PHP: >>> >>> >>> public function Identify($oMap,$layer,$x,$y,$cellSize) >>> { >>> $oLayer = $oMap->getLayerByName($layer); >>> if (in_array($oLayer->type, >>> array(MS_LAYER_POINT,MS_LAYER_LINE,MS_LAYER_POLYGON))) >>> { >>> $oLayer->set("toleranceunits",$oMap->units); >>> $oLayer->set("tolerance",$cellSize*3); >>> } >>> else >>> { >>> $oLayer->set("tolerance",0); >>> } >>> >>> $oLayer->set("template","dummy.html"); >>> >>> $oQPoint = ms_newPointObj(); >>> $oQPoint->setXY($x,$y); >>> >>> $aResults = array(); >>> >>> if (@$oLayer->queryByPoint($oQPoint,MS_MULTIPLE,$oLayer->tolerance) == >>> MS_SUCCESS) >>> { >>> $oLayer->open(); >>> $nResults = $oLayer->getNumResults(); >>> >>> for ($i=0;$i<$nResults;$i++) >>> { >>> $oResult = $oLayer->getResult($i); >>> $oShape = $oLayer->getShape($oResult->tileindex, >>> $oResult->shapeindex); >>> $aResults[] = array($oResult,$oShape); >>> } >>> } >>> >>> return $aResults; >>> } >>> >>> >>> Thanks in advance for any help, >>> Mike >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mail_deamon at tlen.pl Wed Jul 30 00:11:33 2008 From: mail_deamon at tlen.pl (=?UTF-8?Q?Admin?=) Date: Wed, 30 Jul 2008 09:11:33 +0200 Subject: =?UTF-8?Q?[mapserver-users]_How_to_get_maximum_and_minimum_height?= =?UTF-8?Q?_from_DTED_file?= Message-ID: <57e37576.1b2abe0f.48901425.1568a@o2.pl> Hi, I have to get maximum and minimum height from DTED file. MapServer render it as 8bit gray image. Thats ok, but i also need some information about height of this map. When i open my dted file in OpenEV and i go to the layer properties (Raster Source tab) i see values for Scale Min: and Scale Max:, that means that in dted are stored height information, but when i use gdalinfo i don't see this information. I wrote simple additional cgi program, which have to return me hight information (it will be using external application such as gdalinfo, ogrinfo or something else), but i don't know which console program from FWTools can i use to get this max and min height. Have you got any idea how do this? From Dejan.Gambin at pula.hr Wed Jul 30 00:21:11 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Wed, 30 Jul 2008 09:21:11 +0200 Subject: [mapserver-users] Output image resolution - explanation needed Message-ID: Hi, I am trying to download a high resolution image and print it on a paper. I am using p.mapper and its download function that enables downloading the map image on different resolutions. I have turned on my raster layer (ortophoto image). I have zoomed in to an area of interest. I have downloaded the map twice - with a resolution of 150 and 300. The image is shown i a new page/tab (firefox). I right click on the image and save it as a png (also tried with a jpeg) file. Now, the first file is 2150x1111 pixels, 120 dpi vertical and horizontal resolution (right click on a file, properties, summary, what does it mean?), the second file is 4300x2222 pixels, 120 dpi vertical and horizontal resolution. Seems ok. The second image is "doubled" in pixel size. Now, when I try to print this image on A4 paper, using 300dpi, the images are the same, there is no "better quality" in second image. I have just finshed reading the Mapserver thread on "Change image resolution in mapfile". Several limitations are mentioned there - max. image size supported by Mapserver, "resolution" value/tag embedded in output format, etc. Can it be related to my problem? Or is it maybe that software I am using to print this image doesn't "use" this extra pixels? Or I am just missing some basic stuff I need to know :-( thanks very much on any explanation regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkrishnamohan at gmail.com Wed Jul 30 06:11:40 2008 From: pkrishnamohan at gmail.com (Krishna Mohan) Date: Wed, 30 Jul 2008 18:41:40 +0530 Subject: FW: [MAPSERVER-USERS] map server developers required Message-ID: <000401c8f245$d38f0590$7aad10b0$@com> Hi, We are a Geo spatial service provider based out of india and have a requirement for the application developers for map server. If any one is interested, please get in touch with me at pkrishnamohan at gmail.com Krishna Mohan -- View this message in context: http://www.nabble.com/map-server-developers-required-tp18732711p18732711.htm l Sent from the Mapserver - User mailing list archive at Nabble.com. From damarmo at gmail.com Wed Jul 30 07:08:17 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Wed, 30 Jul 2008 16:08:17 +0200 Subject: [mapserver-users] SLD in a wms service Message-ID: <9771eb540807300708v736d9dbdtdf24c32ed0d4040a@mail.gmail.com> Hello List. I'm trying to made a WMS service with an SLD definition, but WHERE i must define the SLD file? In layer? In Map? in wms metadata? Sorry i'm confused about this. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jul 30 07:26:36 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 30 Jul 2008 16:26:36 +0200 Subject: [mapserver-users] [Announce] A webapp for geodata management and dynamic mapping Message-ID: Camptocamp (http://camptocamp.com) has initiated the development of a new project which aims to manage geographic data and assist users to create and export maps or web mapping based sites. The product named GeoAdminSuite (aka GAS, http://geoadminsuite.org) is a Java EE 5 (non distributed) application. It uses well-known OpenSource projects libraries like MapServer as a map engine, MapFish as a web mapping interface, Geotools 2.4.4 for core geographic data manipulation. GAS is composed of 4 parts: * The Host list, where datasources are configured * The Catalog, where geographic data found in the host(s) are listed (quickview, data view) * The Map Composer, where selected geographic data are combined into a map (mapfile edition, classification, labels, etc.) * The Publisher, where the map can be published as a MapFish project A first release candidate is available at http://geoadminsuite.org with a few documentation and how-to's. The purpose of this publication is mostly for having advice from developpers or potentially interested users. Feel free to post any comment you like to help us go forward on this project. Cheers, The Camptocamp Team -- Thomas Bonfort Camptocamp France SAS http://www.camptocamp.com From thy at 42.dk Wed Jul 30 07:29:19 2008 From: thy at 42.dk (Kristian Thy) Date: Wed, 30 Jul 2008 16:29:19 +0200 Subject: [mapserver-users] Symbol Origin In-Reply-To: <200721390807300710i2ca89fa6q316b43f198994961@mail.gmail.com> References: <200721390807290835s6509c9b3o151b7693a5d34c25@mail.gmail.com> <20080729213807.GB2020@42.dk> <200721390807300625j1412a9eajd67fca0a8f36017e@mail.gmail.com> <200721390807300710i2ca89fa6q316b43f198994961@mail.gmail.com> Message-ID: <20080730142919.GB27034@42.dk> On Wed, Jul 30, Lena Olympio wrote: > I just tried to use the OFFSET, but I want to move the entire symbol > location and not just the label, and I can't find any documentation on it. It works for me - minimal example: STYLE SYMBOL 'icons/trad.gif' OFFSET 10 10 END #style It sounds like you might have accidentally put it in the LABEL instead of the STYLE declaration on the LAYER. The docs are here: http://mapserver.gis.umn.edu/docs/reference/mapfile/style \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From warmerdam at pobox.com Wed Jul 30 07:48:31 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 30 Jul 2008 10:48:31 -0400 Subject: [mapserver-users] How to get maximum and minimum height from DTED file In-Reply-To: <57e37576.1b2abe0f.48901425.1568a@o2.pl> References: <57e37576.1b2abe0f.48901425.1568a@o2.pl> Message-ID: <48907F3F.2010204@pobox.com> Admin wrote: > Hi, I have to get maximum and minimum height from DTED file. MapServer > render it as 8bit gray image. Thats ok, but i also need some information > about height of this map. When i open my dted file in OpenEV and i go to the > layer properties (Raster Source tab) i see values for Scale Min: and Scale > Max:, that means that in dted are stored height information, but when i use > gdalinfo i don't see this information. I wrote simple additional cgi > program, which have to return me hight information (it will be using > external application such as gdalinfo, ogrinfo or something else), but i > don't know which console program from FWTools can i use to get this max and > min height. Have you got any idea how do this? "Admin Mail Deamon", OpenEV does not get the min/max for scaling from the image header, it samples the image and does various computations with the resulting histogram. To get the exact min/max with gdalinfo pass the -mm switch to compute the min and max by scanning the whole image. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Tim.Nolte at ipcswirelessinc.com Wed Jul 30 07:55:00 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 30 Jul 2008 10:55:00 -0400 Subject: [mapserver-users] MapServer + Database + WFS Message-ID: Is no one out there using Oracle Spatial, or any other DB, with MapServer and WFS? There is pretty much a huge lack of documentation for serving WFS from MapServer. It would be nice to know if what I'm attempting is even possible or not. Thanks if someone does actually respond. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From yassefa at dmsolutions.ca Wed Jul 30 08:38:06 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 30 Jul 2008 11:38:06 -0400 Subject: [mapserver-users] MapServer + Database + WFS In-Reply-To: References: Message-ID: <48908ADE.5080702@dmsolutions.ca> Tim, I have used mainly Postgis with Mapserver and WFS. I am pretty sure some have used SDE as a back end. Oracle spatial is also known to work with Mapserver for a while so I see no reason why it could not be used as a WFS server too. Are you facing particular problems? Are you concerned about performance issues? As for the documentation, I am assuming that you are taking about http://mapserver.gis.umn.edu/docs/howto/wfs_server, It has been a while that It has been updated but information in it is still correct. Maybe specific issues/comment could help improving it. best Regards, Nolte, Tim wrote: > Is no one out there using Oracle Spatial, or any other DB, with > MapServer and WFS? There is pretty much a huge lack of documentation for > serving WFS from MapServer. It would be nice to know if what I'm > attempting is even possible or not. Thanks if someone does actually > respond. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tim.Nolte at ipcswirelessinc.com Wed Jul 30 08:59:00 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 30 Jul 2008 11:59:00 -0400 Subject: [mapserver-users] MapServer + Database + WFS In-Reply-To: <48908ADE.5080702@dmsolutions.ca> References: <48908ADE.5080702@dmsolutions.ca> Message-ID: So the specific issue I'm having is that my Oracle Spatial layers are not coming back with any features. Here's a couple of my Mapfile entries: LAYER GROUP switchboundaries NAME davenport TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION ".../... at ..." PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT swt.switch_id, swt.switch_descr, sgt.geom FROM ms_switch_vw swt, switch_geom_tab sgt WHERE swt.switch_id = sgt.switch_id AND swt.switch_id = 7) USING SRID 8307" LABELITEM "switch_descr" METADATA wfs_title "Switch Boundaries: Davenport" wfs_latlonboundingbox "-104.29 29.71 -71.55 52.63" wfs_typename "davenport" gml_featureid "switch_id" gml_include_items "switch_id,switch_descr" gml_switch_descr_alias "Switch" END DUMP TRUE TRANSPARENCY 100 END LAYER GROUP cellsites NAME onair TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION ".../... at ..." PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT st.site_id, st.bts_nbr, sgt.geom FROM site_tab st, site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id IN (4,7)) USING SRID 8307" LABELITEM "bts_nbr" METADATA wfs_title "Cell Sites: On-Air" wfs_latlonboundingbox "-104.29 29.71 -71.55 52.63" wfs_typename "onair" gml_geometries "geom" gml_boundary_type "point" gml_featureid "site_id" gml_include_items "site_id,bts_nbr" gml_bts_nbr_alias "BTS#" END DUMP TRUE END Any help would be greastly appreciated. ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] > Sent: Wednesday, July 30, 2008 11:38 AM > To: Nolte, Tim > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer + Database + WFS > > Tim, > > I have used mainly Postgis with Mapserver and WFS. I am pretty sure > some have used SDE as a back end. Oracle spatial is also > known to work > with Mapserver for a while so I see no reason why it could > not be used > as a WFS server too. > Are you facing particular problems? Are you concerned about > performance issues? As for the documentation, I am assuming > that you are > taking about > http://mapserver.gis.umn.edu/docs/howto/wfs_server, It has > been a while that It has been updated but information in it is still > correct. Maybe specific issues/comment could help improving it. > > best Regards, > > Nolte, Tim wrote: > > Is no one out there using Oracle Spatial, or any other DB, with > > MapServer and WFS? There is pretty much a huge lack of > documentation for > > serving WFS from MapServer. It would be nice to know if what I'm > > attempting is even possible or not. Thanks if someone does actually > > respond. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From Steve.Lime at dnr.state.mn.us Wed Jul 30 09:37:41 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 30 Jul 2008 11:37:41 -0500 Subject: [mapserver-users] Re: mapscript querybypoint on tiled rasterlayers? In-Reply-To: <488FC2A9.8030205@alumni.uwaterloo.ca> References: <488F51B7.2050900@alumni.uwaterloo.ca> <488F56FC.9070701@alumni.uwaterloo.ca> <488F4724.5157.008F.0@dnr.state.mn.us> <488FC2A9.8030205@alumni.uwaterloo.ca> Message-ID: <48905284.5157.008F.0@dnr.state.mn.us> Thanks for the bug report. It may be that we missed a spot with the changes for relative path support. The raster query stuff is off by itself so it's certainly possible. Steve >>> On 7/29/2008 at 8:23 PM, in message <488FC2A9.8030205 at alumni.uwaterloo.ca>, Mike Leahy wrote: > Steve, > > Thanks for the reply. To clarify, I am using 5.2. I'm guessing by what > you're saying is that bugs with a new feature like this are to be > expected - I just wanted to check if it was already known to anyone else > before submitting a ticket in the trac. > > Regards, > Mike > > Steve Lime wrote: >> Support for tile names relative to the tile index is brand new in 5.2 so in > older versions >> absolute paths or paths relative to the mapfile were your only options. >> >> Steve >> >>>>> On 7/29/2008 at 12:44 PM, in message <488F56FC.9070701 at alumni.uwaterloo.ca>, >> Mike Leahy wrote: >>> Ok...I figured out the problem pretty much right after I clicked send on >>> that last message. I had generated my tile index.shp with relative >>> paths for the LOCATION field (i.e., relative to the shp file). I just >>> regenerated it with absolute path names, and it the query function works >>> fine. >>> >>> So would this be a known bug of any sort, or is it just bad practice to >>> use relative filenames with MapServer? >>> >>> Regards, >>> Mike >>> >>> Mike Leahy wrote: >>>> Hello list, >>>> >>>> I'm sure this one has come up before, but I can't seem to figure out >>>> what I need to do. I have some tiled raster layers that I've got in a >>>> mapfile that is being used for generating ka-map tiles. I'm trying to >>>> query the values on these layer using the queryByPoint function in >>>> php_mapscript. I have a generic identify function that returns results >>>> for any of my vector layers, and for non-tiled raster layers - just not >>>> for the tiled raster layers. Is it possible to query tiled raster >>>> layers? If so, can someone spot what I'm doing wrong below? >>>> >>>> The tiled-raster layers in the mapfile generally look like this: >>>> >>>> LAYER >>>> NAME "Tiled Raster" >>>> GROUP "Tiled Raster" >>>> STATUS ON >>>> TYPE RASTER >>>> TILEINDEX "/data/index.shp" >>>> TILEITEM "LOCATION" >>>> METADATA >>>> "imageformat" "AGG_JPEG" >>>> END >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> END >>>> >>>> >>>> And here is the function in PHP: >>>> >>>> >>>> public function Identify($oMap,$layer,$x,$y,$cellSize) >>>> { >>>> $oLayer = $oMap->getLayerByName($layer); >>>> if (in_array($oLayer->type, >>>> array(MS_LAYER_POINT,MS_LAYER_LINE,MS_LAYER_POLYGON))) >>>> { >>>> $oLayer->set("toleranceunits",$oMap->units); >>>> $oLayer->set("tolerance",$cellSize*3); >>>> } >>>> else >>>> { >>>> $oLayer->set("tolerance",0); >>>> } >>>> >>>> $oLayer->set("template","dummy.html"); >>>> >>>> $oQPoint = ms_newPointObj(); >>>> $oQPoint->setXY($x,$y); >>>> >>>> $aResults = array(); >>>> >>>> if (@$oLayer->queryByPoint($oQPoint,MS_MULTIPLE,$oLayer->tolerance) == >>>> MS_SUCCESS) >>>> { >>>> $oLayer->open(); >>>> $nResults = $oLayer->getNumResults(); >>>> >>>> for ($i=0;$i<$nResults;$i++) >>>> { >>>> $oResult = $oLayer->getResult($i); >>>> $oShape = $oLayer->getShape($oResult->tileindex, >>>> $oResult->shapeindex); >>>> $aResults[] = array($oResult,$oShape); >>>> } >>>> } >>>> >>>> return $aResults; >>>> } >>>> >>>> >>>> Thanks in advance for any help, >>>> Mike >>>> >>> _______________________________________________ >>> 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 thomas.bonfort at gmail.com Wed Jul 30 10:05:16 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 30 Jul 2008 19:05:16 +0200 Subject: [mapserver-users] Re: [Announce] A webapp for geodata management and dynamic mapping In-Reply-To: References: Message-ID: sorry, the url was wrong: http://www.geoadminsuite.org On Wed, Jul 30, 2008 at 4:26 PM, thomas bonfort wrote: > Camptocamp (http://camptocamp.com) has initiated the development of a > new project which aims to manage geographic data and assist users to > create and export maps or web mapping based sites. The product named > GeoAdminSuite (aka GAS, http://geoadminsuite.org) is a Java EE 5 (non > distributed) application. It uses well-known OpenSource projects > libraries like MapServer as a map engine, MapFish as a web mapping > interface, Geotools 2.4.4 for core geographic data manipulation. > > GAS is composed of 4 parts: > > * The Host list, where datasources are configured > * The Catalog, where geographic data found in the host(s) are listed > (quickview, data view) > * The Map Composer, where selected geographic data are combined into > a map (mapfile edition, classification, labels, etc.) > * The Publisher, where the map can be published as a MapFish project > > A first release candidate is available at http://geoadminsuite.org with > a few documentation and how-to's. The purpose of this publication is > mostly for having advice from developpers or potentially interested > users. > Feel free to post any comment you like to help us go forward on this > project. > > Cheers, > The Camptocamp Team > > -- > Thomas Bonfort > Camptocamp France SAS > http://www.camptocamp.com > From Steve.Lime at dnr.state.mn.us Wed Jul 30 12:13:55 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 30 Jul 2008 14:13:55 -0500 Subject: [mapserver-users] Output image resolution - explanation needed In-Reply-To: References: Message-ID: <48907722.5157.008F.0@dnr.state.mn.us> Resolution in MapServer-speak is referring to the resolution of the output device a map will be displayed on. The value is used for scale computations and nothing else. It does not affect the size (in pixels) of MapServer. Scale values do impact the size at which features and text are rendered IF scaling (via SYMBOLSCALE) is turned on. Higher quality output is usually a matter of having more pixels to print, however you usually want larger features too which is where the resolution parameter combined with scaling can help. Steve >>> On 7/30/2008 at 2:21 AM, in message , wrote: > Hi, > > I am trying to download a high resolution image and print it on a paper. I > am using p.mapper and its download function that enables downloading the > map image on different resolutions. > > I have turned on my raster layer (ortophoto image). I have zoomed in to an > area of interest. I have downloaded the map twice - with a resolution of > 150 and 300. The image is shown i a new page/tab (firefox). I right click > on the image and save it as a png (also tried with a jpeg) file. Now, the > first file is 2150x1111 pixels, 120 dpi vertical and horizontal resolution > (right click on a file, properties, summary, what does it mean?), the > second file is 4300x2222 pixels, 120 dpi vertical and horizontal > resolution. Seems ok. The second image is "doubled" in pixel size. > > Now, when I try to print this image on A4 paper, using 300dpi, the images > are the same, there is no "better quality" in second image. > > I have just finshed reading the Mapserver thread on "Change image > resolution in mapfile". Several limitations are mentioned there - max. > image size supported by Mapserver, "resolution" value/tag embedded in > output format, etc. Can it be related to my problem? Or is it maybe that > software I am using to print this image doesn't "use" this extra pixels? > Or I am just missing some basic stuff I need to know :-( > > > thanks very much on any explanation > > regards, dejan From sacha.black at gmail.com Wed Jul 30 13:07:28 2008 From: sacha.black at gmail.com (Sacha Black) Date: Wed, 30 Jul 2008 13:07:28 -0700 Subject: [mapserver-users] date format? Message-ID: I've got point data in a MySQL database that I am displaying in my map. I'd like to label the points with a date, but the date format stored in the database looks like this: "2008-06-17 00:00:00" and we would like to put a label on the map in some kind of more user friendly format (and omitting the time portion which we do not need).... is this kind of re-formatting for labels possible in Mapserver? Prefer not to create a new field in the DB as there are thousands of records... any ideas? sacha Fri May 9 09:53:29 EDT 2008 Hi list, using a shapefile with a Date column, is it possible to change the date format (string) that Mapserver will use in the WFS GetFeature output? Now it outputs: 19690101 whereas we would want 1969-01-01 Best regards, Bart From David.Fawcett at state.mn.us Wed Jul 30 13:13:20 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 30 Jul 2008 15:13:20 -0500 Subject: [mapserver-users] date format? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBF36@s-sp22.pca.state.mn.us> Have you tried using a date format function in your SQL statement? http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#func tion_date-format David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sacha Black Sent: Wednesday, July 30, 2008 3:07 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] date format? I've got point data in a MySQL database that I am displaying in my map. I'd like to label the points with a date, but the date format stored in the database looks like this: "2008-06-17 00:00:00" and we would like to put a label on the map in some kind of more user friendly format (and omitting the time portion which we do not need).... is this kind of re-formatting for labels possible in Mapserver? Prefer not to create a new field in the DB as there are thousands of records... any ideas? sacha Fri May 9 09:53:29 EDT 2008 Hi list, using a shapefile with a Date column, is it possible to change the date format (string) that Mapserver will use in the WFS GetFeature output? Now it outputs: 19690101 whereas we would want 1969-01-01 Best regards, Bart _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From greenkov at gmail.com Wed Jul 30 14:32:23 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 30 Jul 2008 15:32:23 -0600 Subject: [mapserver-users] GetCoverage request and time-idexed coverage using postgis Message-ID: Currently I am using Mapserver version 5.0.2 I am getting the following error when I issue a GetCoverage request for a time-indexed coverage, using postgis for the indexing. ================================================ prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT "date"::text,"fullpath"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),fullpath::text from da_index WHERE (2005-12-27) and (the_geom && setSRID( 'BOX3D(-2050500 -2136500,2536500 752500)'::BOX3D,find_srid('','da_index','the_geom') ))' Postgresql reports the error as 'ERROR: argument of AND must be type boolean, not type integer ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. ================================================== In my table, the 'date' field has the date values. I see from the query above that is missing "date='2005-12-27' in the WHERE clause. Indeed, when I add it using the psql client, the query works. The coverage in question gets listed when I make a WCS GetCapabilities request. How shoud I go about getting the error above resolved? Should I try the latest version or am I doing something wrong? Here is the request in question: http://someserver/cgi-bin/mapserv?MAP=some_time_index.map&SERVICE=WCS&REQUEST=GetCoverage&coverage=da&CRS=EPSG:2163&FORMAT=GTiff&TIME=2005-12-27&WIDTH=800&HEIGHT=600 Does anyone else who uses postgis for time indexing have GetCoverage requests working? Thanks in advance, Alex From Dejan.Gambin at pula.hr Wed Jul 30 23:32:00 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Thu, 31 Jul 2008 08:32:00 +0200 Subject: [mapserver-users] Output image resolution - explanation needed Message-ID: Thanks Steve I still (unfortunatelly) don't understand why I am getting the "same quality" image on the paper with the first and second print (the second image has twice more pixels). Is it because of the input image itself? To be specific - the raster input is aerial image that gdalinfor reports as: Driver: GTiff/GeoTIFF Files: 5C14-05-DOF.tif Size is 4500, 6000 Coordinate System is `' Origin = (5419000.154658853100000,4964998.794652804700000) Pixel Size = (0.499829146050620,-0.499829146050620) Corner Coordinates: Upper Left ( 5419000.155, 4964998.795) Lower Left ( 5419000.155, 4961999.820) Upper Right ( 5421249.386, 4964998.795) Lower Right ( 5421249.386, 4961999.820) Center ( 5420124.770, 4963499.307) Band 1 Block=256x256 Type=Byte, ColorInterp=Red Overviews: 2250x3000, 1125x1500, 563x750, 282x375 Band 2 Block=256x256 Type=Byte, ColorInterp=Green Overviews: 2250x3000, 1125x1500, 563x750, 282x375 Band 3 Block=256x256 Type=Byte, ColorInterp=Blue Overviews: 2250x3000, 1125x1500, 563x750, 282x375 regards, dejan "Steve Lime" wrote on 30.07.2008 21:13:55: > Resolution in MapServer-speak is referring to the resolution of the > output device a map > will be displayed on. The value is used for scale computations and > nothing else. It does not > affect the size (in pixels) of MapServer. Scale values do impact the > size at which features > and text are rendered IF scaling (via SYMBOLSCALE) is turned on. > Higher quality output is > usually a matter of having more pixels to print, however you usually > want larger features > too which is where the resolution parameter combined with scaling can help. > > Steve > > >>> On 7/30/2008 at 2:21 AM, in message > , > wrote: > > Hi, > > > > I am trying to download a high resolution image and print it on a paper. I > > am using p.mapper and its download function that enables downloading the > > map image on different resolutions. > > > > I have turned on my raster layer (ortophoto image). I have zoomed in to an > > area of interest. I have downloaded the map twice - with a resolution of > > 150 and 300. The image is shown i a new page/tab (firefox). I right click > > on the image and save it as a png (also tried with a jpeg) file. Now, the > > first file is 2150x1111 pixels, 120 dpi vertical and horizontal resolution > > (right click on a file, properties, summary, what does it mean?), the > > second file is 4300x2222 pixels, 120 dpi vertical and horizontal > > resolution. Seems ok. The second image is "doubled" in pixel size. > > > > Now, when I try to print this image on A4 paper, using 300dpi, the images > > are the same, there is no "better quality" in second image. > > > > I have just finshed reading the Mapserver thread on "Change image > > resolution in mapfile". Several limitations are mentioned there - max. > > image size supported by Mapserver, "resolution" value/tag embedded in > > output format, etc. Can it be related to my problem? Or is it maybe that > > software I am using to print this image doesn't "use" this extra pixels? > > Or I am just missing some basic stuff I need to know :-( > > > > > > thanks very much on any explanation > > > > regards, dejan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Jul 31 00:19:55 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 31 Jul 2008 10:19:55 +0300 Subject: [mapserver-users] MapServer + Database + WFS References: <48908ADE.5080702@dmsolutions.ca> Message-ID: Hi, I have successfully created WFS layers from Oracle 9i database. I have not used that service very much, though, because for some reason ready made GIS clients had troubles in parsing the returned gml and I started to use GeoServer for WFS instead. I believe the trouble was not anything great, because ogr2ogr was happily translating the gml files to other vector formats if I stored them on disk first. I think there are three things in your DATA line which may go wrong. They may be OK as well, but perhaps you may have a look on them anyway. First is in this SELECT: "geom FROM (SELECT swt.switch_id, swt.switch_descr, sgt.geom I would try in like "new_geom FROM (SELECT swt.switch_id, swt.switch_descr, sgt.geom AS new_geom Just to be sure that a correct item will be queried by the final query. Another thing is SRID "USING SRID 8307" I do not know if Oracle for sure nowadays understands automatically that this is jsut the epsg code it should be using. I would make a try by importing a simple dataset into Oracle with shp2sdo or something. First import by leaving the SRID as empty, and second be giving the correct epsg code. Then I would make two new layers in mapfile and start playing with WFS queries. Perhaps you can even just cut out the "USING SRID 8307" from your current mapfile. I suppose the data is actually in epsg:8307 in Oracle and you do not need to reproject it when running queries? By the way, you seem not to have projections set for your layers. It is not necessary if you are working with one projection only, but you will have much better control on what will really happen if you set projections for all the layers and for the whole mapfile. Finally, your DATA is missing "using unique". I am not sure if it is necessary, though. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Nolte, Tim L?hetetty: ke 30.7.2008 18:59 Vastaanottaja: Yewondwossen Assefa Kopio: mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] MapServer + Database + WFS So the specific issue I'm having is that my Oracle Spatial layers are not coming back with any features. Here's a couple of my Mapfile entries: LAYER GROUP switchboundaries NAME davenport TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION ".../... at ..." PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT swt.switch_id, swt.switch_descr, sgt.geom FROM ms_switch_vw swt, switch_geom_tab sgt WHERE swt.switch_id = sgt.switch_id AND swt.switch_id = 7) USING SRID 8307" LABELITEM "switch_descr" METADATA wfs_title "Switch Boundaries: Davenport" wfs_latlonboundingbox "-104.29 29.71 -71.55 52.63" wfs_typename "davenport" gml_featureid "switch_id" gml_include_items "switch_id,switch_descr" gml_switch_descr_alias "Switch" END DUMP TRUE TRANSPARENCY 100 END LAYER GROUP cellsites NAME onair TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION ".../... at ..." PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT st.site_id, st.bts_nbr, sgt.geom FROM site_tab st, site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id IN (4,7)) USING SRID 8307" LABELITEM "bts_nbr" METADATA wfs_title "Cell Sites: On-Air" wfs_latlonboundingbox "-104.29 29.71 -71.55 52.63" wfs_typename "onair" gml_geometries "geom" gml_boundary_type "point" gml_featureid "site_id" gml_include_items "site_id,bts_nbr" gml_bts_nbr_alias "BTS#" END DUMP TRUE END Any help would be greastly appreciated. ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] > Sent: Wednesday, July 30, 2008 11:38 AM > To: Nolte, Tim > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer + Database + WFS > > Tim, > > I have used mainly Postgis with Mapserver and WFS. I am pretty sure > some have used SDE as a back end. Oracle spatial is also > known to work > with Mapserver for a while so I see no reason why it could > not be used > as a WFS server too. > Are you facing particular problems? Are you concerned about > performance issues? As for the documentation, I am assuming > that you are > taking about > http://mapserver.gis.umn.edu/docs/howto/wfs_server, It has > been a while that It has been updated but information in it is still > correct. Maybe specific issues/comment could help improving it. > > best Regards, > > Nolte, Tim wrote: > > Is no one out there using Oracle Spatial, or any other DB, with > > MapServer and WFS? There is pretty much a huge lack of > documentation for > > serving WFS from MapServer. It would be nice to know if what I'm > > attempting is even possible or not. Thanks if someone does actually > > respond. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From roybraam at b3partners.nl Thu Jul 31 00:00:34 2008 From: roybraam at b3partners.nl (Roy Braam) Date: Thu, 31 Jul 2008 09:00:34 +0200 Subject: [mapserver-users] SLD in a wms service In-Reply-To: 9771eb540807300708v736d9dbdtdf24c32ed0d4040a@mail.gmail.com Message-ID: <20080731070034.31b4dba0@kmail.b3partners.nl> Hey David, SLD enables remote classification and symbolization of data. So a sld can be defined by a user, doing a request. See this doc: http://mapserver.gis.umn.edu/docs/howto/sldhowto and of course the WMS/SLD specifications. Roy Braam From: David Martinez Morata [mailto:damarmo at gmail.com] To: mapserver [mailto:mapserver-users at lists.osgeo.org] Sent: Wed, 30 Jul 2008 16:08:17 +0200 Subject: [mapserver-users] SLD in a wms service Hello List. I'm trying to made a WMS service with an SLD definition, but WHERE i must define the SLD file? In layer? In Map? in wms metadata? Sorry i'm confused about this. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Jul 31 02:00:15 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 31 Jul 2008 12:00:15 +0300 Subject: [mapserver-users] Output image resolution - explanation needed In-Reply-To: Message-ID: Hi, What are the dimensions of the image you have captured in real world utits? Your original aerial images have half a metre pixel size. It mean that at 300 dpi one original image pixel corresponds with one pixel at paper if square inch on your printout is presenting exactly 150 by 150 meters in nature. That is the maximum quality you can achieve. If square inch on paper equals to 75 by 75 meters the maximum quolity is achieved already at 150 dpi. Multiplicating original image pixels for printing cannot improve the quality. But if you have zoomed out so far that creating output image means downsampling the original imagery you should see the differense. So, if your 2150x1111 low resolution image is covering a considerably larger area than 1075x555 meters in real world it should look better when downloaded at 300 dpi with 4300x2222 pixels. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Dejan.Gambin at pula.hr L?hetetty: 31. hein?kuuta 2008 9:32 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Output image resolution - explanation needed Thanks Steve I still (unfortunatelly) don't understand why I am getting the "same quality" image on the paper with the first and second print (the second image has twice more pixels). Is it because of the input image itself? To be specific - the raster input is aerial image that gdalinfor reports as: Driver: GTiff/GeoTIFF Files: 5C14-05-DOF.tif Size is 4500, 6000 Coordinate System is `' Origin = (5419000.154658853100000,4964998.794652804700000) Pixel Size = (0.499829146050620,-0.499829146050620) Corner Coordinates: Upper Left ( 5419000.155, 4964998.795) Lower Left ( 5419000.155, 4961999.820) Upper Right ( 5421249.386, 4964998.795) Lower Right ( 5421249.386, 4961999.820) Center ( 5420124.770, 4963499.307) Band 1 Block=256x256 Type=Byte, ColorInterp=Red Overviews: 2250x3000, 1125x1500, 563x750, 282x375 Band 2 Block=256x256 Type=Byte, ColorInterp=Green Overviews: 2250x3000, 1125x1500, 563x750, 282x375 Band 3 Block=256x256 Type=Byte, ColorInterp=Blue Overviews: 2250x3000, 1125x1500, 563x750, 282x375 regards, dejan "Steve Lime" wrote on 30.07.2008 21:13:55: > Resolution in MapServer-speak is referring to the resolution of the > output device a map > will be displayed on. The value is used for scale computations and > nothing else. It does not > affect the size (in pixels) of MapServer. Scale values do impact the > size at which features > and text are rendered IF scaling (via SYMBOLSCALE) is turned on. > Higher quality output is > usually a matter of having more pixels to print, however you usually > want larger features > too which is where the resolution parameter combined with scaling can help. > > Steve > > >>> On 7/30/2008 at 2:21 AM, in message > , > wrote: > > Hi, > > > > I am trying to download a high resolution image and print it on a paper. I > > am using p.mapper and its download function that enables downloading the > > map image on different resolutions. > > > > I have turned on my raster layer (ortophoto image). I have zoomed in to an > > area of interest. I have downloaded the map twice - with a resolution of > > 150 and 300. The image is shown i a new page/tab (firefox). I right click > > on the image and save it as a png (also tried with a jpeg) file. Now, the > > first file is 2150x1111 pixels, 120 dpi vertical and horizontal resolution > > (right click on a file, properties, summary, what does it mean?), the > > second file is 4300x2222 pixels, 120 dpi vertical and horizontal > > resolution. Seems ok. The second image is "doubled" in pixel size. > > > > Now, when I try to print this image on A4 paper, using 300dpi, the images > > are the same, there is no "better quality" in second image. > > > > I have just finshed reading the Mapserver thread on "Change image > > resolution in mapfile". Several limitations are mentioned there - max. > > image size supported by Mapserver, "resolution" value/tag embedded in > > output format, etc. Can it be related to my problem? Or is it maybe that > > software I am using to print this image doesn't "use" this extra pixels? > > Or I am just missing some basic stuff I need to know :-( > > > > > > thanks very much on any explanation > > > > regards, dejan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Thu Jul 31 02:15:47 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Thu, 31 Jul 2008 11:15:47 +0200 Subject: [mapserver-users] Output image resolution - explanation needed In-Reply-To: Message-ID: Thanks, you helped me a lot In my example, I have printed an area of aproximately 1km wide on an A4 Landscape that is 29,7cm wide, so 1inch is about 85.5m. So that should be the reason? :-) regards, dejan "Rahkonen Jukka" wrote on 31.07.2008 11:00:15: > Hi, > > What are the dimensions of the image you have captured in real world > utits? Your original aerial images have half a metre pixel size. > It mean that at 300 dpi one original image pixel corresponds with > one pixel at paper if square inch on your printout is presenting > exactly 150 by 150 meters in nature. That is the maximum quality > you can achieve. If square inch on paper equals to 75 by 75 meters > the maximum quolity is achieved already at 150 dpi. Multiplicating > original image pixels for printing cannot improve the quality. But > if you have zoomed out so far that creating output image means > downsampling the original imagery you should see the differense. > So, if your 2150x1111 low resolution image is covering a > considerably larger area than 1075x555 meters in real world it > should look better when downloaded at 300 dpi with 4300x2222 pixels. > > -Jukka Rahkonen- > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] Puolesta Dejan.Gambin at pula.hr > L?hetetty: 31. hein?kuuta 2008 9:32 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Output image resolution - explanation needed > > Thanks Steve > > I still (unfortunatelly) don't understand why I am getting the "same > quality" image on the paper with the first and second print (the > second image has twice more pixels). Is it because of the input > image itself? To be specific - the raster input is aerial image that > gdalinfor reports as: > > Driver: GTiff/GeoTIFF > Files: 5C14-05-DOF.tif > Size is 4500, 6000 > Coordinate System is `' > Origin = (5419000.154658853100000,4964998.794652804700000) > Pixel Size = (0.499829146050620,-0.499829146050620) > Corner Coordinates: > Upper Left ( 5419000.155, 4964998.795) > Lower Left ( 5419000.155, 4961999.820) > Upper Right ( 5421249.386, 4964998.795) > Lower Right ( 5421249.386, 4961999.820) > Center ( 5420124.770, 4963499.307) > Band 1 Block=256x256 Type=Byte, ColorInterp=Red > Overviews: 2250x3000, 1125x1500, 563x750, 282x375 > Band 2 Block=256x256 Type=Byte, ColorInterp=Green > Overviews: 2250x3000, 1125x1500, 563x750, 282x375 > Band 3 Block=256x256 Type=Byte, ColorInterp=Blue > Overviews: 2250x3000, 1125x1500, 563x750, 282x375 > > regards, dejan > > "Steve Lime" wrote on 30.07.2008 21:13:55: > > > Resolution in MapServer-speak is referring to the resolution of the > > output device a map > > will be displayed on. The value is used for scale computations and > > nothing else. It does not > > affect the size (in pixels) of MapServer. Scale values do impact the > > size at which features > > and text are rendered IF scaling (via SYMBOLSCALE) is turned on. > > Higher quality output is > > usually a matter of having more pixels to print, however you usually > > want larger features > > too which is where the resolution parameter combined with scaling can help. > > > > Steve > > > > >>> On 7/30/2008 at 2:21 AM, in message > > , > > wrote: > > > Hi, > > > > > > I am trying to download a high resolution image and print it on > a paper. I > > > am using p.mapper and its download function that enables downloading the > > > map image on different resolutions. > > > > > > I have turned on my raster layer (ortophoto image). I have > zoomed in to an > > > area of interest. I have downloaded the map twice - with a resolution of > > > 150 and 300. The image is shown i a new page/tab (firefox). I right click > > > on the image and save it as a png (also tried with a jpeg) file.Now, the > > > first file is 2150x1111 pixels, 120 dpi vertical and horizontal > resolution > > > (right click on a file, properties, summary, what does it mean?), the > > > second file is 4300x2222 pixels, 120 dpi vertical and horizontal > > > resolution. Seems ok. The second image is "doubled" in pixel size. > > > > > > Now, when I try to print this image on A4 paper, using 300dpi, the images > > > are the same, there is no "better quality" in second image. > > > > > > I have just finshed reading the Mapserver thread on "Change image > > > resolution in mapfile". Several limitations are mentioned there - max. > > > image size supported by Mapserver, "resolution" value/tag embedded in > > > output format, etc. Can it be related to my problem? Or is it maybe that > > > software I am using to print this image doesn't "use" this extra pixels? > > > Or I am just missing some basic stuff I need to know :-( > > > > > > > > > thanks very much on any explanation > > > > > > regards, dejan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at deprem.gov.tr Thu Jul 31 03:41:27 2008 From: temiz at deprem.gov.tr (orkun) Date: Thu, 31 Jul 2008 13:41:27 +0300 Subject: [mapserver-users] java mapscript and netbeans-jsf Message-ID: <1217500887.6632.8.camel@orkun-desktop> hello I constructed the zoomed map properly. But I couldn't manage calling and displaying it in java mapscript and netbeans-jsf. how can I display zoomed map without refreshing whole page in place of the original map ? Could you give me a hint ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From damarmo at gmail.com Thu Jul 31 08:12:41 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Thu, 31 Jul 2008 17:12:41 +0200 Subject: [mapserver-users] Ploblems with labels. Message-ID: <9771eb540807310812i6d961ecam462428e6e5a97ea4@mail.gmail.com> Hello list. I try to conect ArcGIS with a WMS server. But when I try to render Labels in other Font type tha the first of my font.list arcgis send an error msGetLabelSize() TrueType Font error. Request (arial-bold-italic)not found My fonts.list file its: arial C:\WINDOWS\Fonts\arial.ttf arial-italic C:\WINDOWS\Fonts\ariali.ttf arial-bold-italic C:\WINDOWS\Fonts\arialbi.ttf Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From nipapada at gmail.com Thu Jul 31 08:15:46 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Thu, 31 Jul 2008 18:15:46 +0300 Subject: [mapserver-users] XLS to shape file. Message-ID: <4891D722.8060202@gmail.com> Hello to everyone. i would like to ask if someone knows how can i create a shape file with points from an xls .file. In .xls file i have written the coordinates of every point of interest in the form +39,2158 +22,5618 (latitude and longitude in diffirent columns). I also have written some other information for every point in different column. Thank you in advance. Nikos Papadakis. From yjacolin at free.fr Thu Jul 31 08:19:56 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Thu, 31 Jul 2008 17:19:56 +0200 Subject: [mapserver-users] XLS to shape file. In-Reply-To: <4891D722.8060202@gmail.com> References: <4891D722.8060202@gmail.com> Message-ID: <200807311719.57614.yjacolin@free.fr> Le Thursday 31 July 2008 17:15:46 ????? ?????????, vous avez ?crit?: > Hello to everyone. > > > i would like to ask if someone knows how can i > create a shape file with points from an xls .file. > In .xls file i have written the coordinates of every point of interest > in the form +39,2158 +22,5618 (latitude and longitude in diffirent > columns). I also have written some other information for every point in > different column. > > Thank you in advance. > Nikos Papadakis. Hi, You can try QGIS and the TextDelimitater Plugin using CSV file instead of XLS's. Just split your latLong colunm into two differents columns. Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From woodbri at swoodbridge.com Thu Jul 31 09:47:29 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 31 Jul 2008 11:47:29 -0500 Subject: [mapserver-users] Ploblems with labels. In-Reply-To: <9771eb540807310812i6d961ecam462428e6e5a97ea4@mail.gmail.com> References: <9771eb540807310812i6d961ecam462428e6e5a97ea4@mail.gmail.com> Message-ID: <4891ECA1.6090302@swoodbridge.com> David Martinez Morata wrote: > Hello list. > I try to conect ArcGIS with a WMS server. > But when I try to render Labels in other Font type tha the first of my > font.list arcgis send an error > msGetLabelSize() TrueType Font error. Request (arial-bold-italic)not found > > My fonts.list file its: > > arial C:\WINDOWS\Fonts\arial.ttf > arial-italic C:\WINDOWS\Fonts\ariali.ttf > arial-bold-italic C:\WINDOWS\Fonts\arialbi.ttf > > Thanks try changing you \ to / in the file paths. Also confirm that the file actually exists ar the cmd promopt: dir C:\WINDOWS\Fonts\arialbi.ttf -Steve W From boolean10001 at yahoo.com Thu Jul 31 11:51:26 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 31 Jul 2008 11:51:26 -0700 (PDT) Subject: [mapserver-users] Ploblems with labels. In-Reply-To: <4891ECA1.6090302@swoodbridge.com> Message-ID: <966290.33303.qm@web38206.mail.mud.yahoo.com> Te recomiendo que en el directorio donde se encuentra tu archivo .MAP, crea un directorio llamado "fuentes" en donde copies los archivos .TTF para que en el archivo FONTS.LIST solo hagas referencia a /fuentes/nombre_archivo.ttf I suggest you to create a folder named "fuentes" within the place where your .MAP file is, and then, copy the .TTF files there. Then, in the FONTS.LIST file you just put the /fonts/file_name.ttf reference. IC Carlos Ruiz? --- On Thu, 7/31/08, Stephen Woodbridge wrote: From: Stephen Woodbridge Subject: Re: [mapserver-users] Ploblems with labels. To: "David Martinez Morata" Cc: "mapserver" Date: Thursday, July 31, 2008, 11:47 AM David Martinez Morata wrote: > Hello list. > I try to conect ArcGIS with a WMS server. > But when I try to render Labels in other Font type tha the first of my > font.list arcgis send an error > msGetLabelSize() TrueType Font error. Request (arial-bold-italic)not found > > My fonts.list file its: > > arial C:\WINDOWS\Fonts\arial.ttf > arial-italic C:\WINDOWS\Fonts\ariali.ttf > arial-bold-italic C:\WINDOWS\Fonts\arialbi.ttf > > Thanks try changing you \ to / in the file paths. Also confirm that the file actually exists ar the cmd promopt: dir C:\WINDOWS\Fonts\arialbi.ttf -Steve W _______________________________________________ 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: