[mapserver-users] Doubt

2008-08-12 Thread ramya srinivasan
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


Re: [mapserver-users] ShpTree

2008-08-12 Thread Jochen Topf
On Mon, Aug 11, 2008 at 02:35:41PM -0600, Gregor Mosheh wrote:
 Note that for Mapserver (rather, OGR) to USE the qix file, you must not  
 specify the .shp extension in your DATA statement. If you do, the qix  
 will simply be skipped. e.g.
DATA data/streets/streets.shp
 should be:
DATA data/streets/streets
 (someone correct me if this has changed)

I just verified this on Mapserver 5.0.0 (the on in current Ubuntu). It
tries to open data/streets/streets.shp.qix instead of
data/streets/streets.gix.

But it looks like it has already been fixed in newer versions:
http://trac.osgeo.org/mapserver/changeset/7566

Jochen
-- 
Jochen Topf  [EMAIL PROTECTED]  http://www.remote.org/jochen/  +49-721-388298

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


[mapserver-users] 5.2 Problems

2008-08-12 Thread Derek Bain
Hi Jukka

This is what i get back. I should be using WMS. I have defined WMS as the 
connectiontype in the map file. All worked okay on the previous version of 
ms4w. I also tried using shp2img on my map file and it returned saying that i 
need to define WEB.IMAGEPATH in my map file which i did not need in the 
previous version. I added this and the image file generated has 

msWMSLoadGetMapParams(): WMS Server Error.  Invalid layer(s) given in the 
LAYERS parameter

As I say all worked previously. Here is my mapserv -v output if it helps anyone

C:\ms4wmapserv -v
MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
 OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO
NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP
PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

Derek


Send instant messages to your online friends http://uk.messenger.yahoo.com ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Doubt

2008-08-12 Thread Carlos Ruiz
Ramya,

Please check the FEATURE section within LAYER section.

LAYER
...
FEATURE
POINTS x y END
END
...
END

OR

LAYER

...

FEATURE
WKT POINT(2000 2500)END

...


END


Greetings from México

IC Carlos Ruiz 

--- On Tue, 8/12/08, Venkat Rao Tammineni [EMAIL PROTECTED] wrote:
From: Venkat Rao Tammineni [EMAIL PROTECTED]
Subject: RE: [mapserver-users] Doubt
To: 'ramya srinivasan' [EMAIL PROTECTED], mapserver-users@lists.osgeo.org
Date: Tuesday, August 12, 2008, 3:32 AM




 
 






Hi, 

    Please check this url. 

   

     http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData 

   

I hope it will help you… 

Thanks and Regards 

Venkat. 

   

   



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ramya
srinivasan

Sent: Tuesday, August 12, 2008 1:29 PM

To: mapserver-users@lists.osgeo.org

Subject: [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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Memoryproblem

2008-08-12 Thread Tamas Szekeres
Johan,

I haven't run into this problem yet. Do you able to run the getbytes
console application in the /csharp directory?
Is this issue deterministic or random? Do you have an example to reproduce it?

Best regards,

Tamas


2008/8/12 Hallgren, Johan [EMAIL PROTECTED]:
 Hello



 I have a major problem when using imgMapObj.getBytes().

 The memory will be corrupt. The problem doesn't occur when using the save
 function.  I have not seen the problem on other servers so the problem seams
 to be related to a specific server (Windows Server 2003 standard edition).

 Error msg

 ++

 Attempted to read or write protected memory. This is often an indication
 that other memory is corrupt.

at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef jarg1,
 SWIGByteArrayDelegate jarg2)
at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback)
at OSGeo.MapServer.imageObj.getBytes()
at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument xmlDoc,
 Boolean bRetImage) in
 C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298
 ++

 I use mapserver in c# and I have version 5.2.0.



 /Johan

 Johan Hallgren

 Logica
 Pelle Bergs backe 3
 Box 1938, 791 19 Falun
 Tel (och mobil): 023-547 46 (int: +46-2354746)
 [EMAIL PROTECTED]
 http://www.logica.se


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

2008-08-12 Thread Fawcett, David
Nikos, 

Is it possible that MapServer is using a different ogr binary than the
one that you are hitting from the command line.  This is really a
question for the MS4W people and not you, I guess.  

One possible reason that you are having this problem would be if
MapServer was compiled with a different ogr than the one that you are
hitting with your commandline and the one that MapServer is using wasn't
compiled with MySQL support.  

I am guessing that the MS4W maintainers could prove or destroy this
theory pretty quickly...

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2008 10:00 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Connection to Mysql 5.0


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,tab
les=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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Connection to Mysql 5.0

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

O/H Fawcett, David έγραψε:
Nikos, 


Is it possible that MapServer is using a different ogr binary than the
one that you are hitting from the command line.  This is really a
question for the MS4W people and not you, I guess.  


One possible reason that you are having this problem would be if
MapServer was compiled with a different ogr than the one that you are
hitting with your commandline and the one that MapServer is using wasn't
compiled with MySQL support.  


I am guessing that the MS4W maintainers could prove or destroy this
theory pretty quickly...

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2008 10:00 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Connection to Mysql 5.0


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,tab

les=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

  
Well. The ogrinfo i am using is installed with mapserver 
(ms4w-2.2.7-setup.exe).

and the ogrinfo.exe is in C:\ms4w\tools\gdal-ogr.
So i guess that mapserver is using the same binary...

Anyway,i hope i get an answer !!!
Thank you.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Hacking PROJ4...

2008-08-12 Thread Yvan Calcagni

Thanks David, but I tried this and it didn't work. Nevertheless I found a way 
to solve my problem. I'm pretty sure this solution isn't very clean but it 
works. So, I replaced the EPSG:27582 lon_0 parameter (previously set to 0) with 
this one : +lon_0=2.33722917 and I don't know why but it worked...

See you.

Yvan 



Avant de prendre le volant, repérez votre itinéraire et visualisez le trafic ! 
http://itineraire.voila.fr/itineraire.html


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


[MAPSERVER-USERS] ms4w bug: mapserv returns empty(blank) image

2008-08-12 Thread BrainDrain

I have this input projection for my layers
+proj=tmerc +lat_0=0 +lon_0=45 +k=1.00 +x_0=0 +y_0=0 +ellps=krass
+towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=mm +no_defs (local coordsys)
and this is output proj
+proj=tmerc +lat_0=0 +lon_0=45 +k=1.00 +x_0=0 +y_0=0 +ellps=krass
+towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=m +no_defs (just mm-m)
so I have a 0 0 point in my map  I found holes in some place with certain
zoom scale:
for ex this produces blank image. 
http://localhost/cgi-bin/mapserv.exe?layers=constructmap=C%3A%2FWINDOWS%2FMicrosoft.NET%2FFramework%2Fv2.0.50727%2FTemporary%20ASP.NET%20Files%2Fwem%2Ff47bfcbf%2FSession_mkkoj034s3ocw4ajt4zlfzvp%2F0_cicbase.mapmap_imagetype=AGG_JPEGformat=image%2Fjpegts=1218605020578session=mkkoj034s3ocw4ajt4zlfzvpmode=mapmapext=-81.16385911179067+-11.48545176110251+-0.7656967840724462+68.91271056661571imgext=-81.16385911179067+-11.48545176110251+-0.7656967840724462+68.91271056661571map_size=256+256imgx=128imgy=128imgxy=256+256
I think mapserv will return empty image for such kind of bbox independently
of map file content.

mapscript c# draws normal image for this extent/scale;
map file is correct;
as a solution I can use my own web service to draw map tiles in this
particular cases, but 
now I have changed my output projection to +proj=tmerc +lat_0=48.70975
+lon_0=44.51205 +k=1.00 +x_0=0 +y_0=0 +ellps=krass
+towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=m +no_defs
(normalized to real world) and all works fine)) But this ms4w bug(?) still
exists.

-- 
View this message in context: 
http://www.nabble.com/ms4w-bug%3A-mapserv-returns-empty%28blank%29-image-tp18957296p18957296.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
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

2008-08-12 Thread ramya srinivasan
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


Re: [MAPSERVER-USERS] Memoryproblem

2008-08-12 Thread BrainDrain

I use mapscript c# in my project running in ms win 2003 std/ent r2 and iis6
all works perfect, but some problem related with writing png's exists in
.net (v 2/3.5)

imageObj imgRaw=null;
imgRaw = map.draw();
//this works (without changing image format)
using (MemoryStream ms = new MemoryStream(imgRaw.getBytes()))
ms.WriteTo(response.OutputStream);
//or this (note: the second memory stream,actually, needed only for
iutputing png's!)
imageFormat = ImageFormat.Png;
using (Image img = Image.FromStream(new MemoryStream(imgRaw.getBytes(
{
 using (MemoryStream ms = new MemoryStream())
 {   
  img.Save(ms, imageFormat);
  ms.WriteTo(response.OutputStream);
 }
}
before version 5.2 I had memory corruption problems in some web service
requests (reason - unknown, perhaps it was related with postgis bug - ticket
now closed) during map.draw(), but now all ok. 
+consideration: mapserv.exe (especially in fastcgi mode) much more faster


Hallgren, Johan wrote:
 
 Hello
 
 I have a major problem when using imgMapObj.getBytes().
 
 The memory will be corrupt. The problem doesn't occur when using the save
 function.  I have not seen the problem on other servers so the problem
 seams to be related to a specific server (Windows Server 2003 standard
 edition).
 
 Error msg
 
 ++
 
 Attempted to read or write protected memory. This is often an indication
 that other memory is corrupt.
 
at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef jarg1,
 SWIGByteArrayDelegate jarg2)
at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback)
at OSGeo.MapServer.imageObj.getBytes()
at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument xmlDoc,
 Boolean bRetImage) in
 C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298
 ++
 
 I use mapserver in c# and I have version 5.2.0.
  /Johan
 Johan Hallgren
 Logica
 Pelle Bergs backe 3
 Box 1938, 791 19 Falun
 Tel (och mobil): 023-547 46 (int: +46-2354746)
 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
 http://www.logica.sehttp://www.logica.se/
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Memoryproblem-tp18940658p18957433.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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