Re: [mapserver-users] rasterquery
Frank, thank you for the hint, I have found that it only doesn't work with a ESRI Grid. With a .tif / geotif the rasterquery works without problems. Is this a bug? Greetings Sven ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetFeatureInfo from a JavaScript client
Hi folks, My situation: We've developed a GIS web viewer based on OpenLayers, with some particular configurations, and is located in a server, let's called "Server A", and we also have some other web applications that include this viewer to show some information and they're located in "Server B". The thing is that to avoid the cross-domain problem we've created an ASP script located in "Server B" that calls mapserver to receive the getfeatureinfo request, but when I try it in my web browser I get the following message: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. MapFile: MAP NAME "WMSSERVER" STATUS ON EXTENT 46 469 61 482 # Euskadi SHAPEPATH "shapes_estaticos/" FONTSET "misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log" DEBUG 5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/MFD/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map&"; "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admca...@ora10gex" NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name""RecintosSigpac" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" END MAXSCALE 25000 DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac CLASS NAME "Recintos" STYLE OUTLINECOLOR 0 234 0 END TEMPLATE "ms_template.html" END END END I've got "ms_template.html" created with the magic string. What I'm doing wrong?? Thanks. Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo from a JavaScript client
Hi, Mapserver does probably not receive a valid GetFeatureInfo request. Open the Apache access log file and see what is coming in. You can also test the request from browser. -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > Hi folks, > My situation: We've developed a GIS web viewer based on OpenLayers, with some > particular configurations, and is located in a server, let's called "Server > A", and we also have some other web applications that include this viewer to > show some information and they're located in "Server B". The thing is that to > avoid the cross-domain problem we've created an ASP script located in "Server > B" that calls mapserver to receive the getfeatureinfo request, but when I try > it in my web browser I get the following message: > mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE > in the WEB section, but none was provided. MapFile: MAP NAME "WMSSERVER" STATUS ON EXTENT 46 469 61 482 # Euskadi SHAPEPATH "shapes_estaticos/" FONTSET "misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log" DEBUG 5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/MFD/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map&"; "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admca...@ora10gex" NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name""RecintosSigpac" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" END MAXSCALE 25000 DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac CLASS NAME "Recintos" STYLE OUTLINECOLOR 0 234 0 END TEMPLATE "ms_template.html" END END END I've got "ms_template.html" created with the magic string. What I'm doing wrong?? Thanks. Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· ___ 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
RE: [mapserver-users] GetFeatureInfo from a JavaScript client [SOLVED]
Hi Jukka, Definetaly you're a Master!! That pointed me the right way. The asp web proxy was truncating the url passed as parameter to him, so I made some changes and it worked. Thanks man, what a relief... Regards, Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· -Mensaje original- De: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] Enviado el: jueves, 10 de junio de 2010 12:15 Para: David Alda Fernandez de Lezea; mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] GetFeatureInfo from a JavaScript client Hi, Mapserver does probably not receive a valid GetFeatureInfo request. Open the Apache access log file and see what is coming in. You can also test the request from browser. -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > Hi folks, > My situation: We've developed a GIS web viewer based on OpenLayers, with some > particular configurations, and is located in a server, let's called "Server > A", and we also have some other web applications that include this viewer to > show some information and they're located in "Server B". The thing is that to > avoid the cross-domain problem we've created an ASP script located in "Server > B" that calls mapserver to receive the getfeatureinfo request, but when I try > it in my web browser I get the following message: > mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE > in the WEB section, but none was provided. MapFile: MAP NAME "WMSSERVER" STATUS ON EXTENT 46 469 61 482 # Euskadi SHAPEPATH "shapes_estaticos/" FONTSET "misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log" DEBUG 5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/MFD/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map&"; "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admca...@ora10gex" NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name""RecintosSigpac" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" END MAXSCALE 25000 DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac CLASS NAME "Recintos" STYLE OUTLINECOLOR 0 234 0 END TEMPLATE "ms_template.html" END END END I've got "ms_template.html" created with the magic string. What
[mapserver-users] Especific Circle Symbol...
Hello guys... I´m trying to draw a BLACK CIRCLE, with Red borders, and with a small white circle inside ... Any help? Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver 5.6.3 compile error
Dear all, I am just upgrading my Mapserver executable to version 5.6.3 and I am encoutering this compile error: --8<--- gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -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/usr/lib -I/usr/include/freetype2-I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -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/usr/lib -I/usr/include/freetype2-I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/include -lproj -ljpeg -lpng -L/usr/lib -lgdal -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl -ldl -l gssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -L/usr/lib -lpq -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz-L/usr/lib -lgeos_c -lpthread -L/usr/local/lib -liconv -lz -L/usr/lib -lxml2 -lz -lm -lm -lstdc++ -o shp2img /usr/bin/ld: cannot find -lodbcinst collect2: ld returned 1 exit status make: *** [shp2img] Error 1 --8<--- I know that this might be just a numb Linux specific problem and I am asking just a beginner's (which I still seem to be when it comes to compiling code on Linux :) ) question, but can anybody point me in the right direction how to link the odbcinst correctly (it is located at /usr/bin/odbcinst) so the compiler can find it? Thanks in advance! Regards Jan -- Think B4U Print 1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere 3 sheets of A4 paper = 1 litre of water . GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 5.6.3 compile error
Hi Jan, You have to install the unixodbc dev package. On my Ubuntu system, the package name is unixodbc-dev, which contains the libodbcinst.so file needed. Find the appropriate package for you distribution and install it. Alan On June 10, 2010 08:15:48 am Jan Peters-Anders wrote: > Dear all, > I am just upgrading my Mapserver executable to version 5.6.3 and I am > encoutering this compile error: > > --8<--- > gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR > -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL > -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF > -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD > -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -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/usr/lib -I/usr/include/freetype2-I/usr/include -I/usr/include > -I/usr/include -I/usr/include -I/usr/local/include > -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -g -fPIC -Wall > -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR-DUSE_WMS_LYR > -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR > -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL > -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ > -DUSE_EPPL -DUSE_AGG -DUSE_PDF -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/usr/lib > -I/usr/include/freetype2-I/usr/include -I/usr/include > -I/usr/include -I/usr/include -I/usr/local/include > -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib -lgd -ljpeg > -lfreetype -lpng -lz -lXpm -lX11 -lpdf -ltiff -ljpeg -lfreetype -lpng > -lz -lXpm -lX11 -L/usr/include -lproj -ljpeg -lpng -L/usr/lib -lgdal > -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng > -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl > -ldl -l gssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz > -L/usr/lib -lpq -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline > -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd -L/usr/kerberos/lib > -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto > -lz-L/usr/lib -lgeos_c -lpthread -L/usr/local/lib -liconv -lz > -L/usr/lib -lxml2 -lz -lm -lm -lstdc++-o shp2img /usr/bin/ld: cannot > find -lodbcinst > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > --8<--- > > I know that this might be just a numb Linux specific problem and I am > asking just a beginner's (which I still seem to be when it comes to > compiling code on Linux :) ) question, but can anybody point me in the > right direction how to link the odbcinst correctly (it is located at > /usr/bin/odbcinst) so the compiler can find it? > > Thanks in advance! > > Regards > Jan > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] entities one upon the other
Hello, I have a polygon layer with entities, one located upon the other. The result that I have is: The entity located upon, hides the entity underneath. Is it possible to configure mapfile in such a way that where the entities are located ones upon the others, the colour becomes evidenced and different to the case in which the entities aren't located ones upon the others? I cannot use a special class for the small entities and I don't reorder the shapefile by the size Thank in advance Leonardo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver >= 5.6 and querys via php-mapscript
Hi, I'm still fighting with mapserver >= 5.6 and querys via php-mapscript. My code for e.g. making a queryByRect works fine since I use resultsGetShape instead of getShape for version 5.6: //query @$datQuery = $query_layer->queryByRect($qRect); //number of objects $resnum = $query_layer->getNumResults(); echo "number of objects: ".$resnum.""; //if query success if ($datQuery == MS_SUCCESS) { //check ms version if (ms_GetVersionInt() < 50600){ $query_layer->open(); } //write table echo ''; for ($j=0; $j<$query_layer->getNumResults(); $j++) { $result = $query_layer->getResult($j); //check ms version if (ms_GetVersionInt() < 50600){ $shpobj = $query_layer->getShape($result->tileindex,$result->shapeindex); } else{ $shpobj = $query_layer->resultsGetShape($result->shapeindex,$result->tileindex); } $si = $result->shapeindex; $attr = $shpobj->values; echo ''.$si.''; foreach($attr as $name=>$wert) { echo ''.$wert.''; } echo ''; $shpobj->free(); } //check ms version if (ms_GetVersionInt() < 50600){ $query_layer->close(); } echo ''; } // end success My problem: using ms 5.6 the shapeindex ($result->shapeindex;) is only an temporal arrayindex (0-x) and not the "real" shapeindex I get with mapserverversions < 5.6. How can I get the "real" shapindex of my shapes using ms 5.6? I need this for pointing on single shapes in another program. Thanks Sven ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] setting up raster queries
Hello, I have a DEM file on my map so that users can click identify and get the elevation for the location. The query works however I get anywhere between 0 to 2 records returned. Is there a way to return only a single record on a query? Thanks Mark Volz GIS Specialist Lyon County, MN ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Apply a single label to all the classes in a layer
Hello, I have a layer that contains many different classes. Can we apply a single label to all the classes in a layer? For Example can we make a map file like this: LAYER CLASS EXPRESSION STYLE CLASS EXPRESSION STYLE LABEL #for all classes COLOR ... END #Layer As opposed to making a layer file like this: LAYER CLASS EXPRESSION STYLE LABEL CLASS EXPRESSION STYLE LABEL ... END #Layer Thanks Mark Volz GIS Specialist Lyon County, MN ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Apply a single label to all the classes in a layer
Hello Mark, Unfortunately no. You'll be doing a lot of copying and pasting. Alternatively you could just use an include file for each re-used LABEL object (http://www.mapserver.org/mapfile/Include.html), which would shorted your mapfie. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Mark Volz wrote: Hello, I have a layer that contains many different classes. Can we apply a single label to all the classes in a layer? For Example can we make a map file like this: LAYER CLASS EXPRESSION STYLE CLASS EXPRESSION STYLE …. LABEL #for all classes COLOR … END #Layer As opposed to making a layer file like this: LAYER CLASS EXPRESSION STYLE LABEL CLASS EXPRESSION STYLE LABEL ... END #Layer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] setting up raster queries
setting up raster queriesHi, use MS_MULTIPLE and MS_SINGLE e.g. with php-mapscript: If you want only one result use $datQuery = $layer->queryByPoint($qPoint, MS_SINGLE, 1); if you want more results: $datQuery = $layer->queryByPoint($qPoint, MS_MULTIPLE, 1); Greetings Sven - Original Message - From: Mark Volz To: mapserver-users@lists.osgeo.org Sent: Thursday, June 10, 2010 4:09 PM Subject: [mapserver-users] setting up raster queries Hello, I have a DEM file on my map so that users can click identify and get the elevation for the location. The query works however I get anywhere between 0 to 2 records returned. Is there a way to return only a single record on a query? Thanks Mark Volz GIS Specialist Lyon County, MN ___ 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
Re: [mapserver-users] Especific Circle Symbol...
Paul james wrote: Hello guys... I´m trying to draw a BLACK CIRCLE, with Red borders, and with a small white circle inside ... Hello Paul, That should be possible, with the 2 layers of TYPE CIRCLE (see example in http://www.mapserver.org/mapfile/layer.html). You might want to try that, and then if you are still having problems include your sample layers in your next email to this email list. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Apply a single label to all the classes in a layer
Thank you for your reply. I should have clarified my needs better. I want the same label to apply to all classes. I could copy and paste the LABEL section to each class, however since I plan to deal with many classes that would make it more difficult If I wanted to modify my label. Mark Volz GIS Specialist Lyon County, MN 507-532-8218 From: TC Haddad [mailto:tchad...@gmail.com] Sent: Thursday, June 10, 2010 9:43 AM To: Mark Volz Subject: Re: [mapserver-users] Apply a single label to all the classes in a layer Mark I think you can do EXPRESSION /./ in a single CLASS and it will work for all values in that field. Technically it works for all "remaining" values in a field not previously specified, so you could define a few specific classes to be unique, and then use the above to symbolize the rest, if that was something you wanted. hope that helps, Tanya On Thu, Jun 10, 2010 at 7:21 AM, Mark Volz wrote: Hello, I have a layer that contains many different classes. Can we apply a single label to all the classes in a layer? For Example can we make a map file like this: LAYER CLASS EXPRESSION STYLE CLASS EXPRESSION STYLE LABEL #for all classes COLOR ... END #Layer As opposed to making a layer file like this: LAYER CLASS EXPRESSION STYLE LABEL CLASS EXPRESSION STYLE LABEL ... END #Layer Thanks Mark Volz GIS Specialist Lyon County, MN ___ 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
Re: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript
Sven Schroeter wrote: My problem: using ms 5.6 the shapeindex ($result->shapeindex;) is only an temporal arrayindex (0-x) and not the "real" shapeindex I get with mapserverversions < 5.6. How can I get the "real" shapindex of my shapes using ms 5.6? I need this for pointing on single shapes in another program. I don't think there is any way to get the "real" shapeindex unless you have an id field in the data itself. You could file a ticket about this, but for some data sources, such as Postgis, Oracle Spatial, and many OGR ones, there is no concept of absolute record id, so if something was added, it would very likely work only for shapefiles -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript
Hi Daniel, > > I don't think there is any way to get the "real" shapeindex unless you > have an id field in the data itself. You could file a ticket about this, > but for some data sources, such as Postgis, Oracle Spatial, and many OGR > ones, there is no concept of absolute record id, so if something was > added, it would very likely work only for shapefiles > in the older ms versions I got with $result->shapeindex an absolute record id for all data sources (postgis, OGR, shapefiles). what ids were used before by default e.g. for postgis data? why this concept has changed in the new version 5.6? Thanx Sven___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Especific Circle Symbol...
Thanks all! It worked fine... Paul On Thu, Jun 10, 2010 at 11:53 AM, Jeff McKenna < jmcke...@gatewaygeomatics.com> wrote: > Paul james wrote: > >> Hello guys... >> >> I´m trying to draw a BLACK CIRCLE, with Red borders, and with a small >> white circle inside ... >> >> > Hello Paul, > > That should be possible, with the 2 layers of TYPE CIRCLE (see example in > http://www.mapserver.org/mapfile/layer.html). You might want to try that, > and then if you are still having problems include your sample layers in your > next email to this email list. > > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > ___ > 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] Layer ordering in WMS
I'm trying to figure out how to configure layer ordering when using Mapserver using WMS. I'm not at all certain I've figured it out, yet, but one thing is clear - it's very complicated, depending upon the ordering of the layers in the mapfile, which groups the layers are a part of, whether the layers are configured with a status of ON or DEFAULT, and the ordering of the layers in the WMS request. Is there some place in the documentation that explains all of this, or have I just missed it? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript
The concept changed in 5.6 to support improved query performance, especially for RDBMS data sources. It's been a bit of a cluster though and interpretation of $result->shapeindex varies by 5.6.x version and driver. We'll get this straightened out and simplified in 6.0. Addressing 5.6.3 only: - shapeindex should hold the global record index for a shape - tileindex should hold the result set record index for a shape (for RDBMS data sources, e.g. Oracle and PostGIS only) There still may be inconsistencies with OGR-fronted RDBMS sources. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sven Schroeter Sent: Thursday, June 10, 2010 10:27 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript Hi Daniel, > > I don't think there is any way to get the "real" shapeindex unless you > have an id field in the data itself. You could file a ticket about this, > but for some data sources, such as Postgis, Oracle Spatial, and many OGR > ones, there is no concept of absolute record id, so if something was > added, it would very likely work only for shapefiles > in the older ms versions I got with $result->shapeindex an absolute record id for all data sources (postgis, OGR, shapefiles). what ids were used before by default e.g. for postgis data? why this concept has changed in the new version 5.6? Thanx Sven ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] FOSS4G 2010 Early Bird Deadline: June 15
If you plan to come to Barcelona, Spain for the Free and Open Source Software for Geospatial conference in Semptember this year, then you best register right now, as early bird registration ends this Tuesday 15 June 2010. http://2010.foss4g.org/registration.php FOSS4G is the international Free and Open Source Software for Geospatial conference, which comes to Barcelona, Spain, 6-9 September 2010.___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users