Reference·Java · nl.bimbase.bimworks.client.apisJava

GisApi

CLASS in nl.bimbase.bimworks.client.apis.

API catalogue · nl.bimbase.bimworks.client.apis · CLASS

Java#
public class GisApi

GIS related API calls

Inheritance and interfaces#

Members#

Member Kind Description
GisApi(BimWorksClient) CONSTRUCTOR
getGeoReference(UUID) METHOD Get the stored GeoReference of a Version
setGeoReference(UUID, GeoReference, Vector3d) METHOD Store a new GeoReference. This is stored in BIM.works as meta-data and does not modify the IFC model in any way; to write the georeference into the IFC data,…
getMapConversion(UUID) METHOD The georeference the Version carries in its IFC data, raw: the IfcMapConversion of its 3D model context and its IfcProjectedCRS ("map_conversion", null when …
extractGeoReference(UUID, String) METHOD Extract a GeoReference from the IFC model based on the given EPSG code. This API call does not modify anything in the BIM.works repository. Generally when th…
downloadCityGml(Set<UUID>, CityGmlFileType, CityGml2ExportSettings) METHOD Download a CityGML or CityJSON representation of a set of Versions
generate3DTilesUrl(ObjectNode) METHOD Generate a 3D Tiles URL. Warning The returned URL does not have any for of authentication, so be careful sharing this URL as it gives unlimited and irrevocab…
listModelsForGis() METHOD

GisApi(BimWorksClient)#

Java#
public GisApi(nl.bimbase.bimworks.client.BimWorksClient bimWorksClient)

Parameters#

Name Type Description
bimWorksClient BimWorksClient

getGeoReference(UUID)#

Java#
public nl.bimbase.bimworks.client.apis.GeoReferenceExtraction getGeoReference(java.util.UUID versionUuid) throws nl.bimbase.bimworks.client.BimWorksException

Get the stored GeoReference of a Version

Parameters#

Name Type Description
versionUuid java.util.UUID The UUID of the Version

Returns#

A GeoReference. GeoReferences in BIM.works are always stored in EPSG:4326 (also known as WGS84), so you'll always get back a GeoReference in that CRS.

Exceptions#

  • BimWorksException —

setGeoReference(UUID, GeoReference, Vector3d)#

Java#
public void setGeoReference(java.util.UUID versionUuid, nl.bimbase.bimworks.common.api.geometry.GeoReference geoReference, nl.bimbase.bimworks.common.geometry.types.Vector3d anchorPoint) throws nl.bimbase.bimworks.client.BimWorksException

Store a new GeoReference. This is stored in BIM.works as meta-data and does not modify the IFC model in any way; to write the georeference into the IFC data, commit a GEOREFERENCE transaction (see #getMapConversion(UUID)).

Parameters#

Name Type Description
versionUuid java.util.UUID The UUID of the Version
geoReference nl.bimbase.bimworks.common.api.geometry.GeoReference The new GeoReference
anchorPoint nl.bimbase.bimworks.common.geometry.types.Vector3d

Exceptions#

  • BimWorksException —

getMapConversion(UUID)#

Java#
public com.fasterxml.jackson.databind.node.ObjectNode getMapConversion(java.util.UUID versionUuid) throws nl.bimbase.bimworks.client.BimWorksException

The georeference the Version carries in its IFC data, raw: the IfcMapConversion of its 3D model context and its IfcProjectedCRS ("map_conversion", null when there is none), whether it can be written with the BUL statement GEOREFERENCE ("supported", "reason"), and the WGS 84 value an upload of that file stores ("map_conversion.geo_reference"). Change it with a transaction, for example GEOREFERENCE CRS "EPSG:28992" ORIGIN (160071.588 m, 384156.389 m, 18.753 m) ROTATION 309.64.

Parameters#

Name Type Description
versionUuid java.util.UUID The UUID of the Version

Returns#

The JSON of GetMapConversion

Exceptions#

  • BimWorksException —

extractGeoReference(UUID, String)#

Java#
public nl.bimbase.bimworks.client.apis.GeoReferenceExtraction extractGeoReference(java.util.UUID versionUuid, java.lang.String epsgCode) throws nl.bimbase.bimworks.client.BimWorksException

Extract a GeoReference from the IFC model based on the given EPSG code. This API call does not modify anything in the BIM.works repository. Generally when the results of this calls are satisfying to the caller, the results are passed on to the GisApi#setGeoReference(UUID, GeoReference, Vector3d) call, but that is not required

Parameters#

Name Type Description
versionUuid java.util.UUID The UUID of the Version
epsgCode java.lang.String The epsgCode, must be in the following format: "EPSG:1234"

Returns#

The GeoReference is one could successfully be extracted

Exceptions#

  • BimWorksException —

downloadCityGml(Set<UUID>, CityGmlFileType, CityGml2ExportSettings)#

Java#
public java.io.InputStream downloadCityGml(java.util.Set<java.util.UUID> versionUuids, nl.bimbase.bimworks.CityGmlFileType cityGmlType, nl.bimbase.bimworks.CityGml2ExportSettings exportSettings) throws nl.bimbase.bimworks.client.BimWorksException

Download a CityGML or CityJSON representation of a set of Versions

Parameters#

Name Type Description
versionUuids java.util.Set<java.util.UUID> The UUIDS of the versions
cityGmlType nl.bimbase.bimworks.CityGmlFileType The type. Currently only CITY_GML_2_0 and CITY_JSON_1_0_0 are implemented
exportSettings nl.bimbase.bimworks.CityGml2ExportSettings Additional settings

Returns#

An InputStream, responsibility for closing the stream is on the caller

Exceptions#

  • BimWorksException —

generate3DTilesUrl(ObjectNode)#

Java#
public java.lang.String generate3DTilesUrl(com.fasterxml.jackson.databind.node.ObjectNode input) throws nl.bimbase.bimworks.client.BimWorksException

Generate a 3D Tiles URL.

Warning The returned URL does not have any for of authentication, so be careful sharing this URL as it gives unlimited and irrevocable access to the models below the given Node

Parameters#

Name Type Description
input com.fasterxml.jackson.databind.node.ObjectNode

Returns#

A URL

Exceptions#

  • BimWorksException —

listModelsForGis()#

Java#
public com.fasterxml.jackson.databind.node.ArrayNode listModelsForGis() throws nl.bimbase.bimworks.client.BimWorksException

Exceptions#

  • BimWorksException —

Inherited members#

  • java.lang.Object#equals(java.lang.Object)
  • java.lang.Object#toString()
  • java.lang.Object#wait(long)
  • java.lang.Object#wait(long,int)
  • java.lang.Object#wait()
  • java.lang.Object#finalize()
  • java.lang.Object#getClass()
  • java.lang.Object#hashCode()
  • java.lang.Object#clone()
  • java.lang.Object#notify()
  • java.lang.Object#notifyAll()
  • getBimWorksClient()