[Geoserver-users] Custom DataStores

Hello,

I guess my main problem is that I don’t understand the lingo that’s being used here.

  1. What is a “feature” in the DataStore sense? Is this the same thing as what WFS considers to be a “feature”?
  2. How do I return coverages through this DataStore interface? What format are the coverages supposed to be in?
  3. Are there any typeNames that I must return? Or can typenames be any random string I want? What is a TypeName used for? Does this get shown to the enduser of Geoserver?
  4. How do I return images through this interface? Is there any specific format those images have to be in? PlanarImage? RenderableImage? Or a simple byte?

Thanks for your continued support!

Ronak

Hi Ronak,

Patel, Ronak Avinash (US SSA) wrote:

Hello,

I guess my main problem is that I don’t understand the lingo that’s being used here.

   1. What is a “feature” in the DataStore sense? Is this the same thing
      as what WFS considers to be a “feature”?

More or less. The term "feature" definitely comes form WFS. When in teh context of data store a feature means an entry in a dataset which has some attributes.

   2. How do I return coverages through this DataStore interface? What
      format are the coverages supposed to be in?

Coverages are not managed via the DataStore interface. Look at the AbstractGridFormat and AbstractGridCoverage2DReader classes in the org.geotools.coverage.grid.io package for the data access classes relevant to coverages.

   3. Are there any typeNames that I must return? Or can typenames be
      any random string I want? What is a TypeName used for? Does this
      get shown to the enduser of Geoserver?

Yes type names is the list of "types" you want to publish through the datastore, and should not be random. Type name is used by the outside world to identify "datasets" served by the datastore. For instance when the datastore is db based, type names correspond to table names.

   4. How do I return images through this interface? Is there any
      specific format those images have to be in? PlanarImage?
      RenderableImage? Or a simple byte?

The StreamingRenderer class (org.geotools.renderer.lite) can render data from a DataStore into a Graphics2D context... which can originate from a RenderedImage.

Thanks for your continued support!

Hope that helps :slight_smile:

Ronak

------------------------------------------------------------------------

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

------------------------------------------------------------------------

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

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.