Re: [mapserver-users] msPostGISLayerWhichShapes() Error : java library set wrong query

2022-01-27 Thread Francesco Martinelli
Thank you Jukka,
what you say could be the source of the problem,
but (I think) I have no direct control on how the library format the query
string I reported:
it is bundled within the call to the method
edu.umn.gis.mapscript.mapObj.draw()

*Here is the code*:
mapObj myMap = new mapObj("myMapFile.map");
rectObj originalMapView = myMap.getExtent();

rectObj maxView = new rectObj(-1, -1, -1, -1,
myMap.getUnits().swigValue());
maxView.setMinx(originalMapView.getMinx());
maxView.setMaxx(originalMapView.getMaxx());
maxView.setMiny(originalMapView.getMiny());
maxView.setMaxy(originalMapView.getMaxy());

rectObj myView = new rectObj(-1, -1, -1, -1, 3);
myView.setMinx(*774076.75*);
myView.setMaxx(*1014076.75*);
myView.setMiny(*4875124.5*);
myView.setMaxy(*5115124.5*);
myMap.setExtent(myView);

myMap.setSize(600, 600);

pointObj mousePosition = new pointObj(300, 300, 0);
myMap.zoomPoint(1, mousePosition, 600, 600, myView, maxView);
myMap.draw();

*resulting in the error*:
*java.lang.UnknownError: msDrawMap():* Image handling error. Failed to draw
layer named 'MyLayer'.;*msPostGISLayerWhichShapes(): Query error*. Error
executing query. Check server logs
edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397)

*and in the ERROR file*:
[Wed Jan 26 17:14:19 2022].569532 msPostGISLayerWhichShapes(): Error
(ERROR:  parse error - invalid geometry
HINT:  "POLYGON((774076,75" <-- parse error at position 18 within geometry
) executing query: select "my_column"::text,ST_AsBinary(("the_geom"),'NDR')
as geom,"gid"::text from (SELECT * FROM classi_comuni WHERE tipo_area = 2
ORDER BY tipo_area DESC) AS confini where "the_geom" &&
ST_GeomFromText('*POLYGON((774076,75
4875124,5,774076,75 5115124,5,1014076,75 5115124,5,1014076,75
4875124,5,774076,75 4875124,5))*',find_srid('','classi_comuni','the_geom'))


Please any other idea on how I could solve it?

Thank you,
Francesco


Il giorno mer 26 gen 2022 alle ore 20:12 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> ha scritto:

> Hi,
>
>
>
> I wonder if it could be related to which locale Java detects  on your
> computer – Italian (or Finnish) computer -> comma as a separator. Maybe
> something that deals around the same thing
> https://stackoverflow.com/questions/4713166/decimal-separator-in-numberformat
> .
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* MapServer-users  
> *Puolesta
> *Francesco Martinelli
> *Lähetetty:* keskiviikko 26. tammikuuta 2022 19.00
> *Vastaanottaja:* mapserver-users@lists.osgeo.org
> *Aihe:* [mapserver-users] msPostGISLayerWhichShapes() Error : java
> library set wrong query
>
>
>
> Hi all,
>
> I have a java program calling the method draw() of class
> edu.umn.gis.mapscript.mapObj
>
> after I compiled mapserver 7.6.4 on Ubuntu 20.04
>
>
>
> The result produce the following error:
>
> *java.lang.UnknownError: msDrawMap():* Image handling error. Failed to
> draw layer named 'MyLayer'.;*msPostGISLayerWhichShapes(): Query error*.
> Error executing query. Check server logs
> edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
> edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397)
>
> In mapfile I set the parameters:
>
> *CONFIG* "MS_ERRORFILE" "myfile"
>
> *DEBUG* 6
>
> ...
>
> *LAYER*
>
> *CONNECTIONTYPE* postgis
>
> *DATA* "the_geom FROM (SELECT * FROM classi_comuni WHERE tipo_area =
> 2 ORDER BY tipo_area DESC) AS confini USING UNIQUE gid"
>
> *CLASSITEM* "my_column"
>
> ...
>
> and in the error file I got the following message:
>
> [Wed Jan 26 17:14:19 2022].558530 msDrawMap(): rendering using
> outputformat named png24 (AGG/PNG).
> [Wed Jan 26 17:14:19 2022].569532 msPostGISLayerWhichShapes(): Error
> (ERROR:  parse error - invalid geometry
> HINT:  "POLYGON((774076,75" <-- parse error at position 18 within geometry
> ) executing query: select
> "my_column"::text,ST_AsBinary(("the_geom"),'NDR') as geom,"gid"::text from
> (SELECT * FROM classi_comuni WHERE tipo_area = 2 ORDER BY tipo_area DESC)
> AS confini where "the_geom" && ST_GeomFromText('*POLYGON((774076,75
> 4875124,5,774076,75 5115124,5,1014076,75 5115124,5,1014076,75
> 4875124,5,774076,75 4875124,5))*
> ',find_srid('','classi_comuni','the_geom'))
> [Wed Jan 26 17:14:19 2022].569545 msPostGISLayerWhichShapes(): Query
> error. Error executing query. Check server logs
> [Wed Jan 26 17:14:19 2022].569605 msDrawMap(): Image handling error.
> Failed to draw layer named 'MyLayer'.
>
>
>
> I checked the error is caus

[mapserver-users] msPostGISLayerWhichShapes() Error : java library set wrong query

2022-01-26 Thread Francesco Martinelli
Hi all,
I have a java program calling the method draw() of class
edu.umn.gis.mapscript.mapObj
after I compiled mapserver 7.6.4 on Ubuntu 20.04

The result produce the following error:
*java.lang.UnknownError: msDrawMap():* Image handling error. Failed to draw
layer named 'MyLayer'.;*msPostGISLayerWhichShapes(): Query error*. Error
executing query. Check server logs
edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397)

In mapfile I set the parameters:
*CONFIG* "MS_ERRORFILE" "myfile"
*DEBUG* 6
...
*LAYER*
*CONNECTIONTYPE* postgis
*DATA* "the_geom FROM (SELECT * FROM classi_comuni WHERE tipo_area = 2
ORDER BY tipo_area DESC) AS confini USING UNIQUE gid"
*CLASSITEM* "my_column"
...

and in the error file I got the following message:
[Wed Jan 26 17:14:19 2022].558530 msDrawMap(): rendering using outputformat
named png24 (AGG/PNG).
[Wed Jan 26 17:14:19 2022].569532 msPostGISLayerWhichShapes(): Error
(ERROR:  parse error - invalid geometry
HINT:  "POLYGON((774076,75" <-- parse error at position 18 within geometry
) executing query: select "my_column"::text,ST_AsBinary(("the_geom"),'NDR')
as geom,"gid"::text from (SELECT * FROM classi_comuni WHERE tipo_area = 2
ORDER BY tipo_area DESC) AS confini where "the_geom" &&
ST_GeomFromText('*POLYGON((774076,75
4875124,5,774076,75 5115124,5,1014076,75 5115124,5,1014076,75
4875124,5,774076,75 4875124,5))*',find_srid('','classi_comuni','the_geom'))
[Wed Jan 26 17:14:19 2022].569545 msPostGISLayerWhichShapes(): Query error.
Error executing query. Check server logs
[Wed Jan 26 17:14:19 2022].569605 msDrawMap(): Image handling error. Failed
to draw layer named 'MyLayer'.

I checked the error is caused by decimal separators being commas instead of
dots.
As far as I understand the correct query would be (in *red* the changes):
select "my_column"::text,ST_AsBinary(("the_geom"),'NDR') as
geom,"gid"::text from (SELECT * FROM classi_comuni WHERE tipo_area = 2
ORDER BY tipo_area DESC) AS confini where "the_geom" &&
ST_GeomFromText('*POLYGON((774076.75
4875124.5,774076.75 5115124.5,1014076.75 5115124.5,1014076.75
4875124.5,774076.75 4875124.5*))',find_srid('','classi_comuni','the_geom'))


I think I should set something during the compilation of java mapserver
library.
Please can someone drive me on how to solve it?


Thank you,
Francesco
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Parse Error: how can I set the decimal separator in Java Mapscript ?

2018-03-07 Thread Francesco Martinelli

Hi there,
on a freshly installed Ubuntu 16.04
I have just compiled Mapserver 7.0.7, with generation of java mapscript 
enabled.

Apparently everything worked fine,
but I found an issue with decimal separator when calling mapObj.draw()

I wonder if I could avoid the problem setting some variable during the 
compilation,

or if I did anything wrong.

Following are the steps which ggenerated the error.

Thank you in advance for any help,
Francesco.


I prepared the map file, having a layer with connection to a 
postgresql/postgis database with the following version:


"POSTGIS="2.2.1 r14555" GEOS="3.5.0-CAPI-1.9.0 r4084" PROJ="Rel. 4.9.2, 
08 September 2015" GDAL="GDAL 1.11.3, released 2015/09/16" 
LIBXML="2.9.3" LIBJSON="0.11.99" TOPOLOGY RASTER"


"PostgreSQL 9.5.12 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 
5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609, 64-bit"


I use the map file from a program in java, and when I call the method 
mapObj.draw()

I get the error:
msDrawMap(): Image handling error. Failed to draw layer named 
'AreeNazionali'.;msPostGISLayerWhichShapes(): Query error. Error 
executing query. Check server logs


I activated the debug in the map file,
and in the log I got the following lines:
[Wed Mar  7 17:28:55 2018].538014 msDrawMap(): rendering using 
outputformat named png24 (AGG/PNG).
[Wed Mar  7 17:28:55 2018].538994 msDrawRasterLayerLow(base_raster_1): 
entering.
[Wed Mar  7 17:28:55 2018].543385 msDrawMap(): Layer 0 (base_raster_1), 
0,005s
[Wed Mar  7 17:28:55 2018].574328 msPostGISLayerWhichShapes(): Error 
(ERROR:  parse error - invalid geometry

HINT:  "POLYGON((1056176,6" <-- parse error at position 18 within geometry
) executing query: select 
"tipo_area",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as 
geom,"gid" from (SELECT * FROM view_aree_geografiche ORDER BY tipo_area 
DESC) AS confini where the_geom && 
ST_GeomFromText('POLYGON((1056176,62493897 
4390888,49858335,1056176,62493897 4490888,49940103,1156176,62428404 
4490888,49940103,1156176,62428404 4390888,49858335,1056176,62493897 
4390888,49858335))',find_srid('','view_aree_geografiche','the_geom')) 
and ("tipo_area" > 1)
[Wed Mar  7 17:28:55 2018].574348 msPostGISLayerWhichShapes(): Query 
error. Error executing query. Check server logs
[Wed Mar  7 17:28:55 2018].574452 msDrawMap(): Image handling error. 
Failed to draw layer named 'AreeNazionali'.


If I change the select to:
select 
"tipo_area",encode(ST_AsBinary(ST_Force2D("the_geom"),'NDR'),'hex') as 
geom,"gid" from (SELECT * FROM view_aree_geografiche ORDER BY tipo_area 
DESC) AS confini where the_geom && 
ST_GeomFromText('POLYGON((1056176.62493897 
4390888.49858335,1056176.62493897 4490888.49940103,1156176.62428404 
4490888.49940103,1156176.62428404 4390888.49858335,1056176.62493897 
4390888.49858335))',find_srid('','view_aree_geografiche','the_geom')) 
and ("tipo_area" > 1)


and try to run within postgresql, it makes a result, and I think it 
could solve the problem...!


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

Re: [mapserver-users] WMS rendering

2014-10-21 Thread Francesco Palermo

No, I don't get any error message.
I tried to remove UNITS on mapfile but it doesn't change anything. Then 
I tried to remove SIZEUNITS from the layer and the map finally appears!

Thanks to all!
Now I'll try to overlay this map on the Google Maps ;)

Francesco


Il 17/10/2014 11:03, Håvard Tveite ha scritto:

Hi Francesco,

Do you get any error messages?

Your map file looks a bit like the example from the WMS
Server documentation (http://mapserver.org/ogc/wms_server.html),
and that should be a good starting point.

To make it easier to find the source of your problems, I
suggest that you start with the basic example in the
WMS Server documentation and expand it gradually.

Håvard

PS: You are using SIZEUNITS meters in your test layer.  That
means that your SIZE 0.0019 symbols will be very small if
you are not operating close to a 1:1 map scale.


On 2014-10-16 17:04, Francesco Palermo wrote:

Hello,
I'm experimenting the use of Mapserver as WMS and I'm encountering 
some problems on map rendering. I'm using a shapefile as a map source 
and it's a map of points (generated by a csv using ogr2ogr - Could I 
use directly csv with Mapserver? I don't know). I can't get the 
rendering of this map using for example QGIS or this URL in the 
browser (which I hope it's correct):
http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:4326BBOX=9.2990,43.0105,9.4894,43.0524WIDTH=500HEIGHT=300FORMAT=image/pngLAYERS=test; 



This is the mapfile:
MAP
 NAME test
 STATUS ON
 SIZE 500 300
 IMAGETYPE PNG
 EXTENT 9.2990 43.0105 9.4894 43.0524
 UNITS METERS
 DEBUG 5
 PROJECTION
init=epsg:4269
 END
 WEB
 TEMPLATE template.html
 IMAGEPATH /var/www/html/tmp/
 IMAGEURL /tmp/
 METADATA
 wms_title   WMS Demo Server
 wms_onlineresource http://localhost/cgi-bin/mapserv?;
 wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
 wms_enable_request *
 END
 END
 #IMAGECOLOR 255 255 255
 TRANSPARENT ON
 SHAPEPATH oilspill/
 OUTPUTFORMAT
   NAME png
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION GAMMA=0.75
 END
 SYMBOL
   NAME square
   TYPE vector
   POINTS
 0 0
 0 1
 1 1
 1 0
 0 0
   END
   FILLED true
   ANCHORPOINT 0.5 0.5
 END
 LAYER
   NAME test
   TYPE POINT
   STATUS DEFAULT
   DATA timestep24
   DEBUG 5
   SIZEUNITS meters
   PROJECTION
init=epsg:4269
   END
   METADATA
 wms_titletest
   END
   CLASSITEM weight
   CLASS
   STYLE
   COLOR #1014FF
   SYMBOL square
   SIZE 0.0019
   END
   END
 END
END

Any suggestions? Are there any errors in the mapfile? Or am I wrong 
in the procedure?


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






--
Francesco Palermo

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


[mapserver-users] WMS rendering

2014-10-16 Thread Francesco Palermo

Hello,
I'm experimenting the use of Mapserver as WMS and I'm encountering some 
problems on map rendering. I'm using a shapefile as a map source and 
it's a map of points (generated by a csv using ogr2ogr - Could I use 
directly csv with Mapserver? I don't know). I can't get the rendering of 
this map using for example QGIS or this URL in the browser (which I hope 
it's correct):

http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:4326BBOX=9.2990,43.0105,9.4894,43.0524WIDTH=500HEIGHT=300FORMAT=image/pngLAYERS=test;

This is the mapfile:
MAP
NAME test
STATUS ON
SIZE 500 300
IMAGETYPE PNG
EXTENT 9.2990 43.0105 9.4894 43.0524
UNITS METERS
DEBUG 5
PROJECTION
   init=epsg:4269
END
WEB
TEMPLATE template.html
IMAGEPATH /var/www/html/tmp/
IMAGEURL /tmp/
METADATA
wms_title   WMS Demo Server
wms_onlineresource http://localhost/cgi-bin/mapserv?;
wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
wms_enable_request *
END
END
#IMAGECOLOR 255 255 255
TRANSPARENT ON
SHAPEPATH oilspill/
OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGB
  EXTENSION png
  FORMATOPTION GAMMA=0.75
END
SYMBOL
  NAME square
  TYPE vector
  POINTS
0 0
0 1
1 1
1 0
0 0
  END
  FILLED true
  ANCHORPOINT 0.5 0.5
END
LAYER
  NAME test
  TYPE POINT
  STATUS DEFAULT
  DATA timestep24
  DEBUG 5
  SIZEUNITS meters
  PROJECTION
   init=epsg:4269
  END
  METADATA
wms_titletest
  END
  CLASSITEM weight
  CLASS
  STYLE
  COLOR #1014FF
  SYMBOL square
  SIZE 0.0019
  END
  END
END
END

Any suggestions? Are there any errors in the mapfile? Or am I wrong in 
the procedure?


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


Re: [mapserver-users] Installing MapServer with FastCGI

2014-09-30 Thread Francesco Pirotti - UNIPD
Did you install the fast-cgi *development *files? I think you installed 
the apache fcgi module, but not the dependencies so mapserver 
compilation is missing the header files.

Something like:

/apt/-/get/install libfcgi-/dev

/should work for installing the required dependencies.
Google a bit for that.
Cheers,
Francesco

*FRANCESCO PIROTTI *

*CIRGEO Interdepartmental Research Center in Geomatics *
*TESAF Department of Land, Environment, Agriculture and Forestry *

Università di Padova
Via dell'Università, 16
35020 -- Legnaro (PD),Italy

Tel: +39 049 827 2710
Cell.: +39 392 395 2067
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Skype: francesco197576
Web: http://www.cirgeo.unipd.it/fp

Il 25/09/2014 16:55, jdmorgan ha scritto:


Hello,

I am trying to compile a version of MapServer 6.4.1. on CentOS 6.

I am at the part where I am doing a CMAKE. I have installed FastCGI 
already however (following 
http://linuxwave.blogspot.com/2010/08/installing-apache-modfastcgifastcgi.html). 
However, I am not really sure where it installed which brings me to my 
issue.



Currently here is the error I get when running the CMAKE:

/CMake Error at CMakeLists.txt:49 (message):/

/FCGI library/component/dependency could not be found./

/HINTS:/

/- disable FCGI support by adding -DWITH_FCGI=0/

/- add the FCGI install directory to the CMAKE_PREFIX_PATH variable 
(-DCMAKE_PREFIX_PATH=/path/to/FCGI-install-dir;/path/to/other/dirs/


/Call Stack (most recent call first):/

/CMakeLists.txt:482 (report_optional_not_found)/

I have tried in my CMAKE script to point to where I think that FCGI 
(FastCGI) is but this doesn't seem to be working for me.Anyone out 
there have success with this type of thing that can point me in the 
right direction?


Thanks,

--
Derek


___
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] How to Mapserver 6.4 on Windows?

2014-09-03 Thread Francesco Martinelli

Hi,
I would like to install Mapserver 6.4.x on a Windows OS.
What should I do? ... I immagine recompile,
but can someone post some more details on specific steps to follow.

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


[mapserver-users] Issue on deploying mapserver 6.4.1 from Ubuntu to Windows OS

2014-09-01 Thread Francesco Martinelli

Hi all,
I developed a java/jsp application on Ubuntu, using the latest version
of Mapserver (6.4.1)
I then prepared the WAR, and deployed the application to a web server
Apache Tomcat 7.0.54

As I didn't find the mapscript.dll for Mapserver 6.4.1,
I used the file mapscript.dll released with MS4W (which should support
Mapserver 6.0),
but I got the error:
no javamapscript in java.library.path

I then replaced the file mapscript.jar with those released by MS4W, and
the application started working.


However, as I tested my application with Mapserver 6.4.1, I wonder if it
were available a mapscript.dll for Mapserver 6.4.1.


Thank you for your suggestions,
Francesco.


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


[mapserver-users] Mapserver 5.6, WMS client does not keep layer opacity

2012-04-23 Thread Francesco D'Alesio

Hi all,
I created a merge service for mapserver that, given some WMS getmap 
requests, builds a geotiff merging together WMS getmap responses.
It creates an on-the-fly mapfile, with a LAYER CONNECTIONTYPE WMS for 
each layer.


Everything works, except layers with OPACITY:
while the getmap response (agg png 8bit) is correctly opaque (features 
are semi-trasparent), in the geotiff image they are not opaque anymore.
Trasparency is kept (where there's no features, I can see layers under), 
but opacity is not (features are no more semi-trasparent and they cover 
layers under).


Also, if I try to merge getmap responses using PHP/GD, features remain 
correctly opaque.


Have you got any idea about why mapserver is modifying opacity while 
merging?

Is there a way to avoid this?


Thank you

Regards


Francesco

--

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


Re: [mapserver-users] Postgis layer and SLD

2012-01-16 Thread Francesco D'Alesio

Hi Darren,
I think wms_style and wms_style_stylename_sld works only when 
cascading external WMS (CONNECTIONTYPE WMS).

You can use SLDs with postgis layers using mapscript applySLD()


Francesco


Il 16/01/2012 18:10, Carman, Darren ha scritto:


Hi,

I am using mapserver 5.6.7 trying to get SLDs to work for a postgis layer.

I can get this to work when adding the SLD parameter onto the url but 
cannot get it to work using the wms_sld_url parameter in the mapfile. 
Should it be possible to have this working from the mapfile? I have 
also tried the wms_style and wms_style_stylename_sld metadata 
parameters with no luck as well.


The reason I ask is that we have many layers stored in 
postgresql/postgis with different SLDs for each. I am hoping I have 
done something wrong in the mapfile (or missing something vital) so 
that I can set up the layers to use individual SLDs -- the alternative 
is for me to combine the SLDs into 1 xml file, which is work I would 
like to avoid if the mapfile solution is possible.


Thanks for any help in advance

My layer config:

LAYER

  NAME layer1

  CONNECTIONTYPE postgis

  CONNECTION user=user password=password dbname=database 
host=host


  DATA geometry from table using unique geometry using SRID=27700

  PROJECTION

init=epsg:27700

  END

  DUMP true

  METADATA

wms_title Layer 1

wms_srs   EPSG:27700

   wms_server_version 1.3.0

wms_name sldname

wms_boundingbox EPSG:27700 0 0 70 130

wms_latlonboundingbox -7.556 49.776 2.934 60.810

wfs_extent 0 0 70 130

wms_sld_url http://my server/SLDs/MySLD.sld

  END

  TYPE POINT

  STATUS ON

  CLASS

NAME POI

COLOR 0 0 255

symbol 'circle'

size 10

  END

END

Regards,

Darren



___
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] Problem with mapfile FILTER and WFS non spatial filter

2011-09-02 Thread Francesco D'Alesio

Hello,
I have a problem using a WFS filter on a non spatial attribute: when I 
use a WFS filter on a non-spatial attribute, it ignores the filter set 
in mapfile.


This is the mapfile filter.
FILTER lang_id='de'

This is the WFS filter.
ogc:Filter 
xmlns:ogc=http://www.opengis.net/ogc;ogc:PropertyIsEqualTo 
matchCase=trueogc:PropertyNameattribute_1/ogc:PropertyNameogc:Literaltest/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter


In this case, it ignores lang_id='de'.

Using this other filter,
ogc:Filter 
xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamethe_geom/ogc:PropertyNamegml:Envelope 
xmlns:gml=http://www.opengis.net/gml; 
srsName=EPSG:25832gml:lowerCorner723607.84958682 
5175592.8275148/gml:lowerCornergml:upperCorner723614.37390473 
5175597.3352253/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter

it uses, correctly, both the mapfile filter and the BBOX WFS filter.

If I use both BBOX and attribute, it ignores the mapfile filter.

Other (maybe) useful information:
MapServer 5.6.7 and MapServer 5.6.5
CONNECTIONTYPE POSTGIS
Tried both WFS version 1.1.0 and 1.0.0
Tried gml/wfs_in/exclude_items for lang_id

Anyone noticed this behaviour before?

Thank you


Best Regards,

Francesco
francesco.dale...@r3-gis.com

--

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


[mapserver-users] Query on WFS Layer: Fatal error: [MapServer Error]: msQueryByShape(): No matching record(s) found

2011-04-20 Thread Francesco Sozzi
Hi list,

I have a big problem on querying a WFS layer.
Here you find both script and layer definition on mapfile. The problem is
that $result-shapeindex has value 0 and I get the error:
Fatal error: [MapServer Error]: msQueryByShape(): No matching record(s)
found.

Any suggestions?

Best regards

Francesco

-
SCRIPT
-
$qresult = @$layer-queryByRect($myrect);   



//get all results
$numResults = $layer-getNumResults();

for ($i=0; $i  $numResults; $i++)
{
$result = $layer-getResult($i);

$layer-open();
$shape = $layer-getFeature($result-shapeindex);
$layer-close();
}

-
MAPFILE LAYER DEFINITION
-

LAYER
NAME parchiGR
GROUP Grigioni
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE WFS  
CONNECTION http://mapserver1.gr.ch/wfs/wildruhezonen?;

CLASSITEM beschlussjahr

METADATA
wfs_typename
Eidg_Jagdbanngebiete_und_Schweizerischer_Nationalpark 
wfs_version   1.0.0
wfs_request_methodGET
wfs_connectiontimeout 100
wfs_maxfeatures   1000

END 

DUMP TRUE   
PROJECTION
init=epsg:21781
END

CLASS   
NAME anno 2004
EXPRESSION 2004
COLOR 159 255 159
OUTLINECOLOR 250 20 10  
TEMPLATE templates/default.html   
END

CLASS   
NAME anno 1980
EXPRESSION 1980
COLOR 140 198 255
OUTLINECOLOR 250 20 10  
TEMPLATE templates/default.html   
END

CLASS   
NAME altro anno
COLOR 192 192 192
OUTLINECOLOR 250 20 10  
TEMPLATE templates/default.html   
END

END

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


[mapserver-users] fcgi with mapserver version 6.0.0 beta4 - Parsing error

2011-04-06 Thread francesco . pirotti
Hello List,
Here is what I think is a bug on Mapserver last dev version 6.0.0 beta4:
When calling mapserv.exe using fcgi handler, it draw the map correctly
every OTHER call to mapserver, so once it draws the map, and if I click
again it throws the following error:

msLoadMap(): Unknown Identifier. Parsing error near(): line 3.

Seems like it cannot read the mapfile or something.

Any one experiencing the same problem?
Ciao
Francesco



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


[mapserver-users] Mapserver6.0.0 beta4 - setting object values

2011-04-06 Thread francesco . pirotti
Hello,
Daniel Morrissette mentioned to report bugs when using Mapserver6.0.0beta4
so here I go. Sorry if sometimes what I think is a bug is just me missing
out on something. :-)

I cannot use PHPMapscript to set values either using:
$mapobj-shapepath = path and
$mapobj-set(shapepath, path) but nothing get set (I echo the value
and it is still the old value).
Cheers,
Francesco



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


[mapserver-users] Mapserver 6.0.0 beta4 mapscript layer.getFeature missing?

2011-04-02 Thread francesco

Hello everyone,
Thanks to mapserver developers/users for their time to help out on this 
list.
I am trying out the new Mapserver 6.0.0, compiled it for windows and now 
I am testing it.

Came across the following problem:
on mapscript I cannot call the getFeature($i) function; I get the 
following message

/Call to undefined method layerObj::getFeature() /

The migration guide reads:
/layer.getShape(int tileindex, int shapeindex)) has been deprecated and 
renamed to layer.getFeature(int shapeindex [, int tileindex = -1]) to 
match the SWIG MapScript equivalent./


But it seems that function does not exist! :-)

Am I missing out on something?

Cheers,
--
**
*Francesco Pirotti*
Dep. TESAF
CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver 6.0.0 beta4 mapscript layer.getFeature missing?

2011-04-02 Thread francesco
Ok thanks that cleared it  up!! My objective simply is to get  feature 
number X from a layer (postgis). I'll look at getShape() . Thank you 
also for links to the trunk migration guides.

Francesco

Il 02/04/2011 11:26, Armin Burger ha scritto:

Francesco

getShape() has been deprecated in MS =5.6 and has been re-introduced 
(with modifications) in MS 6, and getFeature() that replaced 
getShape() in MS =5.6 has been removed in MS 6, quite clear, isn't 
it? ;-)


There's a migration guide Mapscript 5.6-6 and an RFC hat describe 
Mapscript changes, though I don't know if that reflects the final 
status or if there have been additional changes in the meantime:

http://www.mapserver.org/trunk/mapscript/php/migration_guide.html
http://www.mapserver.org/trunk/development/rfc/ms-rfc-65.html

armin


On 02/04/2011 10:52, francesco wrote:

Hello everyone,
Thanks to mapserver developers/users for their time to help out on this
list.
I am trying out the new Mapserver 6.0.0, compiled it for windows and now
I am testing it.
Came across the following problem:
on mapscript I cannot call the getFeature($i) function; I get the
following message
/Call to undefined method layerObj::getFeature() /

The migration guide reads:
/layer.getShape(int tileindex, int shapeindex)) has been deprecated and
renamed to layer.getFeature(int shapeindex [, int tileindex = -1]) to
match the SWIG MapScript equivalent./

But it seems that function does not exist! :-)

Am I missing out on something?

Cheers,
--
**
*Francesco Pirotti*
Dep. TESAF
CIRGEO – Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**



___
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





--
**
*Francesco Pirotti*
Dep. TESAF
CIRGEO – Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 6 testing: WMS - invalid layer parameter

2011-03-15 Thread francesco
Hello everyone, I am trying the new mapserver 6.0  :-) and I ran into 
the following error message when trying as WMS server
msWMSGetLegendGraphic(): WMS server error. Invalid layer given in the 
LAYER parameter.
As a matter of fact when I shoot the GetCapabilites request, no layers 
are present except the map layer (the name of my map).
Using Mapserver 5.6.6 everything worked fine. Is there anything I am 
missing?
Cheers, and thanks to developers for their hard work - looking forward 
to the Montreal code sprint!

Francesco
--
**
*Francesco Pirotti*
Dep. TESAF
CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PHP mapscript does not use GRID information when reprojecting rect object [solved??]

2010-06-03 Thread francesco

Hello list,
Some time ago I posted a problem about reprojection using mapscript. I 
solved it sort of say, and I think that this note can help users as 
well as developers.


To reassume:
I had a map projection and a layer in another projection. Mapserver 
perfectly uses the GRIDS in the projection information of the layer when 
it draws, but it did NOT use them when calling the mapscript function 
project( projectionObj proj_in, projectionObj proj_out ) .  The answer 
is that the null keyword gave the incorrect reprojection. Deleting the 
,null string and leaving only the name of the grid file will work fine.


INCORRECT
nadgrids=lombardia_tot.gsb,null

CORRECT

nadgrids=lombardia_tot.gsb


*main project projection*
  PROJECTION
proj=utm
zone=32
ellps=WGS84
datum=WGS84
units=m
no_defs
  END
*layer projection*
PROJECTION
  proj=tmerc
  lat_0=0
  lon_0=9
  k=0.9996
  x_0=150
  y_0=0
  ellps=intl
  units=m
  no_defs
  nadgrids=lombardia_tot.gsb,null
END



--
*Francesco Pirotti*
Dep. TESAF
CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261


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


Re: [mapserver-users] Raster Image Quality

2009-12-08 Thread francesco
Jerry , your color table looks like it is of a black and white image 
(255,255,255,255 is white, 0,0,0,255 is black) looks very strange to me. 
Your problem could also be that you use 8-bit color images, you could 
try to use RGB images which help when having to resample the tiles 
(which is what shp2img does when it draws your image)

Cheers,
Francesco Pirotti

Jerry O'Sullivan ha scritto:

Hi,

Can anyone give me a few tips on producing better quality images from my raster 
maps. I chopped it up using maptiler - http://www.maptiler.org  - and the image 
quality is top notch. When I use MapServer shp2img the quality isn't as good. I 
looked at the images in IfranView and the MapTiler image has a lot more unique 
colors

Here is the gdalinfo for one of the tiles

Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  316000.000,  271000.000) (  6d14'39.88W, 53d40'33.00N)
Lower Left  (  316000.000,  268000.000) (  6d14'43.91W, 53d38'56.00N)
Upper Right (  32.000,  271000.000) (  6d11'2.06W, 53d40'29.75N)
Lower Right (  32.000,  268000.000) (  6d11'6.23W, 53d38'52.75N)
Center  (  318000.000,  269500.000) (  6d12'53.02W, 53d39'42.89N)
Band 1 Block=2x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 255,255,255,255
1: 0,0,0,255
2: 0,0,0,255
3: 0,0,0,255
4: 0,0,0,255
5: 0,0,0,255
6: 0,0,0,255
7: 0,0,0,255
8: 0,0,0,255
9: 0,0,0,255
   10: 0,0,0,255
   11: 0,0,0,255
   12: 0,0,0,255
   13: 0,0,0,255
   14: 0,0,0,255
   15: 0,0,0,255
   16: 0,0,0,255
   17: 0,0,0,255
   18: 0,0,0,255
   19: 0,0,0,255
   20: 0,0,0,255
   21: 0,0,0,255
   22: 0,0,0,255
   23: 0,0,0,255
   24: 0,0,0,255
   25: 0,0,0,255
   26: 0,0,0,255
   27: 0,0,0,255
   28: 0,0,0,255
   29: 0,0,0,255
   30: 0,0,0,255
   31: 0,0,0,255
   32: 0,0,0,255
   33: 0,0,0,255
   34: 0,0,0,255
   35: 0,0,0,255
   36: 0,0,0,255
   37: 0,0,0,255
   38: 0,0,0,255
   39: 0,0,0,255
   40: 0,0,0,255
   41: 0,0,0,255
   42: 0,0,0,255
   43: 0,0,0,255
   44: 0,0,0,255
   45: 0,0,0,255
   46: 0,0,0,255
   47: 0,0,0,255
   48: 0,0,0,255
   49: 0,0,0,255
   50: 0,0,0,255
   51: 0,0,0,255
   52: 0,0,0,255
   53: 0,0,0,255
   54: 0,0,0,255
   55: 0,0,0,255
   56: 0,0,0,255
   57: 0,0,0,255
   58: 0,0,0,255
   59: 0,0,0,255
   60: 0,0,0,255
   61: 0,0,0,255
   62: 0,0,0,255
   63: 0,0,0,255
   64: 0,0,0,255
   65: 0,0,0,255
   66: 0,0,0,255
   67: 0,0,0,255
   68: 0,0,0,255
   69: 0,0,0,255
   70: 0,0,0,255
   71: 0,0,0,255
   72: 0,0,0,255
   73: 0,0,0,255
   74: 0,0,0,255
   75: 0,0,0,255
   76: 0,0,0,255
   77: 0,0,0,255
   78: 0,0,0,255
   79: 0,0,0,255
   80: 0,0,0,255
   81: 0,0,0,255
   82: 0,0,0,255
   83: 0,0,0,255
   84: 0,0,0,255
   85: 0,0,0,255
   86: 0,0,0,255
   87: 0,0,0,255
   88: 0,0,0,255
   89: 0,0,0,255
   90: 0,0,0,255
   91: 0,0,0,255
   92: 0,0,0,255
   93: 0,0,0,255
   94: 0,0,0,255
   95: 0,0,0,255
   96: 0,0,0,255
   97: 0,0,0,255
   98: 0,0,0,255
   99: 0,0,0,255
  100: 0,0,0,255
  101: 0,0,0,255
  102: 0,0,0,255
  103: 0,0,0,255
  104: 0,0,0,255
  105: 0,0,0,255
  106: 0,0,0,255
  107: 0,0,0,255
  108: 0,0,0,255
  109: 0,0,0,255
  110: 0,0,0,255
  111: 0,0,0,255
  112: 0,0,0,255
  113: 0,0,0,255
  114: 0,0,0,255
  115: 0,0,0,255
  116: 0,0,0,255
  117: 0,0,0,255
  118: 0,0,0,255
  119: 0,0,0,255
  120: 0,0,0,255
  121: 0,0,0,255
  122: 0,0,0,255
  123: 0,0,0,255
  124: 0,0,0,255
  125: 0,0,0,255
  126: 0,0,0,255
  127: 0,0,0,255
  128: 0,0,0,255
  129: 0,0,0,255
  130: 0,0,0,255
  131: 0,0,0,255
  132: 0,0,0,255
  133: 0,0,0,255
  134: 0,0,0,255
  135: 0,0,0,255
  136: 0,0,0,255
  137: 0,0,0,255
  138: 0,0,0,255
  139: 0,0,0,255
  140: 0,0,0,255
  141: 0,0,0,255
  142: 0,0,0,255
  143: 0,0,0,255
  144: 0,0,0,255
  145: 0,0,0,255
  146: 0,0,0,255
  147: 0,0,0,255
  148: 0,0,0,255
  149: 0,0,0,255
  150: 0,0,0,255
  151: 0,0,0,255
  152: 0,0,0,255
  153: 0,0,0,255
  154: 0,0,0,255
  155: 0,0,0,255
  156: 0,0,0,255
  157: 0,0,0,255
  158: 0,0,0,255
  159: 0,0,0,255
  160: 0,0,0,255
  161: 0,0,0,255
  162: 0,0,0,255
  163: 0,0,0,255
  164: 0,0,0,255
  165: 0,0,0,255
  166: 0,0,0,255
  167: 0,0,0,255
  168: 0,0,0,255
  169: 0,0,0,255
  170: 0,0,0,255
  171: 0,0,0,255
  172: 0,0,0,255
  173: 0,0,0,255
  174: 0,0,0,255
  175: 0,0,0,255
  176: 0,0,0,255
  177: 0,0,0,255
  178: 0,0,0,255
  179: 0,0,0,255
  180: 0,0,0,255
  181: 0,0,0,255
  182: 0,0,0,255
  183: 0,0,0,255
  184: 0,0,0,255
  185: 0,0,0,255
  186: 0,0,0,255
  187: 0,0,0,255
  188: 0,0,0,255
  189: 0,0,0,255
  190: 0,0,0,255
  191: 0,0,0,255
  192: 0,0,0,255
  193: 0,0,0,255
  194: 0,0,0,255
  195: 0,0,0,255
  196: 0,0,0,255
  197: 0,0,0,255
  198: 0,0,0,255
  199: 0,0,0,255
  200: 0,0,0,255
  201: 0,0,0,255
  202: 0,0,0,255
  203: 0,0,0,255
  204: 0,0,0,255
  205: 0,0,0,255
  206: 0,0,0,255
  207: 0,0,0,255
  208: 0,0,0,255
  209: 0,0,0,255
  210: 0,0,0,255
  211: 0,0,0,255
  212: 0,0,0,255
  213: 0,0,0,255
  214: 0,0,0,255
  215: 0,0,0,255
  216: 0,0,0,255
  217

[mapserver-users] mapscript does not use GRID information when reprojecting rect object

2009-12-08 Thread francesco

Hello I do not know if this it the right list to post, but I was
wandering if any of you had trouble when using the project() function
in mapscript (PHP). It does not use the grid file which is stated in the
EPSG line in the epsg file inside the ...proj/nad directory.
Reprojection of the map is wonderful, uses the grids, but script
reproject of a rectangle object does not make use of the grids. I made
sure of course that the epsg file which is read is the one I modified.
Anyone had the same problem?
Cheers,

--
*Francesco Pirotti*
Dep. TESAF
CIRGEO – Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261



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


Re: [mapserver-users] Raster Image Quality

2009-12-08 Thread francesco
shp2img requires a mapfile... what kind of image outpuformat did you use 
in your mapfile?


Shp2img resamples paletted black and white images  and that does not 
give a great result usually. you could try to output grey scale 8-bit 
images (byte but not paletted). Did you also use pyramid layers or does 
the maptiler program also give you different scales?

Francesco

Jerry O'Sullivan ha scritto:

Francesco,

They are black  white images.

Are you suggesting doing some processing with GDAL first or use some directives 
 in the map file to improve image quality?

Thanks
Jerry


  
Jerry , your color table looks like it is of a black and white image 
(255,255,255,255 is white, 0,0,0,255 is black) looks very strange to me. 
Your problem could also be that you use 8-bit color images, you could 
try to use RGB images which help when having to resample the tiles 
(which is what shp2img does when it draws your image)

Cheers,
Francesco Pirotti

Jerry O'Sullivan ha scritto:


Hi,

Can anyone give me a few tips on producing better quality images from my raster 
maps. I chopped it up using maptiler - http://www.maptiler.org  - and the image 
quality is top notch. When I use MapServer shp2img the quality isn't as good. I 
looked at the images in IfranView and the MapTiler image has a lot more unique 
colors

Here is the gdalinfo for one of the tiles

Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  316000.000,  271000.000) (  6d14'39.88W, 53d40'33.00N)
Lower Left  (  316000.000,  268000.000) (  6d14'43.91W, 53d38'56.00N)
Upper Right (  32.000,  271000.000) (  6d11'2.06W, 53d40'29.75N)
Lower Right (  32.000,  268000.000) (  6d11'6.23W, 53d38'52.75N)
Center  (  318000.000,  269500.000) (  6d12'53.02W, 53d39'42.89N)
Band 1 Block=2x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 255,255,255,255
1: 0,0,0,255
2: 0,0,0,255
3: 0,0,0,255
4: 0,0,0,255
5: 0,0,0,255
6: 0,0,0,255
7: 0,0,0,255
8: 0,0,0,255
9: 0,0,0,255
   10: 0,0,0,255
   11: 0,0,0,255
   12: 0,0,0,255
   13: 0,0,0,255
   14: 0,0,0,255
   15: 0,0,0,255
   16: 0,0,0,255
   17: 0,0,0,255
   18: 0,0,0,255
   19: 0,0,0,255
   20: 0,0,0,255
   21: 0,0,0,255
   22: 0,0,0,255
   23: 0,0,0,255
   24: 0,0,0,255
   25: 0,0,0,255
   26: 0,0,0,255
   27: 0,0,0,255
   28: 0,0,0,255
   29: 0,0,0,255
   30: 0,0,0,255
   31: 0,0,0,255
   32: 0,0,0,255
   33: 0,0,0,255
   34: 0,0,0,255
   35: 0,0,0,255
   36: 0,0,0,255
   37: 0,0,0,255
   38: 0,0,0,255
   39: 0,0,0,255
   40: 0,0,0,255
   41: 0,0,0,255
   42: 0,0,0,255
   43: 0,0,0,255
   44: 0,0,0,255
   45: 0,0,0,255
   46: 0,0,0,255
   47: 0,0,0,255
   48: 0,0,0,255
   49: 0,0,0,255
   50: 0,0,0,255
   51: 0,0,0,255
   52: 0,0,0,255
   53: 0,0,0,255
   54: 0,0,0,255
   55: 0,0,0,255
   56: 0,0,0,255
   57: 0,0,0,255
   58: 0,0,0,255
   59: 0,0,0,255
   60: 0,0,0,255
   61: 0,0,0,255
   62: 0,0,0,255
   63: 0,0,0,255
   64: 0,0,0,255
   65: 0,0,0,255
   66: 0,0,0,255
   67: 0,0,0,255
   68: 0,0,0,255
   69: 0,0,0,255
   70: 0,0,0,255
   71: 0,0,0,255
   72: 0,0,0,255
   73: 0,0,0,255
   74: 0,0,0,255
   75: 0,0,0,255
   76: 0,0,0,255
   77: 0,0,0,255
   78: 0,0,0,255
   79: 0,0,0,255
   80: 0,0,0,255
   81: 0,0,0,255
   82: 0,0,0,255
   83: 0,0,0,255
   84: 0,0,0,255
   85: 0,0,0,255
   86: 0,0,0,255
   87: 0,0,0,255
   88: 0,0,0,255
   89: 0,0,0,255
   90: 0,0,0,255
   91: 0,0,0,255
   92: 0,0,0,255
   93: 0,0,0,255
   94: 0,0,0,255
   95: 0,0,0,255
   96: 0,0,0,255
   97: 0,0,0,255
   98: 0,0,0,255
   99: 0,0,0,255
  100: 0,0,0,255
  101: 0,0,0,255
  102: 0,0,0,255
  103: 0,0,0,255
  104: 0,0,0,255
  105: 0,0,0,255
  106: 0,0,0,255
  107: 0,0,0,255
  108: 0,0,0,255
  109: 0,0,0,255
  110: 0,0,0,255
  111: 0,0,0,255
  112: 0,0,0,255
  113: 0,0,0,255
  114: 0,0,0,255
  115: 0,0,0,255
  116: 0,0,0,255
  117: 0,0,0,255
  118: 0,0,0,255
  119: 0,0,0,255
  120: 0,0,0,255
  121: 0,0,0,255
  122: 0,0,0,255
  123: 0,0,0,255
  124: 0,0,0,255
  125: 0,0,0,255
  126: 0,0,0,255
  127: 0,0,0,255
  128: 0,0,0,255
  129: 0,0,0,255
  130: 0,0,0,255
  131: 0,0,0,255
  132: 0,0,0,255
  133: 0,0,0,255
  134: 0,0,0,255
  135: 0,0,0,255
  136: 0,0,0,255
  137: 0,0,0,255
  138: 0,0,0,255
  139: 0,0,0,255
  140: 0,0,0,255
  141: 0,0,0,255
  142: 0,0,0,255
  143: 0,0,0,255
  144: 0,0,0,255
  145: 0,0,0,255
  146: 0,0,0,255
  147: 0,0,0,255
  148: 0,0,0,255
  149: 0,0,0,255
  150: 0,0,0,255
  151: 0,0,0,255
  152: 0,0,0,255
  153: 0,0,0,255
  154: 0,0,0,255
  155: 0,0,0,255
  156: 0,0,0,255
  157: 0,0,0,255
  158: 0,0,0,255
  159: 0,0,0,255
  160: 0,0,0,255
  161: 0,0,0,255
  162: 0,0,0,255
  163: 0,0,0,255
  164: 0,0,0,255
  165: 0,0,0,255
  166: 0,0,0,255
  167: 0,0,0,255
  168: 0,0,0,255
  169: 0,0,0,255
  170: 0,0,0,255
  171: 0,0,0,255
  172: 0,0,0,255
  173: 0,0,0,255
  174: 0,0,0,255
  175: 0,0,0,255
  176: 0,0,0,255
  177: 0,0,0,255
  178: 0,0,0,255
  179: 0,0,0,255
  180: 0,0,0,255
  181: 0,0,0,255
  182

[mapserver-users] mapscript does not use GRID information when reprojecting rect object

2009-12-07 Thread francesco
Hello I do not know if this it the right list to post, but I was 
wandering if any of you had trouble when using the project() function 
in mapscript (PHP). It does not use the grid file which is stated in the 
EPSG line in the epsg file inside the ...proj/nad directory. 
Reprojection of the map is wonderful, uses the grids, but script 
reproject of a rectangle object does not make use of the grids. I made 
sure of course that the epsg file which is read is the one I modified. 
Anyone had the same problem?

Cheers,

--
*Francesco Pirotti*
Dep. TESAF
CIRGEO – Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261


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


Re: [mapserver-users] fatal error on linux server

2009-11-18 Thread francesco
Should check your mapfile if it is correctly parsed by the mapscritpt. 
Try drawing the mapfile using standard mapserver.exe and see if it works.

Francesco Pirotti

MSulchan Darmawan ha scritto:

Dear all,

I've made a PHP script and tried it on windows using ms4w (mapserver
5.4.2) and it's completely works.
Then I tried it on linux (ubuntu server 8.04 with mapserver 5.4.2) but
it produce the following error :

Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named
'aceh'.
in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
on line 184

Warning: [MapServer Error]: msShapefileOpen(): (KB_ACEH.shp)
in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
on line 184

Warning: [MapServer Error]: msShapefileOpen():
(/home/bleketux/public_html/cmh2/mapserver/shp/KB_ACEH.shp)
in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
on line 184

Fatal error: Call to a member function SaveWebImage() on a non-object
in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
on line 185

Here is some script of line 180 - 185 :

$strProj = proj=latlong,ellps=WGS84,datum=WGS84;
$objMap-SetProjection ($strProj, MS_FALSE);
$objMap-outputformat-Set (name, Format GIF);
$objMap-outputformat-Set (extension, gif);
$objImagePeta = $objMap-Draw();
$objUrlPeta = $objImagePeta-SaveWebImage();

To avoid permission problem, i've set chmod 777 to the root web folder.
Can you point me where should I fix the problem ?
Thanks in advance.

  



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



--
*Francesco Pirotti*
Dep. TESAF
CIRGEO – Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.piro...@unipd.it mailto:francesco.piro...@unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261


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


[mapserver-users] ArcSDE compilation and connectivity problems

2009-07-13 Thread Francesco Sozzi

Hi all,

I've just compiled mapserver 5.0.3 changing nmake.opt ArcSDE section into:

SDE_OPT=-DUSE_SDE
SDE_OPT= -DUSE_SDE_PLUGIN
SDE_VERSION = 91
SDE_DIR = C:\Program Files\ArcGIS\ArcSDE
SDE_INC = -I$(SDE_SDK)\include

The complation has been succesful for both mapserver and php_mapscript.

I have the following problems:
1) if I run mapserv.exe -v I got no INPUT=SDE (or something similar)
2) from my PHP app I get msSDELayerOpen(): SDE support is not available on
trying openig ArcSDE layer

Please note that ArcSDE is on and I can get data from ArcCatalog.

Any idea or suggestions?...

Best regards

Francesco 


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


[mapserver-users] Linux/windows install steps

2008-06-12 Thread Francesco Tomei
Hi list,
I'd like to know which are the necessary file to download for a correct 
configuration in two different server environment and which are the steps 
sequences to follow:
  1.. windows 3000 server with IIS
  2.. linux server with apache 2.0 and PHP 4
could be useful a direct link to the right documentation notes.


thanks in advance,
Francesco

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