Comments (3)
Hello,
I use BIL above png because this last format needs a longer process than BIL data:
- for BIL data, geoserver just needs to read each pixel of the image (16 bits grey) in order to create an array of 16 bits integer data.
- for png image, geoserver must read and translate color of each pixel thanks to SLD in order to create a new image
Geoserver uses less ressources to create a BIL format and it's easier for client javascript to process an array of data rather than to process an image which needs to be converted into a bigger array (twice size of bil array). Nevertheless, the net cost is bigger like you said.
I cope with bad BIL in the plug in:
1 https://github.com/kaktus40/Cesium-GeoserverTerrainProvider/blob/master/GeoserverTerrainProvider.js#L572 ensures that the BIL received by client has the good size.
2 If the BIL received hasn't the good size, the client request the same tile in a png format using the style proposed in mySLD.xml. (see lines 367 and 387 )
The style in mySLD.xml defines a ramp where a height of -32768m is converted into color #000000 and a height of 15000m is converted into color #00BA98.
I don't think it's needed to select an image format because from the point of view of the plug in, it's a poor workaround to directly work with images not associated with a SLD (less precise than BIL array or an image associated with mySLD.xml)
The plug in request the description of layer from geoserver and choose the proper format to use (BIL first, png and finally jpeg)
from cesium-geoserverterrainprovider.
Hello, in my update of GeoserverTerrainProvider for cesium V1,
I followed your recommandations and I improved the plug in in order to
use png format.
I saw that you worked on bil plugin into geoserver also.
I'll explain all use case of the plug in in the README
For now I test my improved version.
On 13/06/2014 17:24, gberaudo wrote:
Hi,
First, thank you for maintaining this plugin.
I have been experiencing with it and would like to share my feedback
and also ask questions ;).It works using BIL/PNG, style, on top of one geotiff.
PNG tiles only weight 3K when BIL are using 8K.
So why do you advice the use of BIL format?Is it taking more resources on the client or server?
Have you done some measurements?I found two situations where geoserver would serve bad BIL:
- requesting a box which does not intersect with the source data
(fixed geoserver/geoserver#616
geoserver/geoserver#616);- sometimes 44K BIL is sent with bad data (only with pyramid plugin,
not fixed).You fallback on PNG if you cannot decode the BIL.
Do you also have these issues?For the record, I used gdal_retile.py -v -r bilinear -levels 4 -ps
2048 2048 -co "TILED=YES" -targetDir bmpyramid srtm90.tiff.Regards,
Guillaume
PS: maybe you could explain in the README how to select a request
image format (copying the image descriptor).β
Reply to this email directly or view it on GitHub
#4.
from cesium-geoserverterrainprovider.
Hello,
Thank you for informing me.
I like your new examples and pro/cons table.
I have been trying to have my BIL patch merged in geoserver but there
seems to be something wrong with the junit cases.
Regarding BIL size, I guess they are not served gziped, which would
explain the difference with png. Geoserver probably supports gzipping
generated content which would void the small advantage of png files.
Cheers,
Guillaume
from cesium-geoserverterrainprovider.
Related Issues (20)
- only half of the world map is rendered/wrapped around cesium globe when loaded the terrain from geoserver HOT 3
- only half of the world map is rendered HOT 4
- loading DEM of larger area than given area. HOT 1
- blocky terrain question HOT 12
- Using latest version of cesium HOT 5
- conditions when zooming in on the terrain HOT 8
- How to solve βSome tiffs are not int16 Gray images ? HOT 3
- Using with BIL DTM format ? HOT 1
- The speed of GeoserverTerrainProvider vs Cesium Terrain Format HOT 2
- Distorted terrain images HOT 11
- Stepped Terrain on Low Elevation Zooming HOT 1
- Transparent Globe instead of map HOT 4
- Stepped relief. Please help me understand my error HOT 3
- Authkey add in geoseerver wms Service HOT 2
- large dem file not able to show
- Dem showing issue
- issue in showing large dsm files showing spikes and cuts HOT 17
- import? HOT 1
- Not compatible to Cesium 1.105 HOT 5
- hello , the code cannot run , npm run dev failed ,
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cesium-geoserverterrainprovider.