[mapserver-users] mapcache running on Apache vs Lighttpd?

2012-12-18 Thread Martin Ouellet
Hi all,

For best performance, should I use Mapcache (released with mapserver 6.2)
with Apache or Lighttpd?

Thanks

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


[mapserver-users] Compiling Mapserver (6.2) with PostGIS support Without PG on the machine

2012-12-20 Thread Martin Ouellet
Hi,

I want to compile Mapserver (6.2) on a RHEL5 64bit machine with PostGIS
support but Postgresql is NOT installed on the machine.

Before I run the compilation, I've have installed some libraries (with yum
rpm):
postgresql92.x86_64
postgresql92-libs.x86_64
postgresql92-devel.x86_64


I think the required libraries for the PostGIS support are
there because find / -name 'libpq*'
return
/usr/pgsql-9.2/lib/libpq.so.5
/usr/pgsql-9.2/lib/libpq.a
/usr/pgsql-9.2/lib/libpq.so
/usr/pgsql-9.2/lib/libpq.so.5.5
and more

When I execute
* ./configure --prefix=/usr/local/ --with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config
--with-curl=/usr/bin/curl-config[[BR]] --enable-debug
--with-proj=/usr/local/ --with-tiff=/usr/ --with-jpeg=/usr/local/
--with-freetype=/usr/local/ --with-threads
--with-xml2-config=/usr/bin/xml2-config --with-png=/usr/ --with-wmsclient
--with-wmsserver --with-wfs --with-wfsclient --with-gif=/usr/
--with-geos=/usr/local/bin/geos-config --with-postgis*
*
*
*I've got*
-- Data Format Drivers ---
  PostGIS support:
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  Oracle Spatial support:

any idea?

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


Re: [mapserver-users] Compiling Mapserver (6.2) with PostGIS support Without PG on the machine

2012-12-20 Thread Martin Ouellet
*Compiling *
*GDAL **--with-pg=/usr/pgsql-9.2/bin/pg_config*
*and*
*Mapserver **--with-postgis=/usr/pgsql-9.2/bin/pg_config *
*solved my problem!*
*
*
*cheers*
*
*
*MartinO*


On Thu, Dec 20, 2012 at 10:08 AM, Martin Ouellet wrote:

> Hi,
>
> I want to compile Mapserver (6.2) on a RHEL5 64bit machine with PostGIS
> support but Postgresql is NOT installed on the machine.
>
> Before I run the compilation, I've have installed some libraries (with yum
> rpm):
> postgresql92.x86_64
> postgresql92-libs.x86_64
> postgresql92-devel.x86_64
>
>
> I think the required libraries for the PostGIS support are
> there because find / -name 'libpq*'
> return
> /usr/pgsql-9.2/lib/libpq.so.5
> /usr/pgsql-9.2/lib/libpq.a
> /usr/pgsql-9.2/lib/libpq.so
> /usr/pgsql-9.2/lib/libpq.so.5.5
> and more
>
> When I execute
> * ./configure --prefix=/usr/local/ --with-gdal=/usr/local/bin/gdal-config
> --with-ogr=/usr/local/bin/gdal-config
> --with-curl=/usr/bin/curl-config[[BR]] --enable-debug
> --with-proj=/usr/local/ --with-tiff=/usr/ --with-jpeg=/usr/local/
> --with-freetype=/usr/local/ --with-threads
> --with-xml2-config=/usr/bin/xml2-config --with-png=/usr/ --with-wmsclient
> --with-wmsserver --with-wfs --with-wfsclient --with-gif=/usr/
> --with-geos=/usr/local/bin/geos-config --with-postgis*
> *
> *
> *I've got*
> -- Data Format Drivers ---
>   PostGIS support:
>   ArcSDE support:
>   OGR support:   -DUSE_OGR
>   GDAL support:  -DUSE_GDAL
>   Oracle Spatial support:
>
> any idea?
>
> MartinOuellet
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Limit caching for some zoom level only

2013-03-20 Thread Martin Ouellet
Hi all,

I would like to limit the caching for some levels (ex: 10  to 15) and
fallback with the WMS request (without caching the tiles) for the other
zoom level (ex: 0 to 9 and 16 to 19)

I've try this in the config (using minzoom and maxzoom):


  Ortho1948
  disk
  google
  PNG
  5 5
  10
  3600
   

The tiles are generated for level 10 to 15 but for the other zoom level,
the WMS is not called.

Is it possible to configure mapcache to do that?

regards,

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


[mapserver-users] schema .dtd URL return by a GetCapabilities request

2008-10-14 Thread Martin Ouellet
When I send a GetCapabilities request to mapserver, I receive à XML response
with this link at the top of the file:
"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd";

Within the intranet, some client application does not have internet access
so it failed/crash...

Is it possible to specify a local URL for the .dtd return by the
GetCapabilities
request unstead of this URL?

thank you in advance!

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


[mapserver-users] how to ignore tag from the getcapabilities

2009-07-10 Thread Martin Ouellet
Hi,
I have a URL (which is good and functionnal) but the GetCapabilities return
a invalid URL in the  tag.

Is there a way to tell Mapserver to use the url specified in the mapfile
(tag CONNECTION) instead of the url return in the  of the
getcapabilities request?

Thank you in advance!

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


[mapserver-users] passing parameter to a OGRVRTDataSource layer

2015-03-25 Thread Martin Ouellet
Hi all,
I'm using the virtual plugin of OGR to consume a web service who return CSV
coordinates and mapserver is able to draw the points without any problems.

The connection definition in my mapfile is something like this.
CONNECTION "CSV:/vsicurl/http:///service.phpwkbPointselectWGS84"

I would like to pass arguments to that CONNETION string so I could build
dynamic request.  something like this
CONNECTION "CSV:/vsicurl/http:///service.php?
*param1=%PARAM1%¶m2=%PARAM2%*wkbPointselectWGS84"

I know the argument values (in my example PARAM1 and PARAM2) are OK because
I'm seeing them in the error message thrown by mapserver (see below).  But
mapserver refuse to render the points:


http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>


msDrawMap(): Image handling error. Failed to draw layer named
'photo_ownedby_all'.
msOGRFileNextShape(): OGR error. Failed to find layer 'select' on
datasource 'CSV:/vsicurl/*http:///geophoto/select.php?PARAM1=40.886913500823205%2C-84.41259765625011&PARAM2=63.97980162961738%2C-43.587402343750284*
'.



Strangely, if I copy paste this url in the browser, the web service is
returning valid csv data:
*http:///geophoto/select.php?ll=40.886913500823205%2C-84.41259765625011&ur=63.97980162961738%2C-43.587402343750284*
returned

PHOTO_LATITUDE,PHOTO_LONGITUDE
48.8099315451953,-77.0906915758454
48.8119226339273,-77.123176861499
48.8139039864207,-77.1556648776822
48.8158756013937,-77.1881556113468
48.8178374775437,-77.2206490494331
48.8171607148511,-77.2546364217682
48.8164732928131,-77.2886228129866
48.8157752119077,-77.3226082078249
48.815066472652,-77.356592590973


any thoughts?

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

Re: [mapserver-users] passing parameter to a OGRVRTDataSource layer

2015-03-26 Thread Martin Ouellet
Thank you David and Daniel for helping me.

I found the problem.  The error message was pointing at the layer 'select'
but it was the dot (.) int the coordinates of the parameters that was
causing the problem.  Maybe an escaping problem related to the
OGRVRTDataSource XML string.

Daniel:  What do you think is the best way to encode point in a csv (using
the virtual format of OGR) for mapserver:
1) x y coordinates with  encoding="PointFromColumns"
2) point in WKT string in the csv
3) point encoded WKB string in the csv
4) maybe something else BUT it must be in a csv format

cheers,

MartinO


On Thu, Mar 26, 2015 at 8:07 AM Daniel Morissette 
wrote:

> I believe the variable substitution is working since you see the
> coordinate values in the exception message received from the server.
>
> The error message says that it cannot find layer "select" in the OGR
> data source, so it may very well be that it ends up being called
> something else for some reason.
>
> I'd suggest hardcoding the coordinate values in your VRT and starting by
> making the VRT works with hardcoded values. Once it works, put the
> variables back in.
>
> Just a guess, but ogrinfo on that VRT may help figure out the source of
> the problem.
>
> Daniel
>
>
> On 2015-03-25 4:47 PM, Fawcett, David (MNIT) wrote:
> > Martin,
> >
> > Have you looked at the CGI runtime substitution docs?:
> > http://mapserver.org/cgi/runsub.html
> >
> > Make sure that you look at the validation section near the bottom.  If
> > the substitution works with CGI WMS, you will need validation.
> >
> > David.
> >
> > *From:*mapserver-users-boun...@lists.osgeo.org
> > [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Martin
> > Ouellet
> > *Sent:* Wednesday, March 25, 2015 3:38 PM
> > *To:* mapserver-users@lists.osgeo.org
> > *Subject:* [mapserver-users] passing parameter to a OGRVRTDataSource
> layer
> >
> > Hi all,
> >
> > I'm using the virtual plugin of OGR to consume a web service who return
> > CSV coordinates and mapserver is able to draw the points without any
> > problems.
> >
> > The connection definition in my mapfile is something like this.
> >
> > CONNECTION " > name='select'>CSV:/vsicurl/http:// > server>/service.phpwkbPoint GeometryType>selectWGS84<
> GeometryField
> > encoding='PointFromColumns' x='PHOTO_LONGITUDE'
> > y='PHOTO_LATITUDE'/>"
> >
> > I would like to pass arguments to that CONNETION string so I could build
> > dynamic request.  something like this
> >
> > CONNECTION " > name='select'>CSV:/vsicurl/http:// > server>/service.php?*param1=%PARAM1%&param2=%PARAM2%* rcDataSource>wkbPoint
> selectWGS84 > encoding='PointFromColumns' x='PHOTO_LONGITUDE'
> > y='PHOTO_LATITUDE'/>"
> >
> > I know the argument values (in my example PARAM1 and PARAM2) are OK
> > because I'm seeing them in the error message thrown by mapserver (see
> > below).  But mapserver refuse to render the points:
> >
> > 
> >
> >  > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>
> >
> > 
> >
> > 
> >
> > msDrawMap(): Image handling error. Failed to draw layer named
> > 'photo_ownedby_all'.
> >
> > msOGRFileNextShape(): OGR error. Failed to find layer 'select'
> > on datasource 'CSV:/vsicurl/*http:// > server>/geophoto/select.php?PARAM1=40.886913500823205%2C-84.
> 41259765625011&PARAM2=63.97980162961738%2C-43.587402343750284*'.
> >
> > 
> >
> > 
> >
> > Strangely, if I copy paste this url in the browser, the web service is
> > returning valid csv data:
> >
> > *http://http://%3cmy>
> > server>/geophoto/select.php?ll=40.886913500823205%2C-84.4125
> 9765625011&ur=63.97980162961738%2C-43.587402343750284*
> >
> > returned
> >
> > PHOTO_LATITUDE,PHOTO_LONGITUDE
> >
> > 48.8099315451953,-77.0906915758454
> >
> > 48.8119226339273,-77.123176861499
> >
> > 48.8139039864207,-77.1556648776822
> >
> > 48.8158756013937,-77.1881556113468
> >
> > 48.8178374775437,-77.2206490494331
> >
> > 48.8171607148511,-77.2546364217682
> >
> > 48.8164732928131,-77.2886228129866
> >
> > 48.8157752119077,-77.3226082078249
> >
> > 48.815066472652,-77.356592590973
> >
> > any thoughts?
> >
> > MartinO
> >
> >
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
>
> --
> Daniel Morissette
> T: +1 418-696-5056 #201
> http://www.mapgears.com/
> Provider of Professional MapServer Support since 2000
> ___
> 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] passing parameter to a OGRVRTDataSource layer

2015-03-27 Thread Martin Ouellet
thanks Daniel but even if you didn't tried it, can you comment HOW
mapserver would react in terms of performance regarding the 3 approch
(PointFromColumns,
wkt, wkb)?

MartinO

On Thu, Mar 26, 2015 at 3:57 PM Daniel Morissette 
wrote:

> On 2015-03-26 3:37 PM, Martin Ouellet wrote:
> >
> > Daniel:  What do you think is the best way to encode point in a csv
> > (using the virtual format of OGR) for mapserver:
> > 1) x y coordinates with  encoding="PointFromColumns"
> > 2) point in WKT string in the csv
> > 3) point encoded WKB string in the csv
> > 4) maybe something else BUT it must be in a csv format
> >
>
> I have used only #1 with CSV and it works great and feels most natural
> for a CSV. I can't speak for WKT and WKB encoding in a CSV, never tried it.
>
> Daniel
> --
> Daniel Morissette
> T: +1 418-696-5056 #201
> http://www.mapgears.com/
> Provider of Professional MapServer Support since 2000
> ___
> 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 a GetFeatureInfo - info_format = text/html

2009-11-18 Thread Martin Ouellet
Hi,

I've got the current layer definition

NAME "ROLE_V_COMPLET"
CONNECTIONTYPE oraclespatial
CONNECTION "{5ACE86C1C85}"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "shape FROM ROLE_V_COMPLET USING UNIQUE OBJECTID SRID 32198"
TYPEPOINT
DUMPTRUE
STATUS  ON
TEMPLATE "http://geomsp.msp.gouv.qc.ca/communs/todo2.html";
TOLERANCE 10
MAXSCALE 8000
MINSCALE 1
METADATA
"wms_group_title"   "MAMR-Rôle d'évaluation"
"wms_name"  "ROLE_V_COMPLET"
"wms_title" "Rôle"
"wms_keywordlist"   ""
"wms_server_version"  "1.1.1"
"wms_abstract"   "Rôle (1/8 000) (Source : MAMR)"
"wms_srs"  "EPSG:32198 EPSG:900913"
"wms_extent"  "-110 -23500 110 2253500"
"wms_metadataurl_format"  "text/html"
"wms_feature_info_mime_type""text/html"
"gml_feature_info_mime_type""text/html"
"gml_include_items" "all"
"wms_include_items" "all"
"wms_dataurl_format""text/html"
"ows_metadataurl_format""text/html"
"ows_include_items" "all"
END
PROJECTION
"init=epsg:32198"
END
CLASS
NAME "ROLE_V_COMPLET"
STYLE
SYMBOL 'circle'
COLOR 65 105 225
SIZE 5
END
END


Here my very simple template (todo2.html) which contain






[DATE_PRODUCTION]




And then, my GetFeatureInfo call
http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/html&BGCOLOR=0xFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326

I receive this response:
[DATE_PRODUCTION] -> mapserver dont seem to replace the variable with the
query value

If I just change the info_format for text/plain or GML, it's working
perfectly (so Imy connection and other parameter seem OK)

http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/plain&BGCOLOR=0xFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326

I'am using MapServer 5.4.2 , Any advice?

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


Re: [mapserver-users] Problem with a GetFeatureInfo - info_format = text/html

2009-11-18 Thread Martin Ouellet
Thanks Daniel, with the correct path, it's working great!

but I also had to put the "magic string" at the top of my file to make it
work:


MartinOuellet

2009/11/18 Daniel Morissette 

> Martin Ouellet wrote:
>
>> Hi,
>>
>> I've got the current layer definition
>>
>>  [...]
>
>  TEMPLATE "http://geomsp.msp.gouv.qc.ca/communs/todo2.html";
>>
> [...]
>
>
>
>
>> I receive this response:
>> [DATE_PRODUCTION] -> mapserver dont seem to replace the variable with the
>> query value
>>
>>
> When you specify a URL in the TEMPLATE parameter, then the parameters
> replacement is done in the URL itself, and MapServer will redirect the
> client to the URL in which the variable replacements have been made e.g.
>
> TEMPLATE "
> http://geomsp.msp.gouv.qc.ca/communs/todo2.html?DATEPROD=[DATE_PRODUCTION]
> "
>
> To use a regular template file, you need to specify its path on disk, and
> then MapServer will load the template and do the variable replacements
> inside the template. e.g.
>
> TEMPLATE "/path/to/communs/todo2.html"
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
> ___
> 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] understanding behind the GetFeatureInfo...

2009-11-19 Thread Martin Ouellet
Hi,

Here the results of some tests I've made yesterday to really understand the
process of a GetFeatureInfo call with MapServer.  Please let me know if I'am
mistaking:

1) GetFeatureInfo with INFO_FORMAT=text/plain
Result: the tag TEMPLATE must be specify (with a dummy file).  Then you can
control the returned values with the METADATA tag
ows__items or wms__items

2) GetFeatureInfo with INFO_FORMAT=gml
Result: the tag DUMP must be set to TRUE and the TEMPLATE must be specify
(with a dummy file).  Then you can control the returned value with the
METADATA tag gml__items

3) GetFeatureInfo with INFO_FORMAT=text/html
Result: the only required tag is TEMPLATE (a dummy file will return no
data).  But if you supply a valid html template, ALL the field will be
returned because the METADATA tag ows__items
or wms__items are ignored.  So if my layer is a Oracle
spatial table, I must then create a view to expose only the field I want.
 Would it be relevant to control the field with the "wms_include_items" tag
? Is there a reason why is not working that way?

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


Re: [mapserver-users] understanding behind the GetFeatureInfo...

2009-11-19 Thread Martin Ouellet
Daniel,

You're right, the template is acting as the controller for the html format
so there's no need to put the include/exclude items on top of it.  I
was just trying to found out the safest (and the easiest) way to control my
data before exposing it.

In a real case scenario, if a table structure beyond a layer change, I will
have to modify the html template but also all the wms|ows|gml include items.
 It's not such a big deal but since we have around 300 layer to maintain, It
would been convenient to have a unique list of field to updated.  It would
also reduce the risk of error (ex: allowing one field in the gml mode but
not in the html mode)

thanks again Daniel for your comments.

MartinO

2009/11/19 Daniel Morissette 

> Martin Ouellet wrote:
>
>>
>> 3) GetFeatureInfo with INFO_FORMAT=text/html
>> Result: the only required tag is TEMPLATE (a dummy file will return no
>> data).  But if you supply a valid html template, ALL the field will be
>> returned because the METADATA tag ows__items or
>> wms__items are ignored.  So if my layer is a Oracle spatial
>> table, I must then create a view to expose only the field I want.  Would it
>> be relevant to control the field with the "wms_include_items" tag ? Is there
>> a reason why is not working that way?
>>
>>
> When you use a HTML template, it is the template itself that controls which
> fields are returned, so I am not sure to understand the benefit of
> supporting the include/exclulde items on top of that.
>
> Are you saying that there is a situation where all the fields end up being
> unexpectedly dumped into the template out of your control? Maybe there is a
> hidden feature I am not aware of in the template processor, if that's the
> case then could you please elaborate?
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
> ___
> 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] php-mapscript compilation problem on OpenSuse 11.1/11.2

2009-11-20 Thread Martin Ouellet
Hi

We are unable to build php_mapscript.so.  We know that it's possible because
someone maintain a php-mapserv package for
opensuse.  We look in the needed of the package and everything seem to be
there.

Does someone have an idea why my php_mapscript.so doesn't build ?

Thank You

OS: OpenSuse 11.1/ 11.2
php : 5.2.9 / 5.3.0
mapserv 5.4.1 5.4.1 5.6_beta5
php5-dev package installed
--with-php=/usr/include/php5/ is in the ./configure option


mapserv building normaly but the php_mapscript.so never, I get no error
listing of mapserver-5.4.2/mapscript/php3
before the build:
Makefile Makefile.vc  README.WIN32  mapscript_i.c  php_mapscript.c
php_mapscript_util.c  php_proj.c
Makefile.in  README   examples  nmake.opt  php_mapscript.h
php_mapscript_util.h  php_regex.c
after the build:
Makefile READMEmapscript_i.c  php_mapscript.c
php_mapscript_util.c  php_proj.c
Makefile.in  README.WIN32  mapscript_i.o  php_mapscript.h
php_mapscript_util.h  php_regex.c
Makefile.vc  examples  nmake.opt  php_mapscript.o
php_mapscript_util.o  php_regex.o

result of a make in mapserver-5.4.2/mapscript/php3:


gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include-I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include-I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o php_mapscript_util.o
php_mapscript_util.c
gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include-I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include-I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o php_mapscript.o php_mapscript.c
php_mapscript.c: In function ‘php3_ms_map_removeLayer’:
php_mapscript.c:6245: warning: cast from pointer to integer of different
size
php_mapscript.c: In function ‘php3_ms_img_pasteImage’:
php_mapscript.c:6596: warning: implicit declaration of function
‘php_gd_gdImageColorExact’
php_mapscript.c:6600: warning: implicit declaration of function
‘php_gd_gdImageColorTransparent’
php_mapscript.c:6603: warning: implicit declaration of function
‘php_gd_gdImageCopy’
php_mapscript.c: In function ‘_phpms_build_layer_object’:
php_mapscript.c:6689: warning: cast from pointer to integer of different
size
gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include-I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include-I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o mapscript_i.o mapscript_i.c
gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include-I/us

[mapserver-users] date format in a template (after a GetFeatureInfo call)...

2009-11-23 Thread Martin Ouellet
Hi,

I've got a GetFeatureInfo which return a date (in my template).  Since we
don't control the sql statement behind the GetFeatureInfo, is there a way to
format the date in the template?

my layer retreive the data from Oracle Spatial and I received the date in
this form: "19-NOV-09" which is Oracle default format for date...


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


Re: [mapserver-users] php-mapscript compilation problem on OpenSuse 11.1/11.2

2009-11-23 Thread Martin Ouellet
Even with the mapserv-5.6-beta5, there's still no php_mapscript.so after the
compilation.  I notice one thing, the directory
"/usr/include/php5/dl" (which I see appear while the make command is
running) is missing on my server.

Could it be the problem?.

Here's my ./configure command:

configure: checking for PHP/MapScript module options...
user disabled shared library support.
checking for location of config.h or php_config.h...
/usr/include/php5/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
   found regex.h - building PHP MapScript with PHP's bundled regex
   PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected
linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile

MapServer is now configured for

 -- Compiler Info -
 C compiler:gcc -g  -fPIC -Wall
 C++ compiler:  g++ -g  -fPIC -Wall
 Debug: -g
 Generic NINT:

 -- Renderer Settings -
 OpenGL support:
 zlib support:  -DUSE_ZLIB
 png support:
 palette rgba png support:
 jpeg support:
 iconv support: -DUSE_ICONV
 AGG support:   -DUSE_AGG
 Cairo (SVG,PDF) support:
 Ming(flash) support:
 PDFLib support:

 -- Support Libraries -
 Proj.4 support:-DUSE_PROJ
 Libxml2 support:
 FriBidi support:
 Curl support:  -DUSE_CURL
 FastCGI support:
 Threading support: -DUSE_THREAD
 GEOS support:

 -- Data Format Drivers ---
 native tiff support:
 PostGIS support:   -DUSE_POSTGIS
 EPPL7 support: -DUSE_EPPL
 ArcSDE support:
 OGR support:
 GDAL support:  -DUSE_GDAL
 Oracle Spatial support:-DUSE_ORACLESPATIAL

 -- OGC Services --
 WMS Server:-DUSE_WMS_SVR
 WMS Client:-DUSE_WMS_LYR
 WFS Server:
 WFS Client:-DUSE_WMS_LYR
 WCS Server:
 SOS Server:

 -- MapScript -
 PHP MapScript: yes


2009/11/20 Daniel Morissette 

> Martin Ouellet wrote:
>
>>
>> We are unable to build php_mapscript.so.  We know that it's possible
>> because someone maintain a php-mapserv package for
>> opensuse.  We look in the needed of the package and everything seem to be
>> there.
>>
>> Does someone have an idea why my php_mapscript.so doesn't build ?
>>
>>
> [...]
>
>
>  php_mapscript.c: In function ‘php3_ms_img_pasteImage’:
>> php_mapscript.c:6596: warning: implicit declaration of function
>> ‘php_gd_gdImageColorExact’
>> php_mapscript.c:6600: warning: implicit declaration of function
>> ‘php_gd_gdImageColorTransparent’
>> php_mapscript.c:6603: warning: implicit declaration of function
>> ‘php_gd_gdImageCopy’
>>
>
>
> Sounds like you bumped into the issue behind ticket #3117 which is fixed in
> the upcoming 5.6 release.
>
> You could either use the latest 5.6-beta5 source which includes the fix, or
> apply the patch to your local source tree. See
> http://trac.osgeo.org/mapserver/ticket/3117#comment:7
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
> ___
> 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] WMSgetFeatureInfo and variable substitution

2009-11-23 Thread Martin Ouellet
One way to do it is to pass new parameters(with tha exact name of you're
mapfile variable) in the GetFeatureInfo URL so it would look something like
this:

Here is the request GetFeatureInfo
/cgi-bin/mapserv.exe?map=MYMAP
service=WMS&version=1.1.0&request=GetFeatureInfo&layers=ecoles&query_layers=ecoles&styles=&bbox=-8820221.560815%2C5721770.182129%2C-7587445.168853%2C6361395.234705&srs=EPSG%3A900913&feature_count=3000&x=272&y=457&height=523&width=1008&info_format=text%2Fhtml
*&**SEMCDC=&**RSS=**&**ORDRE***

MapServer will then replace the value before returning the result.

hope's this help

MartinO

2009/11/23 

>
> Hi,
> I already posted this problem on openlayers list, but it might be a
> mapserver issue.
>
> OpenLayers.Control.WMSGetFeatureInfo doesn't use the FILTER key in my
> mapfile. This filter is define with variables like this:
> FILTER "semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in (%ORDRE%)" .
>
> The getMap request is succesfull but not the GetFeatureInfo request
>
> Here is the request GetFeatureInfo
> /cgi-bin/mapserv.exe?map=MYMAP
> service=WMS&version=1.1.0&request=GetFeatureInfo&layers=ecoles&query_layers=ecoles&styles=&bbox=-8820221.560815%2C5721770.182129%2C-7587445.168853%2C6361395.234705&srs=EPSG%3A900913&feature_count=3000&x=272&y=457&height=523&width=1008&info_format=text%2Fhtml
>
> Here is the response
> 
>  http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd";>
> 
> 
> prepare_database(): Query error. Error declaring cursor: ERROR:  syntax
> error at or near "%"
> LINE 1: ...:text from ecoles WHERE (semcdc in (%SEMCDC%) ...
> ^
> With query string: DECLARE mycursor BINARY CURSOR FOR SELECT
> "taux_abs"::text,"nouv"::text,asbinary(force_collection(force_2d(geom900913)),'NDR'),id::text
> from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in
> (%ORDRE%)) and (geom900913 && setSRID( 'BOX3D(-8493071.07981319
> 5795761.22549582,-8480841.15528974 5807991.15001926)'::BOX3D,900913) )
>
> 
> 
>
> In OL, I have a WMS layer define like this:
> new OpenLayers.Layer.WMS('ecoles',
> '.../cgi-bin/mapserv.exe?map=MYMAP',{layers: 'ecoles', transparent: "true",
> format:"image/gif", SEMCDC:thisCDC, RSS: thisRSS, ORDRE:
> thisOrdre},{isBaseLayer: false, visibility:
> false,singleTile:true,transitionEffect: 'resize'});
>
> How should I query the layer?
> Thanks
> Steve
> *
> Steve Toutant, M. Sc.*
> Analyste en géomatique
> Secteur environnement
> Direction de la santé environnementale et de la toxicologie
> Institut national de santé publique du Québec
> 945, avenue Wolfe
> Québec, Qc G1V 5B3
>
> Tél.: (418) 650-5115 #5281
> Fax.: (418) 654-3144*
> **steve.tout...@inspq.qc.ca* *
> **http://www.inspq.qc.ca* 
>
>
> ___
> 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] php-mapscript compilation problem on OpenSuse 11.1/11.2

2009-11-23 Thread Martin Ouellet

MartinO

2009/11/23 Daniel Morissette 

> Martin Ouellet wrote:
>
>> Even with the mapserv-5.6-beta5, there's still no php_mapscript.so after
>> the compilation.  I notice one thing, the directory
>> "/usr/include/php5/dl" (which I see appear while the make command is
>> running) is missing on my server.
>> Could it be the problem?.
>>
>> Here's my ./configure command:
>>
>>
> [...]
>
> Everything seems okay in the configure output. Perhaps look for error
> messages in the 'make' output. php_mapscript.so is compiled and linked
> almost at the very end of the build.
>
> Also, make sure you 'make clean' before doing 'make' everytime you change
> your configure options.
>
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
> ___
> 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] php-mapscript compilation problem on OpenSuse 11.1/11.2

2009-11-24 Thread Martin Ouellet
Problem solve, here's how:

For a unknown reason, the following parameter was specified to Mapserver
--without-ld-shared

Without this parameter, it work like a charm.

Thanks Daniel for your wise advise!

MartinO

2009/11/23 Martin Ouellet 

> Every time I try to build I do a make distclean wich is supposed to be
> more cleaner than a make clean when available.
> here is the ouptut
>
> spssogl92t:/usr/src/mapserver-5.6.0-beta5/mapscript/php3 # make clean
> rm -f *.so *.o perl.out
> spssogl92t:/usr/src/mapserver-5.6.0-beta5/mapscript/php3 # make
> gcc -fPIC -g  -fPIC -Wall   -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
>
> -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR  -DUSE_ORACLESPATIAL
> -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG
>  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
> -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.6.0-beta5
>
> -I/opt/oracle/product/10.2/db_1//rdbms/public
> -I/opt/oracle/product/10.2/db_1//rdbms/demo
> -I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
> -I/usr/include-I/usr/include/freetype2-I/usr/include
>
> -I/usr/include/php5 -I/usr/include/php5/dl -I/usr/include/php5/main
> -I/usr/include/php5/Zend -I/usr/include/php5/include
> -I/usr/include/php5/TSRM  -I/usr/include/php5/ext/ereg/ -c -o
> php_mapscript_util.o php_mapscript_util.c
> gcc -fPIC -g  -fPIC -Wall   -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
>
> -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR  -DUSE_ORACLESPATIAL
> -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG
>  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
> -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.6.0-beta5
>
> -I/opt/oracle/product/10.2/db_1//rdbms/public
> -I/opt/oracle/product/10.2/db_1//rdbms/demo
> -I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
> -I/usr/include-I/usr/include/freetype2-I/usr/include
>
> -I/usr/include/php5 -I/usr/include/php5/dl -I/usr/include/php5/main
> -I/usr/include/php5/Zend -I/usr/include/php5/include
> -I/usr/include/php5/TSRM  -I/usr/include/php5/ext/ereg/ -c -o
> php_mapscript.o php_mapscript.c
> php_mapscript.c: In function ‘php3_ms_map_removeLayer’:
> php_mapscript.c:6217: warning: cast from pointer to integer of different
> size
>
> php_mapscript.c: In function ‘_phpms_build_layer_object’:
> php_mapscript.c:6749: warning: cast from pointer to integer of different
> size
> gcc -fPIC -g  -fPIC -Wall   -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
>
> -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR  -DUSE_ORACLESPATIAL
> -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG
>  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
> -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.6.0-beta5
>
> -I/opt/oracle/product/10.2/db_1//rdbms/public
> -I/opt/oracle/product/10.2/db_1//rdbms/demo
> -I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
> -I/usr/include-I/usr/include/freetype2-I/usr/include
>
> -I/usr/include/php5 -I/usr/include/php5/dl -I/usr/include/php5/main
> -I/usr/include/php5/Zend -I/usr/include/php5/include
> -I/usr/include/php5/TSRM  -I/usr/include/php5/ext/ereg/ -c -o mapscript_i.o
> mapscript_i.c
> gcc -fPIC -g  -fPIC -Wall   -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
>
> -DUSE_WMS_LYR-DUSE_CURL   -DUSE_WMS_SVR  -DUSE_ORACLESPATIAL
> -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG
>  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
> -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.6.0-beta5
>
> -I/opt/oracle/product/10.2/db_1//rdbms/public
> -I/opt/oracle/product/10.2/db_1//rdbms/demo
> -I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
> -I/usr/include-I/usr/include/freetype2-I/usr/include
>
> -I/usr/include/php5 -I/usr/include/php5/dl -I/usr/include/php5/main
> -I/usr/include/php5/Zend -I/usr/include/php5/include
> -I/usr/include/php5/TSRM  -I/usr/include/php5/ext/ereg/ -c -o php_regex.o
> php_regex.c
> /bin/true  -o php_mapscript.so php_mapscript_util.o php_mapscript.o
> mapscript_i.o php_regex.o  -L/usr/src/mapserver-5.6.0-beta5 -lmapserver
>
> -lcurl  -L/opt/oracle/product/10.2/db_1//lib -lclntsh  -L/usr/lib64 -lpq
> -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5
> -lz -lreadline -lcrypt -ldl -lm   -ljpeg -lfreetype -lz -lpng -lz -lXpm
>
> -lX11  -L/usr/lib64 -lgdal -L/opt/oracle/product/10.2/db_

[mapserver-users] Question on the layer order impact in a Getmap(WMS) call

2009-12-03 Thread Martin Ouellet
The mapserver doc specified that the layer are drawn in their order of
appearance in the MapFile (first layer is at the bottom, last is on top).
Extract from: http://umn.mapserver.ch/MapServer/en/layer.htm

So I wonder why the map is different if I change the order of the layers
(CEHQ_STATION_CEHQ_NIVEAU_NIV2 = point layer and CEHQ_BASSIN_N1_NIVEAU =
polygon layer) in the call?
Should Mapserver generate the map considering the layer order in the mapfile
(bottom to top) and not with the order in the URL call?

With this call, the polygon are on top:
http://spssoww5d.sso.msp.gouv.qc.ca/cgi-wms/adnIntranet?LAYERS=CEHQ_STATION_CEHQ_NIVEAU_NIV2,CEHQ_BASSIN_N1_NIVEAU&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:900913&BBOX=-8397907.6360637,5657903.782736,-7510015.1156621,6129367.3731146&WIDTH=1452&HEIGHT=771

With this call, the point are on top (which I would like to have always)
http://spssoww5d.sso.msp.gouv.qc.ca/cgi-wms/adnIntranet?LAYERS=CEHQ_BASSIN_N1_NIVEAU,CEHQ_STATION_CEHQ_NIVEAU_NIV2&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:900913&BBOX=-8397907.6360637,5657903.782736,-7510015.1156621,6129367.3731146&WIDTH=1452&HEIGHT=771

Do I forgot something?

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


[mapserver-users] Strange behavior for a truetype symbol render..

2009-12-04 Thread Martin Ouellet
Hi there,

I have two symbol definition in my mapfile:

SYMBOL
NAME'baisse'
TYPETRUETYPE
FONT"windg3"
#CHARACTER   "È"
CHARACTER   "È"
END

SYMBOL
NAME'hausse'
TYPETRUETYPE
FONT"windg3"
#CHARACTER   "Ç"
CHARACTER   "Ç"
END

While moving the map around (and without making any changes in the mapfile
or in js code), sometime Mapserver is drawing the arrow up symbol (hausse),
and the other time, the arrow down symbol (baisse). See attachment for this
strange display. In both case, the symbol who's not displayed correctly is
replaced with a little box in the center of the circle.

Here the 2 WMS call behind it (identical but BBOX is different)
http://
/cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8357644.0084038,5691908.0497863,-7868447.0274662,6038014.9137997&WIDTH=800&HEIGHT=566
http://
/cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8451202.9310082,5636261.8932047,-7962005.9500706,5982368.7572181&WIDTH=800&HEIGHT=566

Any tought why this happen?

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


[mapserver-users] Fwd: Strange behavior for a truetype symbol render..

2010-01-14 Thread Martin Ouellet
2 new elements.

->The problem occur only in FireFox (OK in IE dans Chrome)
->The problem is related to the wingding true font (no problem with arial)

Did someone experiment similar behavior?

MartinO

-- Forwarded message --
From: Martin Ouellet 
Date: 2009/12/4
Subject: Strange behavior for a truetype symbol render..
To: mapserver-users 


Hi there,

I have two symbol definition in my mapfile:

SYMBOL
NAME'baisse'
TYPETRUETYPE
FONT"windg3"
#CHARACTER   "È"
CHARACTER   "È"
END

SYMBOL
NAME'hausse'
TYPETRUETYPE
FONT"windg3"
#CHARACTER   "Ç"
CHARACTER   "Ç"
END

While moving the map around (and without making any changes in the mapfile
or in js code), sometime Mapserver is drawing the arrow up symbol (hausse),
and the other time, the arrow down symbol (baisse). See attachment for this
strange display. In both case, the symbol who's not displayed correctly is
replaced with a little box in the center of the circle.

Here the 2 WMS call behind it (identical but BBOX is different)
http://
/cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8357644.0084038,5691908.0497863,-7868447.0274662,6038014.9137997&WIDTH=800&HEIGHT=566
http://
/cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8451202.9310082,5636261.8932047,-7962005.9500706,5982368.7572181&WIDTH=800&HEIGHT=566

Any tought why this happen?

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


[mapserver-users] Best way to store ArcInfo annotations in PostGIS?

2010-10-22 Thread Martin Ouellet
Hi all,

I see 2 ways for doing that:
1) store the centroid (as a point geometry), rotation, text and maybe the
size of the annotation in my postgis table

2) using FME transformer (TextStroker), I can convert the annotation as a
multi-polygone or polyline directly.  Playing with the font and some offset
parameter, the result is pretty amazing (when I overlap the annotation and
the geometry generated by the transformer)

In a WMS map rendering point of view:
Q1: I presume that the solution #2 will be much faster than rendering à
label based on a point, rotation and text?

Q2: beside the limitation of solution #2 (cannot change font, size or
position of the text (geometry), is there others importants limitations that
I forgot?

Q3: Any recommendations?

cheers!

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


Re: [mapserver-users] Best way to store ArcInfo annotations in PostGIS?

2010-10-26 Thread Martin Ouellet
Thanks Daniel for your inputs,

The beauty of the solution #2 (stroked text) is that the result is visually
exactly the same than the annotation layer in ArcInfo (size, font, position,
orientation, etc...).  To obtain the same result with the labeling options
would require a lot of tuning(adjustment in the mapfile pour each layer),
but I may be wrong.

I will keep all the info for both solutions (text as polygon, centroid,
text, angle) so I may execute some benchmark later this fall

cheers

MartinO

2010/10/25 Daniel Morissette 

> Martin,
>
> Only some benchmarks could tell us for sure, but I don't imagine that
> option 1 would be that much slower than option 2, if it's slower at all.
> Once the text has been stroked in option 2, you cannot change its style
> or size any more. OTOH, with #1 you keep all that flexibility.
> Personally I'd go with #1 unless you can verify with some tests that #2
> is really faster, and if that's the case we'd like to hear back from you
> and find out more.
>
> Daniel
>
> Martin Ouellet wrote:
> > Hi all,
> >
> > I see 2 ways for doing that:
> > 1) store the centroid (as a point geometry), rotation, text and maybe
> > the size of the annotation in my postgis table
> >
> > 2) using FME transformer (TextStroker), I can convert the annotation as
> > a multi-polygone or polyline directly.  Playing with the font and some
> > offset parameter, the result is pretty amazing (when I overlap the
> > annotation and the geometry generated by the transformer)
> >
> > In a WMS map rendering point of view:
> > Q1: I presume that the solution #2 will be much faster than rendering ą
> > label based on a point, rotation and text?
> >
> > Q2: beside the limitation of solution #2 (cannot change font, size or
> > position of the text (geometry), is there others importants limitations
> > that I forgot?
> >
> > Q3: Any recommendations?
> >
> > cheers!
> >
> > MartinOuellet
> >
> >
> > 
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
> ___
> 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] Mapserver consuming SLD coming from Udig and Styler (OpenGeo Suite)

2010-11-11 Thread Martin Ouellet
Hi all,

I'a, trying to use SLD files with Mapserver.

I've started from an example of this web site (
http://mapserver.org/ogc/sld.html) is working well but if I use a SLD
generated by Udig or the Styler (OpenGeo suite), it does not.

working SLD:

http://www.opengis.net/sld";
  xmlns:se="http://www.opengis.net/se";
  xmlns:ogc="http://www.opengis.net/ogc";
  xmlns:xlink="http://www.w3.org/1999/xlink";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.opengis.net/sld
  http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd";>

  INDEX_20K

  xxx
  

  

  center-line


#008040
0.5


  #008040
  2

  

  

  


The one generated from the Styler raise an error (WMS server error. Invalid
SLD document)

http://www.opengis.net/sld"; xmlns:sld="
http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";>
  INDEX_20K
  Default polygon style
  A sample style
  
name

  default
  Index20K
  

  #008040
  0.5


  #008040
  2

  

  


The one from Udig is simply ignored by mapserver (without raising any error)

http://www.opengis.net/sld"; xmlns:sld="
http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml"; version="1.0.0">





Default Styler

1

simple
Feature

 generic:geometry

 simple



#008040
0.5


#008000
2








Is there any chance that you had similar issues?

thanks!

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


[mapserver-users] using a SLD for a non-WMS layer.

2010-11-12 Thread Martin Ouellet
Hi all,

I would like a confirmation to be sure that I understand the process:

Considering that I can't use a sld directly inside a layer definition (in my
case BDTQ_HYDRO_L_ARC), I have to define another WMS layer
(BDTQ_HYDRO_L_ARC_SLD in my example below) that will be redirected to the
BDTQ_HYDRO_L_ARC layer WITH the  style definition file ("wms_sld_url") to
use for the rendering?

Currently, this process works very well but:
Q1: Is there a better way (or faster way for mapserver) for doing that
?(apply a sld to a non-WMS layer)?

Q2: What kind of degradation of performance can I expect with this cascading
workflow (2 time slower?)

regards MartinO

Example:
LAYER
NAME "BDTQ_HYDRO_L_ARC"
DATA "geom from bdtq_hydro_l_arc using srid=4269"
TYPE LINE
MAXSCALEDENOM 15
 MINSCALEDENOM 0
METADATA
"wms_name" "BDTQ_HYDRO_L_ARC"
"wms_title""Hydrographie Linéaire"
"wms_keywordlist" "TODO"
"wms_abstract"  "TODO"
END
PROJECTION
"init=epsg:4269"
END
CLASS
STYLE
COLOR 0 0 0
END
END
END

#-- Hydrographie WMS
LAYER
NAME "BDTQ_HYDRO_L_ARC_SLD"
TYPE RASTER
CONNECTION "http:///mapserv?map=bdtq"
CONNECTIONTYPE WMS
METADATA
"wms_srs""EPSG:4269"
"wms_name" "BDTQ_HYDRO_L_ARC"
"wms_server_version" "1.1.1"
"wms_format""png"
"wms_extent""-80 45 -54 60"
"wms_sld_url" "http:///sld/bdtq_hydro_l_arc.sld"
END
END

regards

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


[mapserver-users] SLD and OUTPUTFORMAT compatibility?

2010-11-23 Thread Martin Ouellet
Hi all,

I have 2 two differents settings for symbolize my lines (refer to SLD
settings below):

1) a dashed line which is working *only when I specify the
outputformat:  *DRIVER
"*GD*/PNG"
**Note that with the driver GD/PNG, the external graphic below is not
working but the symbol (ico-ulaval-flag.gif) is copied locally in the
/ms_tmp directory.
It seem to be ignored by mapserver (but raising no error)...

2) a external graphic which is working *only when I specify the
outputformat:  *DRIVER "*AGG*/PNG"

Q: Is there a way/config to support both at the same time?

any advice?

Thanks you in advance!

MartinOuellet

SLD settings:
__


Re: [mapserver-users] SLD and OUTPUTFORMAT compatibility?

2010-11-23 Thread Martin Ouellet
Hi Assafa, thanks for your quick reply

I'am working with mapserver 5.6.5 (installed form elgis RPM -
http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS)

Here the requested files:

I've prefix the files with "aggpng_working" of identify the working example
1) aggpng_working_mapserv.log (log of mapserver for this case only)
2) the working scenario generate 2 mapfile:
aggpng_working_4cebdca9_13c_2._sld.map
aggpng_working_4cebdca9_13f_2._sld.map

I've prefix the files with "gdpng_notworking" to identify the case who's not
working
3) gdpng_notworking_mapserv.log (log of mapserver for this case only)
4) gdpng_notworking_4cebdbff_7fc0_2._sld.map

Thanks again...

MartinO

2010/11/23 Yewondwossen Assefa 

>  Hi Martin,
>
>  Can you try to check the map file after the sld has been applied: you can
> do that by setting your map file in debug and checking the log file  look
> for something like "...Map file after SLD was applied"  (ex: something like
> this):
> CONFIG  "MS_ERRORFILE" "f:/msapps/gmap-ms40/htdocs/gmap.log"
> DEBUG 5
>
> We can then check why the same style setting is not drawing the same way
> with the 2 drivers.  Please also indicate which version of MapServer you are
> using.
>
> regards,
>
>
>
>
> On 23/11/2010 9:15 AM, Martin Ouellet wrote:
>
> Hi all,
>
>  I have 2 two differents settings for symbolize my lines (refer to SLD
> settings below):
>
>  1) a dashed line which is working *only when I specify the outputformat:
>   *DRIVER "*GD*/PNG"
> **Note that with the driver GD/PNG, the external graphic below is not
> working but the symbol (ico-ulaval-flag.gif) is copied locally in the
> /ms_tmp directory.
> It seem to be ignored by mapserver (but raising no error)...
>
>  2) a external graphic which is working *only when I specify the
> outputformat:  *DRIVER "*AGG*/PNG"
>
>  Q: Is there a way/config to support both at the same time?
>
>  any advice?
>
>  Thanks you in advance!
>
>  MartinOuellet
>
>  SLD settings:
>
> __
>
>   
> Assefa Yewondwossen
> Software Analyst
>
> Email: yass...@dmsolutions.cahttp://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> 
>
>
>
___
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


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

2010-12-01 Thread Martin Ouellet
You're absolutely right Assefa, adding the parameter WMS_SLD_SYMBOL_URL
solve the problem. You're also right in saying that the information is
somehow hidden BUT it is there so my mistake, I'll try to read more
carefully next time

MartinO

2010/12/1 Yewondwossen Assefa 

>  Hi Martin,
>
>  I think you need to define WMS_SLD_SYMBOL_URL  to be able to generate an
> External graphic. This is documented (almost hidden :) in
> http://mapserver.org/ogc/sld.html#client-side-support
>
> best regards,
>
>
> On 30/11/2010 5:01 PM, Martin Ouellet wrote:
>
> 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 
> listmapserver-us...@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> 
> Assefa Yewondwossen
> Software Analyst
>
> Email: yass...@dmsolutions.cahttp://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> 
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] fastcgi mode with raster layer?

2011-04-11 Thread Martin Ouellet
I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on my
server.  is it normal to have no speed increase for a raster layer?

Does the fastcgi mode is optimized mainly for database layers as Oracle or
PostGIS?

thank you in advance.

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


[mapserver-users] AJAX - GetFeatureInfo - Accent problem

2008-04-24 Thread Martin Ouellet
Hi,

I have a GetFeatureinfo request that work pretty well (the accent character
is OK) )when I call it directly in IE or FF:

http://MDRIM00-000251/mapserver5/siglight.exe&service=WMS&version=1.1.1&request=getfeatureinfo&info_format=text/html&srs=EPSG:4326
&bbox=-71.332572,46.716784,-71.247428,46.783216&width=992&height=774&layers=hauteur_libre&query_layers=hauteur_libre&feature_count=10&x=423&y=313&format=gif&styles=

ex: Municipalité: Québec

The template behind this layer is a very simple HTML file (saved in
DOS/ISO-8859-1 encoding):



Municipalité:
[Municipali]



But when I send the same URL request in AJAX, the accent character are not
displayed correctly (in the responseText of the XMLHttpRequest object).

ex: Municipalit?  Qu?c

For firefox, I have fix the problem by adding this line:

xmlHttp.overrideMimeType('text/html; charset=ISO-8859-1');

But this method is not supported by IE.  I presume it's not a Mapserver
issue but if someone has any clue???

Thank you in advance.

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