[Geoserver-users] wcs

Hi all,

I'm new to geoserver, trying to set up a wcs. I use GeoTiffs as coverage
stores with inner tiling and overviews. Everything works fine for the
following request:

http://localhost:8080/geoserver/wcs?service=WCS&request=GetCoverage&version=1.0.0&coverage=imk:GLCF_2000_EPSG_3035_tld&CRS=EPSG:3035&BBOX=4280760,3321450,4656375,3715920&Width=525&height=500&format=png

This coverage has 3 bands of type Byte (rgb).

The same request fails for other coverages, the result depending on the
requested format:
png, jpeg: "Unable to render RenderedOp for this operation." or
                "All factories fail for the operation 'ImageWrite'"
gif: "The specified ColorModel is incompatible with the image
SampleModel."
tiff, geotiff: an image is returned, but it is all grey (maybe a different
problem?)
All these formats are listed in the DescribeCoverage document.

All coverages giving bad results have 1 band of type Float32, Int16 or
Int32.
The sizes of the source-geotiffs are app. 200-400MB with the one working
being 290MB.

Requests to the wms return nicely coloured images for any layer.

I'm running geoserver 1.7.4 with tomcat 60.

Any suggestions would be appreciated!

cheers,
Uwe
--
View this message in context: http://www.nabble.com/wcs-tp23848939p23848939.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Apologies in advance if this query is better suited to the postgres and postgis lists but it does strike me as being more in the province of geoserver.

I have a postgres database with a schema (called ‘cger’) into which I have loaded the postgis library and have loaded many tables into a database called ‘Global’. I have successfully established a datastore called CGERhydro that points to database Global in schema cger.

My problem is that when in geoserver I attempt to establish a new feature type I get the following error: "An SQL exception occurred: ERROR: function force_2d(cger.geometry) does not exist ".

force_2d does in fact list within the functions available in the cger schema. Also, if I move the data table under the ‘public’ schema then geoserver is able to create the feature type without problem. My googling shows that others have confronted and resolved these types of issues but nowhere have I found -how- they are resolved.

Thanks in advance for any advice.

Mick Wilson
Division of Early Warning and Assessment (DEWA)
United Nations Environment Programme
PO Box 30552 - Nairobi 00100, Kenya
Tel: +254 20 7623436
Skype: mickwilson20
Fax: +254 20 7624315
Email: mick.wilson@anonymised.com
Lat: 1°14’3.72"S Lon: 36°49’5.93"E
Web www.unep.net, www.unep.org

Hi Mick,

My guess is that if postgis is installed locally in your schema (i have never seen this before, usually it is installed globally) then geoserver will not find your functions, because it never prefixes functions with the schema, only your data.

How did you go about installing postgis to a specific schema? Is this required in your case?

-Justin

Mick Wilson wrote:

Apologies in advance if this query is better suited to the postgres and postgis lists but it does strike me as being more in the province of geoserver.

I have a postgres database with a schema (called 'cger') into which I have loaded the postgis library and have loaded many tables into a database called 'Global'. I have successfully established a datastore called CGERhydro that points to database Global in schema cger.

My problem is that when in geoserver I attempt to establish a new feature type I get the following error: "An SQL exception occurred: ERROR: function force_2d(cger.geometry) does not exist ".

force_2d does in fact list within the functions available in the cger schema. Also, if I move the data table under the 'public' schema then geoserver is able to create the feature type without problem. My googling shows that others have confronted and resolved these types of issues but nowhere have I found -how- they are resolved.

Thanks in advance for any advice.

Mick Wilson
Division of Early Warning and Assessment (DEWA)
United Nations Environment Programme
PO Box 30552 - Nairobi 00100, Kenya
Tel: +254 20 7623436
Skype: mickwilson20
Fax: +254 20 7624315
Email: mick.wilson@anonymised.com
Lat: 1°14'3.72"S Lon: 36°49'5.93"E
Web www.unep.net, www.unep.org

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

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get

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

_______________________________________________
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.

I am told by one of our postgis experts that you can probably fix this by changing the default search path of the user geoserver is logging in as:

alter user myuser set search_path to mypostgisschema,public

That might do the trick for you.

-Justin

Justin Deoliveira wrote:

Hi Mick,

My guess is that if postgis is installed locally in your schema (i have never seen this before, usually it is installed globally) then geoserver will not find your functions, because it never prefixes functions with the schema, only your data.

How did you go about installing postgis to a specific schema? Is this required in your case?

-Justin

Mick Wilson wrote:

Apologies in advance if this query is better suited to the postgres and postgis lists but it does strike me as being more in the province of geoserver.

I have a postgres database with a schema (called 'cger') into which I have loaded the postgis library and have loaded many tables into a database called 'Global'. I have successfully established a datastore called CGERhydro that points to database Global in schema cger.

My problem is that when in geoserver I attempt to establish a new feature type I get the following error: "An SQL exception occurred: ERROR: function force_2d(cger.geometry) does not exist ".

force_2d does in fact list within the functions available in the cger schema. Also, if I move the data table under the 'public' schema then geoserver is able to create the feature type without problem. My googling shows that others have confronted and resolved these types of issues but nowhere have I found -how- they are resolved.

Thanks in advance for any advice.

Mick Wilson
Division of Early Warning and Assessment (DEWA)
United Nations Environment Programme
PO Box 30552 - Nairobi 00100, Kenya
Tel: +254 20 7623436
Skype: mickwilson20
Fax: +254 20 7624315
Email: mick.wilson@anonymised.com
Lat: 1°14'3.72"S Lon: 36°49'5.93"E
Web www.unep.net, www.unep.org

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

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get

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

_______________________________________________
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.

Thanks muchly, Justin.

Did the trick! I had tried setting the search_path without improving my success - guess I had incomplete syntax.

Thanks again for the quick support.

Mick Wilson
Division of Early Warning and Assessment (DEWA)
United Nations Environment Programme
PO Box 30552 - Nairobi 00100, Kenya
Tel: +254 20 7623436
Skype: mickwilson20
Fax: +254 20 7624315
Email: mick.wilson@anonymised.com
Lat: 1°14’3.72"S Lon: 36°49’5.93"E
Web www.unep.net, www.unep.org

Inactive hide details for Justin Deoliveira <jdeolive@anonymised.com>Justin Deoliveira <jdeolive@anonymised.com…>

Justin Deoliveira jdeolive@anonymised.com

04/06/2009 01:52 AM

To

Mick Wilson Mick.Wilson@anonymised.com

cc

geoserver-users@lists.sourceforge.net

Subject

Re: [Geoserver-users] Postgis functions under postgres schemas

I am told by one of our postgis experts that you can probably fix this
by changing the default search path of the user geoserver is logging in as:

alter user myuser set search_path to mypostgisschema,public

That might do the trick for you.

-Justin

Justin Deoliveira wrote:
> Hi Mick,
>
> My guess is that if postgis is installed locally in your schema (i have
> never seen this before, usually it is installed globally) then geoserver
> will not find your functions, because it never prefixes functions with
> the schema, only your data.
>
> How did you go about installing postgis to a specific schema? Is this
> required in your case?
>
> -Justin
>
> Mick Wilson wrote:
>> Apologies in advance if this query is better suited to the postgres and
>> postgis lists but it does strike me as being more in the province of
>> geoserver.
>>
>> I have a postgres database with a schema (called 'cger') into which I
>> have loaded the postgis library and have loaded many tables into a
>> database called 'Global'. I have successfully established a datastore
>> called CGERhydro that points to database Global in schema cger.
>>
>> My problem is that when in geoserver I attempt to establish a new
>> feature type I get the following error: "An SQL exception occurred:
>> ERROR: function force_2d(cger.geometry) does not exist ".
>>
>> force_2d does in fact list within the functions available in the cger
>> schema. Also, if I move the data table under the 'public' schema then
>> geoserver is able to create the feature type without problem. My
>> googling shows that others have confronted and resolved these types of
>> issues but nowhere have I found -how- they are resolved.
>>
>> Thanks in advance for any advice.
>>
>> Mick Wilson
>> Division of Early Warning and Assessment (DEWA)
>> United Nations Environment Programme
>> PO Box 30552 - Nairobi 00100, Kenya
>> Tel: +254 20 7623436
>> Skype: mickwilson20
>> Fax: +254 20 7624315
>> Email: mick.wilson@anonymised.com
>> Lat: 1°14'3.72"S Lon: 36°49'5.93"E
>> Web www.unep.net, www.unep.org
>>
>>
>> ------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------
>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
>> looking to deploy the next generation of Solaris that includes the latest
>> innovations from Sun and the OpenSource community. Download a copy and
>> enjoy capabilities such as Networking, Storage and Virtualization.
>> Go to: ``[http://p.sf.net/sfu/opensolaris-get](http://p.sf.net/sfu/opensolaris-get)
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> ``[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)
>
>

--
Justin Deoliveira
OpenGeo - ``[http://opengeo.org](http://opengeo.org)
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: ``[http://p.sf.net/sfu/opensolaris-get](http://p.sf.net/sfu/opensolaris-get)
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)

pic00236.gif

Ciao Uwe,
the answer I gave you on the other thread applies here as well.
You can't encode a float or double tiff as png or jpeg.
No surprise that the same request work with rgb data.

Wcs has been made for raw data, for rendering you need to resort to wms.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Jun 3, 2009 at 12:16 PM, uhag <uwehag@anonymised.com> wrote:

Hi all,

I'm new to geoserver, trying to set up a wcs. I use GeoTiffs as coverage
stores with inner tiling and overviews. Everything works fine for the
following request:

http://localhost:8080/geoserver/wcs?service=WCS&request=GetCoverage&version=1.0.0&coverage=imk:GLCF_2000_EPSG_3035_tld&CRS=EPSG:3035&BBOX=4280760,3321450,4656375,3715920&Width=525&height=500&format=png

This coverage has 3 bands of type Byte (rgb).

The same request fails for other coverages, the result depending on the
requested format:
png, jpeg: "Unable to render RenderedOp for this operation." or
"All factories fail for the operation 'ImageWrite'"
gif: "The specified ColorModel is incompatible with the image
SampleModel."
tiff, geotiff: an image is returned, but it is all grey (maybe a different
problem?)
All these formats are listed in the DescribeCoverage document.

All coverages giving bad results have 1 band of type Float32, Int16 or
Int32.
The sizes of the source-geotiffs are app. 200-400MB with the one working
being 290MB.

Requests to the wms return nicely coloured images for any layer.

I'm running geoserver 1.7.4 with tomcat 60.

Any suggestions would be appreciated!

cheers,
Uwe
--
View this message in context: http://www.nabble.com/wcs-tp23848939p23848939.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users