[Geoserver-devel] WFS, WMS and image catalogs

I hope someone can give me some feedback on this:

-I have a database catalog of x satellite images, each with its own
geographical bounding box.

-When I insert the metadata (boundingbox) of one image into the database, I
want to call a WFS server (e.g. Geoserver) and insert the generated GML
(coordinates) for this image.

-When the user query the database in a WWW GUI, he can select one image from
the result and display the metadata of the product and a map generated by a
WMS server (e.g. Geoserver) where the image's bounding box is marked.

The only way I can see this realized with Geoserver and PostGIS, is to have
one table for each satellite product inserted into the table, because when I
generate an WMS URL, I have to specify one layer with the land-sea contours
(one table in PostGIS) and one layer with the boundingbox of the satellite
image (another table in PostGIS).
Do you see another way to do this?

The possibility I can see, is that WMS (version 1.3?) supported a filter (e.g
OGC filter specification) and my PostGIS table with map data and image
bounding boxes, had one column that uniquely identified each satellite image
and I could filter by this column. Then I could have had everything in one
table.

Hope for some feedback and hints :slight_smile:

Regards
Jørn Vegard Røsnes

Hrm, I'm not sure that I completely understand what you're trying to do,
and hope that others may sound in. To display the images you may need
another WMS, like MapServer, working in conjunction, because I'm not sure
that GeoServer's WMS is up to the task yet - if it's an actual image like
stored as binary in postgis I'm not sure that it'll work.

But for your last request, GeoServer's WMS actually does support filters.
I wasn't even aware that WMS 1.3 was going to support them, but it made
sense for us to, as it was trivial to implement since we already do all
the work for WFS. So to use a filter just encode it as you would for the
WFS - check that spec and the filter spec. You can use BBOX=0,0,15,15 or
you can just encode the xml filter directly (though be sure to include the
gml namespace):
http://beta.openplans.org/geoserver/GetFeature?service=WFS&version=1.0.0&outputformat=GML2&filter=<ogc%3AFilter+xmlns%3Aogc%3D"http%3A%2F%2Fwww.opengis.net%2Fogc"+xmlns%3Acdf%3D"http%3A%2F%2Fwww.opengis.net%2Fcite%2Fdata"><ogc%3APropertyIsEqualTo><ogc%3APropertyName>cdf%3Aintegers<%2Fogc%3APropertyName><ogc%3AMul><ogc%3APropertyName>cdf%3Aintegers<%2Fogc%3APropertyName><ogc%3ALiteral>1<%2Fogc%3ALiteral><%2Fogc%3AMul><%2Fogc%3APropertyIsEqualTo><%2Fogc%3AFilter>&typename=cdf:Other&request=GetFeature

I'm not positive if this is exactly in line with the wms 1.3 spec, as I
haven't seen it yet, but it should work.

hope this helps,

Chris

On Wed, 25 Feb 2004, Jørn Vegard Røsnes wrote:

I hope someone can give me some feedback on this:

-I have a database catalog of x satellite images, each with its own
geographical bounding box.

-When I insert the metadata (boundingbox) of one image into the database, I
want to call a WFS server (e.g. Geoserver) and insert the generated GML
(coordinates) for this image.

-When the user query the database in a WWW GUI, he can select one image from
the result and display the metadata of the product and a map generated by a
WMS server (e.g. Geoserver) where the image's bounding box is marked.

The only way I can see this realized with Geoserver and PostGIS, is to have
one table for each satellite product inserted into the table, because when I
generate an WMS URL, I have to specify one layer with the land-sea contours
(one table in PostGIS) and one layer with the boundingbox of the satellite
image (another table in PostGIS).
Do you see another way to do this?

The possibility I can see, is that WMS (version 1.3?) supported a filter (e.g
OGC filter specification) and my PostGIS table with map data and image
bounding boxes, had one column that uniquely identified each satellite image
and I could filter by this column. Then I could have had everything in one
table.

Hope for some feedback and hints :slight_smile:

Regards
Jørn Vegard Røsnes

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--

Thanks Chris,

I will have a look at your filter implementation.

On Wednesday 25 February 2004 18:39, you wrote:

Hrm, I'm not sure that I completely understand what you're trying to do,
and hope that others may sound in. To display the images you may need
another WMS, like MapServer, working in conjunction, because I'm not sure
that GeoServer's WMS is up to the task yet - if it's an actual image like
stored as binary in postgis I'm not sure that it'll work.

No, the metadata contains the geographic bounding box of the satellite image.
A GML for this boundingbox will be generated and inserted into PostGIS/WFS
(Geoserver).
By using WMS I want to generate a map with this boundingbox within.

The issue is that there is potentially thousands of such boundingboxes, and I
will need to filter out the one(s) I want to display, so I don't get all in
one map.

Regards
Jørn Vegard Røsnes

But for your last request, GeoServer's WMS actually does support filters.
I wasn't even aware that WMS 1.3 was going to support them, but it made
sense for us to, as it was trivial to implement since we already do all
the work for WFS. So to use a filter just encode it as you would for the
WFS - check that spec and the filter spec. You can use BBOX=0,0,15,15 or
you can just encode the xml filter directly (though be sure to include the
gml namespace):
http://beta.openplans.org/geoserver/GetFeature?service=WFS&version=1.0.0&ou
tputformat=GML2&filter=%3Cogc%3AFilter+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.ope
ngis.net%2Fogc%22+xmlns%3Acdf%3D%22http%3A%2F%2Fwww.opengis.net%2Fcite%2Fdat
a%22%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Ecdf%3Aintegers%3
C%2Fogc%3APropertyName%3E%3Cogc%3AMul%3E%3Cogc%3APropertyName%3Ecdf%3Aintege
rs%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3E1%3C%2Fogc%3ALiteral%3E%3C%2
Fogc%3AMul%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E&typename=
cdf:Other&request=GetFeature

I'm not positive if this is exactly in line with the wms 1.3 spec, as I
haven't seen it yet, but it should work.

hope this helps,

Chris

On Wed, 25 Feb 2004, Jørn Vegard Røsnes wrote:
> I hope someone can give me some feedback on this:
>
> -I have a database catalog of x satellite images, each with its own
> geographical bounding box.
>
> -When I insert the metadata (boundingbox) of one image into the database,
> I want to call a WFS server (e.g. Geoserver) and insert the generated GML
> (coordinates) for this image.
>
> -When the user query the database in a WWW GUI, he can select one image
> from the result and display the metadata of the product and a map
> generated by a WMS server (e.g. Geoserver) where the image's bounding box
> is marked.
>
>
> The only way I can see this realized with Geoserver and PostGIS, is to
> have one table for each satellite product inserted into the table,
> because when I generate an WMS URL, I have to specify one layer with the
> land-sea contours (one table in PostGIS) and one layer with the
> boundingbox of the satellite image (another table in PostGIS).
> Do you see another way to do this?
>
>
> The possibility I can see, is that WMS (version 1.3?) supported a filter
> (e.g OGC filter specification) and my PostGIS table with map data and
> image bounding boxes, had one column that uniquely identified each
> satellite image and I could filter by this column. Then I could have had
> everything in one table.
>
> Hope for some feedback and hints :slight_smile:
>
> Regards
> Jørn Vegard Røsnes
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel