-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After using plugin only half of the world map is rendered/wrapped around cesium globe #7
Comments
Hello,
On 24/03/2015 08:24, bik20 wrote:
|
Here is the gdalinformation for srtm_52_10.tif (which was used as resource to create tiles through gdal_retile.py) - C:> gdalinfo srtm_52_10.tif For issue 1, I'll try to resolve by using for suggested solutions. |
Ok for the original resource but could you give me the result of the command for the generated tif with gdal_retile (one file is suffisant) |
This is the gdalinfo - Driver: GTiff/GeoTIFF /* END */ Is there any problem with corner coordinates ? In other tiles' gdalinfo what I checked over internet, I observed that the corner coordinates were from 0.0-90.0, 0.0-0.0, 90.0-90.0,90.0-0.0,45.0-45.0, for first tile. |
No for the corner it's OK, On 24/03/2015 12:16, bik20 wrote:
|
Ok, thanks I will try to use gdal_translate and gdal2tiles for converting srtm tiff file into tiles . |
No I meant to use In fact which server do you use? geoserver? On 24/03/2015 13:29, bik20 wrote:
|
Oh... my mistake, I will give it a try. |
Did you insert bil/dds plug in in geoserver? On 24/03/2015 17:06, bik20 wrote:
|
Yes I insterted bil/dds plugin in geoserver and than provided the format type and other parameters of image/bil. What parameters I gave were similar as given in WMSparamters.md. |
Thanks for the help. I resolved first issue (getting only half of the globe) by making getTileDataAvailable as always true, and the terrain is successfully draped aldo, but still I am getting wrong lat, lon and elevation values. Still I am facing this issue. The code what I am using is - ( In geoserver, geotifftransformed image is saved in store by adding raster data source as Geotiff) var viewer = new Cesium.Viewer('cesiumContainer'); var terrainProvider = new Cesium.GeoserverTerrainProvider({ var hand = new Cesium.ScreenSpaceEventHandler(scene.canvas); hand.setInputAction( |
Ok now to force the plug in to use the translated geotif, you must terrainProvider = new Cesium.GeoserverTerrainProvider({ On 24/03/2015 21:08, bik20 wrote:
|
Still I am getting same problem with lat, lon and elevation. Infact at some locations over the terrain area on mouse click event I am not getting any values in console. I tried both ways, I created tiles after using Geotifftranslate.jar utility, then also I am getting same problem and I directly stored the translated tif in the Geoserver as Geotiff raster source. Is there any problem with my code itself. |
You should use Geotifftranslate.jar on your original geotiff, generate a On 25/03/2015 06:18, bik20 wrote:
|
The issue with wrong lat and lon and elevation is resolved, there was some error with the conversion of cartesian and cartographic coordinates. I changed the example code, which I was took from readme.md of plugin, for elevation. if (cartesian) {
var cartographic = ellipsoid.cartesianToCartographic(cartesian);
cartographic.height=globe.getHeight(cartographic);
console.log(altitude="+cartographic.height+" meters")
} to if (cartesian) {
var cartographic = ellipsoid.cartesianToCartographic(cartesian);
cartographic.height=globe.getHeight(cartographic);
var lon = Cesium.Math.toDegrees(cartographic.longitude);
var lat = Cesium.Math.toDegrees(cartographic.latitude);
var positions=[ Cesium.Cartographic.fromDegrees(lon, lat)];
var promise = Cesium.sampleTerrain(terrainProvider, 12, positions);
Cesium.when(promise, function(updatedPositions) {
console.log('Elevation is' +position[0].height);
}); And I removed Thanks for the help ! 👍 👍 👍 |
Ok I see what is the problem: |
for the flat surface on peak, you gave a too high level in parameter. For SRTM that have a precision of 90 meters for each pixel, level 11 should be a max. And you could use the bil/DDS plugin |
Thanks, just for verification, I inserted bil/DDS plugin and I am using -
I am not getting any option for BIL format setting in Geoserver. So I am directly using. Is this procedure OK ? Or what should I do to get the settings back in Geoserver. |
By default the plug in use BIL/DDS format if it's available. So You don't need to explicit formatArray or formatImage |
Thanks again for solving the issues! 👍 |
bik20 Hi, can you help me, where did you put the getTileDataAvailable to return always true? Thanks |
I have to render a terrain tile of particular area on the cesium globe. For that, I have used srtm data in geotiff format and used gdal utility 'gdal_retilepy' to create tiles and then added in Geoserver through imagepyramid plugin. I have inserted mySLD.xml (styled geotiff format), as mentioned in readme.md. I am using bing map as base layer.
I am getting following issues with the plugin -
But I can view the draped terrain on the area (rendering is possible).
The text was updated successfully, but these errors were encountered: