Code Monkey home page Code Monkey logo

Comments (6)

FxKu avatar FxKu commented on July 19, 2024

Hi Daniel,

TL;DR: No, there are no plans to support raster reliefs in the Importer/Exporter in the near future.

There is no support for the RasterRelief Feature in the Importer Exporter. You are right. It's supported by citygml4j though.

I think, this has two reasons.
First: Up till now, there has been no user demand for storing raster reliefs in the 3DCityDB. Personally, I haven't seen a CityGML file yet that contains raster data or to be more precise: a gml:RectifiedGridCoverage feature. How do your files look like?

Second: To transfer geodata from Java to the database we are using the JDBC drivers of Oracle and PostGIS. I think there's no native support for the raster data types. To import raster files both DBMS recommend certain tools. Maybe there is a solution using GeoTools or this approach.

So a trick might be: Import the raster files into your DB using these tools and do some rearrangements that it fits to the table structure of the 3DCityDB (Relief_Feature -> Relief_Feat_To_Rel_Comp, Relief_Component, Raster_Relief, Grid_Coverage).

lg Felix

from importer-exporter.

daniel-de avatar daniel-de commented on July 19, 2024

Hi Felix,

thanks for the fast response.
We have files with gml:RectifiedGridCoverage feature, but I'm afraid that it is not possible to share example data at the moment (have to check the NDAs first...).
The raster is textured using GeoreferencedTextures with non resolvable links to a target=#ground. It would help us a lot, if we could use the import-export tool to access these textures. They are imported to the surface_data and tex_image tables, but are not exported as GeoreferencedTextures, because of the unresolvable XLINK?!? What are we missing?

kr,
Daniel

from importer-exporter.

clausnagel avatar clausnagel commented on July 19, 2024

Since the geometry of the terrain is not imported due to lacking support for RasterRelief in the importer, the XLinks from the GeoreferencedTexture to the terrain geometry cannot be resolved on the database level. This explains log messages about unresolvable XLinks.

Are your GeoreferencedTexture elements modeled as global appearances (i.e., linked to <CityModel> through an <appearanceMember> property)? The exporter suppresses global appearances if the referenced geometry has not been exported.

from importer-exporter.

daniel-de avatar daniel-de commented on July 19, 2024

The GeoreferencedTexture elements are modeled as global appearances. That means we have to find a "little" workaround using citygml4j.

I could share a little testing dataset, if you are interested in an example for gml:RectifiedGridCoverage...

from importer-exporter.

clausnagel avatar clausnagel commented on July 19, 2024

Yes, I am interested. Did you succeed to create a workaround using citygml4j?

from importer-exporter.

clausnagel avatar clausnagel commented on July 19, 2024

Closing due to missing feedback.

from importer-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.