[mapserver-users] Problem with SOS, works as WMS
Jørn Vegard Røsnes
jorn at spacetec.no
Thu Sep 2 00:04:13 PDT 2010
Hi all,
I found the solution.
Yesterday evening (while digging a ditch in my backyard) I was reminded of the
(good) old extent trap, e.g the EXTENT was to narrow for my data.
Thanks for listening and have a nice day.
cheers
Jørn Vegard
On Wednesday 01 September 2010 15:47:00 Jørn Vegard Røsnes wrote:
> Hi all,
>
> I have a layer that works as WMS, e.g the points are plotted in map, but
> SOS gives an empty ObservationCollection (no filtering in my SOS
> GetObservation URL).
>
> I use shapefile as input, for the first time.
>
>
> What could be the problem?
>
> SOS URL
> http://server.com/cgi-bin/gms?version=1.0.0&service=SOS&request=GetObservat
>ion&responseFormat=text/xml;
> %20subtype=om/1.0.0&offering=track2&observedproperty=track2
>
> WMS URL
> http://server.com/cgi-bin/gms?Layers=Vessels_Positions_2010_06_26-12_26_35,
>gshhs&service=WMS&request=getmap&WIDTH=512&HEIGHT=512&BBOX=48.0,0,52.0,3.0&b
>gcolor=0xffffff&VERSION=1.1.1&FORMAT=image/jpeg&SRS=EPSG:4326
>
>
> LAYER
> NAME "Vessels_Positions_2010_06_26-12_26_35"
> TYPE POINT
> STATUS on
> DEBUG 5
> DUMP TRUE
> DATA "Vessels_Positions_2010_06_26-12_26_35"
> CLASS
> NAME "Vessels20100626122635"
> TEXT ([mmsi]([name]))
> LABEL
> WRAP "%"
> COLOR 0 0 0
> #SHADOWCOLOR 218 218 218
> #SHADOWSIZE 2 2
> TYPE TRUETYPE
> FONT arial
> SIZE 9
> ANTIALIAS TRUE
> POSITION CC
> PARTIALS false
> MINDISTANCE 65000
> BUFFER 4
> END # end of label
> COLOR 0 128 0
> END
> PROJECTION
> "init=epsg:4326"
> END
> METADATA
> # "sos_title" "track2" ## title
> "sos_offering_id" "track2" ## id of offering
> "sos_procedure" "track2" ## a sensor unique id
> "sos_observedproperty_id" "track2" ## id of observed property
> "sos_describesensor_url"
> "http://server.com/sostest/xml/ifgi-sensor-1.xml" ## REQUIRED
> # "sos_srs" "epsg:4326"
> # "sos_offering_timeextent" "20070530T1800Z"
> # "sos_timeitem" "datepos"
> # gml_include_items 'all'
> # wms_include_items 'all'
> END
> END
>
>
>
>
> grinfo -al Vessels_Positions_2010_06_26-10_11_42.shp
>
> INFO: Open of `Vessels_Positions_2010_06_26-10_11_42.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: Vessels_Positions_2010_06_26-10_11_42
> Geometry: Point
> Feature Count: 33
> Extent: (49.756611, -3.212502) - (50.422119, -1.975762)
> Layer SRS WKT:
> (unknown)
> name: String (18.0)
> mmsi: Real (11.0)
> type: Real (11.0)
> flag: String (2.0)
> lenght: Real (24.15)
> datepos: String (25.0)
> speed: Real (24.15)
> course: Real (24.15)
> elapsed: Real (24.15)
> source: String (13.0)
> OGRFeature(Vessels_Positions_2010_06_26-10_11_42):0
> name (String) = <a name>
> mmsi (Real) = <a number>
> type (Real) = 9
> flag (String) = MT
> lenght (Real) = 40.000000000000000
> datepos (String) = 2010-06-26T22:11:42+02:00
> speed (Real) = 29.000000000000000
> course (Real) = 257.000000000000000
> elapsed (Real) = 1.000000000000000
> source (String) = marinetraffic
> POINT (50.406910000000003 -1.975762)
>
>
> cheers
> Jørn Vegard
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list