[mapserver-users] SOS Configuration

2012-01-17 Thread Florence.Tan
Hi List,

I am new to the list and have been trying to setup MapServer's SOS Server to 
serve some observation data.  I have created a map file and managed to have 
GetCapabilities working.  But when trying out the GetObservation, I am 
confused...  not much helpful documentation around and have found this 
discussion from the old SOS User forum : 
http://osgeo-org.1803224.n2.nabble.com/SOS-disconnect-td1992064.html.  However, 
still confused on how to map a database column to SOS output !?!?


Metadata for the layer in my map file :

 METADATA
 sos_value_alias  value_test  ## value is the name of the db clumn
 sos_value_componenturl http://test.org#value_test;
 sos_procedure   unknown
 sos_offering_id  waterstorage
 sos_offering_description value_test
 sos_observedproperty_id 9
 sos_describesensor_url http://localhost/TEST123.xml;
 sos_srs   init=epsg:4283
 sos_offering_timeextent 1900/2010


The database connection is successful and the GetCapabilities return the 
following sos information :

- sos:Contents
- sos:ObservationOfferingList
- sos:ObservationOffering gml:id=waterstorage
  gml:descriptionvalue_test/gml:description
- !-- WARNING: Optional metadata sos_offering_name missing for gml:name
  --
  gml:srsNameEPSG:4326/gml:srsName
- !-- WARNING: Optional metadata sos_offering_intendedapplication missing 
for sos:intendedApplication
  --
- sos:time
- gml:TimePeriod
  gml:beginPosition1900/gml:beginPosition
  gml:endPosition2010/gml:endPosition
  /gml:TimePeriod
  /sos:time
  sos:procedure xlink:href=urn:ogc:def:procedure:unknown /
- sos:observedProperty
- swe:CompositePhenomenon gml:id=9 dimension=7
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:feature /
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:identifier /
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:ftype /
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:value_test /
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:type /
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:description /
  swe:component xlink:href=urn:ogc:def:property:OGC-SWE:1:yearofcompletion /
  /swe:CompositePhenomenon
  /sos:observedProperty
  sos:featureOfInterest xlink:href=urn:ogc:def:feature:OGC-SWE:3:transient /
  sos:responseFormattext/xml; subtype=om/1.0.0/sos:responseFormat
  sos:resultModelom:Observation/sos:resultModel
  sos:resultModelom:Measurement/sos:resultModel
  sos:responseModeinline/sos:responseMode
  /sos:ObservationOffering
  /sos:ObservationOfferingList
  /sos:Contents

GetObservation 
(http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/sos/sos_test.mapRequest=GetObservationservice=SOSOFFERING=waterstorageobservedproperty=9version=1.0.0responseFormat=text/xml;
 subtype=om/1.0.0) return the following :

  ?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:ms=http://mapserver.gis.umn.edu/mapserver; 
xmlns:om=http://www.opengis.net/om/1.0; gml:id=waterstorage 
xsi:schemaLocation=http://www.opengis.net/om/1.0 
http://schemas.opengis.net/om/1.0.0/om.xsd 
http://mapserver.gis.umn.edu/mapserver 
http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/apps/sos/sos_test.mapservice=WFSversion=1.1.0request=DescribeFeatureTypetypename=test_sos_layer;
  gml:description 
xmlns:gml=http://www.opengis.net/gml;value_test/gml:description
  /om:ObservationCollection



My quesions are :

1) How do I map a db clumn to a sos output ??   Do i have to create 
sos_dbColumn_alias for each column ?
2) What's the purpose of sos_dbColumn_componenturl ?  Do I need to create 
this for each dbColumn ?
3) I have map the  sos_offering_description value_test, why does the 
getCapabilities and getObservation return value_test as a constant rather 
then retrieving data from the database ?


Appreciave if someone could point out what is the problem of the map file or 
point me to some useful documentation or tutorial on set up SOS in MapServer.




Thanks  Regards,


Florence Tan
Research Projects Officer | ASRDC
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8802 | Fax: +61 8 6436 8559
florence@csiro.aumailto:florence@csiro.au | www.csiro.au
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington 
WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any 
unauthorised use or disclosure is prohibited. If you have received this email 
in error, please delete it immediately and notify the sender by return email. 
Thank you. To the extent permitted by law, CSIRO does not represent, warrant 
and/or guarantee that the integrity of this communication has been maintained 
or that the communication is free of errors, virus, interception or 
interference.

Please 

Re: [mapserver-users] Re: Clustering and tile clipping

2012-01-17 Thread Wim Vanbelle
Unfortunately it didn't solve the problem. I tried a lot of different
values though.

On top of that I'm also getting a lot of


[Tue Jan 17 08:50:08 2012] [warn] [client] mod_fcgid: read data timeout in
40 seconds
[Tue Jan 17 08:50:08 2012] [error] [client] Premature end of script
headers: mapserv.fcgi
In msCleanupOnSignal.
[Tue Jan 17 08:50:48 2012] [warn] [client] mod_fcgid: read data timeout in
40 seconds
[Tue Jan 17 08:50:48 2012] [error] [] Premature end of script headers:
mapserv.fcgi
In msCleanupOnSignal.

Anyone have a clue how to increase the timeout? I'm clustering 44K points.
And at lower zoomlevel (values) it is taking a long time.

Wim

On 16 January 2012 15:48, Wim Vanbelle wimvanbe...@gmail.com wrote:

 Hi,

 Thanks for  your answer, i'll give that a try immediately :).

 I remember I played around with it in the beginning, but currently it is
 indeed set to 0.

 What is an acceptable value for this? Am I to set this to the same value
 as the maxdistance in the cluster? (Being 100 in my case)

 Or perhaps this should be set to the size of my image representing the
 cluster, being 10 pixels?

 Best regards,
 Wim




 On 16 January 2012 10:55, Tamas Szekeres szeker...@gmail.com wrote:

 Hi Wim,

 Did you try the BUFFER setting to increase the search area during the
 cluster creation?
 For more information see: http://mapserver.org/mapfile/cluster.html

 Best regards,

 Tamas




 2012/1/16 Wim Vanbelle wimvanbe...@gmail.com

 Does anyone have any working examples of how they implemented clustering
 without the tile clipping?

 Thanks.

 On 11 January 2012 10:00, Wim Vanbelle wimvanbe...@gmail.com wrote:

 Hi,

 I'm very happy that mapserver is now capable of server side clustering.
 However I wonder if it's possible to completely get rid of the tile
 clipping.

 Currently I've clustered a point layer with 44k points:

 CLUSTER
 MAXDISTANCE 100
 REGION ellipse

 END

 It is displayed with a simple image:
STYLE
 SYMBOL  small_shaded.png
 SIZE21
 OUTLINECOLOR0 0 0
 END

 However, when viewing this on google maps, the images are often clipped
 at the tile edges.

 I figured that I could solve this with mapcache:

  tileset name=ld
 sourceld/source
 cachedisk/cache
 gridg2/grid
 formatPNG/format
 metatile2 2/metatile
 metabuffer30/metabuffer
 expires3600/expires
 auto_expire2592000/auto_expire
   /tileset

 i've tried higher values for metatile and it helps a bit, but the
 problem simply shifts location. Also with higher values (eg 5 5 metatile)
 mapserver doesn't return the tiles on time for mapcache and I get gaps in
 my results.

 Would preseeding the data help with the timeouts? Any other solutions
 that I may try? The metadata parameter for tile_edge buffer only works with
 labels as far as i know.

 Thanks in advance, this issue has been troubling me for some time now
 :).

 Best regards,
 Wim



 ___
 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] layerObj.setFilter parser error

2012-01-17 Thread Radim Blazek
Unfortunately I found a similar problem with parser if PolygonFromText
is used in filter.

I filled a ticket http://trac.osgeo.org/mapserver/ticket/4158

Radim

On Sun, Jan 15, 2012 at 4:27 PM, Lime, Steve D (DNR)
steve.l...@state.mn.us wrote:
 Good catch, that's an obscure bug. Can you file a ticket?

 Steve

 
 From: Radim Blazek [radim.bla...@gmail.com]
 Sent: Saturday, January 14, 2012 7:47 AM
 To: Lime, Steve D (DNR)
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] layerObj.setFilter parser error

 On Thu, Jan 12, 2012 at 12:18 AM, Lime, Steve D (DNR)
 steve.l...@state.mn.us wrote:
 I don't know of a simple work around. MapScript and the mapfile parser use 
 the same expression tokenizing routine. What happens if you try single 
 quotes? That is:

   layerObj.setFilter (  '(point.id = 1)' )

 Single quotes don't help.

 I have discovered that the problem is key (?) word 'point',  pokus.id
 = 1 for example, and other table names work well.

 As a work around I was able to use true and (point.id = 1).

 Radim


 Steve

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Radim Blazek
 Sent: Tuesday, January 10, 2012 12:05 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] layerObj.setFilter parser error

 If I use layerObj.setFilter (  (point.id = 1) ), mapObj.OWSDispatch
 gives an error:

    msTokenizeExpression(): Expression parser error. Parsing time value 
 failed.
     msParseTime(): Regular expression error. Unrecognized date or
 time format ().

 It works correctly with layerObj.setFilter (  ( id = 1) ) or
 layerObj.setFilter (  point.id = 1 ).
 FILTER ( point.id = 1 ) in mapfile also works.
 This is of course only a simple example, I need both fully qualified
 column name and parenthesis.

 It seems to be a bug. Do you know any simple trick, how to get it
 working for a presentation tomorrow morning?

 Version 6.0.1.

 Thanks
 Radim
 ___
 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] Help needed with South pole projection issues

2012-01-17 Thread Fuchs Juan Carlos
Hi folks!

Please, is there someone, so kind to help me to translate this *.prj to
somewhat  (WKT?)

i could pass to Mapserver (projection) to get both maps, one over the
other??

 

this is my *.prj from the base-layer, so to say.

 

PROJCS[Transverse
Mercator,GEOGCS[GCS_WGS_1984,DATUM[D_WGS_1984,SPHEROID[WGS_1984,63781
37.0,298.257223563]],PRIMEM[Greenwich,0.0],UNIT[Degree,0.017453292519943
3]],PROJECTION[Transverse_Mercator],PARAMETER[False_Easting,350.0],P
ARAMETER[False_Northing,0.0],PARAMETER[Central_Meridian,-66.0],PARAMETER
[Scale_Factor,1.0],PARAMETER[Latitude_Of_Origin,-90.0],UNIT[Meter,1.0]
]

 

this is the snippet in WKT from my *.map file (Projection of the base-map)

 

PROJECTION

  proj=tmerc

  lat_0=-90

  lon_0=-66

  k=1

  x_0=350

  y_0=0

  ellps=WGS84

  datum=WGS84

  units=m

END

 

 

This is the *.prj from the shp i have, and need to get along with the other
one.

 

PROJCS[lambert,GEOGCS[GCS_WGS_1984,DATUM[D_WGS_1984,SPHEROID[WGS_1984
,6378137.0,298.257223563]],PRIMEM[Greenwich,0.0],UNIT[Degree,0.01745329
25199433]],PROJECTION[Lambert_Azimuthal_Equal_Area],PARAMETER[False_Easti
ng,1000.0],PARAMETER[False_Northing,6391246.5],PARAMETER[Central_Mer
idian,-60.0],PARAMETER[Latitude_Of_Origin,-40.0],UNIT[Meter,1.0]]

 

that is my best try so far,: WKT from my *.map file layer (Projection)

 

PROJECTION

proj=laea

ellps=WGS84

lat_1=-40

lon_0=-60

south

END

 

what can i say? it displays VERY ugly...

 

Thanks in advanced for any help/advice you can give me.

JC

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