Re: [mapserver-users] GetFeatureInfo from PostGis database
Hi Guillaume, You're right. A friend of mine has told me the same thing this morning. It works goo ! Youpi ! Thank you very much for your help Regards Le 01/07/2008 07:53, Guillaume Sueur (par Internet) a écrit : add gid to the SQL string : DATA the_geom FROM (select gid, numero, feuille, the_geom FROM localisant) as foo USING UNIQUE gid USING SRID=27582 and try to use EPSG:27572 as 27582 is deprecated. Regards, GUillaume SAEZ Laurent - CETE Méditerr./DI/ETER a écrit : Hi, I've tried to use the gid column, but the getfeatureinfo reports me an error : Postgresql reports the error as #39;ERREUR: la colonne «gid» n#39;existe pas #39; The error tells me that the gid column doesn't exist. You can trust me, I have a field called gid. Thanks Le 30/06/2008 19:49, Bart van den Eijnden (OSGIS) (par Internet) a écrit : You shouldn't use the geometry column as the unique column (USING UNIQUE X). Try an integer type column for that. Best regards, Bart SAEZ Laurent - CETE Méditerr./DI/ETER wrote: Hi list, I'm trying to access data fields using getfeatureinfo from a PostGIS database. I've read some articles about it, but it seems that I'm a newbie. I've no problem with data access when I do some getmap requests. Here is a part of my mapfile : LAYER NAMEbdparcellaire_numero TYPEannotation STATUS ON DUMP TRUE TEMPLATE blank.html MINSCALE 100 MAXSCALE 1 CONNECTIONTYPEpostgis CONNECTIONuser=toto password=toto dbname=bdparcellaire_2007 host=172.23.208.134 port=5432 LABELITEMnumero CLASS LABEL TYPE TRUETYPE WRAP # COLOR 0 0 0 OUTLINECOLOR 254 254 254 FONT arial SIZE 9 POSITION CC FORCE false PARTIALS false END END METADATA WMS_TITLE Numéros de parcelle (Données BD Parcellaire® - Copyright IGN) wms_abstract Visible entre les échelles 1/100 et 1/10 000wms_srs EPSG:27582 EPSG:27581 EPSG:27583 EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 EPSG:4326 wms_extent 47650 1620400 1197850 2677450 WMS_ENCODING UTF-8 GML_INCLUDE_ITEMS all END END When I try this getfeatureinfo request, the XML returned is not complete : The request : http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoSRS=EPSG%3A27582WIDTH=600HEIGHT=400BBOX=643470,1743572,643590,1743652LAYERS=bdparcellaire_numeroSTYLES=FORMAT=image%2FpngQUERY_LAYERS=bdparcellaire_numeroX=167Y=175INFO_FORMAT=application%2Fvnd.ogc.gmlFEATURE_COUNT=999 The entire XML : ?xml version=1.0 encoding=UTF-8? msGMLOutput xmlns:gml=http://www.opengis.net/gml; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; bdparcellaire_numero_layer Why it doesn't work ? I know that it should be in my DATA object in my mapfile, but I don't know what exactly... Thanks a lot... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[MAPSERVER-USERS] insertLayer()
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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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! http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html La bandeja de entrada más inteligente. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Raster merge
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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [MAPSERVER-USERS] insertLayer()
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:[EMAIL PROTECTED] Enviado el: martes, 01 de julio de 2008 10:16 Para: Hans Castorp CC: mapserver-users@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! http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html La bandeja de entrada más inteligente. ___ mapserver-users mailing list mapserver-users@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.___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Displaying and printing GIS data with mosaicked ECW images
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 - [EMAIL PROTECTED] 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users