Re: [mapserver-users] ows:ExtendedCapabilities with MapServer

2015-11-03 Thread Kralidis,Tom [Ontario]
Not that I know of.  What is your use case for using ows:ExtendedCapabilities?

..Tom

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Pasquale Di Donato
Sent: 2015-11-03 04:39
To: mapserver-users
Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer

Hi all

does MapServer support generic "ows:ExtendedCapabilities" except those set for 
INSPIRE?

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

Re: [mapserver-users] ows:ExtendedCapabilities with MapServer

2015-11-03 Thread Kralidis,Tom [Ontario]
Hi Pasquale: any chance you can use the INSPIRE support to fit your use case(s)?

Alternatively you can use the MapScript WxS support [1] to provide a custom 
Capabilities document.

[1] http://mapserver.org/ogc/mapscript.html


From: Pasquale Di Donato [mailto:pasquale.didon...@gmail.com] 
Sent: 2015-11-03 09:20
To: Kralidis,Tom [Ontario]
Cc: mapserver-users
Subject: Re: ows:ExtendedCapabilities with MapServer

Hi Tom
Thanks for your answer.
I'd like to set something "à la INSPIRE" for multilingual support but with my 
own namespace and types definition.
Pasquale

Il martedì 3 novembre 2015, Kralidis,Tom [Ontario] <tom.krali...@ec.gc.ca> ha 
scritto:
Not that I know of.  What is your use case for using ows:ExtendedCapabilities?

..Tom

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Pasquale Di Donato
Sent: 2015-11-03 04:39
To: mapserver-users
Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer

Hi all

does MapServer support generic "ows:ExtendedCapabilities" except those set for 
INSPIRE?

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

Re: [mapserver-users] WFS 1.1.0 filter behaviour issues

2015-06-19 Thread Kralidis,Tom [Ontario]
Filed at https://github.com/mapserver/mapserver/issues/5110 after
confirming the same issue with Sebastian.



 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Kralidis,Tom [Ontario]
 Sent: 2015-06-18 09:24
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] WFS 1.1.0 filter behaviour issues
 
 Hi: using 6.4.1. via UbuntuGIS, I'm getting unexpected behaviour when
working
 with WFS 1.0.0 and various Filter combinations.
 
 I've attempted to summarize with test cases/output here:
 
 https://gist.github.com/tomkralidis/637241066b4719c04dec
 
 Not sure whether there is an issue with the WFS Filter syntax, or if
there is a
 workaround that can be applied, But it looks like for case 1, neither
the  where
 clause or limit/offset is not being applied to the underlying SQL
query.
 
 Any ideas?
 
 Thanks
 
 ..Tom
 ___
 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] The RFC82 (GetMetadata) is supported ?

2015-06-18 Thread Kralidis,Tom [Ontario]

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Andrea Peri
 Sent: 2015-06-18 09:45
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] The RFC82 (GetMetadata) is supported ?
 
 Hi,
 the RFC 82:
 http://mapserver.org/development/rfc/ms-rfc-82.html
 
 is supported in mapserver 7.0 ?
 
 I try a request like this:
 www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr
 request=GetMetadatalayer=rt_ctr.10kservice=wmsversion=1.3.0
 
 (the server is mapserver 7dev)
 
 The RFC say this request should generate a metadata of all the services but
 nothing is does.
 Instead it report unsupported request.
 

The RFC was approved but the implementation incomplete.  This is outstanding on 
my list to do.  I hope to finish this off sometime this summer, with Dublin 
Core as the initial capability.  If you have any further comments on the RFC, 
they would be valuable.

Thanks

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


[mapserver-users] WFS 1.1.0 filter behaviour issues

2015-06-18 Thread Kralidis,Tom [Ontario]
Hi: using 6.4.1. via UbuntuGIS, I'm getting unexpected behaviour when
working with WFS 1.0.0 and various Filter combinations.

I've attempted to summarize with test cases/output here:

https://gist.github.com/tomkralidis/637241066b4719c04dec

Not sure whether there is an issue with the WFS Filter syntax, or if
there is a workaround that can be applied, But it looks like for case 1,
neither the  where clause or limit/offset is not being applied to the
underlying SQL query.

Any ideas?

Thanks

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


[mapserver-users] bash vulnerability

2014-09-25 Thread Kralidis,Tom [Ontario]
Echoing Oliver's tweet:
https://twitter.com/oltonn/status/515039547944869888

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271


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


[mapserver-users] support of PostGIS PointZ

2013-12-13 Thread Kralidis,Tom [Ontario]
Hi: we are using MapServer 6.4.0 and our (PostgreSQL 8.4/PostGIS 2.0)
database models use the PointZ geometry type (we store x/y/z for our
observations).

How can we make the z values visible when doing WFS 1.1.0 output?
Currently for, say, GML3 output, MapServer returns 2d coordinates.

Cheers

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


Re: [mapserver-users] Python MapScript WxS Capabilities XML truncated

2013-06-19 Thread Kralidis,Tom [Ontario]
Hi: this was an artifact of using Python mapscript which was not representative 
of the patch fix. Updating Python mapscript fixes this issue.

Thanks much to Stephan and Thomas



From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: June 18, 2013 11:32 AM
To: Kralidis,Tom [Ontario]
Cc: MapserverList OSGEO
Subject: Re: [mapserver-users] Python MapScript WxS Capabilities XML truncated

Tom,
I was able to reproduce a segfault using the CGI, here's the backtrace for the 
ticket I'm sure you'll open and hopefully fix :)

Program received signal SIGSEGV, Segmentation fault.
0x77b140af in msDumpLayer (map=0x604d90, lp=0x60d6b0, nVersion=66304,
    script_url_encoded=0x616330 http://foobar?;, indent=0x616a80         ,
    validated_language=0x0, grouplayer=0) at mapwms.c:2449
2449                      if (l  lp2-numclasses)
(gdb) bt
#0  0x77b140af in msDumpLayer (map=0x604d90, lp=0x60d6b0, 
nVersion=66304,
    script_url_encoded=0x616330 http://foobar?;, indent=0x616a80         ,
    validated_language=0x0, grouplayer=0) at mapwms.c:2449
#1  0x77b14a67 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=4, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2619
#2  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=3, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#3  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=2, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#4  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=1, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#5  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=0, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#6  0x77b17c65 in msWMSGetCapabilities (map=0x604d90, nVersion=66304, 
req=0x6045c0,
    ows_request=0x7fffe7c0, requested_updatesequence=0x0, 
wms_exception_format=0x0,
    requested_language=0x0) at mapwms.c:3356
#7  0x77b1d51d in msWMSDispatch (map=0x604d90, req=0x6045c0, 
ows_request=0x7fffe7c0,
    force_wms_mode=0) at mapwms.c:4833
#8  0x77b4df6d in msOWSDispatch (map=0x604d90, request=0x6045c0, 
ows_mode=-1)
    at mapows.c:243
#9  0x77b79c79 in msCGIDispatchRequest (mapserv=0x604380) at 
mapservutil.c:1607
#10 0x00400f60 in main (argc=2, argv=0x7fffe9a8) at mapserv.c:259

cheers,
thomas

On 18 June 2013 16:46, Kralidis,Tom [Ontario] tom.krali...@ec.gc.ca wrote:
Hi: using 6.2.1 (Ubuntu) built from source along with the following
patch at
https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4be
a321105412a20b.patch, we have a requirement to implement a WxS MapScript
approach for our OWS (we have up until now using the mapserv binary).

All works well, except for WMS GetCapabilities responses.  The result is
a truncated WMS Capabilities XML which gets truncated when MapServer is
printing out the root Layer element.

I've posted a minimal mapfile and the Python mapscript at
https://gist.github.com/tomkralidis/f70afd49270cb8efb62f. Observations:

- commenting out LAYER.METADATA.wms_layer_group eliminates the issue,
but we require this functionality
- commenting out LAYER.CLASSGROUP and LAYER.CLASS.GROUP, and
uncommenting LAYER.METADATA.wms_layer_group eliminates the issue, but we
require this functionality
- the same mapfile works just fine with mapserv binary

Any suggestions? I'm wondering whether the Python SWIG implementation
affects this.

..Tom

___
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] Python MapScript WxS Capabilities XML truncated

2013-06-18 Thread Kralidis,Tom [Ontario]
Hi: using 6.2.1 (Ubuntu) built from source along with the following
patch at
https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4be
a321105412a20b.patch, we have a requirement to implement a WxS MapScript
approach for our OWS (we have up until now using the mapserv binary).

All works well, except for WMS GetCapabilities responses.  The result is
a truncated WMS Capabilities XML which gets truncated when MapServer is
printing out the root Layer element.

I've posted a minimal mapfile and the Python mapscript at
https://gist.github.com/tomkralidis/f70afd49270cb8efb62f. Observations:

- commenting out LAYER.METADATA.wms_layer_group eliminates the issue,
but we require this functionality
- commenting out LAYER.CLASSGROUP and LAYER.CLASS.GROUP, and
uncommenting LAYER.METADATA.wms_layer_group eliminates the issue, but we
require this functionality
- the same mapfile works just fine with mapserv binary

Any suggestions? I'm wondering whether the Python SWIG implementation
affects this.

..Tom

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


Re: [mapserver-users] Python MapScript WxS Capabilities XML truncated

2013-06-18 Thread Kralidis,Tom [Ontario]
Thomas: thanks for the info. The segfault you indicate below is solved with 
https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4bea321105412a20b.
  So my testing below is based on 6.2.1 + 
https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4bea321105412a20b.patch,
 thus introducing a new issue.

I've submitted a ticket at https://github.com/mapserver/mapserver/issues/4668





From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: June 18, 2013 11:32 AM
To: Kralidis,Tom [Ontario]
Cc: MapserverList OSGEO
Subject: Re: [mapserver-users] Python MapScript WxS Capabilities XML truncated

Tom,
I was able to reproduce a segfault using the CGI, here's the backtrace for the 
ticket I'm sure you'll open and hopefully fix :)

Program received signal SIGSEGV, Segmentation fault.
0x77b140af in msDumpLayer (map=0x604d90, lp=0x60d6b0, nVersion=66304,
    script_url_encoded=0x616330 http://foobar?;, indent=0x616a80         ,
    validated_language=0x0, grouplayer=0) at mapwms.c:2449
2449                      if (l  lp2-numclasses)
(gdb) bt
#0  0x77b140af in msDumpLayer (map=0x604d90, lp=0x60d6b0, 
nVersion=66304,
    script_url_encoded=0x616330 http://foobar?;, indent=0x616a80         ,
    validated_language=0x0, grouplayer=0) at mapwms.c:2449
#1  0x77b14a67 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=4, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2619
#2  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=3, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#3  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=2, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#4  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=1, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#5  0x77b14c26 in msWMSPrintNestedGroups (map=0x604d90, nVersion=66304,
    pabLayerProcessed=0x6164b0 , index=0, level=0, nestedGroups=0x616820,
    numNestedGroups=0x616860, isUsedInNestedGroup=0x616880,
    script_url_encoded=0x616330 http://foobar?;, validated_language=0x0) at 
mapwms.c:2644
#6  0x77b17c65 in msWMSGetCapabilities (map=0x604d90, nVersion=66304, 
req=0x6045c0,
    ows_request=0x7fffe7c0, requested_updatesequence=0x0, 
wms_exception_format=0x0,
    requested_language=0x0) at mapwms.c:3356
#7  0x77b1d51d in msWMSDispatch (map=0x604d90, req=0x6045c0, 
ows_request=0x7fffe7c0,
    force_wms_mode=0) at mapwms.c:4833
#8  0x77b4df6d in msOWSDispatch (map=0x604d90, request=0x6045c0, 
ows_mode=-1)
    at mapows.c:243
#9  0x77b79c79 in msCGIDispatchRequest (mapserv=0x604380) at 
mapservutil.c:1607
#10 0x00400f60 in main (argc=2, argv=0x7fffe9a8) at mapserv.c:259

cheers,
thomas

On 18 June 2013 16:46, Kralidis,Tom [Ontario] tom.krali...@ec.gc.ca wrote:
Hi: using 6.2.1 (Ubuntu) built from source along with the following
patch at
https://github.com/mapserver/mapserver/commit/937dcb6857501835b5489fa4be
a321105412a20b.patch, we have a requirement to implement a WxS MapScript
approach for our OWS (we have up until now using the mapserv binary).

All works well, except for WMS GetCapabilities responses.  The result is
a truncated WMS Capabilities XML which gets truncated when MapServer is
printing out the root Layer element.

I've posted a minimal mapfile and the Python mapscript at
https://gist.github.com/tomkralidis/f70afd49270cb8efb62f. Observations:

- commenting out LAYER.METADATA.wms_layer_group eliminates the issue,
but we require this functionality
- commenting out LAYER.CLASSGROUP and LAYER.CLASS.GROUP, and
uncommenting LAYER.METADATA.wms_layer_group eliminates the issue, but we
require this functionality
- the same mapfile works just fine with mapserv binary

Any suggestions? I'm wondering whether the Python SWIG implementation
affects this.

..Tom

___
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] Select the dataset at runtime

2013-06-18 Thread Kralidis,Tom [Ontario]
Andrea: you can do something like use runtime substitution (neat example at 
http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/),
 or MapScript WxS wrappers 
(http://mapserver.org/ogc/mapscript.html#python-examples).



From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri
Sent: June 18, 2013 2:27 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Select the dataset at runtime

Hi,
Is possible to change at runtime the datasource of a layer using a parameter of 
the request to choose the dataset ?
I'm explain better.
I have two datasource of the same physical phenomenon.
The first is at 96dpi and the second at 300dpi.

I like to show the first when the user see it on a webgis and ask it using a 
request getmap with the extra parameter map_resolution=96
Instead the mapserver should return the second dataset when the request has an 
extra_parameter map_resolution=300 tipically when the user call it for a print 
at high resolution.
I'm trying to avoid to set two distinct mapserver layers.
To avoid the user should change the layer in the request.

The solution I'm searching is to allow the use of the parameter 
map_resolution to choose the dataset to use.


-- 
-
Andrea Peri
. . . . . . . . . 
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS layer filtering

2013-06-12 Thread Kralidis,Tom [Ontario]
Hi: we have a MapServer OWS instance which we use to disseminate
observations via WMS and WFS/SOS.

One of our layers has 1 million records (PostGIS backend).  The layer
has CLASS level EXPRESSION objects for WMS visualization/classification.
We initially implemented a LAYER level FILTER, however we have use cases
to serve the same layer (with the same identifier) via WFS, in which
case we'd like all the data to be available.

Our problem happens when visualizing via WMS.  We have a Boolean column
in our PostGIS table ('latest_observation') which allows us to filter
easily to visualize latest observations, which is our desired WMS
default.

Because we have defined CLASS level filters, the WMS GetMap request is
first querying and fetching all records and _then_ applying CLASS level
filters (which all include 'latest_observation=1'.  So this ends up
hurting us performance wise.

We'd like to have this filter at the query level so that less members
are passed back from the SQL query. 

When we do a LAYER.FILTER with latest_observation=1, the result is
instant (beautiful!).  But if we put a LAYER.FILTER, this constrains the
data access from the WFS perspective against the same LAYER def.

Is there any way to apply a LAYER.FILTER type approach to work _just_ in
WMS mode? We'd like all the data in WFS mode.

I know we can duplicate the LAYER object as a workaround, but from a
data management perspective we'd rather now.

I hope I have explained this clearly enough.  Any suggestions?

Thanks

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


Re: [mapserver-users] RE WMS layer filtering

2013-06-12 Thread Kralidis,Tom [Ontario]
Steve: thanks for the info.  Good point.  It would help, however the client 
would require apriori knowledge, which won't help in our case because we want 
things more generic.

Of course, there's always MapScript (i.e. set LAYER.FILTER only if it's a WMS 
GetMap/GetFeatureInfo request), but I was hoping for something less involved, 
or configurable.



From: steve.tout...@inspq.qc.ca [mailto:steve.tout...@inspq.qc.ca] 
Sent: June 12, 2013 8:40 AM
To: Kralidis,Tom [Ontario]
Cc: mapserver-users@lists.osgeo.org; mapserver-users-boun...@lists.osgeo.org
Subject: RE [mapserver-users] WMS layer filtering


Does runtime substitution can help? 
You could post latest_observation=1 when calling the wms and 0 and 1 when using 
the wfs

the filter would be latest_observation in (%param%) 


Kralidis,Tom [Ontario] tom.krali...@ec.gc.ca@lists.osgeo.org 
Envoyé par : mapserver-users-boun...@lists.osgeo.org 
2013-06-12 08:23 
A
mapserver-users@lists.osgeo.org 
cc

Objet
[mapserver-users] WMS layer filtering









Hi: we have a MapServer OWS instance which we use to disseminate
observations via WMS and WFS/SOS.

One of our layers has 1 million records (PostGIS backend).  The layer
has CLASS level EXPRESSION objects for WMS visualization/classification.
We initially implemented a LAYER level FILTER, however we have use cases
to serve the same layer (with the same identifier) via WFS, in which
case we'd like all the data to be available.

Our problem happens when visualizing via WMS.  We have a Boolean column
in our PostGIS table ('latest_observation') which allows us to filter
easily to visualize latest observations, which is our desired WMS
default.

Because we have defined CLASS level filters, the WMS GetMap request is
first querying and fetching all records and _then_ applying CLASS level
filters (which all include 'latest_observation=1'.  So this ends up
hurting us performance wise.

We'd like to have this filter at the query level so that less members
are passed back from the SQL query. 

When we do a LAYER.FILTER with latest_observation=1, the result is
instant (beautiful!).  But if we put a LAYER.FILTER, this constrains the
data access from the WFS perspective against the same LAYER def.

Is there any way to apply a LAYER.FILTER type approach to work _just_ in
WMS mode? We'd like all the data in WFS mode.

I know we can duplicate the LAYER object as a workaround, but from a
data management perspective we'd rather now.

I hope I have explained this clearly enough.  Any suggestions?

Thanks

..Tom
___
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] RE WMS layer filtering (UNCLASSIFIED)

2013-06-12 Thread Kralidis,Tom [Ontario]
Hi Michael: thanks.  That definitely works, thanks (although that means 
managing two endpoints downstream, but I'm starting to think I'm asking too 
much here :) 

Thanks

..Tom


 -Original Message-
 From: Smith, Michael ERDC-CRREL-NH
 [mailto:michael.sm...@usace.army.mil]
 Sent: June 12, 2013 8:57 AM
 To: Kralidis,Tom [Ontario]; steve.tout...@inspq.qc.ca
 Cc: mapserver-users@lists.osgeo.org; mapserver-users-
 boun...@lists.osgeo.org
 Subject: RE: [mapserver-users] RE WMS layer filtering (UNCLASSIFIED)
 
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 Could you use script wrappers to set different environment variables
 
 Eg a wms file and a wfs file
 
 Your WMS file
 #!/bin/sh
 MS_MAPFILE=/path/to/mapfile
 export MS_MAPFILE
 export LATEST_OBS=1
 /cgi-bin/mapserv
 
 
 WFS File
 #!/bin/sh
 MS_MAPFILE=/path/to/mapfile
 export MS_MAPFILE
 export LATEST_OBS=0
 /cgi-bin/mapserv
 
 
 And then use %LATEST_OBS% in your
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Kralidis,Tom [Ontario]
 Sent: Wednesday, June 12, 2013 8:44 AM
 To: steve.tout...@inspq.qc.ca
 Cc: mapserver-users@lists.osgeo.org; mapserver-users-
 boun...@lists.osgeo.org
 Subject: Re: [mapserver-users] RE WMS layer filtering
 
 Steve: thanks for the info.  Good point.  It would help, however the client
 would require apriori knowledge, which won't help in our case because we
 want things more generic.
 
 Of course, there's always MapScript (i.e. set LAYER.FILTER only if it's a WMS
 GetMap/GetFeatureInfo request), but I was hoping for something less
 involved, or configurable.
 
 
 
 From: steve.tout...@inspq.qc.ca [mailto:steve.tout...@inspq.qc.ca]
 Sent: June 12, 2013 8:40 AM
 To: Kralidis,Tom [Ontario]
 Cc: mapserver-users@lists.osgeo.org; mapserver-users-
 boun...@lists.osgeo.org
 Subject: RE [mapserver-users] WMS layer filtering
 
 
 Does runtime substitution can help?
 You could post latest_observation=1 when calling the wms and 0 and 1 when
 using the wfs
 
 the filter would be latest_observation in (%param%)
 
 
 Kralidis,Tom [Ontario] tom.krali...@ec.gc.ca@lists.osgeo.org
 Envoyé par : mapserver-users-boun...@lists.osgeo.org
 2013-06-12 08:23
 A
 mapserver-users@lists.osgeo.org
 cc
 
 Objet
 [mapserver-users] WMS layer filtering
 
 
 
 
 
 
 
 
 
 Hi: we have a MapServer OWS instance which we use to disseminate
 observations via WMS and WFS/SOS.
 
 One of our layers has 1 million records (PostGIS backend).  The layer
 has CLASS level EXPRESSION objects for WMS visualization/classification.
 We initially implemented a LAYER level FILTER, however we have use cases
 to serve the same layer (with the same identifier) via WFS, in which
 case we'd like all the data to be available.
 
 Our problem happens when visualizing via WMS.  We have a Boolean column
 in our PostGIS table ('latest_observation') which allows us to filter
 easily to visualize latest observations, which is our desired WMS
 default.
 
 Because we have defined CLASS level filters, the WMS GetMap request is
 first querying and fetching all records and _then_ applying CLASS level
 filters (which all include 'latest_observation=1'.  So this ends up
 hurting us performance wise.
 
 We'd like to have this filter at the query level so that less members
 are passed back from the SQL query.
 
 When we do a LAYER.FILTER with latest_observation=1, the result is
 instant (beautiful!).  But if we put a LAYER.FILTER, this constrains the
 data access from the WFS perspective against the same LAYER def.
 
 Is there any way to apply a LAYER.FILTER type approach to work _just_ in
 WMS mode? We'd like all the data in WFS mode.
 
 I know we can duplicate the LAYER object as a workaround, but from a
 data management perspective we'd rather now.
 
 I hope I have explained this clearly enough.  Any suggestions?
 
 Thanks
 
 ..Tom
 ___
 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
 
 Classification: UNCLASSIFIED
 Caveats: NONE
 

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


Re: [mapserver-users] WFS PropertyIsLike is case-insensitive ?

2013-05-02 Thread Kralidis,Tom [Ontario]

Andrea: you can try setting the matchCase (true|false) attribute against the 
PropertyIsLike comparison filter.

..Tom



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org on behalf of Andrea Peri
Sent: Thu 02-May-13 15:19
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] WFS PropertyIsLike is case-insensitive ?
 
Hi,

In internal mapserver wfs (not tinyows)
the PropertyIsLike filter is settable to be case-insensitive ?

Thx,

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-

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


[mapserver-users] GeoJSON OGR output with WFS data type issue

2013-04-11 Thread Kralidis,Tom [Ontario]
Hi: using:

MapServer: 6.2.0
GDAL/OGR: 1.9.2
PostgreSQL: 8.4.13

$ cat /etc/issue
Ubuntu 10.04.4 LTS \n \l

...we have a MapServer setup and configured to feed downstream
applications with (point) observation data via WFS and GeoJSON.

We have an issue where a null value in an integer field is being
returned as a value of 0 in GeoJSON.  This is throwing off applications
who are processing 0 values.  The layer in question is a PostGIS
connection.

Below is a trace along the OGR/MapServer workflow:

PostgreSQL/PostGIS:

FOO=# select postgis_full_version();
 
postgis_full_version


 POSTGIS=2.0.2SVN r10398 GEOS=3.3.5-CAPI-1.7.5 PROJ=Rel. 4.8.0, 6
March 2012 GDAL=GDAL 1.9.2, released 2012/10/08 LIBXML=2.9.0 RASTER
(1 row)

FOO=# \q data_mart_ca_live;

air_temp_qa| integer 
...

FOO=# select air_temp_qa from data_mart_ca_live where
data_payload_id=11177725;
 air_temp_qa
-

(1 row)

Here we see that air_temp_qa (integer value) returns null in SQL.

OGR:

$ ogrinfo -al PG:dbname=FOO host=localhost user=foo password=bar
data_mart_ca_live -where data_payload_id = '11177725'
...
# column definition
air_temp_qa: Integer (0.0)
...
# actual value
air_temp_qa (Integer) = (null)
...
$ ogr2ogr -select air_temp_qa -f GeoJSON foo.json PG:dbname=FOO
host=localhost user=foo password=bar data_mart_ca_live -where
data_payload_id = '11177725'
$ cat foo.json

type: FeatureCollection,

features: [
{ type: Feature, properties: { air_temp: null, air_temp_qa:
null }, geometry: { type: Point, coordinates: [ -111.93,
60.03 ] } }

]
}

So far all is consistent in OGR with what is represented in
PostgreSQL/PostGIS.

MapServer layer definition:

LAYER
 NAME ca-1.0-ascii
 STATUS ON
 DEBUG ON
 CONNECTION dbname=FOO host=localhost user=foo password=bar
 CONNECTIONTYPE POSTGIS
 PROCESSING CLOSE_CONNECTION=DEFER
 DATA the_geom from data_mart_ca_live using unique data_payload_id
using srid=4326
 TYPE POINT
 DUMP TRUE
PROJECTION
  init=epsg:4326
 END
 METADATA
  ows_authorityurl_name taxonomy
  ows_authorityurl_href http://localhost/taxonomy;
  ows_identifier_authority taxonomy
  ows_identifier_value
/msc/observation/atmospheric/surface_weather/ca-1.0-ascii
  wms_layer_group /msc/observation/atmospheric/surface_weather
  ows_title DMS CA obs data with qa
  ows_abstract DMS CA obs data with qa
  ows_keywordlist dms,climate,test,mapserver
  ows_extent -141.089000 36.392987 -52.089000 89.784987 # early out
  wfs_metadataurl_format XML
  gml_include_items all
  gml_types auto
  wms_timeextent 2013-01-11T18:39:34Z/2013-04-11T18:39:34Z
  wms_timeitem instance_datetime
 END
 INCLUDE /home/tomk/msc-ows/trunk/services/msc/classes/dashboard.inc
END

- Test using WMS GetFeatureInfo returns air_temp_qa as an empty XML
element (which is expected/desired).

- Test using WFS GetFeature with default OUTPUTFORMAT:

$  GET
http://localhost/msc-ows?service=WFSversion=1.1.0request=GetFeaturet
ypename=ca-1.0-asciifilter=ogc:Filterogc:PropertyIsEqualToogc:Prop
ertyNamedata_payload_id/ogc:PropertyNameogc:Literal11177725/ogc:Li
teral/ogc:PropertyIsEqualTo/ogc:Filter

... returns air_temp_qa as an empty XML element (which is
expected/desired).

- Test using WFS GetFeature with OUTPUTFORMAT=GeoJSON:

$ GET
http://localhost/msc-ows?service=WFSversion=1.1.0request=GetFeaturet
ypename=ca-1.0-asciifilter=ogc:Filterogc:PropertyIsEqualToogc:Prop
ertyNamedata_payload_id/ogc:PropertyNameogc:Literal11177725/ogc:Li
teral/ogc:PropertyIsEqualTo/ogc:Filteroutputformat=GeoJSON

...returns air_temp_qa in GeoJSON with a value of 0 (i.e. air_temp_qa:
0).

So it looks like, somewhere in MapServer, a null integer value is being
cast to 0.  What's weird is that this is happening only for OGR driver
requested formats, not native MapServer outputs.  But in OGR proper it
works as expected.

Other notes:

- LAYER.METADATA includes gml_types auto.  When commenting that out,
the value comes back as blank (which is good), but all OGC Filters
(which are perfectly valid, from a wide variety of WFS clients) fail
because it looks like, without this, the client is forced to apply a
cast or quote the ogc:Literal value given the data type.

Any suggestions are valued.

Thanks

..Tom

 



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


Re: [mapserver-users] GeoJSON OGR output with WFS data type issue

2013-04-11 Thread Kralidis,Tom [Ontario]

 -Original Message-
 From: Even Rouault [mailto:even.roua...@mines-paris.org]
 Sent: Thursday, April 11, 2013 15:33
 To: mapserver-users@lists.osgeo.org
 Cc: Kralidis,Tom [Ontario]
 Subject: Re: [mapserver-users] GeoJSON OGR output with WFS data type
 issue
 
 
  Any suggestions are valued.
 
 Try the attached patch (only compile tested by me).
 
 I'm unsure if null values are well represented by empty strings by
MapServer
 in the shape-values array, but I think so from my quick inspection of
the
 code (that's maybe unfortunate that there's no distinction between
 unset/null
 fields and empty strings)
 
 Ultimately OGR_F_SetFieldString could ignore empty string passed for
 setting
 numeric fields, but that's probably the job of the client to *not*
call
 SetFieldString when it doesn't intent to set a value.
 

Even: thanks for this.  Works as expected.

Thanks

..Tom



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


[mapserver-users] FW: GeoJSON OGR output with WFS data type issue

2013-04-11 Thread Kralidis,Tom [Ontario]

Even: per below, do you want to PR this?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
Kralidis,Tom [Ontario]
Sent: Thursday, April 11, 2013 17:49
To: Even Rouault; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] GeoJSON OGR output with WFS data type
issue


 -Original Message-
 From: Even Rouault [mailto:even.roua...@mines-paris.org]
 Sent: Thursday, April 11, 2013 15:33
 To: mapserver-users@lists.osgeo.org
 Cc: Kralidis,Tom [Ontario]
 Subject: Re: [mapserver-users] GeoJSON OGR output with WFS data type
 issue
 
 
  Any suggestions are valued.
 
 Try the attached patch (only compile tested by me).
 
 I'm unsure if null values are well represented by empty strings by
MapServer
 in the shape-values array, but I think so from my quick inspection of
the
 code (that's maybe unfortunate that there's no distinction between
 unset/null
 fields and empty strings)
 
 Ultimately OGR_F_SetFieldString could ignore empty string passed for
 setting
 numeric fields, but that's probably the job of the client to *not*
call
 SetFieldString when it doesn't intent to set a value.
 

Even: thanks for this.  Works as expected.

Thanks

..Tom



___
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] FW: GeoJSON OGR output with WFS data type issue

2013-04-11 Thread Kralidis,Tom [Ontario]

https://github.com/mapserver/mapserver/issues/4633

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Kralidis,Tom [Ontario]
 Sent: Thursday, April 11, 2013 17:53
 To: mapserver-users@lists.osgeo.org; even.roua...@mines-paris.org
 Subject: [mapserver-users] FW: GeoJSON OGR output with WFS data type
 issue
 
 
 Even: per below, do you want to PR this?
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
 Kralidis,Tom [Ontario]
 Sent: Thursday, April 11, 2013 17:49
 To: Even Rouault; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] GeoJSON OGR output with WFS data type
 issue
 
 
  -Original Message-
  From: Even Rouault [mailto:even.roua...@mines-paris.org]
  Sent: Thursday, April 11, 2013 15:33
  To: mapserver-users@lists.osgeo.org
  Cc: Kralidis,Tom [Ontario]
  Subject: Re: [mapserver-users] GeoJSON OGR output with WFS data type
  issue
 
 
   Any suggestions are valued.
 
  Try the attached patch (only compile tested by me).
 
  I'm unsure if null values are well represented by empty strings by
 MapServer
  in the shape-values array, but I think so from my quick inspection
of
 the
  code (that's maybe unfortunate that there's no distinction between
  unset/null
  fields and empty strings)
 
  Ultimately OGR_F_SetFieldString could ignore empty string passed for
  setting
  numeric fields, but that's probably the job of the client to *not*
 call
  SetFieldString when it doesn't intent to set a value.
 
 
 Even: thanks for this.  Works as expected.
 
 Thanks
 
 ..Tom
 
 
 
 ___
 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] GetFeatureInfo GML

2013-03-25 Thread Kralidis,Tom [Ontario]
Mark: try (in LAYER) DUMP TRUE?  Can you post the layer definition snippet from 
your mapfile?

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Davidson
Sent: Monday, March 25, 2013 09:30
To: Stefan Schantz
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] GetFeatureInfo GML

Hi Stefan,

Thanks for the suggestion, I've tried that but still getting the same output as 
before.
Any other suggestions?

Thanks again,

Mark
On 25 March 2013 11:41, Stefan Schantz sscha...@bfs.de wrote:
Hi Mark,
I use gml_include_items 'all'

Best regards
Stefan

Am 25.03.2013 11:44, schrieb Mark Davidson: 
 Hi All,

I'm trying to do a GetFeaureInfo on my layer and return it in GML format. The 
request works fine but I can't seem to get any data to come back apart from the 
point bounds.
?xml version=1.0 encoding=ISO-8859-1?

msGMLOutput 
xmlns:gml=http://www.opengis.net/gml;
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
test_layer
gml:nameTest Points/gml:name
test_feature
gml:boundedBy
gml:Box srsName=EPSG:900913
gml:coordinates-269220.293738,6545357.533946 
-269220.293738,6545357.533946/gml:coordinates
/gml:Box
/gml:boundedBy
/test_feature
test_feature
gml:boundedBy
gml:Box srsName=EPSG:900913
gml:coordinates-253276.741855,6554416.311795 
-253276.741855,6554416.311795/gml:coordinates
/gml:Box
/gml:boundedBy
/test_feature /test_layer /msGMLOutput

What I would like to be able to do is get the feature id as what happends with 
the plain output
GetFeatureInfo results:

Layer 'test'
Feature 326: 
Feature 327:

I've set `gml_include_items` to * and `wms_include_item` to * as well but still 
not having any luck. 

Could someone point me in the direction of doing this? 

Many thanks,

Mark
 



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


Re: [mapserver-users] How to prepare a MapServer WMS?

2013-03-19 Thread Kralidis,Tom [Ontario]
Note you can also check out the MapServer OGC Web Services workshop
(http://mapserver.github.com/ms-ogc-workshop/).

..Tom


 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
 Sent: Tuesday, March 19, 2013 13:50
 To: OSGeo - EUA
 Subject: Re: [mapserver-users] How to prepare a MapServer WMS?
 
 Hi,
 
 It is quite well documented here
 http://mapserver.org/ogc/wms_server.html
 
 -Jukka Rahkonen-
 
  Marco Araujo wrote:
 
  Hello everyone,
 
  Can anyone guide me to build a MapServer WMS?
  As I do, scripts, etc..
 
  Already have successfully running MapServer CGI.
 
  Sincerely,
 ___
 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] SLD with LayerFeatureConstraints

2011-09-13 Thread Kralidis,Tom [Ontario]
At thispoint, filtering is only supported via UserStyle.  Having said
this, please submit a trac ticket for the requirement.  Not sure when/if
it would be addressed.

..Tom


 -Original Message-
 From: Meine Toonen [mailto:meinetoo...@b3partners.nl]
 Sent: Tuesday, 13 September 2011 05:56
 To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] SLD with LayerFeatureConstraints
 
 Thanks for the info.
 Will the LayerFeatureConstraints options be available in the future,
or is
 filtering only supported in an UserStyle? Couldn't find it in the
trac.
 
 Met vriendelijke groet,
 
 Meine Toonen
 B3Partners BV
 Tel: 030 214 2083
 
 
 
 
   From: Kralidis,Tom [Ontario] [mailto:tom.krali...@ec.gc.ca]
   To: Meine Toonen [mailto:meinetoo...@b3partners.nl], mapserver-
 us...@lists.osgeo.org
   Sent: Mon, 12 Sep 2011 16:56:33 +0200
   Subject: RE: [mapserver-users] SLD with LayerFeatureConstraints
 
 
 
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-
 users-
boun...@lists.osgeo.org] On Behalf Of Meine Toonen
Sent: Monday, 12 September 2011 10:22
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] SLD with LayerFeatureConstraints
   
Hi list,
   
I'm currently trying to filter features from a layer via a
SLD, but
   using
the style defined by the service. I managed to get a
NamedStyle by
   defining
a classgroup and assigning the class with the group.
   
When I set the style via SLD to mv2, it works perfectly, but
when I
   add the
filterpart (LayerFeatureConstraints) it fails: the default
style is
   used
and no filtering occurs.
   
Am I doing something wrong, of is filtering nog possible via
LayerFeatureConstraints?
   
Mapfile:
   
layer
name telpunten_motorvoertuig_punt
CLASSGROUP mv
metadata
wms_title telpunten_points
gml_include_items all
wfs_featureid id
end
group telpunten
status off
type point
dump true
template bla
connectiontype postgis
connection CONNECTIONSTATEMENT
data locatie from (select id, nummer, locatie,
coalesce(soort,'Onbekend') as wb_soort, wegnummer from telpunt
) as
   foo
using srid=28992 using unique id
projection
init=epsg:28992
end
classitem wb_soort
   
class
NAME motorvoertuig
group mv
expression MOTORVOERTUIG
style
   
symbol square
color 0 204 204
outlinecolor 0 0 0
size 8
end
end
   
class
NAME motorvoertuig2
group mv2
expression MOTORVOERTUIG
style
   
symbol square
color 255 0 0
outlinecolor 0 0 0
size 8
end
end
   
   
processing CLOSE_CONNECTION=DEFER
end
   
The SLD:
?xml version=1.0 encoding=UTF-8?
   
sld:StyledLayerDescriptor
xmlns:app=http://www.deegree.org/app;
 http://www.deegree.org/app%22
xmlns:deegreeogc=http://www.deegree.org/ogc;
 http://www.deegree.org/ogc%22
xmlns:gml=http://www.opengis.net/gml;
 http://www.opengis.net/gml%22
xmlns:ogc=http://www.opengis.net/ogc;
 http://www.opengis.net/ogc%22
xmlns:sld=http://www.opengis.net/sld;
 http://www.opengis.net/sld%22
xmlns:xlink=http://www.w3.org/1999/xlink;
 http://www.w3.org/1999/xlink%22
xmlns:se=http://www.opengis.net/se;
http://www.opengis.net/se%22
 version=1.0.0
sld:NamedLayer xmlns=http://www.opengis.net/sld;
 http://www.opengis.net/sld%22 
se:Nametelpunten_motorvoertuig_punt/se:Name
sld:NamedStyle
se:Namemv/se:Name
/sld:NamedStyle
sld:LayerFeatureConstraints
Fsld:eatureTypeConstraint
ogc:Filter
ogc:PropertyIsEqualTo
ogc:PropertyNamewegnummer/ogc:PropertyName
ogc:LiteralA28/ogc:Literal
/ogc:PropertyIsEqualTo
/ogc:Filter
/sld:FeatureTypeConstraint
/sld:LayerFeatureConstraints
/sld:NamedLayer
/sld:StyledLayerDescriptor
   
   
Thanks in advance!
   
 
   Sld:LayerFeatureConstraints is not supported by MapServer, or
SLD
 1.0.0.
   FYI here's an example of applying filters to SLD:
 
   StyledLayerDescriptor version=1.0.0
   xmlns=http://www.opengis.net/sld;
http://www.opengis.net/sld%22
   xmlns:ogc=http://www.opengis.net/ogc;
 http://www.opengis.net/ogc%22
   xmlns:xlink=http://www.w3.org/1999/xlink;
 http://www.w3.org/1999/xlink%22
 
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 http://www.w3.org/2001/XMLSchema-instance%22
   xsi:schemaLocation

RE: [mapserver-users] SLD with LayerFeatureConstraints

2011-09-12 Thread Kralidis,Tom [Ontario]


 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Meine Toonen
 Sent: Monday, 12 September 2011 10:22
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] SLD with LayerFeatureConstraints
 
 Hi list,
 
 I'm currently trying to filter features from a layer via a SLD, but
using
 the style defined by the service. I managed to get a NamedStyle by
defining
 a classgroup and assigning the class with the group.
 
 When I set the style via SLD to mv2, it works perfectly, but when I
add the
 filterpart (LayerFeatureConstraints) it fails: the default style is
used
 and no filtering occurs.
 
 Am I doing something wrong, of is filtering nog possible via
 LayerFeatureConstraints?
 
 Mapfile:
 
 layer
   name telpunten_motorvoertuig_punt
   CLASSGROUP mv
   metadata
 wms_title telpunten_points
 gml_include_items all
 wfs_featureid id
   end
   group telpunten
   status off
   type point
   dump true
   template bla
   connectiontype postgis
   connection CONNECTIONSTATEMENT
   data locatie from (select id, nummer, locatie,
 coalesce(soort,'Onbekend') as wb_soort, wegnummer from telpunt ) as
foo
 using srid=28992 using unique id
   projection
 init=epsg:28992
   end
   classitem wb_soort
 
   class
 NAME motorvoertuig
 group mv
 expression MOTORVOERTUIG
 style
 
 symbol square
 color 0 204 204
 outlinecolor 0 0 0
 size 8
 end
   end
 
   class
 NAME motorvoertuig2
 group mv2
 expression MOTORVOERTUIG
 style
 
 symbol square
 color 255 0 0
 outlinecolor 0 0 0
 size 8
 end
   end
 
 
   processing CLOSE_CONNECTION=DEFER
 end
 
 The SLD:
 ?xml version=1.0 encoding=UTF-8?
 
 sld:StyledLayerDescriptor xmlns:app=http://www.deegree.org/app;
 xmlns:deegreeogc=http://www.deegree.org/ogc;
 xmlns:gml=http://www.opengis.net/gml;
 xmlns:ogc=http://www.opengis.net/ogc;
 xmlns:sld=http://www.opengis.net/sld;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns:se=http://www.opengis.net/se; version=1.0.0
 sld:NamedLayer xmlns=http://www.opengis.net/sld;
 se:Nametelpunten_motorvoertuig_punt/se:Name
 sld:NamedStyle
 se:Namemv/se:Name
 /sld:NamedStyle
 sld:LayerFeatureConstraints
 Fsld:eatureTypeConstraint
 ogc:Filter
 ogc:PropertyIsEqualTo
 ogc:PropertyNamewegnummer/ogc:PropertyName
 ogc:LiteralA28/ogc:Literal
 /ogc:PropertyIsEqualTo
 /ogc:Filter
 /sld:FeatureTypeConstraint
 /sld:LayerFeatureConstraints
 /sld:NamedLayer
 /sld:StyledLayerDescriptor
 
 
 Thanks in advance!
 

Sld:LayerFeatureConstraints is not supported by MapServer, or SLD 1.0.0.
FYI here's an example of applying filters to SLD:

StyledLayerDescriptor  version=1.0.0
xmlns=http://www.opengis.net/sld;
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.0.0/StyledLayerDescriptor.xsd;
Namems_ogc_workshop/Name
TitleSLD for MapServer OGC Web Services Workshop/Title
AbstractThis is an SLD to show how one can make a custom style
without having to change the data style at the server-side/Abstract
NamedLayer
Namerivers/Name
UserStyle
Namesld_01/Name
Titlesld_01/Title
IsDefault1/IsDefault
FeatureTypeStyle
Rule
ogc:Filter
ogc:PropertyIsEqualTo

ogc:PropertyNameNAME/ogc:PropertyName

ogc:LiteralJapura/ogc:Literal
/ogc:PropertyIsEqualTo
/ogc:Filter
LineSymbolizer
Stroke
CssParameter
name=stroke#FFCC00/CssParameter
CssParameter
name=stroke-width5/CssParameter
/Stroke
/LineSymbolizer
/Rule
/FeatureTypeStyle
/UserStyle
/NamedLayer
/StyledLayerDescriptor
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer WMS and INSPIRE View Services development

2011-03-18 Thread Kralidis,Tom [Ontario]

FYI there has been some discussion with regard to enabling forthcoming INSPIRE 
[1] View Services support for MapServer WMS server.

For MapServer WMS users in European Union member states, this support is vital 
in your WMS services.

At the Montreal Code Sprint this week, we decided that it would be valuable to 
start a mailing list devoted to discussing requirements for INSPIRE support in 
MapServer WMS server.  This can help in formulating the scope, requirements and 
level of effort for a future RFC.

If you are interested in seeing INSPIRE support in MapServer WMS server, you 
are encouraged to join the mailing list at 
http://lists.osgeo.org/mailman/listinfo/mapserver-inspire.

Thanks

..Tom

[1] http://inspire.jrc.ec.europa.eu/


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


RE: [mapserver-users] XSL for WMS capabilities

2010-11-04 Thread Kralidis,Tom [Ontario]

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Peter N. Schweitzer
 Sent: Thursday, 04 November 2010 10:16
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] XSL for WMS capabilities
 
 Recognizing that this is only marginally on topic, but I use 
 mapserver for WMS and so the experiences of mapserver users 
 would bemost helpful.
 
 Does anyone have an XSL for WMS capabilities response that 
 generates a reasonably readable HTML presentation of the information?
 

I haven't seen anything defacto.  You could always XSLT WMS Capabilities
to ISO 19139 and output from there.

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


RE: [mapserver-users] how creating wmc layer

2010-07-12 Thread Kralidis,Tom [Ontario]
 

 hello all, I have a question how you can quickly generate WMC 
 Web Map Context
 

Check out http://www.mapserver.org/ogc/mapcontext.html for more information.

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


RE: [mapserver-users] Re: Limiting the execution time of mapserver

2010-06-22 Thread Kralidis,Tom [Ontario]

Another option is using WEB.METADATA.wfs_maxfeatures, which MapServer
will truncate to when doing WFS GetFeature responses.  This is then
advertised in the WFS Capabilities XML (ows:Constraint
name=DefaultMaxFeatures).  This also gets automagically passed to the
underlying SQL statement, shapefile data fetch, etc., on WFS GetFeature.

Thus you can use this to control output, so that the client never gets
more than x features back.

The client, in their WFS GetFeature requests, can then use the parameter
startindex=n (where n is an integer of the start position of the result
set) to page through the results accordingly.

..Tom


 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Andy Colson
 Sent: Tuesday, 22 June 2010 15:19
 To: mattmendick
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Re: Limiting the execution 
 time of mapserver
 
 On 6/22/2010 2:13 PM, mattmendick wrote:
 
  Thanks for the reply - where would you put this limit 
 statement? I've 
  tried putting it in the DATA section, like so:
 
  DATA wkb_geometry from (select * from parcels LIMIT 100) 
 as subquery 
  using unique ogc_fid using srid=4326
 
 
 I was thinking this one...
 
 
 
  And none of these seem to work - am I putting the limit 
 statement in 
  the right spot?
 
 Bummer... I was only guessing, I have never tried it before, 
 maybe the query get's re-written (appending where clauses and 
 what not) and the limit gets lost.  Sorry 'bout that.
 
 -Andy
 ___
 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] WCS/WMS/WFS version negotiation

2010-05-06 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 john.c.cartwri...@noaa.gov
 Sent: Wednesday, 05 May 2010 22:49
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] WCS/WMS/WFS version negotiation
 
 Hello All,
 
 is there a way to configure a mapfile to only support a given 
 version of WCS, WFS, WMS?  For example, can I configure 
 mapserver to only host WCS version 1.1 and refuse any request 
 specifying a different version?
 

Not at this point.  You could write a MapScript WxS wrapper to further
process requests and deal with the  version parameter accordingly.

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


RE: [mapserver-users] Log analysis for OGC services

2010-04-28 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 RODIER BATISSE, ALEXANDRE
 Sent: Wednesday, 28 April 2010 06:09
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Log analysis for OGC services
 
 Hi everybody,
 
  
 
 We need to make statistics from our OGC services.
 
  
 
 Does anyone have experience about this subject?
 
  
 
 We think to use a generalist statistical httpd analyzer (like 
 Webalyzer or AWstats), but we don't know If there is some 
 solutions specifically for OGC services.
 

I haven't seen any add-ons or modules like this for webstats-like
packages, but I think this would be very valuable.

I have some Python scripts which parse httpd logfiles and report stats
on OGC services (total hits, hits by request, hits by layer, etc.).  I
can send them along if they would be of any help.

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


RE: [mapserver-users] Non-conformant behaviour with MapServer 5.4 WMS 1.3.0 GetCapabilities response?

2009-06-24 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Passmore, James H
 Sent: Wednesday, 24 June 2009 09:46
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Non-conformant behaviour with 
 MapServer 5.4 WMS 1.3.0 GetCapabilities response?
 
 I've been trying to force my 1.3.0 GetCapabilities response 
 to have a BoundingBox CRS=CRS:84 ... element, discussing 
 the wisdom of this is another post but I've noticed that if I 
 don't specify a projection specified in the proj4 files, I 
 don't get any BoundingBox element, though I do get an 
 EX_GeographicBoundingBox...
 

Can you send along an example mapfile / snippet?

 Looking at the OpenGIS Web Map Server Implementation 
 Specification Version 1.3.0 (OGC 06-042) Section 7.2.4.6.8 
 
 'WMS service metadata shall declare one or more bounding 
 boxes (as defined in 6.7.4) for each Layer.
 A Bounding Box metadata element may either be stated 
 explicitly or may be inherited from a parent Layer'
 
 and also
 
 'The EX_GeographicBoundingBox element (see 7.2.4.6.6) is 
 conceptually similar to a BoundingBox in which
 the attribute CRS=CRS:84 is implicit. However, 
 EX_GeographicBoundingBox shall not be used as a
 substitute for BoundingBox CRS=CRS:84. If the server 
 wishes to provide bounding box information in the
 CRS:84 CRS, then a separate BoundingBox element explicitly 
 naming CRS:84 shall be included in the service
 metadata.'
 

Out of interest, can you elaborate on why EX_GeographicBoundingBox is
not suitable, given the implicity of the CRS?

 Though the schema has BoundingBox as optional, it should be 
 noted that in case of conflict with the main body of the 
 International Standard, the main body takes precedence (as below).
 

Norm: have you found that any of the OGC CITE WMS 1.3.0 assertions fail
related to this?

 e.g.
 'E.1 WMS Capabilities XML schema
 This annex contains the XML schema for WMS capabilities 
 against which service metadata from a server
 compliant with this International Standard may be validated. 
 Comments and documentation elements in the
 schema are informative; in case of conflict with the main 
 body of this International Standard, the main body takes
 precedence.'
 ...
 sequence
 element ref=wms:Name minOccurs=0/
 element ref=wms:Title/
 element ref=wms:Abstract minOccurs=0/
 element ref=wms:KeywordList minOccurs=0/
 element ref=wms:CRS minOccurs=0 maxOccurs=unbounded/
 element ref=wms:EX_GeographicBoundingBox minOccurs=0/
 element ref=wms:BoundingBox minOccurs=0 maxOccurs=unbounded/
 element ref=wms:Dimension minOccurs=0 maxOccurs=unbounded/
 element ref=wms:Attribution minOccurs=0/
 element ref=wms:AuthorityURL minOccurs=0 maxOccurs=unbounded/
 element ref=wms:Identifier minOccurs=0 maxOccurs=unbounded/
 element ref=wms:MetadataURL minOccurs=0 maxOccurs=unbounded/
 element ref=wms:DataURL minOccurs=0 maxOccurs=unbounded/
 element ref=wms:FeatureListURL minOccurs=0 
 maxOccurs=unbounded/
 element ref=wms:Style minOccurs=0 maxOccurs=unbounded/
 element ref=wms:MinScaleDenominator minOccurs=0/
 element ref=wms:MaxScaleDenominator minOccurs=0/
 element ref=wms:Layer minOccurs=0 maxOccurs=unbounded/
 /sequence
 ...
 
 I'm using MapServer 5.4.0-rc2, but I don't see anything 
 mentioning this in the changelog to version 5.4.1 so I assume 
 this is a new issue, and another change in behaviour from WMS 
 1.1.1 (OGC 01-068r3  7.1.4.5.7 BoundingBox ~ Layers may have 
 zero or more BoundingBox elements that are either stated 
 explicitly or inherited from a parent Layer).
 
 Do I need to raise a ticket in the issue tracker?
 

I would like to run this by the wms-dev mailing list for comments first,
and will report back.

You can always write a MapScript WxS wrapper (see
http://www.mapserver.org/ogc/mapscript.html) to create custom
Capabilities XML as per your requirements, as an interim workaround.

Cheers

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


RE: [mapserver-users] MapServer SOS eventtime problems

2009-06-04 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Fong,Phil [Burlington]
 Sent: Wednesday, 03 June 2009 18:54
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] MapServer SOS eventtime problems
 
 
 Hi, 
 
 I'm having some problems in getting an SOS GetObservation 
 request to return back data when an eventtime filter is 
 specified. No data is being returned when I know there should 
 be something. The request is working (i.e., I'm getting data 
 back) when there is no eventtime parameter and also when 
 there is a filter (using result=Filter   /Filter) on a 
 non-date field.
 
 The data are stored in a SQL Server 2005 database and the 
 connection is done using a OGRVRTDataSource and ODBC. 
 I'm using MapServer 5.2.1 and gdal 1.6 (I believe). 
 
 Does anyone know of any issues with this setup? 
 

Phil: eventTime support should be working.  Can you email me offlist so
we can work through your setup (mapfile, request, etc.).

Thanks

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


RE: [mapserver-users] Does Mapserver WMS support 'Dimension' ?

2009-06-04 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Peter Willis
 Sent: Thursday, 04 June 2009 16:25
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Does Mapserver WMS support 'Dimension' ?
 
 Hello,
 
 Does mapserver support the WFS specification 'Dimension'
 parameters?
 

You mean WMS, I imagine?

The only Dimension support in WMS is for Time.

 If so what parameters do we need in the MAP file?
 

See the WMS Time HowTo http://www.mapserver.org/ogc/wms_time.html for
more info on configuration.

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


RE: [mapserver-users] sample WMS raster map file and sample data

2009-06-01 Thread Kralidis,Tom [Ontario]

Check out the MapServer OGC Web Services Workshop at 
http://ms-ogc-workshop.maptools.org/).  There are mapfile examples for WMS with 
vector and raster data.

..Tom



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org on behalf of Chris Weed
Sent: Mon 01-Jun-09 17:44
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] sample WMS raster map file and sample data
 
Hi,
I am trying to set up a WMS mapserver, but I can't find a sample image
and map file to test with.
Any help would be greatly appreciated.
Thanks,
Chris
___
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] Getcapabilities mime-type

2009-05-21 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Carmen Delia Hernández Pérez
 Sent: Thursday, 21 May 2009 06:52
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Getcapabilities mime-type
 
 Hello!
 
  
 
I have installed Mapserver v. 5.2.1 and it´s working. I 
 want my web browser understands directly the file returned by 
 a request Getcapabilities, that is a xml file really, and 
 don´t query me if I want to downloading file . I've read 
 about mime-types configuration in the httpd.conf file of 
 Apache server, but I don`t know what I must write exactly.
 

See 
http://www.mapserver.org/faq.html#when-i-do-a-getcapabilities-why-does-my-browser-want-to-download-mapserv-exe-mapserv
 

You _could_ write a MapScript WxS wrapper to change the MIME type when 
GetCapabilities is called, but note that you would be breaking OGC WMS support.

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


RE: [mapserver-users] Getcapabilities mime-type

2009-05-21 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: Carmen Delia Hernández Pérez [mailto:cdhernan...@tenerife.es] 
 Sent: Thursday, 21 May 2009 07:59
 To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] Getcapabilities mime-type
 
 Thank you, but then for example  these WMS services that I 
 write don´t follow the OGC WMS ? When I do the request 
 GetCapabilites to these services My web browser show me the 
 answer directly.
 
 
 http://www.sigmayores.csic.es/ArcGIS/services/WMS/MapServer/WM
 SServer?REQUEST=GetCapabilitiesSERVICE=WMS
 
 http://www.conselldemallorca.net/ide/wms_xarxa_transport/MapSe
 rver/WMSServer?REQUEST=GetCapabilitiesSERVICE=WMS
 
 http://ide.jccm.es/cgi-bin/mapserv?map=/usr/local/webmapping/i
declm/mapserver/ideclm.mapversion=1.0.0REQUEST=GETCAPABILITIES
 

Well, if it's returning a 1.1.0 or 1.1.1 WMS Capabilities document, the spec 
says that application/vnd.ogc.wms_xml must be returned as the MIME type.

 
 -Mensaje original-
 De: Kralidis,Tom [Ontario] [mailto:tom.krali...@ec.gc.ca] 
 Enviado el: jueves, 21 de mayo de 2009 12:41
 Para: Carmen Delia Hernández Pérez; mapserver-users@lists.osgeo.org
 Asunto: RE: [mapserver-users] Getcapabilities mime-type
 
  
 
  -Original Message-
  From: mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf 
 Of Carmen 
  Delia Hernández Pérez
  Sent: Thursday, 21 May 2009 06:52
  To: mapserver-users@lists.osgeo.org
  Subject: [mapserver-users] Getcapabilities mime-type
  
  Hello!
  
   
  
 I have installed Mapserver v. 5.2.1 and it´s working. I 
 want my web 
  browser understands directly the file returned by a request 
  Getcapabilities, that is a xml file really, and don´t query me if I 
  want to downloading file . I've read about mime-types 
 configuration in 
  the httpd.conf file of Apache server, but I don`t know what I must 
  write exactly.
  
 
 See 
 http://www.mapserver.org/faq.html#when-i-do-a-getcapabilities-
 why-does-my-browser-want-to-download-mapserv-exe-mapserv 
 
 You _could_ write a MapScript WxS wrapper to change the MIME 
 type when GetCapabilities is called, but note that you would 
 be breaking OGC WMS support.
 
 ..Tom
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] PERL MapScript

2009-05-19 Thread Kralidis,Tom [Ontario]

What does your code look like?  The following works for me:

#!/usr/bin/perl

use strict;
use warnings;
use mapscript;

my $map = new mapscript::mapObj('test.map');
$map-saveMapContext('out2.xml');

..Tom



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org on behalf of Christopher Condit
Sent: Tue 19-May-09 17:23
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PERL MapScript
 
Hi-
I'm trying to get up and running with PERL MapScript on Linux (CentOS 5,
MapServer 5.4 codebase). It seems to compile and install correctly but
when I attempt to open a MapFile I get the following error:

Can't locate auto/mapscript/mapObj/get.al in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8 .)

Has anyone else encountered this problem or know a solution?

Thanks,
-Chris

___
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] PERL MapScript

2009-05-19 Thread Kralidis,Tom [Ontario]

I get the same error when running mapObj-get(name).  I don't see any get() 
method in mapObj.  From my example, you should see a out2.xml file written to 
disk.

..Tom



-Original Message-
From: Christopher Condit [mailto:con...@sdsc.edu]
Sent: Tue 19-May-09 19:45
To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] PERL MapScript
 
Hi Tom-
 What does your code look like?  The following works for me:
#!/usr/bin/perl
use mapscript;
use strict;

my $map = new mapscript::mapObj(test.map) or die no map $!;
my $name = $map-get(name);
print $name;

 #!/usr/bin/perl
 
 use strict;
 use warnings;
 use mapscript;
 
 my $map = new mapscript::mapObj('test.map');
 $map-saveMapContext('out2.xml');

I also tried running your code. It doesn't generate an error but no
test.xml file is created...

Any thoughts?
Thanks,
-Chris



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


RE: [mapserver-users] mapserver SOS blockSeparator

2009-05-12 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Massimo Ferraguto
 Sent: Tuesday, 12 May 2009 03:17
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] mapserver SOS blockSeparator
 
 Hello,
 
 If I send a SOS GetObservation request to mapserver using 
 ResultModel=om:Observation then the response contains the 
 following strange
 thing:
 
 swe:encoding
 swe:TextBlock tokenSeparator=, blockSeparator=,@@
 decimalSeparator=./
 /swe:encoding
 
 the problem is blockSeparator=,@@
 it should be blockSeparator=@@, without the comma ','
 
 My mapfile contains the following:
 sos_encoding_blockSeparator @@
 
 Has this problem been encountered by somebody else?
 
 Should a bug be filed in the bug tracker?
 

Yes, please file a ticket and assign to me (tomkralidis).

 I use mapserver 5.2.2
 
 MassimoF
 
 ___
 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] DescribeFeatureType

2009-04-28 Thread Kralidis,Tom [Ontario]

FYI there is an open ticket on this at
http://trac.osgeo.org/mapserver/ticket/462

..Tom
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 bart...@osgis.nl
 Sent: Tuesday, 28 April 2009 09:37
 To: Iratxe Lejarreta
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] DescribeFeatureType
 
 Hi,
 
 sorry but Mapserver does not support this (yet).
 
 Best regards,
 Bart
 
  Hi,
 
  I have MapServer with Oracle Spatial and when I run the request 
  DescribeFeatureType, the result of types for all fiels is 
 string.
 
  http://localhost/cgi-
  
 bin/mywfs?SERVICE=WFSVERSION=1.0.0REQUEST=DescribeFeatureTypeTYPENA
  ME=layer_name
 
  Is it possible to know the type of different fields of the layer as 
  described in my database?
 
  Thanks  in advance!
 
  --
  Iratxe Lejarreta
  www.axios.es
  ___
  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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] WMS and map script

2009-03-04 Thread Kralidis,Tom [Ontario]
 
 I am getting junk extent values after calling 
 layerObj.getExtent() on a WMS layer.
 
  
 
 This is the WMS server url
 
 http://www2.demis.nl/wms/wms.asp
 
  
 
 I have used a layer called Countries from that server and 
 this is the capability xml for that layer
 
 Layer 
 queryable=1 opaque=0
 
   
   NameCountries/Name
 
   
   TitleCountries/Title
 
   
   BoundingBox SRS=EPSG:4326 minx=-180 miny=-90 
 maxx=180 maxy=83.6333923339844/
 
 /Layer
 
  
 
 This is the entry in map file
 
   LAYER
 
 CONNECTION http://www2.demis.nl/wms/wms.asp?wms=SAMPLE;
 
 CONNECTIONTYPE WMS
 
 METADATA
 
   wms_srsEPSG:4326
 
   wms_name  Countries
 
   wms_formatimage/png
 
   wms_server_version   1.1.0
 
 END
 
 NAME Countries
 
 PROJECTION
 
   init=epsg:4326
 
 END
 
 STATUS ON
 
 TYPE RASTER
 
 UNITS DD
 
   END
 
  
 
 I get extents values (minx, miny, maxx and maxy) as 
 -4.8366978272229995E-26 (which is not same as above in the 
 capabilities xml)
 
  
 
 Appreciate any help.
 

MapServer won't do a GetCapabiilties to get the extent for remote WMS
layers.  If you set LAYER.EXTENT accordingly, layer.getExtent() will
work accordingly.

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


RE: [mapserver-users] WMS and map script

2009-03-04 Thread Kralidis,Tom [Ontario]

FYI there's a ticket now opened on this item at 
http://trac.osgeo.org/mapserver/ticket/2914


-Original Message-
From: Murty Maganti [mailto:mmaga...@oriongis.com]
Sent: Wed 04-Mar-09 14:55
To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] WMS and map script
 
Tom,

Also, I don't see EXTENT attribute at layer level, from below reference
http://www.mapserver.org/mapfile/layer.html

There is layerObj.setExtent() but the extents are not saved to map file.


Thanks
Murty
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Murty
Maganti
Sent: Wednesday, March 04, 2009 2:13 PM
To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] WMS and map script

That won't help me. 
I add the wms layer dynamically to map using C# mapscript (and then save
the map object to map file).

I can get the extents from capabilities but layer.extent is readonly and
can't be set.

Thanks
Murty


-Original Message-
From: Kralidis,Tom [Ontario] [mailto:tom.krali...@ec.gc.ca] 
Sent: Wednesday, March 04, 2009 2:02 PM
To: Murty Maganti; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] WMS and map script

 
 I am getting junk extent values after calling 
 layerObj.getExtent() on a WMS layer.
 
  
 
 This is the WMS server url
 
 http://www2.demis.nl/wms/wms.asp
 
  
 
 I have used a layer called Countries from that server and 
 this is the capability xml for that layer
 
 Layer 
 queryable=1 opaque=0
 
   
   NameCountries/Name
 
   
   TitleCountries/Title
 
   
   BoundingBox SRS=EPSG:4326 minx=-180 miny=-90 
 maxx=180 maxy=83.6333923339844/
 
 /Layer
 
  
 
 This is the entry in map file
 
   LAYER
 
 CONNECTION http://www2.demis.nl/wms/wms.asp?wms=SAMPLE;
 
 CONNECTIONTYPE WMS
 
 METADATA
 
   wms_srsEPSG:4326
 
   wms_name  Countries
 
   wms_formatimage/png
 
   wms_server_version   1.1.0
 
 END
 
 NAME Countries
 
 PROJECTION
 
   init=epsg:4326
 
 END
 
 STATUS ON
 
 TYPE RASTER
 
 UNITS DD
 
   END
 
  
 
 I get extents values (minx, miny, maxx and maxy) as 
 -4.8366978272229995E-26 (which is not same as above in the 
 capabilities xml)
 
  
 
 Appreciate any help.
 

MapServer won't do a GetCapabiilties to get the extent for remote WMS
layers.  If you set LAYER.EXTENT accordingly, layer.getExtent() will
work accordingly.

..Tom
___
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] MapServer problem

2009-02-23 Thread Kralidis,Tom [Ontario]

 Hi Mapserver users,
 
 
 I am trying to display few points on the browser using 
 Mapserver. I have created MySQL database and created 
 connection with mapserver by the help of .ovf xml file.
 
 
 -
 
 
 OGRVRTDataSource
 
 OGRVRTLayer name=nsdb 
 
  
 SrcDataSourceMYSQL:dispro,user=uu,password=,host=192
 .170.1.100,port=3306,tables=STATION/SrcDataSource 
 
 SrcSQLSELECT absnum, stlat, stlon, stflag FROM 
 STATION/SrcSQL 
 
 GeometryTypewkbPoint/GeometryType
 
 GeometryField encoding=PointFromColumns x=stlon 
 y=stlat/ 
 
 /OGRVRTLayer
 
 /OGRVRTDataSource
 
 --
 
 
 
 
 When I run the command :
 ogrinfo  /mnt/fritjof/wms/nsdb/con.ovf 
 
 ogrinfo returns :
 
 
 
 ERROR 4: Update access not supported for VRT datasources.
 
 Had to open data source read-only.
 
 INFO: Open of `/mnt/fritjof/wms/nsdb/con.ovf'
 
   using driver `VRT' successful.
 
 1: nsdb (Point)
 ..
 ..
 .
 
 Version details of mapserver and GDAL as follows: 
 
 $ ./mapserv -v
 MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
 OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ 
 SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
 SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
 
 
 SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR 
 INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
 
 
 $ gdal-config --version
 1.5.3
 - Show quoted text -
 
 I have a map file con.map as follows:
 -
 MAP
   NAME MYSQL-TEST
   EXTENT  -180 -90 180 90  
   UNITS dd
   CONFIG CPL_DEBUG ON
 
   PROJECTION
   init=epsg:4326
   END
 
   SHAPEPATH /mnt/fritjof/wms/nsdb
 
   LAYER
 DEBUG ON
 METADATA
   wms_title nsdb
   wms_srs EPSG:4326
   wms_extent -57.768 64.1842 -51.6283 64.3645
 END
 NAME stations 
 STATUS DEFAULT 
 TYPE POINT
 CONNECTIONTYPE OGR
 CONNECTION con.ovf
 DATA nsdb
 PROJECTION
   init=epsg:4326
 END
 EXTENT -57.768 64.1842 -51.6283 64.3645
 CLASS
   NAME MyClass
   STYLE
 SYMBOL 1
 SIZE 15
 COLOR 255 0 0
   END
 END
  END
 
 END

You're pointing to a SYMBOL that doesn't exist.  Either comment that
out, or make sure your mapfile references a SYMBOLSET file.

..Tom


 
 
 And I have another html form from where I am trying to 
 display in browser the Latitude and longitude points which 
 are stored in database.  
 
 
 
 
 
 MAPFILE
 REQUEST   
 SERVICE
 VERSION   
 LAYERS  
 STYLES  
 SRS  
 BBOX  
 WIDTH
 HEIGHT  
 FORMAT
 
 
 
 
 
  
 
 
 
 =
 
 But Mapserver is displaying nothing and does not giving any 
 error. Just it's showing a blank map. Could you tell me Why??
 What's the problem may be happen??
 Thanking you.
 Regards,
 Phalguni 
 
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] SOS response XML validity

2009-02-16 Thread Kralidis,Tom [Ontario]

 I have created a mapfile to generate a SOS response 
 containing data from a database. I have understood that 
 mapserver supports only flat reporting of the database 
 columns to the xml response.
 
 My problem is that I wonder whether this kind of flat 
 response is valid or not. If I try to validate the response 
 against the xml schema I get errors. 
 
 How can I solve this problem of xml validity against the schema?
 
 Here are the errors:
 
 *** Error start ***
 Element observedProperty is not allowed under element 
 om:Observation.
 Reason: The following elements are expected at this 
 location (see below)
 om:observedProperty
 om:resultQuality
 Annotations of type 'om:ObservationType' (see below)
 Base type for Observations.
 Observation is an act (event), whose result is an estimate 
 of the value of a property of the feature of interest.
 The observed property may be any property associated with the 
 type of the feature of interest.
 The following properties are inherited from AbstractFeatureType:
 Error location: om:ObservationCollection / om:member / 
 om:Observation / observedProperty
 Details
 cvc-model-group: Element observedProperty 
 unexpected by type 'om:ObservationType' of element om:Observation.
 cvc-elt.5.2.1: The element om:Observation is not 
 valid with respect to the actual type definition 'om:ObservationType'.
 *** Error end ***
 
 after modifying observedProperty == om:observedProperty I get another
 error:
 
 *** Error start ***
 Text 'temperature' is not allowed for element 
 om:observedProperty. The element declaration's content type 
 is 'element-only'.
 Error location: om:ObservationCollection / om:member / 
 om:Observation / om:observedProperty
 Details
 cvc-complex-type.2.3: Text 'temperature' is not 
 allowed for element om:observedProperty. The element 
 declaration's content type is 'element-only'.
 cvc-elt.5.2.1: The element om:observedProperty is 
 not valid with
 respect to the actual type definition 
 'swe:PhenomenonPropertyType'.
 *** Error end ***
 
 Here is an example response that I get from my server:
 
 ?xml version=1.0 encoding=ISO-8859-1? 
 om:ObservationCollection xmlns:gml=http://www.opengis.net/gml;
 xmlns:ows=http://www.opengis.net/ows/1.1;
 xmlns:swe=http://www.opengis.net/swe/1.0.1;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:sos=http://www.opengis.net/sos/1.0;
 xmlns:om=http://www.opengis.net/om/1.0; gml:id=htb_offering
 xsi:schemaLocation=http://www.opengis.net/om/1.0
 http://schemas.opengis.net/om/1.0.0/om.xsd;
   gml:description xmlns:gml=http://www.opengis.net/gml;htb
 data/gml:description
   gml:name xmlns:gml=http://www.opengis.net/gml;Helsinki 
 test bed data/gml:name
   om:member
 om:Observation
   om:samplingTime
 gml:TimeInstant
   gml:timePosition20081127042000/gml:timePosition
 /gml:TimeInstant
   /om:samplingTime
   om:procedure xlink:href=urn:ogc:def:procedure:temperature/
   om:observedPropertytemperature/om:observedProperty
   om:result
 gml:featureMember xmlns:gml=http://www.opengis.net/gml;
   gml:temperature
 gml:boundedBy
   gml:Envelope
 gml:lowerCorner25.399600 60.316000/gml:lowerCorner
 gml:upperCorner25.399600 60.316000/gml:upperCorner
   /gml:Envelope
 /gml:boundedBy
 msGeometry
   gml:Point
 gml:pos25.399600 60.316000/gml:pos
   /gml:Point
 /msGeometry
 locationid37/locationid
 insertionTime20081127042054/insertionTime
 latitude60.316/latitude
 longitude25.3996/longitude
 leveltypealtitude/leveltype
 levelvalue17/levelvalue
 levelunitm/levelunit
 version1/version
 parameterNametemperature/parameterName
 value-1.1/value
 unitC/unit
 aggregationNameinstant/aggregationName
 aggregationValue0/aggregationValue
 aggregationUnitn/a/aggregationUnit
 formn/a/form
   /gml:temperature
 /gml:featureMember
   /om:result
 /om:Observation
   /om:member
 /om:ObservationCollection
 

Note that we're working on validating the SOS GetObservation output (see
http://trac.osgeo.org/mapserver/ticket/2646), and what is in svn trunk
is very close to a valid XML document.  We're close to having this for
5.4.

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


RE: [mapserver-users] line shapefiles

2009-02-09 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Donald F Caldwell
 Sent: Monday, 09 February 2009 10:42
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] line shapefiles
 
 
 i am having trouble showing line data on mapserver
 
 ##
 #
 # i create an 'arc' shapefile with one edge
 ##
 #
 
 shpcreate nysf arc
 shpadd nysf -73.905235290527344 40.707859039306641 + 
 -122.380088806152344 37.795818328857422

Looks like you're adding points here for two records

 dbfcreate nysf -s ecity 32 -s wcity 32
 dbfadd nysf New York San Francisco
 

This adds one record to the dbf, not two.

 # result - no line
 # my question is - do these tools support lines?
 # if so, how do i make them visible?

$ shpcreate foo arc
$ shpadd foo -75 45 -76 46
$ dbfcreate foo
$ dfcreate foo -s id 32 -s desc 32
$ dbfadd foo line 1 mydesc
$ shpadd foo -80 33 -81 34
$ dbfadd foo line 2 mydesc2
$ ogrinfo -al foo.shp
INFO: Open of `foo.shp'
  using driver `ESRI Shapefile' successful.

Layer name: foo
Geometry: Line String
Feature Count: 2
Extent: (-81.00, 33.00) - (-75.00, 46.00)
Layer SRS WKT:
(unknown)
id: String (32.0)
desc: String (32.0)
OGRFeature(foo):0
  id (String) = line 1
  desc (String) = mydesc
  LINESTRING (-75 45,-76 46)

OGRFeature(foo):1
  id (String) = line 2
  desc (String) = mydesc2
  LINESTRING (-80 33,-81 34)

You might want to check out the docs at
http://shapelib.maptools.org/shapelib-tools.html 

Hope this helps.

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


RE: [mapserver-users] Problems with MapScript and setProjection

2009-02-08 Thread Kralidis,Tom [Ontario]

I've added a small example at:

http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject

Hope this helps.

..Tom



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org on behalf of Tim Wood
Sent: Sat 07-Feb-09 22:55
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Problems with MapScript and setProjection
 
I've been round and round with setProjection in MapScript and 
setProjection today. I either get the infamous blank image  or the image 
returns in the same proportions as the original lat/long data. Proj 
seems to be (at least partially) working because if I forget something 
like +ellps=[blah blah], it throws an error.

I'd like to look at a simple php mapscript example of creating a map, 
adding a layer, adding something to that layer (e.g. my a simple query 
against a lat/long shapefile) and then project that another way (tmerc, 
lcc, whatever). But, I have yet to find one. Can someone share a working 
example or know of one on the web?

Tim Wood

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


RE: [mapserver-users] Multilingual map files

2009-02-06 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: Peter Hopfgartner [mailto:peter.hopfgart...@r3-gis.com] 
 Sent: Friday, 06 February 2009 05:29
 To: Kralidis,Tom [Ontario]
 Cc: mapserver-users@lists.osgeo.org; Paolo Viskanic
 Subject: Re: [mapserver-users] Multilingual map files
 
 Kralidis,Tom [Ontario] wrote:
   
 

  -Original Message-
  From: mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf 
 Of Peter 
  Hopfgartner
  Sent: Wednesday, 04 February 2009 08:47
  To: mapserver-users@lists.osgeo.org
  Cc: Paolo Viskanic
  Subject: [mapserver-users] Multilingual map files
 
  Dear list members
 
  I would like ask how map files for multilingual applications are 
  handled by mapserver users.
 
  Multilingual information may impact the map in various ways. 
  As by now, those come to mind:
 
  * Fix strings in the map file, (NAME, DESCRIPTION etc)
  * Database borne data, changing column for different 
 languages as for 
  LABELITEM
  * Queries changing with language, so that DATA/FILTER 
 statements must 
  be adapted to the current language (e.g.
  WHERE lang_id='en').
 
  What we are currently doing is to write the mapfiles like:
 
  CLASS
  NAME IT:Progetti linee|DE:Projekte Linien
  SYMBOL 'circle'
  SIZE 3
  COLOR 0 0 255
  END
 
  METADATA
  DESCRIPTION IT:Progetti|DE:Projekte
  END
 
  LABELITEM IT:gemi|DE:gemd
 
  and modify the labels through Mapscript before rendering the map. 
  This works if the map file is processed by Mapscript, whereas it 
  would not work for CGI and W*S services. We would need a 
 map file for 
  each language for those services.
 
  
 
  For WxS, the specs themselves don't handle this, but it 
 would be nice 
  to handle multilingual metadata in one document, i.e.:
 
  Name xml:lang=en-CAroad/Name
  Name xml:lang=fr-CArue/Name
 

 I remember Arnulf Christel mentioning some work on 
 multilingual WxS by OGC. Do you know anything about this?

I wonder if Arnulf can refresh our memories?

  In our environment, we've created one mapfile / language.  
 One thing 
  you could do is use MapScript WxS to intercept an incoming request 
  (say with an extended lang parameter), then, once you have 
 the lang, 
  set the values in the mapfile accordingly.
 
  ..Tom
 
 

 Thanks,
 
 Peter
  How do you handle i18n in MapServer?
 
  
 

 
 
 -- 
  
 Dott. Peter Hopfgartner
  
 R3 GIS Srl - GmbH
 Via Johann Kravogl-Str. 2
 I-39012 Meran/Merano (BZ)
 Email: peter.hopfgart...@r3-gis.com
 Tel. : +39 0473 494949
 Fax  : +39 0473 069902
 www  : http://www.r3-gis.com
 
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Multilingual map files

2009-02-04 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Peter Hopfgartner
 Sent: Wednesday, 04 February 2009 08:47
 To: mapserver-users@lists.osgeo.org
 Cc: Paolo Viskanic
 Subject: [mapserver-users] Multilingual map files
 
 Dear list members
 
 I would like ask how map files for multilingual applications 
 are handled by mapserver users.
 
 Multilingual information may impact the map in various ways. 
 As by now, those come to mind:
 
 * Fix strings in the map file, (NAME, DESCRIPTION etc)
 * Database borne data, changing column for different 
 languages as for LABELITEM
 * Queries changing with language, so that DATA/FILTER 
 statements must be adapted to the current language (e.g. 
 WHERE lang_id='en').
 
 What we are currently doing is to write the mapfiles like:
 
 CLASS
 NAME IT:Progetti linee|DE:Projekte Linien
 SYMBOL 'circle'
 SIZE 3
 COLOR 0 0 255
 END
 
 METADATA
 DESCRIPTION IT:Progetti|DE:Projekte
 END
 
 LABELITEM IT:gemi|DE:gemd
 
 and modify the labels through Mapscript before rendering the 
 map. This works if the map file is processed by Mapscript, 
 whereas it would not work for CGI and W*S services. We would 
 need a map file for each language for those services.
 

For WxS, the specs themselves don't handle this, but it would be nice to
handle multilingual metadata in one document, i.e.:

Name xml:lang=en-CAroad/Name
Name xml:lang=fr-CArue/Name

In our environment, we've created one mapfile / language.  One thing you
could do is use MapScript WxS to intercept an incoming request (say with
an extended lang parameter), then, once you have the lang, set the
values in the mapfile accordingly.

..Tom


 How do you handle i18n in MapServer?
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] how to throw a custom ExceptionReport

2008-12-10 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Charlton Galvarino
 Sent: Wednesday, 10 December 2008 11:36
 To: Mapserver Users (mapserver-users@lists.osgeo.org)
 Subject: [mapserver-users] how to throw a custom ExceptionReport
 
 Hi, all.  I intercept WMS calls on a regular basis using Perl 
 CGI and a final print redirect('mapserv?...'); to actually 
 send the WMS request along.
 
 I have the case where I'd like to throw a custom 
 ExceptionReport, but I haven't had much luck so far in 
 getting mapserver not to misunderstand it and throw its own 
 WMS ServiceException.
 
 What I'm trying to do is to communicate to the user, Hey, 
 you've asked for a file I don't have.
 
 So what I have is an incoming WMS request.  I snag the 
 request, try to find a matching file.  If I find it, great, I 
 send the image generation request along and pass it back 
 thru.  If it doesn't, I'd like to spit out the XML message.
 
 I copied the structure of a mapserver msg and tried making it my own.
 
 print $query-header('text/xml');
 print EOH;
 ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? 
 !DOCTYPE ServiceExceptionReport SYSTEM 
 http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd;
 ServiceExceptionReport version=1.1.1 ServiceException 
 Sorry, Charlie, you're out of luck.
 /ServiceException
 /ServiceExceptionReport
 EOH
 exit;
 
 But I think I'm confusing myself of how my error messages 
 interface w/ mapserver's.
 

You can use Perl mapscript WxS to intercept and return a custom
exception.  Check out
http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and
examples.

Hope this helps.

..Tom

 Thanks for any advice.
 
 
 
 
 Charlton Galvarino
 1 (803) 233-6205 : voice
 1 (803) 223-9579 :   fax
 [EMAIL PROTECTED]
 
 P.O. Box 50960
 Columbia, SC 29250
 
 ___
 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] how to throw a custom ExceptionReport

2008-12-10 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: Charlton Galvarino [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, 10 December 2008 14:52
 To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] how to throw a custom ExceptionReport
 
 Tom, I've thought about this long and hard, and I can't wrap 
 my head around it.
 
  You can use Perl mapscript WxS to intercept and return a custom 
  exception.  Check out 
  http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and 
  examples.
 
 It looks like those examples are doing what I'm doing in the 
 end . . . dumping out XML.  But perhaps what I need 
 accomplished is a bit trickier?  I don't think I explained in 
 enough detail what I'm doing.
 
 I have a .map that contains something like:
 
 # demo.map
   LAYER
 NAME wind_wave_period_and_direction
 PROJECTION
   init=epsg:4269
 END
 TYPE RASTER
 STATUS OFF
 CONNECTION http://localhost/viz;
 CONNECTIONTYPE WMS
 METADATA
   ows_title   wind_wave_period_and_direction
   wms_extent  -100 5 -60 50
   wms_srs EPSG:4269
   wms_nameww3dir_info
   wms_server_version  1.1.1
   wms_format  image/png
   wms_connectiontimeout 90
 END
 
 So what I'm really doing is a cascade WMS request because I'm 
 asking that .amp for the wind_wave_period_and_direction 
 layer.  http://localhost/mapserv?map=demo.map.
 
 The thing that I need to throw the error is the viz CGI in 
 the CONNECTION string above.
 
 So perhaps my question boils down to . . .
 
 What could viz spit out so that this WMS request would know 
 it sees an error via something like 
 EXCEPTIONS=application/vnd.ogc.se_inimage?  What I'm getting 
 now, instead, is the MapServer error saying that the WMS 
 returned an XML exception.  Well, yes, it did -- but I want 
 to SEE it!  :)
 

Looks like Charlton wants to show the ExceptionText from a remote WMS's
service exception.

I'm not sure you can do this as it stands right now without some custom
work.  Options/comments:

- you'd have to ensure the remote WMS support application/vnd.ogc.se_xml
- can you catch an error when doing a remote WMS request from the
mapscript object model?

Others may have better ideas.

Having said this, I think this would be a valuable enhancement to the
codebase, i.e. allowing to show cascaded ExceptionReport XML.  The
ExceptionReport XML model allows for multiplicitity of Exception
elements, so we could stack these to show the generic MapServer error,
as well as the cascaded, say, WMS Exception/ExceptionText.

..Tom


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


RE: [mapserver-users] help with converting Geoserver site to Mapserver

2008-12-09 Thread Kralidis,Tom [Ontario]

You might want to check the WMS Server howto doc, as well as the MapServer OGC 
Web Services workshop (http://ms-ogc-workshop.maptools.org/), which has 
examples of standing up WMS/WFS/WCS/SOS, etc.

From the client side, you would have to change the base URL of the new WMS 
(assuming the layer names would be the same).

..Tom


-Original Message-
From: [EMAIL PROTECTED] on behalf of Justin Bailey
Sent: Tue 09-Dec-08 12:03
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] help with converting Geoserver site to Mapserver
 
Hi list,

I hope I can get some assistance on a matter of some urgency.  Our organization 
has been putting the finishing touches on an application that is supposed to be 
released by the end of the year.  Unexpectedly, it did not pass license review, 
because it used Geoserver, which is GPL-licensed.  Since Mapserver has a more 
permissive license, and is also WMS-compatible, the decision was made to switch 
to Mapserver.  It now falls to me, as the junior developer, to do a 
last-minute switchover.  Unfortunately I come to this task knowing nothing 
about either Geoserver *or* Mapserver.

After some difficulty I succeeded in getting Mapserver running on our existing 
Tomcat server, but I have not been able to figure out how to convert the 
Geoserver data.  I have made some encouraging steps on the Mapserver tutorial 
but I still know nothing about Geoserver, and I am running out of time.  I need 
to solve this problem by the end of this week if possible, or by the end of 
next week at the absolute latest.


So, I have two questions:

1) Is there a utility I could download that can convert a Geoserver 
installation to Mapserver?

-- or --

2) I *think* (crossing fingers) that the only thing I need to do, on the 
application side, is to convert the following Javascript call...

var wms = new OpenLayers.Layer.WMS(World, geoserver/wms?service=wms, 
{layers: 'countries', bgcolor: 0x55});

...into its equivalent Mapserver call.  There are four countries.* files in the 
geoserver repository:

countries.dbf
countries.prj
countries.shp
countries.shx

How do I create countries.map to serve these files, and what mapserv.exe call 
should I use?


Many thanks for any and all assistance.

Justin


  

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


RE: [mapserver-users] Difference in appearance between mode=map andWMS

2008-12-08 Thread Kralidis,Tom [Ontario]

Roger: you can use MapScript WxS 
http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript as an approach to run a 
WMS request via mapscript.  Maybe that can work for you?

..Tom



-Original Message-
From: [EMAIL PROTECTED] on behalf of Roger André
Sent: Mon 08-Dec-08 16:21
To: Julien-Samuel Lacroix
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Difference in appearance between mode=map 
andWMS
 
Hi Julien,

That makes sense, but it doesn't work.  I modified my mapfile so that I now
generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels.  If I
georeference that image using the extents, I still get incorrect placement.
Maybe if I choose an output projection which always has square pixels, like
spherical mercator (?) this will work.  I'll give it a shot.

Is there any way to give a WMS request via mapscript and NOT go through CGI?

Roger
--



On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix 
[EMAIL PROTECTED] wrote:

 Hi,

 I guess would be that the WMS use non-square pixels. So if your BBOX x/y
  (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square in
 your case) the map will appear stretched. MapServer will actually stretch
 the map to fit the extent in the WIDTH/HEIGHT.

 The mode=map don't do that. If your extent doesn't have the same ratio, it
 adds some degree in your extent to fit the size.

 Make sure your BBOX and EXTENT are a square in your requests and retry


 Julien

 Roger André wrote:

 Hi All,

 I think I'm having an instance of cranial flatulation, but maybe not.
  Hopefully you can set me straight.

 I need to create an image with Mapserver using mapscript that I can then
 georeference manually and use in another application.  It needs to look
 exactly the same as the image I can already generate via a WMS call that
 looks like this:

 http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map
 SERVICE=WMS
 version=%221.1.1%22
 REQUEST=GetMap
 LAYERS=imagery
 STYLES=BBOX=-125,39,-108,54
 WIDTH=600
 HEIGHT=600
 FORMAT=png
 SRS=epsg:4326

 I'm testing my mapscript parameters using a simple mode=map call to
 Mapserver, and the results I'm getting so far don't match the appearance of
 the WMS output at all.  My mapfile has the following extent and projection
 info in it:

  PROJECTION
init=epsg:4326
  END

  EXTENT -125.0  39.0 -108.0  54.0
  SIZE 600 600

 In addition to the mapfile projection specification, I am also specifying
 the same projection info in each of my LAYERS as well.

 Is it possible to do what I'm trying to accomplish here?

 Thanks,

 Roger
 --


 

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


 --
 Julien-Samuel Lacroix
 Mapgears
 http://www.mapgears.com/


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


RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]

2008-12-05 Thread Kralidis,Tom [Ontario]

I asked Justyna to send me a testcase.  I was able to reproduce the issue.

When I run the mapfile through shp2img, I get a projection not found error.  
When I check MAP.PROJECTION, the value is init=EPSG:26915.

The EPSG should be in lower case (init=epsg:26915).  When this change is 
made, shp2img, and the Perl mapscript, runs fine

If you are running this off the command line, you have to set 
MAP.WEB.METADATA.ows_onlineresource (MapServer gets the default value from http 
environment variables, if not specified).

Can you try this and see if it works?

..Tom


-Original Message-
From: Justyna Lubkowski [mailto:[EMAIL PROTECTED]
Sent: Thu 04-Dec-08 19:53
To: Kralidis,Tom [Ontario]; Steve Lime; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]
 
Hi,

Putting in the full path to the mapfile makes no difference the same
errors occur.  Are the errors for setParameter a red herring?

Interestingly I've tried handing it both a valid map filename and a
filename that doesn't exist.  When the mapfile doesn't exist it reports
Mapfile error: No such file or directory.  When the map file does
exist it doesn't report on the nature of the problem, but clearly it is
finding the file otherwise it would report No such file or directory.
See below.  

Is anyone using perl mapscript to do WxS services on mapserver 5.2?

==
Using no.map, which doesn't exist
==
$ ./minimal_wms.pl
Cannot setParameter SERVICE: 
Cannot setParameter VERSION: 
Cannot setParameter REQUEST: 
Mapfile error: No such file or directory
Can't call method OWSDispatch without a package or object reference at
./minimal_wms.pl line 13.

==
Using minimal_wms.map 
==
./minimal_wms.pl
Cannot setParameter SERVICE: 
Cannot setParameter VERSION: 
Cannot setParameter REQUEST: 
Mapfile error: 
Can't call method OWSDispatch without a package or object reference at
./minimal_wms.pl line 13.



#!/usr/bin/perl

use mapscript;

$req = new mapscript::OWSRequest( ) or warn Cannot create request:
$!\n;
$req-setParameter( SERVICE, WMS ) or warn Cannot setParameter
SERVICE: $!\n;
$req-setParameter( VERSION, 1.1.0 ) or warn Cannot setParameter
VERSION: $!\n;
$req-setParameter( REQUEST, GetCapabilities ) or warn Cannot
setParameter REQUEST: $!\n;

#$map = new mapscript::mapObj( no.map ) or warn Mapfile error: $!\n;
$map = new mapscript::mapObj( minimal_wms.map ) or warn Mapfile
error: $!\n;

$map-OWSDispatch( $req ); 


-Original Message-
From: Kralidis,Tom [Ontario] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 4 December 2008 11:41 PM
To: Justyna Lubkowski; Steve Lime; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Justyna 
 Lubkowski
 Sent: Thursday, 04 December 2008 00:33
 To: Steve Lime; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]
 
 Hi Steve,
 
 Thanks for your reply and the tar ball with the shapefiles and map 
 file.
 
 I've tried your map file with the following test script.
 
 #!/usr/bin/perl
 
 use mapscript;
 
 $req = new mapscript::OWSRequest( );
 $req-setParameter( SERVICE, WMS ); $req-setParameter( VERSION,

 1.1.0 ); $req-setParameter( REQUEST, GetCapabilities );
 
 $map = new mapscript::mapObj( minimal_wms.map );

The mapfile can't be found.  Try changing this line to:

$map = new mapscript::mapObj( minimal_wms.map ) or warn mapfile
error: $!\n;

..and you'll see the error.

Try pointing to the mapfile fullpath?

 
 $map-OWSDispatch( $req );
 
 The error message I get is:
 Can't call method OWSDispatch without a package or object reference 
 at ./minimal_wms.pl line 14.
 
 I'm pretty sure that setParameter has not set SERVICE, VERSION OR 
 REQUEST.
 
 Any ideas?
 
 Cheers - Justyna.
 
 
 -Original Message-
 From: Steve Lime [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 2 December 2008 8:24 AM
 To: Justyna Lubkowski; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]
 
 Your mapfile doesn't look to meet the minimum configuration 
 requirements for WMS. For example, there is no projection information 
 defined. I have a minimal WMS config example that I've attached for 
 reference purposes.
 
 Steve
 
  On 11/26/2008 at 6:49 PM, in message
 [EMAIL PROTECTED],
 Justyna Lubkowski [EMAIL PROTECTED] wrote:
  Hi,
   
  I'm hoping someone can help, I've been trying to get Perl
 mapscript to
 
  work using a couple of examples from the MapScript
 wrappers for WxS
  Services page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript
   
  Using python mapscript it works, when I run it on the
 command line I
  get xml output, however if I try doing the same using perl
 mapscript I
 
  get no xml output on the command

RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]

2008-12-04 Thread Kralidis,Tom [Ontario]

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Justyna Lubkowski
 Sent: Thursday, 04 December 2008 00:33
 To: Steve Lime; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]
 
 Hi Steve,
 
 Thanks for your reply and the tar ball with the shapefiles 
 and map file.
 
 I've tried your map file with the following test script.
 
 #!/usr/bin/perl
 
 use mapscript;
 
 $req = new mapscript::OWSRequest( );
 $req-setParameter( SERVICE, WMS );
 $req-setParameter( VERSION, 1.1.0 ); $req-setParameter( 
 REQUEST, GetCapabilities );
 
 $map = new mapscript::mapObj( minimal_wms.map );

The mapfile can't be found.  Try changing this line to:

$map = new mapscript::mapObj( minimal_wms.map ) or warn mapfile
error: $!\n;

..and you'll see the error.

Try pointing to the mapfile fullpath?

 
 $map-OWSDispatch( $req ); 
 
 The error message I get is:
 Can't call method OWSDispatch without a package or object 
 reference at ./minimal_wms.pl line 14.
 
 I'm pretty sure that setParameter has not set SERVICE, 
 VERSION OR REQUEST.
 
 Any ideas?
 
 Cheers - Justyna.
 
 
 -Original Message-
 From: Steve Lime [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 2 December 2008 8:24 AM
 To: Justyna Lubkowski; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]
 
 Your mapfile doesn't look to meet the minimum configuration 
 requirements for WMS. For example, there is no projection 
 information defined. I have a minimal WMS config example that 
 I've attached for reference purposes. 
 
 Steve
 
  On 11/26/2008 at 6:49 PM, in message
 [EMAIL PROTECTED],
 Justyna Lubkowski [EMAIL PROTECTED] wrote:
  Hi,
   
  I'm hoping someone can help, I've been trying to get Perl 
 mapscript to
 
  work using a couple of examples from the MapScript 
 wrappers for WxS 
  Services page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript
   
  Using python mapscript it works, when I run it on the 
 command line I 
  get xml output, however if I try doing the same using perl 
 mapscript I
 
  get no xml output on the command line, I get errors telling 
 me that I 
  cannot set the SERVICE, VERSION or REQUEST parameters.  
 I've included 
  the python and perl scripts and their respective map files 
 below.  If 
  I  try using $req-loadParams() in the script, and pass the same 
  parameters as part of the query string, then do a wget I get a zero
 length file.
   
  Am I doing something wrong?  Or is there a bug in perl mapscript?
   
  Cheers - Justyna.
   
  ===
  #!/usr/bin/python
   
  import mapscript
   
  req = mapscript.OWSRequest()
  req.setParameter( 'SERVICE', 'WMS' )
  req.setParameter( 'VERSION', '1.1.0' ) req.setParameter( 'REQUEST', 
  'GetCapabilities' )
   
  map = mapscript.mapObj( 'test.map' )
  map.OWSDispatch( req )
  ===
   
  with the following map file
   
  ===
  MAP
SIZE 600 300
EXTENT -180 -90 180 90
IMAGECOLOR 180 180 250
IMAGETYPE PNG
   
UNITS DD
WEB
  IMAGEPATH /html/tmp/wms
  IMAGEURL /tmp/
  METADATA
  OWS_ONLINERESOURCE http://servername/test.py;
  END
END
   
LAYER
  NAME  coast_polygon
  TYPE  POLYGON
  STATUS DEFAULT
  DATA coast
  CLASS
COLOR 231 220 189
OUTLINECOLOR 198 134 0
NAME Coast 
  END
END
  END
  ===
   
  I get the following errors using perl mapscript:
  cannot set wms parameter  at ./test3.pl line 6.
  cannot set version parameter  at ./test3.pl line 7.
  cannot set request parameter  at ./test3.pl line 8.
   
  ===
  #!/usr/bin/perl -w
   
  use mapscript;
   
  $req = new mapscript::OWSRequest() or die no request;
  $req-setParameter('SERVICE','WMS') or warn cannot set wms 
 parameter 
  $!;
  $req-setParameter('VERSION','1.1.1') or warn cannot set version 
  parameter $!;
  $req-setParameter('REQUEST','GetCapabilities') or warn cannot set 
  request parameter $!;
   
  $map = new mapscript::mapObj(test3.map) or die no object;
   
  $map-OWSDispatch( $req ) or die cannot dispatch; 
  ===
   
  and its mapfile is
   
  ===
  MAP
SIZE 600 300
EXTENT -180 -90 180 90
IMAGECOLOR 180 180 250
IMAGETYPE PNG
   
UNITS DD
WEB
  IMAGEPATH /html/tmp/wms
  IMAGEURL /tmp/
  METADATA
  OWS_ONLINERESOURCE http://servername/test3.pl 
  END
END
   
LAYER
  NAME  coast_polygon
  TYPE  POLYGON
  STATUS DEFAULT
  DATA coast
  CLASS
COLOR 231 220 189
OUTLINECOLOR 198 134 0
NAME Coast 
  END
END
  END
  ===
  
  
  
  
  
   
   
   
   
  
   
   
 
 

RE: [mapserver-users] OUTPUTFORMAT shapefiles instead of GML2/GML3 withWFS?

2008-12-02 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Maarten Plieger
 Sent: Tuesday, 02 December 2008 07:25
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] OUTPUTFORMAT shapefiles instead of 
 GML2/GML3 withWFS?
 
 Hi all,
 Is it possible to configure mapserver in such a way that it 
 returns shapefiles instead of GML from a WFS GetFeature request?

Not that I know of.  Not out of the box.

 I would like to be able to output in GML2, GML3 and 
 shapefiles... GML2 and GML3 work fine.
 
 The problem is that my GML files get very big, up to 60 
 megabytes, and my client applications (like ArcGIS) do not 
 handle that very well.
 

Options:

- would compressing (gzip/zip) help at all?
- you could write a mapscript WxS wrapper (see
http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to intercept a
GetFeature request (say, catching outputformat=shape), and transform the
GML response to a shapefile.

I'm guessing folks have done similar things w.r.t. shapefile
clip/download functionality.

..Tom


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


RE: [mapserver-users] TRANSPARENCY AND WFS PROBLEMS

2008-11-16 Thread Kralidis,Tom [Ontario]

What is unclear about the docs?

In addition to http://mapserver.gis.umn.edu/docs/howto/wfs_server and 
http://mapserver.gis.umn.edu/docs/howto/wfs_client, check out the MapServer OGC 
Web Services Workshop (http://ms-ogc-workshop.maptools.org/) which has examples 
of how to setup both.

..Tom



-Original Message-
From: [EMAIL PROTECTED] on behalf of John Kummun
Sent: Sat 15-Nov-08 21:06
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] TRANSPARENCY AND WFS PROBLEMS
 
Hi guys,
I need suggestions for the following problems:
 
1. I want to put transparency on polygon layer so that aerial photo could be 
seen below it. I have tried TRANSPARECY and OPACITY but i only get faded not 
transparent layer. My imagetype is PNG
 
2. The explanation notes of wfs on mapserver web page is very confusing. Can 
someone walk me through on how to set up wfs server and client maps?
 
Thanks a lot
 
Kofi
Indiana


  

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


RE: [mapserver-users] Mapserver doesn't compile for WMS/WFS clientsupport

2008-11-13 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Carlos Ruiz
 Sent: Thursday, November 13, 2008 1:21 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Mapserver doesn't compile for 
 WMS/WFS clientsupport
 
 Hi list, 
 
 I'm configuring Mapserver to support WMS/WFS Server and 
 client features, but it doesn't works. 
 
 I execute the ./configure script and this is what i get : 
 
 MapServer is now configured for
 
  -- Compiler Info -
   C compiler:gcc -O2 -fPIC -Wall
   C++ compiler:  g++ -O2 -fPIC -Wall
   Debug:  -DNEED_NONBLOCKING_STDERR
   Generic NINT:
   Threading support:
 
  -- Renderer Settings -
   zlib support:  -DUSE_ZLIB
   png support:
   jpeg support:
   iconv support: -DUSE_ICONV
   AGG support:
   AGG Freetype support:
   Ming(flash) support:
   PDFLib support:
 
  -- Data Format Drivers ---
   native tiff support:
   PostGIS support:   -DUSE_POSTGIS
   Proj.4 support:-DUSE_PROJ
   EPPL7 support: -DUSE_EPPL
   ArcSDE support:
   OGR support:   -DUSE_OGR
   GDAL support:  -DUSE_GDAL
   GEOS support:  -DUSE_GEOS
   Oracle Spatial support:
   FastCGI support:
 
  -- OGC Services --
   WMS Server:-DUSE_WMS_SVR
   WMS Client:-DUSE_WMS_LYR
   WFS Server:-DUSE_WFS_SVR
   WFS Client:-DUSE_WMS_LYR
   WCS Server:
   SOS Server:
 
  -- MapScript -
   PHP MapScript: yes
 
 
 Once I execute the make script and then check with 
 ./mapserver -v, this is what i get :
 
 MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
 OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE 
 SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS 
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
 But it doesn't shows SUPPORTS=WMS_CLIENT nor 
 SUPPORTS=WFS_SERVER nor SUPPORT=WFS_CLIENT
 
 Does anyone knows how to solve this ?
 
 Thanks in advance
 
 IC Carlos Ruiz
 

What does your ./configure look like?  Did you specify
--with-curl-config=PATH ?

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