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

        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
        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
        jhyvarinen Cyber Lightning added a comment -

        Hi,

        We just updated wiki page to clarify some steps in layer publishing process. Updated documentation can be found from here: http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_Installation_and_Administration_Guide#GeoTIFF_based_.28DEM.29_data_sets_for_elevation

        As stated earlier there are numerous places where you can download digital elevation maps in raster format with included geospatial information. One place is http://earthexplorer.usgs.gov/. We have used SRTM data sets (Data Sets -> Digital Elevation -> SRTM) downloaded from there for testing and developing purposes.

        Textures are optional and if you just want to see terrain you won't need it.

        Show
        jhyvarinen Cyber Lightning added a comment - Hi, We just updated wiki page to clarify some steps in layer publishing process. Updated documentation can be found from here: http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_Installation_and_Administration_Guide#GeoTIFF_based_.28DEM.29_data_sets_for_elevation As stated earlier there are numerous places where you can download digital elevation maps in raster format with included geospatial information. One place is http://earthexplorer.usgs.gov/ . We have used SRTM data sets (Data Sets -> Digital Elevation -> SRTM) downloaded from there for testing and developing purposes. Textures are optional and if you just want to see terrain you won't need it.
        Hide
        fw.ext.user FW External User added a comment -

        Ok.

        I only want to see a map in 3D. Where I can to download a compatible map?
        In wich format? I need textures too?

        Once I have the map, to load the map and show it sould be easy.

        Show
        fw.ext.user FW External User added a comment - Ok. I only want to see a map in 3D. Where I can to download a compatible map? In wich format? I need textures too? Once I have the map, to load the map and show it sould be easy.
        Hide
        jhyvarinen Cyber Lightning added a comment -

        Hi,

        At the moment W3DS module doesn't support raster data and that reported crash is a known issue. When you use DEM files W3DS module is not used and therefore that error is irrelevant to your real problem.

        Did you set Byte Order from publishing tab as stated in setup guide? (https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_Installation_and_Administration_Guide)

        Is Coordinate Reference Systems set to same value than you data set is?

        Does server log some errors when you do requests from the client? By default log file is located at: /var/log/tomcat7/catalina.out

        Show
        jhyvarinen Cyber Lightning added a comment - Hi, At the moment W3DS module doesn't support raster data and that reported crash is a known issue. When you use DEM files W3DS module is not used and therefore that error is irrelevant to your real problem. Did you set Byte Order from publishing tab as stated in setup guide? ( https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_Installation_and_Administration_Guide ) Is Coordinate Reference Systems set to same value than you data set is? Does server log some errors when you do requests from the client? By default log file is located at: /var/log/tomcat7/catalina.out
        Hide
        fw.ext.user FW External User added a comment -

        Thanks.

        Now I want to view a DEM map, so I have tried to add to geoserver the
        "DEM_geotiff_terrain_EPSG3067" geotifmap. The layer name starts with DEM.
        The layer is publish correctly, but when I try to see the "w3ds tab" I have
        obtained this 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) at
        org.apache.wicket.Component.render(Component.java:2517) at
        org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1440) at
        org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1603)
        at ...

        Then in my "GIS_Client_DEM/index.xhtml" i can see my layer and i can see
        the loaded data details: length, heigth etc. But the map is not shown.

        In the chrome console I can see these errors:

        RangeError: Invalid typed array length
        Uncaught Error: Matrix is not affine
        Error: Matrix is not affine
        ...

        What's the problem?

        Show
        fw.ext.user FW External User added a comment - Thanks. Now I want to view a DEM map, so I have tried to add to geoserver the "DEM_geotiff_terrain_EPSG3067" geotifmap. The layer name starts with DEM. The layer is publish correctly, but when I try to see the "w3ds tab" I have obtained this 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) at org.apache.wicket.Component.render(Component.java:2517) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1440) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1603) at ... Then in my "GIS_Client_DEM/index.xhtml" i can see my layer and i can see the loaded data details: length, heigth etc. But the map is not shown. In the chrome console I can see these errors: RangeError: Invalid typed array length Uncaught Error: Matrix is not affine Error: Matrix is not affine ... What's the problem?
        Hide
        jhyvarinen Cyber Lightning added a comment -

        Hi,

        First of all you didn't specify which release version you have tried so I assume that you used newest 4.3.3 release.

        Different reference clients consume different source data formats which all can be served by one server instance and therefore it is convenient to separate those by simple naming rules. When you use GIS_Client_xml3d/index.xhtml all terrain layers should contain "terrain" in the layer name. Otherwise it will not be visible in the terrain list in the client.

        Also it's worth to note that GIS_Client_xml3d/index.xhtml use custom data format for terrain also at the server side and it's most likely that you won't find any ready to use data sets beyond our test assets. Guide how to generate new terrain data for client is documented here: https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_User_and_Programmers_Guide#Setup_GeoServer_with_test_data

        That being said you probably want to use GIS_Client_DEM version, since that one support also DEM models which are widely available from multiple sources. For example from: http://earthexplorer.usgs.gov/ just to name one.

        DEM client requires that terrain layer contains "DEM" in its name for the reasons I explained earlier.

        • Juha
        Show
        jhyvarinen Cyber Lightning added a comment - Hi, First of all you didn't specify which release version you have tried so I assume that you used newest 4.3.3 release. Different reference clients consume different source data formats which all can be served by one server instance and therefore it is convenient to separate those by simple naming rules. When you use GIS_Client_xml3d/index.xhtml all terrain layers should contain "terrain" in the layer name. Otherwise it will not be visible in the terrain list in the client. Also it's worth to note that GIS_Client_xml3d/index.xhtml use custom data format for terrain also at the server side and it's most likely that you won't find any ready to use data sets beyond our test assets. Guide how to generate new terrain data for client is documented here: https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_User_and_Programmers_Guide#Setup_GeoServer_with_test_data That being said you probably want to use GIS_Client_DEM version, since that one support also DEM models which are widely available from multiple sources. For example from: http://earthexplorer.usgs.gov/ just to name one. DEM client requires that terrain layer contains "DEM" in its name for the reasons I explained earlier. Juha
        Hide
        aristi Aristi Galani (Inactive) added a comment -

        Dear Esteban,

        We forwarded your request to second level support which will be able to
        give detailed help.

        Kind regards
        IWAVE team, on behalf of helpdesk team

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

        Show
        aristi Aristi Galani (Inactive) added a comment - Dear Esteban, We forwarded your request to second level support which will be able to give detailed help. Kind regards IWAVE team, on behalf of helpdesk team _______________________________________________ Fiware-lab-help mailing list Fiware-lab-help@lists.fi-ware.org https://lists.fi-ware.org/listinfo/fiware-lab-help
        Hide
        UPRC PiraeusU Node Helpdesk added a comment -

        Please send the answer to this request to "Xabi Esteban" <estebanxabi@gmail.com>

        Show
        UPRC PiraeusU Node Helpdesk added a comment - Please send the answer to this request to "Xabi Esteban" <estebanxabi@gmail.com>

          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: