[mapserver-users] getFeatures of the clicked shape
Hy ! I have a problem with getting an ID of a shape This is the code i use: $layer = $map-getLayerByName('sde1','sde2','sde3','sde4'); if ($layer-getNumResults() == 1) { $res = $layer-getResult(0); $layer-open(); $shape = $layer-getFeature($res-shapeindex, $res-tileindex); $id = $shape-ID; $layer-close(); } I,think it puts the ID's of all of the shapes what the spaefile contain. Am i think right? How can i put only the clicked shape's ID to the $id variable? I am able to get the clicked X and Y coords from a Js code, it is usefull to get the ID of the clicked shape? Thanks a lot for the answers, Zsolt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetFeatures - get the ID value of clicked shape
Hy all Can someone help me with this? $layer = $map-getLayerByName('sde1','sde2','sde3','sde4'); // xy pix - geo pt $xPixel = $_REQUEST['x']; $yPixel = $_REQUEST['y']; $xGeo = $_SESSION['GEOEXT']['minx'] + (($xPixel/$_SESSION['mapwidth']) * ($_SESSION['GEOEXT']['minx']-$_SESSION['GEOEXT']['maxx'])); $yGeo = $_SESSION['GEOEXT']['maxy'] - (($yPixel/$_SESSION['mapheight']) * ($_SESSION['GEOEXT']['maxy']-$_SESSION['GEOEXT']['miny'])); $pt = ms_newPointObj(); $pt-setXY($xGeo, $yGeo); // proj $mapProjStr = $map-getProjection(); $layerProjStr = $layer-getProjection(); if ($mapProjStr $layerProjStr $mapProjStr != $layerProjStr) { $mapProjObj = ms_newprojectionobj($mapProjStr); $layerProjObj = ms_newprojectionobj($layerProjStr); $pt-project($mapProjObj, $layerProjObj); } // set map extent and size: $map-setExtent($_SESSION['GEOEXT']['minx'], $_SESSION['GEOEXT']['miny'], $_SESSION['GEOEXT']['maxx'], $_SESSION['GEOEXT']['maxy']); $map-setSize($_SESSION['mapwidth'], $_SESSION['mapheight']); $map-preparequery(); // Use '@' to avoid warning if query found nothing @$layer-queryByPoint($pt, MS_SINGLE, -1); $pt-free(); if ($layer-getNumResults() == 1) { $res = $layer-getResult(0); $layer-open(); $shape = $layer-getFeature($res-shapeindex, $res-tileindex); *$id = $shape-ID;* $layer-close(); } This code gets the x and y coordinates of the clicking ($xPixel = $_REQUEST['x']) I have transformed it to Geo coords, and so on, and in the end i want to search for my clicked shape's ID Am i right that the $id variable is contaning the ID value of the clicked shape? i have bolded the line i talking about.. (The shape file have an attribute table and mine have a ID column) Please if someone can help , do it:P thanks, Zsolt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Versioned queries arcSDE
Hy all I would like to ask for help . How can i do versioned queries? I have an Oracle database with SDE on it.Can someone post some example mapfile or code or just a discusson about the question?:) Thanks, bye ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Raster Display Performance
Hy all! I would like to ask for a help. I have a dataset. 30 pieces of Tif file, aproximately 240 MB each. I make a layer in the map file: LAYER NAME something STATUS ON TILEINDEX sh.shp TILEITEM Location TYPE RASTER METADATA DESCRIPTION Something too ows_title dem END END I use this in the pmapper framework.(But its doing the same thing in ka-map either) But its apeaars very slowly and when i panning its reload all and its very slowly too.. i would like to tune up the performance somwhow. I am looking the gdaladdo program, because mapserver documentation suggest it. But when i tried the given examples (http://www.gdal.org/gdaladdo.html) it wont work, or i dont know what to see, Its just do nothing i think.. Can anybody help me on this? Or any method to make a better performance? please! thanks, Zsolt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] gmap and AJAX
Hy all!! I have a problem. How can i implement Ajax into the Gmap sample application (written in PHP mapscript)? For example in this app, when you click on a city, some info appears, but the browser reload the whole page again. This is when a Jax should help, that its load only the ifno part, not the wole page. Can anybody help me out? Thanks Zsolt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver+SDE support
Hy! There is a link: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#sde I do exactly the same steps they mentioned but the SDE support isnt enabled. In step 1 i copyed the 2 dll's into the /ms4w/gdalplugins/ from /ms4w/gdalplugins/ignored/sde-x/ and then in step 2 the commands( ogrinfo and gdal info) should list SDE support, but they dont. So step 3 is not important until step two work correctly i think:( Can someone help me more? Am i do something wrong? There is a line: /Note that you might need to add the ArcGIS location (such as/ /C:/Program Files/ArcGIS/Bin) to your system PATH environment/ /variable. You might need to reboot for changes to take effect. / /I think i made this one too... Should i have to copy other dlls in other directories? Or what? PLS help me Thanks a lot, Zsolt/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SDE support help
Hy I wrote a mail some days ago, but i cant find a solution for my problems. I read an artice about compileing mapserver on win32 ( i use win) but for me its a bit difficult. i read this: http://www.mapserver.org/installation/win32.html i look at my maperv.exe again ..looks something like on the attachment pic. the point is that there are no line like input=SDE Can someone help me a little bit more? i never did things like this before. idownloaded a ms4w package ,installed it , thats all...compilation is more difficult for me right now I waiting for your help in privat mails thank in advance Zsolt -- -[MaC]- attachment: support.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SDE support for mapserver
Hy all!! How can i get SDE support for mapserver? i look at the supoorts i have, but theres is no SDE, I have to dowload files or how? pls help me Best Regard Zsolt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] ka-map with mapserver problems..PLS help me
Hy! Sorry for disturb but i have a problem and i see you on ka-map mailing list. So, I installed ms4w, then copy ka-map 1.0 to ms4w. I find web pages how to config and prepare my ka-map. ( in the config.php file.. mapfile path., phpscript and GD path,.apache alias and so on..) i found a sample Shape file and a mapfile to test ka-map with them. But when i see it in the browser, only the ka-map frame aapears but the content,the map don't. Can you help me ..maybe i dont config something well or i dont know.. If you use same ms4w and ka-map 1.0..you may send it to me in a zip for example. I aprisiate your help Thanks, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ka-map problem
yes i download this one from that link. and follow the prepare ka-map wiki steps and the problem is still there? any idea? thanks bye Jeff McKenna írta: Medve Zsolt wrote: Hy all! I have a problem with ka-map. I configured written as on these pages. http://ka-map.ominiverdi.org/wiki/index.php/Preparing_ka-Map http://www.xml.com/pub/a/2005/08/10/ka-map.html I do everything a think.. I use ms4w with apache, and when i go to localhost/kamap, the ka-map frame appears but the doesnt load..nothing happens! If anyone runs to the same problem pls write to me privat or here the list! thx bye There is a ka-Map package available for download for MS4W, which means that it will be already configured for use with MS4W (see http://www.maptools.org/ms4w/index.phtml?page=downloads.html). If you have a newer ka-Map version maybe you could follow how that package is configured. If you have problems with the MS4W ka-Map package feel free to inquire on the ms4w-users mailing list. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users