[mapserver-users] Problem with mapserverGMLsample file map
Hi all, im kind a newb here, what i want to ask is, is there any way for mapserver to Access it data from GML.. sample would be much appreciate... thanks in advance ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: [mapserver-dev] How to work Query Map(Zoom to Shape)
2008/6/27 venkat [EMAIL PROTECTED]: I got some sample code in Mapserver5.0.but is Console Application.I have modified that application.I am getting error. object not initialized Please anyone can help me how to use Query Map sample code. Could you provide more information about the error? How your code looks like? At which place does it produce the problem? I confirm that this code have been working pretty well at least when it was created mostly for authoring the examples of this RFC document: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-22a/ Best regards, Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug?
Try the following: CLASS NAME calss1 STYLE # first style SYMBOL cartoline_square SIZE [sizeobj2] COLOR0 0 0 #black END STYLE # second style SYMBOL cartoline_square SIZE [sizeobj1] COLOR255 255 255 #white END END Cheers Paul On 27-Jun-08, at 6:32 AM, Federica De Martin wrote: Hi everybody, I'm trying to use the SIZEITEM to render a line LAYER. My problem is that when I use the SIZEITEM mapserver follows it only for the first style; this is my class: CLASS NAME calss1 STYLE # first style SYMBOL cartoline_square SIZEITEM sizeobj2 COLOR0 0 0 #black END STYLE # second style SYMBOL cartoline_square SIZEITEM sizeobj1 COLOR255 255 255 #white END END The values are: sizeobj2=sizeobj1+2; What I get is that the black lines are of different sizes and the white lines (over the first) always keep the same size (the smaller). The symbol cartoline_square is a symbol of type cartoline, but I also tried with other symbols and I get the same result. Is there any bug or have I made something wrong in my class? I wait for some help, Thanks. Bye, Federca. ___ mapserver-users mailing list mapserver-users@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] problem with library
I have a problem using mapscrip for php5 on Ubuntu 8.04. I've an error when i want to load dynamically a library, in the following line: dl(php_dbase.so); the error is: *Warning*: dl() [function.dl http://piai04/prueba/function.dl]: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/php_dbase.so' - /usr/lib/php5/20060613+lfs/php_dbase.so: cannot open shared object file: No such file or directory in */home/gkorell/prueba/index.php* on line *2* I want to install this library for php but I don't found it. What can i do? Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with library
MapServer doesn't have any direct dependency on PHP's dbase module, so this is not a MapServer/MapScript problem, you could simply use php_mapscript without it. If you need the dbase module to deal with .dbf files then this is really a Ubuntu problem (it doesn't provide the dbase module) and the following article may help: http://boutell.livejournal.com/935243.html Daniel Guillermo Korell wrote: I have a problem using mapscrip for php5 on Ubuntu 8.04. I've an error when i want to load dynamically a library, in the following line: dl(php_dbase.so); the error is: *Warning*: dl() [function.dl http://piai04/prueba/function.dl]: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/php_dbase.so' - /usr/lib/php5/20060613+lfs/php_dbase.so: cannot open shared object file: No such file or directory in */home/gkorell/prueba/index.php* on line *2* I want to install this library for php but I don't found it. What can i do? Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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] MapScript: HOW to get query result in NEW img
Marco, the querybypoint() method don't affect the extent of the map. do you set in some part of your code the extent of the map? I suppose in the html code you get the extent, e.g : form name=main method=get action=?php echo $_SERVER['PHP_SELF']; ? input type=hidden name=extent value=?php echo $mapobj-extent-minx. .$mapobj-extent-miny. .$mapobj-extent-maxx. .$mapobj-extent-maxy; ? ... /form to, in the postback, set the extent of the map with $mapobj-setextent() - or zoompoint(), zoomrectangle(), zoomscale()... without this setting the map is drawn in the extent defined in your mapfile. maybe you have a zoom parameter set which influences the extent? pls post the html code too. On Ven, Giugno 27, 2008 15:55, Marco Foi wrote: I need to query a map and have the result displayed in a different image. BUT the main image is affected by the query and gets recentered on the SAME EXTENT of the query map. I'm using PHP MapScript Here is the 'core' of my code: // create a new point object at the clicked coordinates, to use it in queryByPoint $querypoint = ms_newPointObj(); //$cy $cy are the conversion in map units of the image coordinates of the queryed point on the map $querypoint-SetXY($cx, $cy); [...] //define the layer that will be queryed $layertoquery =$map-getLayerByName('geology'); //perform the query $res = $layertoquery-queryByPoint($querypoint, MS_SINGLE, ($map-cellsize)*5); //FIRST draw the map image $image=$map-draw(); $image_url=$image-saveWebImage(); //THEN draw the query image $thequerymap = $map-drawQuery(); $querymap_url=$thequerymap-saveWebImage(); BUT $image_url IS AFFECTED by the query and displays che same extent of $querymap_url How can I avoid this? Marco At 18.48 25/06/2008, you wrote: Marco, I suppose you are using mapscript - php or other - in your application. The postback of your page send not only the click point, but - maybe - other parameters. Whit some javascript you can set a parameter wich tell your app not to affect the main map, but only the query map. Please post your code, html and scripts, for more specific help. ciao ..pg -- Pietro Giannini Bytewise srl - Area GIS 41°50'38.58N 12°29'13.39E On Mer, Giugno 25, 2008 15:46, Marco Foi wrote: Hi all! I need to let the user queryByPoint (click) on a mainmap and get the result displayed on a second image WITHOUT influencing the mainmap. I tryed but the when i use the drawQuery() method it seems that also the mainmap is affected: it gets zoomed to the center of the feature (poligon) queryed. At the end the only difference between the two maps is that the image result of the query has the feature HILITED while the mainmap not. How can I avoid the problem? Marco Foi Dip. di Scienze della Terra A.Desio Sezione di Geologia e Paleontologia http://www.gp.terra.unimi.it Università degli Studi di Milano Via.Luigi Mangiagalli n.34 Cap.20133 Milano Laboratorio Informatico - Tel. 02- 503 15 503 E-mail [EMAIL PROTECTED] ___ 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] Change symbol size
Hello all, I have a problem i want to change the size of the symbol in order to zoom in or zoom out is there posible, iom using true type symbols thanks _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users