Re: [MAPSERVER-USERS] problem with map.zoomToExtent

2008-08-11 Thread Alan Boudreault

Reena,

I don't understand why your map.zoomToExtend() call don't work. This 
is a very basic function.  Are you sure that the parameters used for 
create the OpenLayers.Bounds object are good ? (str1 = left, str2 = 
bottom, str3 = right, str4 = top). If so, can you show us some code ... 
in this way, we'll be more able to check what could be the problem.


Regards,
Alan

S.Reena wrote:

i have three files... one html, one javascript and one phpi am handling
database through php file and sending the result of that to a function in
javascript file..
echo  \javascript:zoomVillage($box1,$box2,$box3,$box4)\ Open Map ;

These are ST_box2D() data which i hv split in 4 parts ...the thing is if i
alert these values in that function..its working..but i i do like

map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4))  where str1 etc
contain the passed values.. 


this doesn't work..

Can any1 help?

Cheers,
S.Reena
  



--
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] Connection to Mysql 5.0

2008-08-11 Thread Νίκος Παπαδάκης

Hello to everyone!

i have a problem in implementing the example i found in 
http://mapserver.gis.umn.edu/docs/howto/ogrmysql.

I want to project some points on the map.
I have created the .ovf file and the database i want to access with some 
appropriate data.

I have also created a user and granted it with all privileges.
(GRANT ALL ON 'dbase_name'.* to 'user'@localhost identified by 'password');

When i use command prompt to connect to mysql with ogrinfo.exe 
everything goes fine!
(ogrinfo.exe -al 
MYSQL:my_db,user='user',password='password',host=localhost,port=3306,tables=points;).
The results i get are information about the table contained in database 
and the contents of the selected table.


Next i run  ogrinfo.exe -al /path/to/ovf_file.ovf   and again i get the 
result i expected..

(except from the warning
ERROR 4: Update access not supported fow VRT datasources
Had to open data source in read-only which is fine according to the 
example!).


But when i use the .ovf file through the .map file ,and after a few 
seconds,i get the message :



 /Internal Server Error/

/The server encountered an internal error or misconfiguration and was 
unable to complete your request./


/Please contact the server administrator, [EMAIL PROTECTED] and inform 
them of the time the error occurred, and anything you might have done 
that may have caused the error./


/More information about this error may be available in the server error 
log./



Can anyone help me becuse i'm stuck with this.
Is it preferable to access mysql with php\mapscript instead?

And if yes,is there any informative tutorial???

Thank you in advance!
Nikos Papadakis.



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ShpTree

2008-08-11 Thread Jay Kapalczynski
I am trying to figure out what I need to do/install/run to create a .qix
file (tile index) for a few of my shapefiles.

I have looked this up on a few pages and still am confused.

 

Can anyone help me?

 

Thanks

 

J

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users