Hi Robert,
For our project, we did this in a variety of ways, finally settling on using
WFS with OGR for the vector data, and WMS for the raster. Unfortunately, to
get everything we wanted, we had to do some custom programming.

The WFS with the OGR output works extremely well, with the exception that
vectors are not clipped at the boundaries of the requested feature, they
just keep going. Here is a sample of a WFS request of this type, note that
the output format is SHP, zipped, and projection is EPSG:2267.

<wfs:GetFeature service="WFS" version="1.1.0" outputFormat="OGR-SHP-ZIP"
xmlns:ogi="http://204.62.18.181:8080/ogi"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://www.opengis.net/wfs  http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
xmlns:ogc="http://www.opengis.net/ogc"; xmlns:wfs="http://www.opengis.net/wfs";
xmlns:gml="http://www.opengis.net/gml";>
 <wfs:Query typeName="ogi:sections" srsName="urn:x-ogc:def:crs:EPSG:2267">
   <ogc:Filter>
     <ogc:Intersects>
       <ogc:PropertyName>the_geom</ogc:PropertyName>
       <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:4326" xmlns:gml="
http://www.opengis.net/gml";>
         <gml:exterior>
           <gml:LinearRing>
             <gml:posList> 36.129833547944 -97.739353179937 36.129833547944
-97.620220184329 36.188044089569 -97.620220184329 36.188044089569
-97.739353179937 36.129833547944 -97.739353179937</gml:posList>
           </gml:LinearRing>
         </gml:exterior>
       </gml:Polygon>
     </ogc:Intersects>
   </ogc:Filter>
 </wfs:Query>
</wfs:GetFeature>

I just got done adding a "clip to bounding polygon" output, but it is all
done using PostGIS, as this is not available in WFS, more custom
programming.

As to Raster, I tried using WCS, but even when I got it to work it was very
slow, and I could never get the projection stuff to work. So, I went back to
WMS, being very careful with pixel size etc, then piping it out through GDAL
to get any projection output, more custom stuff!

If WCS worked properly, (at least I could never figure it out...) then it
should be quite similar to the WFS example.


Roger

On Mon, Nov 1, 2010 at 8:14 AM, Robert Buckley <robertdbuck...@yahoo.com>wrote:

> Hi,
>
> as part of my project i would like to create a webpage offering metadata
> and the opportunity to download in different formats...kml,shp etc.
>
> Could anyone please give me some advice on how to do this? would it be a
> simple matter of applying this to an htmk link...
>
> http://ADDRESS:8080/geoserver/wms/FORMAT?layers=WORKSPACE:LAYER
>
> I´m a bit confused whether that should be wms or wfs in the link.
>
> Thanks for any help,
>
> Robert Buckley
>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to