[mapserver-users] Drawing a line
Hi, How to draw a line on the map between two points given by the user? What all should be included in the mapfile for this line layer. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Displaying points on the map only for certain time period
Hi, I have to display a point on the map only for 5 seconds. After 5 seconds the second point from the database should be retrieved from the database and displayed.This process continues till all the points in the database is displayed.Can anyone tell me how to do this.. Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Connecting PHP/mapscript to mysql
Hi,Can anyone tell me how to connect php/mapscript yo mysql? I have to read points from the database and display it on the map. Thanks and Regards. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Querybypoint and drawquery
hi, iam new to mapservers.can i get a sample php code for implementation of queryBypoint and drawquery methods and the required changes to be made in the mapfile for this code to work.Also please say something about template in the layer. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Can anyone help me please???/
HI, I have to display the user clicked point on the map. But i don get the point in the map.. Can any one please correct my code.. ?php dl('php_mapscript.dll'); // Default values and configuration $map_file=./usa12.map; $map = ms_newMapObj($map_file); if ( isset($HTTP_POST_VARS[mapa_x]) isset($HTTP_POST_VARS[mapa_y])) { $my_point = ms_newpointObj(); $my_point-setXY($HTTP_POST_VARS[mapa_x],$HTTP_POST_VARS[mapa_y]); $nGeoX = Pix2Geo($my_point-x, 0,$map-width , $map-extext-minx, $map-extent-maxx, 0); $nGeoY = Pix2Geo($my_point-y, 0, $map-height, $map-extent-miny, $map-extent-maxy, 1); $point=ms_newpointobj(); $point-setXY($nGeoX,$nGeoY); $layer=$map-getLayerByName(US state boundaries); if (@$layer-queryByPoint($point,MS_SINGLE ,0) == MS_SUCCESS) { $image_from_query=$map-drawQuery(); $image_from_query_url=$image_from_query-saveWebImage(); } } function Pix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } $image=$map-draw(); $image_url=$image-saveWebImage(); ? map file MAP NAME USA1 STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 200 200 200 SHAPEPATH C:\ms4w\Apache\data EXTENT -800 30 500 150 UNITS METERS PROJECTION proj=lcc lat_1=32 lat_2=44 lat_0=38 lon_0=-100 x_0=0 y_0=0 ellps=GRS80 datum=NAD83 END WEB IMAGEPATH C:\ms4w\tmp\ms_tmp IMAGEURL C:\ms4w\tmp\ms_tmp END LAYER NAME US state boundaries TYPE POLYGON STATUS ON DATA statesp020 PROJECTION proj=latlong ellps=GRS80 datum=NAD83 END CLASS NAME US states OUTLINECOLOR 175 175 175 COLOR 150 150 150 SYMBOL 0 TEMPLATE hello.html END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] querybypoint
hi, Can anyone tell me about QueryBypoint method and the faetures to be included in the mapfile for this method to work ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] pix2geo
hello, iam new to mapservers and iam trying to display the selected point in terms of lat-long. i get errors in the code which i tried to implement if ( isset($HTTP_POST_VARS[mapa_x]) isset($HTTP_POST_VARS[mapa_y]) ) { $my_point = ms_newpointObj(); $my_point-setXY($HTTP_POST_VARS[mapa_x],$HTTP_POST_VARS[mapa_y]); $reference_click = pix2geo($mapa_x,$mapa_y,$map-extent, $map-width,$mapobj-height); function pix2geo($pix_x,$pix_y,$extent,$width,$height) { $pix_x_geo_x = ($extent-maxx - $extent-minx) / ($width - 1); $pix_x_geo_y = ($extent-maxy - $extent-miny) / ($height - 1); $geo_x = $extent-minx + $pix_x_geo_x*$pix_x; $geo_y = $extent-maxy - $pix_x_geo_y*$pix_y; $my_point = ms_newPointObj(); $my_point-setXY($geo_x,$geo_y); return $my_point; } ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Displaying a point given its latitude and longitude
Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Pix2geo
Hi, Can u get me an exaple for pix2geo function implementation?how to display the user given co-ordinates on the map? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Doubt
Hi, i will have to display point in a map given its co-ordinates.The co-ordinates has to be given manually.What do i have to do for that? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Converting pixel position to geographic co-ordinates
Hi, What is the function used to convert pixel position to geographic co-ordinates in php/mapscript? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users