Ok, perfect. But now my problem is other.
I'm trying to show in my own xhtml page the sample terrain loaded in my
geoserver.
First of all I have verified the capabilities of my geoserver
http://10.27.8.181:9090/geoserver/ows?service=w3ds&version=0.4.0&request=GetCapabilities
And in the result I can see my layers with their properties. (I only can
see shapefile layers... Why geotiff layers as we have been test are not
shown?)
With this result I want to show my terrain layer...
http://10.27.8.181:9090/geoserver/w3ds?version=0.4&service=w3ds&request=GetScene&crs=EPSG:3047&format=text/html&layers=fiware:terrain&boundingbox=374150,7548900,374550,7549400
With this request (format=text/html) I get a web page and clicking in see
all I can see something black... I supose this is my 3d map without a
texture.
But now I want to do the same in my xhtml page...
With this request:
http://10.27.8.181:9090/geoserver/w3ds?version=0.4&service=w3ds&request=GetScene&crs=EPSG:3047&format=model/xml3d+xml&layers=fiware:terrain&boundingbox=374150,7548900,374550,7549400
I get a terrain.xml3d file that looks like:
<group id="POLYGON" class="NodeClassName"><mesh type="triangles"><int
name="index">0 1 2 2 3 0 3 2 4 4 5 3 5 4 6 6 7 5 7 6 8 8 9 7 9 8 10 10 11 9
11 10 12 12 13 11 13 12 14 14 15 13 15 14 16 16 17 15 17 16 18 18 19 17 19
18 20 20 21 19 21 20 22 22 23 21 23 22 24 24 25 23 25 24 26 26 27 25 27 26
28 28 29 27 29 28 30 30 31 29 31 30 32 32 33 31 33 32 34 34 35 33 35 34 36
36 37 35 37 36 38 38 39 37 39 38 40 40 41 39 41 ...
I want to show this data in my mapbut I can't do that. I have tried to
follow this guide:
https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_User_and_Programmers_Guide
but I cant load my data... Other problem that I have found is that when I
try to change the format attribute in my request, the result is a format
error.
i think that I am next to the final solution... Any example of and xhtml
file loading this data and show it in a map will be great.
Thanks for your attention.
Please send the answer to this request to "Xabi Esteban" <estebanxabi@gmail.com>