Re: [mapserver-users] Tiled image handling error

2008-08-12 Thread Rahkonen Jukka
Hi,

A few suggestions:

>  TYPE LINE
Should probably be TYPE RASTER
>  STATUS   OFF
STATUS DEFAULT or STATUS ON might be better alternatives

If those changes will not help and you only have one tiff file to be displayed 
on layer "navi" then you can simplify map file a bit by leaving out TILEINDEX 
and TILEITEM and pointing directly to your image by using
DATA "/var/www/map/shapes/navi.shp"

-Jukka Rahkonen-


> -Alkuperäinen viesti-
> Lähettäjä: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Puolesta 
> George A. Dubin
> Lähetetty: 13. elokuuta 2008 9:38
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] Tiled image handling error
> 
> Hi all! I'm having a problem with tiled tiff when mapserver 
> is working as WMS. While trying to display "navi" layer is 
> produces an error:
> 
> msDrawMap(): Image handling error. Failed to draw layer named navi;.
> msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif)
> msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif)
> 
> But the tiff exists there and owned by Apache user... What am 
> I doing wrong?
> 
> Layer section in my mapfile:
> 
> LAYER
>  NAME navi
> 
>  TYPE LINE
>  TILEINDEX"/var/www/map/shapes/navi.shp"
>  TILEITEM "LOCATION"
>  STATUS   OFF
> 
>  METADATA
>   wms_title "navi"
>   wms_abstract "navigation map"
>   wms_srs "EPSG:32235"
>  END
> 
>   CLASS
>   NAME"Navi"
>   END
> END
> 
> Other layers are working - 2 rasters and one postgis layer 
> with points.
> 
> --
> Отправлено M2, революционной почтовой программой Opera:  
> http://www.opera.com/mail/
> ___
> 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] MS4W package doesn't have fribidi2 included in it yet

2008-08-12 Thread Rohalah Delpak
Hi 
MS4W package doesn't have fribidi2 included in it yet.
how can i solve this issue?
 
i use MS4W 5.2 , that its not show Arabic labels correctly.
 


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


[mapserver-users] Tiled image handling error

2008-08-12 Thread George A. Dubin
Hi all! I'm having a problem with tiled tiff when mapserver is working as  
WMS. While trying to display "navi" layer is produces an error:


msDrawMap(): Image handling error. Failed to draw layer named navi;.
msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif)
msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif)

But the tiff exists there and owned by Apache user... What am I doing  
wrong?


Layer section in my mapfile:

LAYER
NAMEnavi

TYPE LINE
TILEINDEX   "/var/www/map/shapes/navi.shp"
TILEITEM"LOCATION"
STATUS  OFF

METADATA
wms_title "navi"
wms_abstract "navigation map"
wms_srs "EPSG:32235"
END

CLASS
NAME"Navi"
END
END

Other layers are working - 2 rasters and one postgis layer with points.

--
Отправлено M2, революционной почтовой программой Opera:  
http://www.opera.com/mail/

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


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

2008-08-12 Thread BrainDrain

OpenLayers works perfectly if it configured correctly.
first of all you need to setup base OpenLayers layer (map server layer in
your case as I understand). Note: OL uses some default values for map obj:
DD units and EPSG:4326 proj (wgs84 LL) ... etc.
You need to spec. your own. spatialreference.org can help.
from my exp. - in current 2.6 version you need to "normalize" map obj with
some parameters from base layer / I mean:
'maxExtent','minExtent','maxScale','minScale','maxResolution','minResolution','units','projection'.
Older versions (for ex. used in fusion mapping js lib) did this
automatically.

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
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-map.zoomToExtent-tp18902842p18957700.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


RE: [mapserver-users] Memoryproblem

2008-08-12 Thread Hallgren, Johan
Hello Tamas

I'm glad that you supports me here:)

We are getting closer to the problem:)

Your code (getbytes.exe) runs fine on my own pc, but when I move the code to 
the server the problem starts.

I made a new project with your cs-file and named it getbytemap, but it's 
actually the same code as the getbytes.exe. The output below doesn't actually 
write the error but the "GetBytes:" is the first part och the exception 
message. I can guess that the memory already is corrupt. When I do the same 
with the debugger you can see the watch output below.

One difference I have in mind compared to other environments I have used is 
that this server have more power. In the task manager there is eight CPUs.

The problem is deterministic with the getbyte-code.

Console output
+++
C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png
Drawing map: 'GIMS' using imageObj.getBytes
GetBytes:

C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png
Drawing map: 'GIMS' using imageObj.getBytes
Drawing map: 'GIMS' using imageObj.write
GetBytes:

C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png
Drawing map: 'GIMS' using imageObj.getBytes
GetBytes:

C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png
Drawing map: 'GIMS' using imageObj.getBytes
GetBytes:

C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png
Drawing map: 'GIMS' using imageObj.getBytes
GetBytes:
+++

Watch output
+++
ex.Message  "Attempted to read or write protected memory. This is often an 
indication that other memory is corrupt."string
+++

/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

-Original Message-
From: Tamas Szekeres [mailto:[EMAIL PROTECTED]
Sent: den 12 augusti 2008 16:48
To: Hallgren, Johan
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Memoryproblem

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] Problems calculating MAXSCALES

2008-08-12 Thread BrainDrain

For calculating MIN/MAXSCALEDENOM I use openlayers ria js lib (automatic zoom
levels, supports map server layers), which is part of my web project. I have
the same question as you - howto to get current scale value with mapscript.
You can dig js code (openlayers: Map.js (getScale function)
FixedZoomLevels.js (getResolution function)) to find solution.


gisrob wrote:
> 
> Hi Guys
> 
> This is probably a bit of a schoolboy error, but I'm having real
> problems with my latest mapfile and MIN/MAXSCALEDENOMs.
> 
> My mapfile contains sections like this
> 
> MAP
>  EXTENT 235000 132715 30 20
>  RESOLUTION 96.00
>  UNITS METERS
>  SIZE 500 500
> 
> PROJECTION
>  "init=epsg:27700"
> END
> 
> LAYER
>   MAXSCALEDENOM 50
>   MINSCALEDENOM 0
>   NAME 'TEST'
>   TILEINDEX "SHAPEFILE"
>   TILEITEM "location"
> END
> 
> Now, my basic maths suggests that if I do a shp2img on this mapfile, I
> should get a valid map.  Heres my working
> 
> minx=235000
> miny=132715
> maxx=30
> maxy=20
> 
> 
> pixels per screen meter (ppsm)= ( 100 cm / 2.54 cm ) * resolution of
> 96 = 3779.527555
> 
> Scale = ( ( ( ( maxx - minx) * ppsm ) / imagewidth ) + ( ( ( maxy -
> miny) * ppsm ) / imageheight ) / 2
> 
> I calculate this to be 499974.8026
> 
> However, the map is empty.  An image finally appears if I change the
> MAXSCALEDENOM value to 509631
> 
> What schoolboy error have I made?  Its all the more confusing because,
> before my MapServer 5 upgrade, this seemed to be working fine!
> 
> Many thanks in advance
> 
> Rob
> ___
> 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/Problems-calculating-MAXSCALES-tp18926188p18957581.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


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]
> http://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


[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


[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=construct&map=C%3A%2FWINDOWS%2FMicrosoft.NET%2FFramework%2Fv2.0.50727%2FTemporary%20ASP.NET%20Files%2Fwem%2Ff47bfcbf%2FSession_mkkoj034s3ocw4ajt4zlfzvp%2F0_cicbase.map&map_imagetype=AGG_JPEG&format=image%2Fjpeg&ts=1218605020578&session=mkkoj034s3ocw4ajt4zlfzvp&mode=map&mapext=-81.16385911179067+-11.48545176110251+-0.7656967840724462+68.91271056661571&imgext=-81.16385911179067+-11.48545176110251+-0.7656967840724462+68.91271056661571&map_size=256+256&imgx=128&imgy=128&imgxy=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] 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


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


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


[mapserver-users] Connection to Mysql 5.0

2008-08-12 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


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] 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


[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:\ms4w>mapserv -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] 5.2 Problems

2008-08-12 Thread Rahkonen Jukka
You ask for WMS and get back WFS error message, is this really your situation?
 
-Jukka Rahkonen-




Lähettäjä: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Puolesta Derek 
Bain
Lähetetty: 12. elokuuta 2008 12:57
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] 5.2 Problems


Hi 

I updated ms4w using the 2.2.8 installer. Now I get this error in 
ms_error.txt "msWFSDispatch(): WFS server error. Incomplete WFS request: 
SERVICE parameter missing".

I added the service parameter and i still get the error. Here is my 
onlineresource

"wms_onlineresource"
"http://localhost:8082/cgi-bin/mapserv.exe?map=d:/MyTestData/Shapes.map&SERVICE=WMS&VERSION=1.1.1";

Using the above url, my WMS client gets back the WMS tree (layers in 
the map file) with no errors added to ms_error.txt.

Any ideas on what is happening

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


[mapserver-users] 5.2 Problems

2008-08-12 Thread Derek Bain
Hi 

I updated ms4w using the 2.2.8 installer. Now I get this error in ms_error.txt 
"msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter 
missing".

I added the service parameter and i still get the error. Here is my 
onlineresource

"wms_onlineresource"
"http://localhost:8082/cgi-bin/mapserv.exe?map=d:/MyTestData/Shapes.map&SERVICE=WMS&VERSION=1.1.1";

Using the above url, my WMS client gets back the WMS tree (layers in the map 
file) with no errors added to ms_error.txt.

Any ideas on what is happening

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


[mapserver-users] Memoryproblem

2008-08-12 Thread Hallgren, Johan
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


RE: [mapserver-users] Doubt

2008-08-12 Thread Venkat Rao Tammineni
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


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] 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