Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-3875

FIWARE.Request.Tech.WebUI.GISDataProvider.Geoserver/3D_Help

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hi, I need some help.

      First of all, I want to say that my project parnet tried to deploy the "
      3d-UI-XML3d Geo Visualization" Bundle, but He always obtain error
      instaling. Its not always the same error.... so I cant help you more.

      For this reason... I have intalled "GIS data Provider - Geoserver 3d" in
      my Ubuntu machine. Everything seems to work fine. I have upload to
      geoserver the FIWARE-test_asset sahpe file and I can see this layer in
      my GIS_Client_xml3d/index.xhtml

      Now I want to to the same with my own maps. I have tried very differents
      maps, but in the GIS_Client_xml3d/index.xhtml... I can see my new layers in
      "Select Objects menu" but never in select terrain layer as i want.

      How can I upload a terrain layer from some opendata web? I have to create
      my own terrain layer? there is not a free layer map?

      Thanks.

      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-lab-help

      [Created via e-mail received from: Xabi Esteban <estebanxabi@gmail.com>]

        Activity

        Hide
        fw.ext.user FW External User added a comment -

        But the problem is the same.

        I have jusd download...

        • Entity ID: SRTM1N11W009V3
        • Publication Date: 23-SEP-14
        • Resolution: 1-ARC
        • Coordinates: 11 , -9
        • a map. The format file is geotiff. And the the problems are the same
          that i have reported before. In the w3ds tab I obtain the same error:

        org.apache.wicket.WicketRuntimeException: Exception in rendering component:
        [MarkupContainer [Component id = x3d.objectid]] at
        org.apache.wicket.Component.renderComponent(Component.java:2725) at
        org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1538)

        And in the GIS_Client_DEM/index.xhtml I can load the DEM layer, but I
        can't see the map. The erros in the javascript console ar the same.

        Show
        fw.ext.user FW External User added a comment - But the problem is the same. I have jusd download... Entity ID: SRTM1N11W009V3 Publication Date: 23-SEP-14 Resolution: 1-ARC Coordinates: 11 , -9 a map. The format file is geotiff. And the the problems are the same that i have reported before. In the w3ds tab I obtain the same error: org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = x3d.objectid] ] at org.apache.wicket.Component.renderComponent(Component.java:2725) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1538) And in the GIS_Client_DEM/index.xhtml I can load the DEM layer, but I can't see the map. The erros in the javascript console ar the same.
        Hide
        fw.ext.user FW External User added a comment -

        Finally I have downaloded a Geotiff file. I have publish my layer in
        geoserver correctly. When I try to see this layer in
        my GIS_Client_DEM/index.xhtml I can select my layer.

        Data of this layer are displayed, but the map is not shwon.

        Now, the map is always oading but in the console I get this error:

        Uncaught RangeError: byte length of Float32Array should be a multiple of 4

        Once this error happens, the map is not loaded.

        Show
        fw.ext.user FW External User added a comment - Finally I have downaloded a Geotiff file. I have publish my layer in geoserver correctly. When I try to see this layer in my GIS_Client_DEM/index.xhtml I can select my layer. Data of this layer are displayed, but the map is not shwon. Now, the map is always oading but in the console I get this error: Uncaught RangeError: byte length of Float32Array should be a multiple of 4 Once this error happens, the map is not loaded.
        Hide
        jhyvarinen Cyber Lightning added a comment -

        Hi,

        I believe that we found out what caused error which you reported. It should be fixed in client version available from our source code repository (https://github.com/Cyberlightning/GISDataProvider) and fix will also be released to forge later this week.

        Show
        jhyvarinen Cyber Lightning added a comment - Hi, I believe that we found out what caused error which you reported. It should be fixed in client version available from our source code repository ( https://github.com/Cyberlightning/GISDataProvider ) and fix will also be released to forge later this week.
        Hide
        fw.ext.user FW External User added a comment -

        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.

        Show
        fw.ext.user FW External User added a comment - 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.
        Hide
        jhyvarinen Cyber Lightning added a comment -

        Hi,

        I have added my responses below each question.

        > 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?)

        As I have said earlier GeoTIFF layers (all image based formats are raster formats) are not supported by W3DS module and therefore those are not listed in GetCapabilities response. GeoTIFF layers are served by wms module in octet-stream format (https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_User_and_Programmers_Guide#World_Wind_Format_Module)

        > 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.

        Actually, text/html is only partially implemented and it should be removed from GetCapabilities response. I'm sorry for any inconvenience.

        > 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.

        In our reference client data adding it to a web page is handled here: https://github.com/Cyberlightning/GISDataProvider/blob/master/GIS_Client_xml3d/scripts/scenemngr.js#L346

        It could also be useful to study some basics how XML3D works. You can find getting started guide from here: http://xml3d.org/getting-started/

        I hope that this answer helps you forward.

        -Juha

        Show
        jhyvarinen Cyber Lightning added a comment - Hi, I have added my responses below each question. > 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?) As I have said earlier GeoTIFF layers (all image based formats are raster formats) are not supported by W3DS module and therefore those are not listed in GetCapabilities response. GeoTIFF layers are served by wms module in octet-stream format ( https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_User_and_Programmers_Guide#World_Wind_Format_Module ) > 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. Actually, text/html is only partially implemented and it should be removed from GetCapabilities response. I'm sorry for any inconvenience. > 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. In our reference client data adding it to a web page is handled here: https://github.com/Cyberlightning/GISDataProvider/blob/master/GIS_Client_xml3d/scripts/scenemngr.js#L346 It could also be useful to study some basics how XML3D works. You can find getting started guide from here: http://xml3d.org/getting-started/ I hope that this answer helps you forward. -Juha

          People

          • Assignee:
            jhyvarinen Cyber Lightning
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: