[Geoserver-users] Display a raster without black background around

Hi the team !

I am a french user of GS.

I would display a raster (.tiff). No problem, it runs, but I have a black
background around the picture.

I have tried many SLD styles, in 3 bands or 1 band, but without success.

In fact, I can hide this black background in 1 band, but I lost colors of
my raster, and I would keep "true" colors.

Can you help me ? What do you recommend me ?

THX

Hey!

You could load this coverage as "1 tile" ImageMosaic. The you'd have the
full control over the input / output transparency.

Or even better yet, cut this raster into smaller tiles and make an actual
mosaic.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Display-a-raster-without-black-background-around-tp5207282p5207339.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

OK thanks, but I do not understand.

Adding a tiff in a single band, I can remove the black-background but I
loose true colors, like here :
http://geo-ids.fr:9322/geoserver/hgmap/wms?service=WMS&version=1.1.0&request=GetMap&layers=hgmap:courdi_drone1&styles=&bbox=1.9988911320862897,49.03402197991782,2.0052071448892046,49.03839262998014&width=512&height=354&srs=EPSG:4326&format=application/openlayers
<http://geo-ids.fr:9322/geoserver/hgmap/wms?service=WMS&version=1.1.0&request=GetMap&layers=hgmap:courdi_drone1&styles=&bbox=1.9988911320862897,49.03402197991782,2.0052071448892046,49.03839262998014&width=512&height=354&srs=EPSG:4326&format=application/openlayers&gt;

How can I set true colors ?

And if I use "Image Mosaic", I must create directory with my raster into,
but I think it is not necessary, no ?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Display-a-raster-without-black-background-around-tp5207282p5207392.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Georges,
if you want to publish this dataset as a single geotiff, when you
configure the coverage you can specify a transparent color, in your
case black (#000000).
This is not something you can do with SLD:

Let me know if this helps.

Regards,
Simone Giannecchini

Meet us at the INSPIRE Conference in Lisbon 25-29 May 2015! Visit
http://goo.gl/WHKDXT 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

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.

On Sat, May 23, 2015 at 6:24 PM, Georges H <georges.hinot@anonymised.com> wrote:

Hi the team !

I am a french user of GS.

I would display a raster (.tiff). No problem, it runs, but I have a black
background around the picture.

I have tried many SLD styles, in 3 bands or 1 band, but without success.

In fact, I can hide this black background in 1 band, but I lost colors of my
raster, and I would keep "true" colors.

Can you help me ? What do you recommend me ?

THX

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi

Yes thanks you ! It is perfect !

Many thanks !

···

2015-05-25 15:23 GMT+02:00 Simone Giannecchini [via OSGeo.org] <[hidden email]>:

Ciao Georges,
if you want to publish this dataset as a single geotiff, when you
configure the coverage you can specify a transparent color, in your
case black (#000000).
This is not something you can do with SLD:

Let me know if this helps.

Regards,
Simone Giannecchini

Meet us at the INSPIRE Conference in Lisbon 25-29 May 2015! Visit
http://goo.gl/WHKDXT 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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.

On Sat, May 23, 2015 at 6:24 PM, Georges H <[hidden email]> wrote:

Hi the team !

I am a french user of GS.

I would display a raster (.tiff). No problem, it runs, but I have a black
background around the picture.

I have tried many SLD styles, in 3 bands or 1 band, but without success.

In fact, I can hide this black background in 1 band, but I lost colors of my
raster, and I would keep “true” colors.

Can you help me ? What do you recommend me ?

THX


One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/Display-a-raster-without-black-background-around-tp5207282p5207414.html
To unsubscribe from Display a raster without black background around, click here.
NAML

Georges Hinot
CNRS - DRIIHM - UMS BBEES (3468)

Musée d’Histoire Naturelle de Paris, Maison Buffon

Géomaticien - Administrateur BDD - Intégrateur
[hidden email]
[hidden email]
Tél : 01 40 79 80 44
Tél : 06 47 61 84 92

Le nouveau site DRIIHM-ROHM !