[Geoserver-users] WCS based on shapefiles?

Dear GeoServer users,

could you please suggest me a way, how to set up a WCS service based on shapefiles? Do I need to convert my vector data to raster? Which is the suggested way to do so?

Thanks a lot in advance,
Op10

What is your goal? To display maps, serve data, or both?

Alex

On Sat, Apr 4, 2009 at 7:49 AM, <op10@anonymised.com> wrote:

Dear GeoServer users,

could you please suggest me a way, how to set up a WCS service based on
shapefiles? Do I need to convert my vector data to raster? Which is the
suggested way to do so?

Thanks a lot in advance,
Op10
------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Both. I know how to set up a WMS, but it is not clear how to create a WCS
server that allows DOWNLOADing of GeoTiff data which are generated
from vector data.
Op10

-----Original Message-----
From: Alexander Petkov [mailto:greenkov@anonymised.com]
Sent: 2009. április 4. 18:04
To: op10@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WCS based on shapefiles?

What is your goal? To display maps, serve data, or both?

Alex

On Sat, Apr 4, 2009 at 7:49 AM, <op10@anonymised.com> wrote:

Dear GeoServer users,

could you please suggest me a way, how to set up a WCS service based
on shapefiles? Do I need to convert my vector data to raster? Which is
the suggested way to do so?

Thanks a lot in advance,
Op10
----------------------------------------------------------------------
--------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Sat, Apr 4, 2009 at 10:56 AM, <op10@anonymised.com> wrote:

Both. I know how to set up a WMS, but it is not clear how to create a WCS
server that allows DOWNLOADing of GeoTiff data which are generated
from vector data.
Op10

You'd have to rasterize your vector data in advance, prior to serving
it, and configure the rasters as Geoserver coverages.
GDAL has a vector to raster utility:

http://gdal.org/gdal_rasterize.html

Alex

Hi,

I think that this is going too complicated with prerasterizing vectors. Geoserver WMS can already do the rasterizing. I would prepare well defined WMS requests with balanced bbox and image size, save the images on disk and after that convert them to GeoTIFFs. With Geoserver there is a need to make some simple system for generating a world file for each GetMap request.

With Mapserver your task would be simple. Just configure an additional GeoTIFF output format in the mapfile and then Mapserver could deliver directly Geotiffs with WMS requests.

-Jukka Rahkonen-

Alexander Petkov wrote:

On Sat, Apr 4, 2009 at 10:56 AM, <op10@anonymised.com> wrote:

Both. I know how to set up a WMS, but it is not clear how to create a WCS
server that allows DOWNLOADing of GeoTiff data which are generated
from vector data.
Op10

You'd have to rasterize your vector data in advance, prior to serving
it, and configure the rasters as Geoserver coverages.
GDAL has a vector to raster utility:

http://gdal.org/gdal_rasterize.html

Alex

Rahkonen Jukka ha scritto:

Hi,

I think that this is going too complicated with prerasterizing
vectors. Geoserver WMS can already do the rasterizing. I would
prepare well defined WMS requests with balanced bbox and image size,
save the images on disk and after that convert them to GeoTIFFs.
With Geoserver there is a need to make some simple system for
generating a world file for each GetMap request.

GeoServer can generate GeoTIFF from WMS out of the box. The list
of supported output formats probably grew a little since you
last checked, here it is (there are some aliases in the middle):

         <Format>image/png</Format>
         <Format>application/atom xml</Format>
         <Format>application/atom+xml</Format>
         <Format>application/openlayers</Format>
         <Format>application/pdf</Format>
         <Format>application/rss xml</Format>
         <Format>application/rss+xml</Format>
         <Format>application/vnd.google-earth.kml</Format>
         <Format>application/vnd.google-earth.kml xml</Format>
         <Format>application/vnd.google-earth.kml+xml</Format>
         <Format>application/vnd.google-earth.kmz</Format>
         <Format>application/vnd.google-earth.kmz xml</Format>
         <Format>application/vnd.google-earth.kmz+xml</Format>
         <Format>atom</Format>
         <Format>image/geotiff</Format>
         <Format>image/geotiff8</Format>
         <Format>image/gif</Format>
         <Format>image/jpeg</Format>
         <Format>image/png8</Format>
         <Format>image/svg</Format>
         <Format>image/svg xml</Format>
         <Format>image/svg+xml</Format>
         <Format>image/tiff</Format>
         <Format>image/tiff8</Format>
         <Format>kml</Format>
         <Format>kmz</Format>
         <Format>openlayers</Format>
         <Format>rss</Format>

However, even using GeoTiff you'd end up with a georeferenced
RGBA image, whilst the usual vector rasterizing involves taking an
attribute of interest and generating a raster whose cell values have
that attribute. This is not possible with WMS, seems more the
work of a WPS.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

Sorry, I must have one day a look at Geoserver as WMS server as well, not only WFS.
If the final goal is to have GeoTIFFs then one alternative could be to use GDAL as WMS client.
For me this looks interesting:
http://gdal.org/frmt_wms.html

-Jukka-

-----Alkuperäinen viesti-----
Lähettäjä: Andrea Aime [mailto:aaime@anonymised.com]
Lähetetty: su 5.4.2009 10:51
Vastaanottaja: Rahkonen Jukka
Kopio: Alexander Petkov; op10@anonymised.com; geoserver-users@anonymised.com.net
Aihe: Re: [Geoserver-users] WCS based on shapefiles?

Rahkonen Jukka ha scritto:

Hi,

I think that this is going too complicated with prerasterizing
vectors. Geoserver WMS can already do the rasterizing. I would
prepare well defined WMS requests with balanced bbox and image size,
save the images on disk and after that convert them to GeoTIFFs.
With Geoserver there is a need to make some simple system for
generating a world file for each GetMap request.

GeoServer can generate GeoTIFF from WMS out of the box. The list
of supported output formats probably grew a little since you
last checked, here it is (there are some aliases in the middle):

         <Format>image/png</Format>
         <Format>application/atom xml</Format>
         <Format>application/atom+xml</Format>
         <Format>application/openlayers</Format>
         <Format>application/pdf</Format>
         <Format>application/rss xml</Format>
         <Format>application/rss+xml</Format>
         <Format>application/vnd.google-earth.kml</Format>
         <Format>application/vnd.google-earth.kml xml</Format>
         <Format>application/vnd.google-earth.kml+xml</Format>
         <Format>application/vnd.google-earth.kmz</Format>
         <Format>application/vnd.google-earth.kmz xml</Format>
         <Format>application/vnd.google-earth.kmz+xml</Format>
         <Format>atom</Format>
         <Format>image/geotiff</Format>
         <Format>image/geotiff8</Format>
         <Format>image/gif</Format>
         <Format>image/jpeg</Format>
         <Format>image/png8</Format>
         <Format>image/svg</Format>
         <Format>image/svg xml</Format>
         <Format>image/svg+xml</Format>
         <Format>image/tiff</Format>
         <Format>image/tiff8</Format>
         <Format>kml</Format>
         <Format>kmz</Format>
         <Format>openlayers</Format>
         <Format>rss</Format>

However, even using GeoTiff you'd end up with a georeferenced
RGBA image, whilst the usual vector rasterizing involves taking an
attribute of interest and generating a raster whose cell values have
that attribute. This is not possible with WMS, seems more the
work of a WPS.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Nice idea!:slight_smile:
Thanks to all of you for your tips!
Op10

-----Original Message-----
From: Rahkonen Jukka [mailto:Jukka.Rahkonen@anonymised.com]
Sent: 2009. április 5. 11:09
To: Andrea Aime
Cc: Alexander Petkov; op10@anonymised.com;
geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WCS based on shapefiles?

Hi,

Sorry, I must have one day a look at Geoserver as WMS server as well, not
only WFS.
If the final goal is to have GeoTIFFs then one alternative could be to use
GDAL as WMS client.
For me this looks interesting:
http://gdal.org/frmt_wms.html

-Jukka-

-----Alkuperäinen viesti-----
Lähettäjä: Andrea Aime [mailto:aaime@anonymised.com]
Lähetetty: su 5.4.2009 10:51
Vastaanottaja: Rahkonen Jukka
Kopio: Alexander Petkov; op10@anonymised.com;
geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WCS based on shapefiles?

Rahkonen Jukka ha scritto:

Hi,

I think that this is going too complicated with prerasterizing
vectors. Geoserver WMS can already do the rasterizing. I would
prepare well defined WMS requests with balanced bbox and image size,
save the images on disk and after that convert them to GeoTIFFs.
With Geoserver there is a need to make some simple system for
generating a world file for each GetMap request.

GeoServer can generate GeoTIFF from WMS out of the box. The list of
supported output formats probably grew a little since you last checked, here
it is (there are some aliases in the middle):

         <Format>image/png</Format>
         <Format>application/atom xml</Format>
         <Format>application/atom+xml</Format>
         <Format>application/openlayers</Format>
         <Format>application/pdf</Format>
         <Format>application/rss xml</Format>
         <Format>application/rss+xml</Format>
         <Format>application/vnd.google-earth.kml</Format>
         <Format>application/vnd.google-earth.kml xml</Format>
         <Format>application/vnd.google-earth.kml+xml</Format>
         <Format>application/vnd.google-earth.kmz</Format>
         <Format>application/vnd.google-earth.kmz xml</Format>
         <Format>application/vnd.google-earth.kmz+xml</Format>
         <Format>atom</Format>
         <Format>image/geotiff</Format>
         <Format>image/geotiff8</Format>
         <Format>image/gif</Format>
         <Format>image/jpeg</Format>
         <Format>image/png8</Format>
         <Format>image/svg</Format>
         <Format>image/svg xml</Format>
         <Format>image/svg+xml</Format>
         <Format>image/tiff</Format>
         <Format>image/tiff8</Format>
         <Format>kml</Format>
         <Format>kmz</Format>
         <Format>openlayers</Format>
         <Format>rss</Format>

However, even using GeoTiff you'd end up with a georeferenced RGBA image,
whilst the usual vector rasterizing involves taking an attribute of interest
and generating a raster whose cell values have that attribute. This is not
possible with WMS, seems more the work of a WPS.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.