[Geoserver-users] empty image for non-existing time request on an 'imagemosaic'

Hi Simone,

thanks for the reply -

Index rebuild: at the moment i run a cron job to pick up new images and rebuild the index with a little java program which ditches the old one and builds a new one using CatalogBuilder (pls tell me if that is the wrong way to go about it) - 8 lines of code.

return code: could it be an option to configure that - even in the mosaic properties file (that way you don’t need to drag in into the ui in the first instance)?

as this is a show stopper at the moment, is there a way to query the store to get the available start and end time ?

Many thanks
Uwe

On 27/11/2012, at 3:25 AM, Simone Giannecchini wrote:

Ciao Uwe,
a preliminary thing, if you are adding new granules to an existing
mosaic I would rather use postgis as an index and simply ad a new row
when new data is added.

That said, right now the default behavior is as you see, that is if
you make a request in the right area but with improper TIME values you
get a void image back.
I believe your request sound reasonable but it might break existing
existing clients. Anyway, if you file an enhancement request this
might spawn some discussion
with the other devs to see what we can do to achieve the requested behavior.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Sat, Nov 24, 2012 at 7:29 AM, Uwe.Rosebrock@anonymised.com wrote:

Hi list,

I am using the imagemosaic plugin to serve geotiff’s produced daily (the store index gets rebuild after a new image gets added - that works fine).

If i query for a particular date which doesn’t exist in the index, an empty image gets returned - to my mind it should return a 404.

Could somebody please clarify the response process - and - is there a way to change that response to i.e. 404?

Cheers

Uwe


Monitor your physical, virtual and cloud infrastructure from a single

web console. Get in-depth insight into apps, servers, databases, vmware,

SAP, cloud infrastructure, etc. Download 30-day Free Trial.

Pricing starts from $795 for 25 servers or applications!

http://p.sf.net/sfu/zoho_dev2dev_nov


Geoserver-users mailing list

Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ciao Uwe,
my suggestion is as follows:

-1- use postgis instead of shapefile for indexing your files
-2- add the incoming file directly to the postigs table used for
indexing. GeoServer will pick it up from there

That said, I can provide some more help on how to do this, but I
believe it would be good also to have some additional info on which
type of raster data you are using, as follows:
- subsequent raster covers the same area at different time?
- all rasters have the same spatial resolution and CRS?

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

On Mon, Nov 26, 2012 at 10:14 PM, Uwe Rosebrock <uwe.rosebrock@anonymised.com> wrote:

Hi Simone,

thanks for the reply -

Index rebuild: at the moment i run a cron job to pick up new images and
rebuild the index with a little java program which ditches the old one and
builds a new one using CatalogBuilder (pls tell me if that is the wrong way
to go about it) - 8 lines of code.

return code: could it be an option to configure that - even in the mosaic
properties file (that way you don't need to drag in into the ui in the first
instance)?

as this is a show stopper at the moment, is there a way to query the store
to get the available start and end time ?

Many thanks
Uwe

On 27/11/2012, at 3:25 AM, Simone Giannecchini wrote:

Ciao Uwe,
a preliminary thing, if you are adding new granules to an existing
mosaic I would rather use postgis as an index and simply ad a new row
when new data is added.

That said, _right now_ the default behavior is as you see, that is if
you make a request in the right area but with improper TIME values you
get a void image back.
I believe your request sound reasonable but it might break existing
existing clients. Anyway, if you file an enhancement request this
might spawn some discussion
with the other devs to see what we can do to achieve the requested behavior.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

On Sat, Nov 24, 2012 at 7:29 AM, <Uwe.Rosebrock@anonymised.com> wrote:

Hi list,

I am using the imagemosaic plugin to serve geotiff's produced daily (the
store index gets rebuild after a new image gets added - that works fine).

If i query for a particular date which doesn't exist in the index, an empty
image gets returned - to my mind it should return a 404.

Could somebody please clarify the response process - and - is there a way to
change that response to i.e. 404?

Cheers

Uwe

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

Monitor your physical, virtual and cloud infrastructure from a single

web console. Get in-depth insight into apps, servers, databases, vmware,

SAP, cloud infrastructure, etc. Download 30-day Free Trial.

Pricing starts from $795 for 25 servers or applications!

http://p.sf.net/sfu/zoho_dev2dev_nov

_______________________________________________

Geoserver-users mailing list

Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Simone,

Considering that number of raster will eventually become rather large I will move to postgis eventually - at this point i needed something to work.
However that doesn’t really help me with figuring out how much data there is i.e. what is the last or first date (as the index is based on the date).
Is there a way by query to find out ? - Obviously as you can see by now - I am not normally working much in the GIS world.

as to your question - yes and yes.

Cheers
Uwe


Uwe Rosebrock

Software Engineer
CSIRO Marine & Atmospheric Research

T +61 (0)3 6232 5181
E uwe.rosebrock@anonymised.com

M +61 (0)422 513453

Castray Esplanade,
Hobart, TAS 7000
www.csiro.au

On 28/11/2012, at 12:13 AM, Simone Giannecchini wrote:

Ciao Uwe,
my suggestion is as follows:

-1- use postgis instead of shapefile for indexing your files
-2- add the incoming file directly to the postigs table used for
indexing. GeoServer will pick it up from there

That said, I can provide some more help on how to do this, but I
believe it would be good also to have some additional info on which
type of raster data you are using, as follows:

  • subsequent raster covers the same area at different time?
  • all rasters have the same spatial resolution and CRS?

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Mon, Nov 26, 2012 at 10:14 PM, Uwe Rosebrock <uwe.rosebrock@anonymised.com67…> wrote:

Hi Simone,

thanks for the reply -

Index rebuild: at the moment i run a cron job to pick up new images and

rebuild the index with a little java program which ditches the old one and

builds a new one using CatalogBuilder (pls tell me if that is the wrong way

to go about it) - 8 lines of code.

return code: could it be an option to configure that - even in the mosaic

properties file (that way you don’t need to drag in into the ui in the first

instance)?

as this is a show stopper at the moment, is there a way to query the store

to get the available start and end time ?

Many thanks

Uwe

On 27/11/2012, at 3:25 AM, Simone Giannecchini wrote:

Ciao Uwe,

a preliminary thing, if you are adding new granules to an existing

mosaic I would rather use postgis as an index and simply ad a new row

when new data is added.

That said, right now the default behavior is as you see, that is if

you make a request in the right area but with improper TIME values you

get a void image back.

I believe your request sound reasonable but it might break existing

existing clients. Anyway, if you file an enhancement request this

might spawn some discussion

with the other devs to see what we can do to achieve the requested behavior.

Regards,

Simone Giannecchini

==

Our support, Your Success! Visit http://opensdi.geo-solutions.it for

more information.

==

Ing. Simone Giannecchini

@simogeo

Founder/Director

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 333 8128928

http://www.geo-solutions.it

http://twitter.com/geosolutions_it


On Sat, Nov 24, 2012 at 7:29 AM, Uwe.Rosebrock@anonymised.com wrote:

Hi list,

I am using the imagemosaic plugin to serve geotiff’s produced daily (the

store index gets rebuild after a new image gets added - that works fine).

If i query for a particular date which doesn’t exist in the index, an empty

image gets returned - to my mind it should return a 404.

Could somebody please clarify the response process - and - is there a way to

change that response to i.e. 404?

Cheers

Uwe


Monitor your physical, virtual and cloud infrastructure from a single

web console. Get in-depth insight into apps, servers, databases, vmware,

SAP, cloud infrastructure, etc. Download 30-day Free Trial.

Pricing starts from $795 for 25 servers or applications!

http://p.sf.net/sfu/zoho_dev2dev_nov


Geoserver-users mailing list

Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users


Monitor your physical, virtual and cloud infrastructure from a single

web console. Get in-depth insight into apps, servers, databases, vmware,

SAP, cloud infrastructure, etc. Download 30-day Free Trial.

Pricing starts from $795 for 25 servers or applications!

http://p.sf.net/sfu/zoho_dev2dev_nov


Geoserver-users mailing list

Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users