[Geoserver-users] Raster question

Hi.

I have been workin mostly with vectors using WMS, WFS and Openlayers with javascript. Mostly no experience with rasters.

My problem is the following: via geocoding using postal address I can get a coordinate pair. Then I have around 30 rasters (geotiffs) on our Geoserver as separate layers. Does anybody have an idea, how to get a matching raster (coordinate pair from geocoding) from Geoserver, and add it to a map as a layer? Combining those tiffs as one tiff is not a solution (too large).

Thanks, Oiva

On Thu, May 8, 2014 at 11:21 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com>wrote:

Hi.

I have been workin mostly with vectors using WMS, WFS and Openlayers with
javascript. Mostly no experience with rasters.

My problem is the following: via geocoding using postal address I can get
a coordinate pair. Then I have around 30 rasters (geotiffs) on our
Geoserver as separate layers. Does anybody have an idea, how to get a
matching raster (coordinate pair from geocoding) from Geoserver, and add it
to a map as a layer? Combining those tiffs as one tiff is not a solution
(too large).

How about putting all of them in the same directory and use the image
mosaic plugin? Or are they different in nature (e.g, different color model?)
As an alternative, I guess you can parse the capabilties document, it has
the bbox for each layer, and use that to decide which layer fits.

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

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

Thanks

Those rasters share the same srs and color mode. Still don’t know, is it usefull to make an imagemosaic, because don’t know how to call part of it using a coordinate pair? A grid would be much better, but 2m resolution, well, it would be much too heavy.

Oiva

···

On Thu, May 8, 2014 at 11:21 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Hi.

I have been workin mostly with vectors using WMS, WFS and Openlayers with javascript. Mostly no experience with rasters.

My problem is the following: via geocoding using postal address I can get a coordinate pair. Then I have around 30 rasters (geotiffs) on our Geoserver as separate layers. Does anybody have an idea, how to get a matching raster (coordinate pair from geocoding) from Geoserver, and add it to a map as a layer? Combining those tiffs as one tiff is not a solution (too large).

How about putting all of them in the same directory and use the image mosaic plugin? Or are they different in nature (e.g, different color model?)
As an alternative, I guess you can parse the capabilties document, it has the bbox for each layer, and use that to decide which layer fits.

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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


Hum…
why does it have to be part of it? GeoSever can effienclty extract only the portion of the mosaic
that is currently in the view, especially if you optimized the rasters (added inner tiles and overviews)

Anyways, your other option is the capabilities parsing one from the client side.

Cheers
Andrea

···

On Thu, May 8, 2014 at 12:01 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com83…> wrote:

Thanks

Those rasters share the same srs and color mode. Still don’t know, is it usefull to make an imagemosaic, because don’t know how to call part of it using a coordinate pair? A grid would be much better, but 2m resolution, well, it would be much too heavy.

Oiva


Lähettäjä: andrea.aime@anonymised.com [andrea.aime@anonymised.com] käyttäjän Andrea Aime [andrea.aime@anonymised.com] puolesta
Lähetetty: 8. toukokuuta 2014 12:51
Vastaanottaja: Hakala Oiva (MTT)
Kopio: GeoServer Mailing List List
Aihe: Re: [Geoserver-users] Raster question

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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


On Thu, May 8, 2014 at 11:21 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Hi.

I have been workin mostly with vectors using WMS, WFS and Openlayers with javascript. Mostly no experience with rasters.

My problem is the following: via geocoding using postal address I can get a coordinate pair. Then I have around 30 rasters (geotiffs) on our Geoserver as separate layers. Does anybody have an idea, how to get a matching raster (coordinate pair from geocoding) from Geoserver, and add it to a map as a layer? Combining those tiffs as one tiff is not a solution (too large).

How about putting all of them in the same directory and use the image mosaic plugin? Or are they different in nature (e.g, different color model?)
As an alternative, I guess you can parse the capabilties document, it has the bbox for each layer, and use that to decide which layer fits.

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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


You are right of course. No need to call part of the mosaic.
I was thinking, would a layergroup be useful? No extra plugins, no learning curve. Tiffs are not overlapping. It is just a matter of restricting available zoom levels or restricting raster’s visibility depending of a zoom level.

Oiva

Hum…
why does it have to be part of it? GeoSever can effienclty extract only the portion of the mosaic
that is currently in the view, especially if you optimized the rasters (added inner tiles and overviews)

Anyways, your other option is the capabilities parsing one from the client side.

Cheers
Andrea

···

On Thu, May 8, 2014 at 12:01 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Thanks

Those rasters share the same srs and color mode. Still don’t know, is it usefull to make an imagemosaic, because don’t know how to call part of it using a coordinate pair? A grid would be much better, but 2m resolution, well, it would be much too heavy.

Oiva


Lähettäjä: andrea.aime@anonymised.com [andrea.aime@anonymised.com] käyttäjän Andrea Aime [andrea.aime@anonymised.com] puolesta
Lähetetty: 8. toukokuuta 2014 12:51
Vastaanottaja: Hakala Oiva (MTT)
Kopio: GeoServer Mailing List List
Aihe: Re: [Geoserver-users] Raster question

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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


On Thu, May 8, 2014 at 11:21 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Hi.

I have been workin mostly with vectors using WMS, WFS and Openlayers with javascript. Mostly no experience with rasters.

My problem is the following: via geocoding using postal address I can get a coordinate pair. Then I have around 30 rasters (geotiffs) on our Geoserver as separate layers. Does anybody have an idea, how to get a matching raster (coordinate pair from geocoding) from Geoserver, and add it to a map as a layer? Combining those tiffs as one tiff is not a solution (too large).

How about putting all of them in the same directory and use the image mosaic plugin? Or are they different in nature (e.g, different color model?)
As an alternative, I guess you can parse the capabilties document, it has the bbox for each layer, and use that to decide which layer fits.

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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


On Thu, May 8, 2014 at 12:37 PM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com>wrote:

You are right of course. No need to call part of the mosaic.
I was thinking, would a layergroup be useful? No extra plugins, no
learning curve. Tiffs are not overlapping. It is just a matter of
restricting available zoom levels or restricting raster's visibility
depending of a zoom level.

A layer group is not smart enough to drop the rasters it does not need, the
image mosaic is, and it's built-in, no need for extra
plugins.
Just put all of your rasters in a single folder, and point the mosaic store
to the folder, if they are similar enough it should work

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

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