Comments (2)
Your Building
instance has no geometry. The calcBoundedBy
method returns null
as result in such cases instead of some default or initial value such as (0,0,0) for both the lower and upper corner of the envelope. So you have to check for null
otherwise you run into a NPE as in your example.
from citygml4j.
Closing this issue. If you want to assign a gml:Envelope
to a newly created Building
object without geometry, then do not use calcBoundedBy
but create the gml:Envelope
object yourself.
Building building = new Building();
Envelope envelope = new Envelope();
envelope.setSrsName("urn:ogc:def:crs,crs:EPSG:6.12:31466,crs:EPSG:6.12:5783");
// set lower and upper corner
envelope.setLowerCorner(...);
envelope.setUpperCorner(...);
// assign envelope to building
building.setBoundedBy(new BoundingShape(envelope));
from citygml4j.
Related Issues (20)
- conversion CityGML to CityJSON: empty list of CityObjects (<grp:CityObjectGroup> supported?) HOT 6
- citygml2cityjson: appearances are not converted HOT 8
- CityGML2CityJSON: SolitaryVegetationObject(s) in a CityObjectGroup are not converted HOT 2
- Failed to build JAXB context. HOT 8
- I want to read all type of citygml. HOT 4
- Cityjson Lod4 Marshaller HOT 1
- converstion CityGML --> CityJSON: how to create "geometre-templates"? HOT 1
- does citygml 4j support lidar data? HOT 1
- Implement Serializable? HOT 9
- ADE Module HOT 4
- Seeking input on citygml4j 3.0 HOT 4
- citygml2cityjson HOT 3
- Ampersand character in attribute value HOT 2
- Add support for surfaces with gml:PolygonPatch HOT 1
- Add opening geometry to multiple wall surfaceMembers HOT 5
- CityModelWriter does not write CityModel ADE HOT 7
- v3.0.0-rc.2: AbstractGenericAttribute as Template HOT 7
- building v3.0.0-rc.3 fails HOT 4
- Pb with the CityJSON transform HOT 2
- CityJSON with "transform" ignored when converting to CityGML HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citygml4j.