Re: [mapserver-users] problems generating image

2010-11-30 Thread Fco . Javier García Ricca
Hello Carlos,

I think that it isn't the problem because I have the same data in another
configuration in Centos and I don't get this problem. I don´t make any
warping with the data, only show it.

I try more things but I am very lost and I don't find the solution. Please,
anybody have any idea?

Thanks

2010/11/30 Carlos Ruiz 

> Javier,
>
> Lo que pasa es que el archivo no tiene definida un sistema de coordenadas:
>
> *Coordinate System is `'*
>
> Debes de abrirlo con algun software para asignarle un sistema de
> coordenadas geográficas o una proyección.
>
> Saludos desde Guadalajara, México
>
> IC Carlos Ruiz
>
> --
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Foss4g in CHILE

2010-11-30 Thread César Medina

Hi all, how are you?As some already know, I'm in the early organization of the 
1st FOSS4G event  in Chile, in conjunction with a university here in Santiago 
of Chile, that will be held in march 2011
For this, I need some cooperation in particular issues, at least for those who 
are here in Chile, need use cases or workshops for:
• gvsig• geoserver• mapserver• postgresql/postgis
Within the next few weeks we should be launching the program, the Web and 
more.For those who dare to cooperate on any issue, please contact me either on 
the list or my personal email ciesaremedina (at) gmail (dot) com
best regards

Césarhttp://www.openmaps.cl
http://www.openmaps.cl/cv
http://www.openmaps.cl/blog
mail: ciesareMedina (at) gmail (dot) com
msn: ciesareMedina (at) hotmail (dot) com
skype: ciesare_medina
twitter: @ciesaremedina

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


[mapserver-users] external graphic symbol don't follow the GetStyles method

2010-11-30 Thread Martin Ouellet
Hi,

When I used a external graphic element in a SLD like this:
test
indicatif103005
4.00


http://www.w3.org/1999/xlink";
xlink:type="simple" xlink:href="
http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"/>
GIF


Then I used the temporary mapfile generated by the call to define the same
symbology but in my mapfile.
SYMBOL
NAME "
http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";
TYPE PIXMAP
IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif"
GAP -11
TRANSPARENT 0
  END

CLASS
  NAME "test"
  EXPRESSION ([indicatif] = 103005)
  MAXSCALEDENOM 4
  STYLE
ANGLE 360
COLOR 0 0 0
SIZE 5.5
SYMBOL "
http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";
WIDTH 1
  END
END

Question: Finally, I would like to expose this symbology through the
GetStyles() method but it seem to be completely ignored?
test
indicatif103005
4.00



Is it normal? Thank you in advance!

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


[mapserver-users] Google Maps Tile overlay shift

2010-11-30 Thread Varun saraf
Hi,

For some time now, I have been using Mapserver with Tilecache and
Google maps to display census tract overlays to users. However, the
users complain that the overlay is not accurate if they zoom into the
map (say level 13 onwards). Is this a problem with the projection
scheme being used? I think my data is in epsg 4326 format and google
uses 900913 I think. I insrted this into the Proj 4 epsg file but
still the overlays are shifted by a bit. If anyone who has solved this
problem can direct me, it would be a great help.

BTW, I use ms4w for windows and the GtileOverlay method with tilecache.

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


Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Alan Boudreault
Yes I'm using the php cgi mode.

On November 30, 2010 12:01:15 pm Peter Hopfgartner wrote:
> Are you using PHP in CGI mode? loadparams() might not work with 5.6 when
> PHP is used as an Apache module.
> 
> Peter Hopfgartner
> 
> R3 GIS Srl - GmbH
> http://www.r3-gis.com
> 
> 
> Alan Boudreault  wrote
> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
> Date: 30.11.2010 17:44
> 
> >Well, not sure what's wrong with my test case... but I'm just unable to
> >get
> >the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to
> >crash
> >without any exception. I see nothing in my debug file neither. The http
> >request returns no data.
> >
> >Everything works like a charm using MapServer-dev, GET params and POST
> >params.
> >
> >Alan
> >
> >On November 30, 2010 11:02:00 am Peter Hopfgartner wrote:
> >> Thanks!
> >> 
> >> Peter Hopfgartner
> >> 
> >> R3 GIS Srl - GmbH
> >> http://www.r3-gis.com
> >> 
> >> 
> >> Alan Boudreault  wrote
> >> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
> >> Date: 30.11.2010 16:10
> >> 
> >> >Well, I may be wrong... the php code and the cgiutil code have been
> >> >modified..
> >> >let me give it a try today and will get back to you.
> >> >
> >> >Alan
> >> >
> >> >On November 30, 2010 10:01:30 am Alan Boudreault wrote:
> >> >> Peter,
> >> >> 
> >> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5.
> >> >> Unfortunately, I doubt it will work in that version. However,  the
> >> >> OWSRequest-
> >> >> 
> >> >> >loadParams method supports post parameters in MS-dev. It will be
> >> >
> >> >available
> >> >
> >> >> >in
> >> >> 
> >> >> MS 6.0.
> >> >> 
> >> >> Alan
> >> >> 
> >> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote:
> >> >> > Is OWSRequest->postrequest implemented in the current PHP
> >
> >MapScript?
> >
> >> >Is
> >> >
> >> >> > it available only for CGI? We would like to use a wrapper for
> >> >
> >> >handling
> >> >
> >> >> > WFS request and we would like to pass the POST data to MapServer
> >> >
> >> >without
> >> >
> >> >> > the need to slice the XML into single setParameters() calls.
> >> >> > 
> >> >> > Regards,
> >> >> > 
> >> >> > Peter Hopfgartner
> >> >> > 
> >> >> > R3 GIS Srl - GmbH
> >> >> > http://www.r3-gis.com
> >> >> > 
> >> >> > 
> >> >> > ___
> >> >> > mapserver-users mailing list
> >> >> > mapserver-users@lists.osgeo.org
> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Peter Hopfgartner
Are you using PHP in CGI mode? loadparams() might not work with 5.6 when PHP is 
used as an Apache module.

Peter Hopfgartner
 
R3 GIS Srl - GmbH
http://www.r3-gis.com


Alan Boudreault  wrote
Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
Date: 30.11.2010 17:44

>Well, not sure what's wrong with my test case... but I'm just unable to
>get 
>the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to
>crash 
>without any exception. I see nothing in my debug file neither. The http 
>request returns no data. 
>
>Everything works like a charm using MapServer-dev, GET params and POST
>params.
>
>Alan
>
>On November 30, 2010 11:02:00 am Peter Hopfgartner wrote:
>> Thanks!
>> 
>> Peter Hopfgartner
>> 
>> R3 GIS Srl - GmbH
>> http://www.r3-gis.com
>> 
>> 
>> Alan Boudreault  wrote
>> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
>> Date: 30.11.2010 16:10
>> 
>> >Well, I may be wrong... the php code and the cgiutil code have been
>> >modified..
>> >let me give it a try today and will get back to you.
>> >
>> >Alan
>> >
>> >On November 30, 2010 10:01:30 am Alan Boudreault wrote:
>> >> Peter,
>> >> 
>> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5.
>> >> Unfortunately, I doubt it will work in that version. However,  the
>> >> OWSRequest-
>> >> 
>> >> >loadParams method supports post parameters in MS-dev. It will be
>> >
>> >available
>> >
>> >> >in
>> >> 
>> >> MS 6.0.
>> >> 
>> >> Alan
>> >> 
>> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote:
>> >> > Is OWSRequest->postrequest implemented in the current PHP
>MapScript?
>> >
>> >Is
>> >
>> >> > it available only for CGI? We would like to use a wrapper for
>> >
>> >handling
>> >
>> >> > WFS request and we would like to pass the POST data to MapServer
>> >
>> >without
>> >
>> >> > the need to slice the XML into single setParameters() calls.
>> >> > 
>> >> > Regards,
>> >> > 
>> >> > Peter Hopfgartner
>> >> > 
>> >> > R3 GIS Srl - GmbH
>> >> > http://www.r3-gis.com
>> >> > 
>> >> > 
>> >> > ___
>> >> > mapserver-users mailing list
>> >> > mapserver-users@lists.osgeo.org
>> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>-- 
>Alan Boudreault
>Mapgears
>http://www.mapgears.com
>

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


Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Alan Boudreault
Well, not sure what's wrong with my test case... but I'm just unable to get 
the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to crash 
without any exception. I see nothing in my debug file neither. The http 
request returns no data. 

Everything works like a charm using MapServer-dev, GET params and POST params.

Alan

On November 30, 2010 11:02:00 am Peter Hopfgartner wrote:
> Thanks!
> 
> Peter Hopfgartner
> 
> R3 GIS Srl - GmbH
> http://www.r3-gis.com
> 
> 
> Alan Boudreault  wrote
> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
> Date: 30.11.2010 16:10
> 
> >Well, I may be wrong... the php code and the cgiutil code have been
> >modified..
> >let me give it a try today and will get back to you.
> >
> >Alan
> >
> >On November 30, 2010 10:01:30 am Alan Boudreault wrote:
> >> Peter,
> >> 
> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5.
> >> Unfortunately, I doubt it will work in that version. However,  the
> >> OWSRequest-
> >> 
> >> >loadParams method supports post parameters in MS-dev. It will be
> >
> >available
> >
> >> >in
> >> 
> >> MS 6.0.
> >> 
> >> Alan
> >> 
> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote:
> >> > Is OWSRequest->postrequest implemented in the current PHP MapScript?
> >
> >Is
> >
> >> > it available only for CGI? We would like to use a wrapper for
> >
> >handling
> >
> >> > WFS request and we would like to pass the POST data to MapServer
> >
> >without
> >
> >> > the need to slice the XML into single setParameters() calls.
> >> > 
> >> > Regards,
> >> > 
> >> > Peter Hopfgartner
> >> > 
> >> > R3 GIS Srl - GmbH
> >> > http://www.r3-gis.com
> >> > 
> >> > 
> >> > ___
> >> > mapserver-users mailing list
> >> > mapserver-users@lists.osgeo.org
> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Peter Hopfgartner
Thanks!

Peter Hopfgartner
 
R3 GIS Srl - GmbH
http://www.r3-gis.com


Alan Boudreault  wrote
Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
Date: 30.11.2010 16:10

>Well, I may be wrong... the php code and the cgiutil code have been
>modified.. 
>let me give it a try today and will get back to you.
>
>Alan
>
>On November 30, 2010 10:01:30 am Alan Boudreault wrote:
>> Peter,
>> 
>> By the current PHP MapScript, I assume you mean MapServer 5.6.5.
>> Unfortunately, I doubt it will work in that version. However,  the
>> OWSRequest-
>> 
>> >loadParams method supports post parameters in MS-dev. It will be
>available
>> >in
>> 
>> MS 6.0.
>> 
>> Alan
>> 
>> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote:
>> > Is OWSRequest->postrequest implemented in the current PHP MapScript?
>Is
>> > it available only for CGI? We would like to use a wrapper for
>handling
>> > WFS request and we would like to pass the POST data to MapServer
>without
>> > the need to slice the XML into single setParameters() calls.
>> > 
>> > Regards,
>> > 
>> > Peter Hopfgartner
>> > 
>> > R3 GIS Srl - GmbH
>> > http://www.r3-gis.com
>> > 
>> > 
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>-- 
>Alan Boudreault
>Mapgears
>http://www.mapgears.com
>

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


Re: [mapserver-users] problems generating image

2010-11-30 Thread Fco . Javier García Ricca
*I forgot it:

gdalinfo /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif
Driver: GTiff/GeoTIFF
Files: /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif
Size is 5970, 2639
Coordinate System is `'
Origin = (217379.206235651305178,4164649.866302459035069)
Pixel Size = (15.000,-15.000)
Metadata:
  EXIF_Orientation=1
  EXIF_XResolution=(72)
  EXIF_YResolution=(72)
  EXIF_ResolutionUnit=2
  EXIF_Software=Adobe Photoshop CS4 Windows
  EXIF_DateTime=2010:03:16 14:34:05
  EXIF_ColorSpace=1
  EXIF_PixelXDimension=5970
  EXIF_PixelYDimension=2639
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  217379.206, 4164649.866)
Lower Left  (  217379.206, 4125064.866)
Upper Right (  306929.206, 4164649.866)
Lower Right (  306929.206, 4125064.866)
Center  (  262154.206, 4144857.366)
Band 1 Block=5970x1 Type=Byte, ColorInterp=Red
Band 2 Block=5970x1 Type=Byte, ColorInterp=Green
Band 3 Block=5970x1 Type=Byte, ColorInterp=Blue*


2010/11/30 Fco. Javier García Ricca 

> Hello Jeff,
>
> Yes, I use gdalinfo and gdal_translate and I have not problems.
>
>
>
>
>
> 2010/11/30 Jeff McKenna 
>
> Hello,
>>
>> Can GDAL read your sombras.tif file?  (what does 'gdalinfo sombras.tif'
>> return?)
>>
>> -jeff
>>
>>
>> --
>> Jeff McKenna
>> MapServer Consulting and Training Services
>> http://www.gatewaygeomatics.com/
>>
>>
>>
>> On 10-11-30 9:03 AM, Fco. Javier García Ricca wrote:
>>
>>> *Hello,
>>>
>>>
>>> I'll tried to run my application with apache+php+mapserver+pmapper in
>>> RHEL. I'm getting the next errors when I run my application.*
>>>
>>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>>> [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n
>>> in
>>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>>> on line 326, referer:
>>>
>>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>>> [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
>>> format\n in
>>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>>> on line 326, referer:
>>>
>>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>>> [MapServer Error]: drawEPP():
>>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
>>> not an EPPL file.\n in
>>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>>> on line 326, referer:
>>>
>>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal
>>> error:  Call to a member function saveImage() on a non-object in
>>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php
>>> on line 257, referer:
>>>
>>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>>>
>>> *I check this:*
>>>
>>> *./mapserv -v
>>> MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
>>> INPUT=GDAL INPUT=SHAPEFILE
>>>
>>> **gdalinfo --formats
>>> Supported Formats:
>>>   VRT (rw+): Virtual Raster
>>>   GTiff (rw+): GeoTIFF
>>>   .
>>>   .
>>>   .
>>>
>>> *Everything seems ok and then I tried with:
>>>
>>> *./shp2img -m
>>>
>>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
>>> -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
>>> msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.
>>> 
>>> msDrawRaster(): Image handling error. Unrecognized or unsupported image
>>> format 
>>> drawEPP(): Image handling error.
>>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
>>> not an EPPL file. 
>>> *
>>> *I don't know what else can I try. Any idea to solve this problem.
>>>
>>> Thanks in advance
>>>
>>>
>>
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>
> --
> FJRicca
>



-- 
FJRicca

http://picasaweb.google.es/fjricca
http://perdonaqueseasoez.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] problems generating image

2010-11-30 Thread Fco . Javier García Ricca
Hello Jeff,

Yes, I use gdalinfo and gdal_translate and I have not problems.





2010/11/30 Jeff McKenna 

> Hello,
>
> Can GDAL read your sombras.tif file?  (what does 'gdalinfo sombras.tif'
> return?)
>
> -jeff
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
> On 10-11-30 9:03 AM, Fco. Javier García Ricca wrote:
>
>> *Hello,
>>
>>
>> I'll tried to run my application with apache+php+mapserver+pmapper in
>> RHEL. I'm getting the next errors when I run my application.*
>>
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>> [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n
>> in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>> on line 326, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>> [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
>> format\n in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>> on line 326, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>> [MapServer Error]: drawEPP():
>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
>> not an EPPL file.\n in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>> on line 326, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal
>> error:  Call to a member function saveImage() on a non-object in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php
>> on line 257, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>>
>> *I check this:*
>>
>> *./mapserv -v
>> MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
>> INPUT=GDAL INPUT=SHAPEFILE
>>
>> **gdalinfo --formats
>> Supported Formats:
>>   VRT (rw+): Virtual Raster
>>   GTiff (rw+): GeoTIFF
>>   .
>>   .
>>   .
>>
>> *Everything seems ok and then I tried with:
>>
>> *./shp2img -m
>>
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
>> -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
>> msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.
>> 
>> msDrawRaster(): Image handling error. Unrecognized or unsupported image
>> format 
>> drawEPP(): Image handling error.
>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
>> not an EPPL file. 
>> *
>> *I don't know what else can I try. Any idea to solve this problem.
>>
>> Thanks in advance
>>
>>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



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


Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Alan Boudreault
Well, I may be wrong... the php code and the cgiutil code have been modified.. 
let me give it a try today and will get back to you.

Alan

On November 30, 2010 10:01:30 am Alan Boudreault wrote:
> Peter,
> 
> By the current PHP MapScript, I assume you mean MapServer 5.6.5.
> Unfortunately, I doubt it will work in that version. However,  the
> OWSRequest-
> 
> >loadParams method supports post parameters in MS-dev. It will be available
> >in
> 
> MS 6.0.
> 
> Alan
> 
> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote:
> > Is OWSRequest->postrequest implemented in the current PHP MapScript? Is
> > it available only for CGI? We would like to use a wrapper for handling
> > WFS request and we would like to pass the POST data to MapServer without
> > the need to slice the XML into single setParameters() calls.
> > 
> > Regards,
> > 
> > Peter Hopfgartner
> > 
> > R3 GIS Srl - GmbH
> > http://www.r3-gis.com
> > 
> > 
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Alan Boudreault
Peter,

By the current PHP MapScript, I assume you mean MapServer 5.6.5. 
Unfortunately, I doubt it will work in that version. However,  the OWSRequest-
>loadParams method supports post parameters in MS-dev. It will be available in 
MS 6.0.

Alan 

On November 30, 2010 09:03:07 am Peter Hopfgartner wrote:
> Is OWSRequest->postrequest implemented in the current PHP MapScript? Is it
> available only for CGI? We would like to use a wrapper for handling WFS
> request and we would like to pass the POST data to MapServer without the
> need to slice the XML into single setParameters() calls.
> 
> Regards,
> 
> Peter Hopfgartner
> 
> R3 GIS Srl - GmbH
> http://www.r3-gis.com
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
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] mapscript for WFS

2010-11-30 Thread Daniel Carvalho
Hi
can someone show a mapscript example that produces WFS and can be called
as a service?

The python and php examples included in MapServer only produce html output.

(I want to produce a layer where the number of attributes vary according
to the client request, and have to perform many sql statements to get
the data. I think I cannot describe that in a simple mapfile... so have
to use mapscript)


thks


PS And I take this opportunity to thank all the good responses I got
from my previous posts!



signature.asc
Description: OpenPGP digital signature
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] problems generating image

2010-11-30 Thread Jeff McKenna

Hello,

Can GDAL read your sombras.tif file?  (what does 'gdalinfo sombras.tif' 
return?)


-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 10-11-30 9:03 AM, Fco. Javier García Ricca wrote:

*Hello,

I'll tried to run my application with apache+php+mapserver+pmapper in
RHEL. I'm getting the next errors when I run my application.*

[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
[MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n
in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
on line 326, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
[MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
format\n in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
on line 326, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
[MapServer Error]: drawEPP():
/var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
not an EPPL file.\n in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
on line 326, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal
error:  Call to a member function saveImage() on a non-object in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php
on line 257, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis

*I check this:*

*./mapserv -v
MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE

**gdalinfo --formats
Supported Formats:
   VRT (rw+): Virtual Raster
   GTiff (rw+): GeoTIFF
   .
   .
   .

*Everything seems ok and then I tried with:

*./shp2img -m
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
-o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.

msDrawRaster(): Image handling error. Unrecognized or unsupported image
format 
drawEPP(): Image handling error.
/var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
not an EPPL file. 
*
*I don't know what else can I try. Any idea to solve this problem.

Thanks in advance





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


[mapserver-users] RE: shpxy example

2010-11-30 Thread Lime, Steve D (DNR)
Glad it worked! Documentation volunteers always are welcome. MapServer is big 
with lots of nooks and crannies so feel free to contribute, everybody...

Steve

From: Jackson, John [jxjac...@franklincountyohio.gov]
Sent: Monday, November 29, 2010 3:11 PM
To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Subject: RE: shpxy example

That makes perfect sense.

One thing I would like work on is improving mapserver’s documentation… (which I 
may try to write once I understand it more)… Not so much on specific pieces of 
syntax, but more on the thinking and theory of how to put use and combine 
multiple features together to put applications together.

Thanks again.

--John Jackson
--Deputy Auditor
--Franklin County Ohio

From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: Monday, November 29, 2010 4:02 PM
To: Jackson, John; mapserver-users@lists.osgeo.org
Subject: RE: shpxy example

Hi John: The ids variable is used to perform a runtime substitution. It’s not a 
MapServer specific variable, just something I used in that particular example. 
In the mapfile here’s the county layer:

  LAYER
NAME county
STATUS OFF
DATA "data/bdry_counpy2_gen500"
TYPE POLYGON
CLASS
  EXPRESSION ('[COUN]' in '%ids%')
  STYLE
COLOR "#BD9E5D" # "#A27528"
OUTLINECOLOR 50 50 50
  END
END
CLASS
  COLOR 255 255 255
  OUTLINECOLOR 50 50 50
END
TEMPLATE "templates/county_example.html"
  END

The value for the CGI variable ids is substituted into the first class 
expression at runtime.  So, if ids=1,2,3,4,5 then the class expression becomes 
(’[COUN]’ in ‘1,2,3,4,5’). Ideally one should set a validation pattern for the 
ids variable to limit it’s possible values.

So, once the expression is changed if the attribute COUN is in the list of ids 
then we draw with the pukey brown, if not, then draw white. Does this help?

Steve



From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jackson, John
Sent: Friday, November 26, 2010 7:54 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] shpxy example

HI again all,

I’m working on a project where I’m trying to do the same thing as the shapexy 
example linked from http://mapserver.org/output/imagemaps.html

I’ve got an html imagemap working, and enough javascript together that it 
correctly concatenates a link, but the link doesn’t end up working…
The part I don’t understand how to get the map working in map mode. I’m not 
understanding the “ids” variable that is getting passed to mapserver. Are the 
id’s a field in the data set? I don’t see any documentation for it anywhere, 
and when I pass it, I just get my map back without anything selected.

Again, thanks in advance for your help.
Hope everyone had a wonderful thanksgiving.

--John Jackson
--Deputy Auditor
--Franklin County Ohio

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


[mapserver-users] OWSRequest->postrequest in PHP MapScript

2010-11-30 Thread Peter Hopfgartner
Is OWSRequest->postrequest implemented in the current PHP MapScript? Is it 
available only for CGI?
We would like to use a wrapper for handling WFS request and we would like to 
pass the POST data to MapServer without the need to slice the XML into single 
setParameters() calls.

Regards,

Peter Hopfgartner
 
R3 GIS Srl - GmbH
http://www.r3-gis.com


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


Re: [mapserver-users] problems generating image

2010-11-30 Thread Michael Shishcu
Please, your map file
regards

2010/11/30 Fco. Javier García Ricca 

> *Hello,
>
> I'll tried to run my application with apache+php+mapserver+pmapper in RHEL.
> I'm getting the next errors when I run my application.*
>
> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
> [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n in
> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
> line 326, referer:
> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
> [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
> format\n in
> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
> line 326, referer:
> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
> [MapServer Error]: drawEPP():
> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not
> an EPPL file.\n in
> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
> line 326, referer:
> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal error:
> Call to a member function saveImage() on a non-object in
> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php on
> line 257, referer:
> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>
> *I check this:*
>
> *./mapserv -v
> MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
>
> **gdalinfo --formats
> Supported Formats:
>   VRT (rw+): Virtual Raster
>   GTiff (rw+): GeoTIFF
>   .
>   .
>   .
>
> *Everything seems ok and then I tried with:
>
> *./shp2img -m
> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
> -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
> msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.
> 
> msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format 
> drawEPP(): Image handling error.
> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not
> an EPPL file. 
> *
> *I don't know what else can I try. Any idea to solve this problem.
>
> Thanks in advance
> **
> *
> --
> FJRicca
>
>
>
> ___
> 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] problems generating image

2010-11-30 Thread Fco . Javier García Ricca
*Hello,

I'll tried to run my application with apache+php+mapserver+pmapper in RHEL.
I'm getting the next errors when I run my application.*

[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
[MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
line 326, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
[MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
format\n in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
line 326, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
[MapServer Error]: drawEPP():
/var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not
an EPPL file.\n in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
line 326, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
[Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal error:
Call to a member function saveImage() on a non-object in
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php on
line 257, referer:
http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis

*I check this:*

*./mapserv -v
MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE

**gdalinfo --formats
Supported Formats:
  VRT (rw+): Virtual Raster
  GTiff (rw+): GeoTIFF
  .
  .
  .

*Everything seems ok and then I tried with:

*./shp2img -m
/var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
-o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.

msDrawRaster(): Image handling error. Unrecognized or unsupported image
format 
drawEPP(): Image handling error.
/var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not
an EPPL file. 
*
*I don't know what else can I try. Any idea to solve this problem.

Thanks in advance
**
*
-- 
FJRicca
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users