TgREST

Sun May 04 09:03:17 CEST 2025

TgRest is a tool for owners of private and communal forests. Since this is relatively small parcelled, it is often difficult to find the optimal treatment methods for it. But also state forests can use this system without any problems. This tool is an API which acts as an interface for the underlying forest growth simulator (Treegross) of the NW-FVA. The growth of the stand entered by the user is simulated in accordance with further specifications and the necessary treatment steps will be shown. The methods available for this are described in this document.

https://www.nw-fva.de/TgRest/api/rest

Contact: Jan Hansen


Services

BaEmhttps://www.nw-fva.de/TgRest/api/rest/baem
TgEvaluationshttps://www.nw-fva.de/TgRest/api/rest/evaluation
TgRestMetahttps://www.nw-fva.de/TgRest/api/rest/meta
TreegrossBasehttps://www.nw-fva.de/TgRest/api/rest/treegross/base
YieldTableshttps://www.nw-fva.de/TgRest/api/rest/yieldtable



BaEm
https://www.nw-fva.de/TgRest/api/rest/baem

Methods
getTargetTypeGEThttps://www.nw-fva.de/TgRest/api/rest/baem/targettypes
GET https://www.nw-fva.de/TgRest/api/rest/baem/targettypes
Generiert eine Liste von empfohlenen, klimaangepassten Zieltypen zu einer gegebenen Koordinate. Vgl. https://www.nw-fva.de/BaEm

Parameter:
NameStyleTypeDefaultRemarks
sridqueryint25832
xquerydouble
yquerydouble

Supports the following media types (Accept-Header):
mediaType of request
application/xml



TgEvaluations
https://www.nw-fva.de/TgRest/api/rest/evaluation

Methods
summaryPOSThttps://www.nw-fva.de/TgRest/api/rest/evaluation/stand/summary
POST https://www.nw-fva.de/TgRest/api/rest/evaluation/stand/summary
Diese Methode erzeugt eine sehr einfache Zusammenfassung für einen TreeGrOSS-Bestand.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.TgRestStand
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml



TgRestMeta
https://www.nw-fva.de/TgRest/api/rest/meta

Methods
getApiDocuGEThttps://www.nw-fva.de/TgRest/api/rest/meta/documentation
getContactGEThttps://www.nw-fva.de/TgRest/api/rest/meta/contact
getForestSimulatorSettingsXslGEThttps://www.nw-fva.de/TgRest/api/rest/meta/ForestSimulatorSettings.xsl
getMdGEThttps://www.nw-fva.de/TgRest/api/rest/meta/modelsettings
getMdVersionGEThttps://www.nw-fva.de/TgRest/api/rest/meta/version/md
getScVersionGEThttps://www.nw-fva.de/TgRest/api/rest/meta/version/sc
getTgRestVersionGEThttps://www.nw-fva.de/TgRest/api/rest/meta/version/tgrest
getTgVersionGEThttps://www.nw-fva.de/TgRest/api/rest/meta/version/tg
getTypeDescriptionGEThttps://www.nw-fva.de/TgRest/api/rest/meta/type/{class}
GET https://www.nw-fva.de/TgRest/api/rest/meta/documentation
Erstellt automatisch diese Dokumentation der API. Es werden solche Klassen und Methoden berücksichtigt, die mit einer @Path-Annotation vershen sind und nicht expliziet über eine @ApiDocuExclude-Annotation ausgeschlossen werden.

Supports the following media types (Accept-Header):
mediaType of request
text/html
application/xml
text/xml
GET https://www.nw-fva.de/TgRest/api/rest/meta/contact
Diese Methode gibt einen Kontakt zurück.

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
getForestSimulatorSettingsXsl —> jakarta.ws.rs.core.Response
GET https://www.nw-fva.de/TgRest/api/rest/meta/ForestSimulatorSettings.xsl
ForestSimulatorSettings.xsl

Supports the following media types (Accept-Header):
mediaType of request
text/plain
GET https://www.nw-fva.de/TgRest/api/rest/meta/modelsettings
Diese Methode gibt die Standard-Modell-Einstellungen zurück.

Supports the following media types (Accept-Header):
mediaType of request
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/meta/version/md
Diese Methode gibt Informationen zum verwendeten Modell zurück.

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
GET https://www.nw-fva.de/TgRest/api/rest/meta/version/sc
Diese Methode gibt die Silviculture-Version zurück.

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
GET https://www.nw-fva.de/TgRest/api/rest/meta/version/tgrest
Diese Methode gibt die Version der REST-API zurück.

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
GET https://www.nw-fva.de/TgRest/api/rest/meta/version/tg
Diese Methode gibt die TreeGrOSS-Version zurück.

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
GET https://www.nw-fva.de/TgRest/api/rest/meta/type/{class}
Diese Methode gibt eine Beschreibung von request- bzw. response-Datentypen zurück

Parameter:
NameStyleTypeDefaultRemarks
classpathjava.lang.String

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json



TreegrossBase
https://www.nw-fva.de/TgRest/api/rest/treegross/base

Methods
biomassLogsPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/biomass/logs
biomassStandPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/biomass/stand
biomassTreesPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/biomass/trees
getSpeciesInformationGEThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/species/{artCode}/{is_nds_format}
getSpeciesInformationListGEThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/species/list
getTgSpeciesInformationListGEThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/species/tglist
getWETPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/wet
growReturingFoeDataPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/grow/inventory
growReturningStandPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/grow/stand
makeInventoryPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/make/inventory
makeStandPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/inventory/make/stand
makeStandWithLayersPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/inventory/make/standandlayers
sortPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/sort
treatReturningFoeDataPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/inventory
treatReturningStandPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/stand
treatScenarioReturningFoeDataPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/scenario/inventory
treatScenarioReturningStandPOSThttps://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/scenario/stand
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/biomass/logs
Diese Methode liefert für alle Sortimente eines Bestandes Biomassen und Nährstoffe.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandSortRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/biomass/stand
Diese Methode liefert für einen Bestand Biomassen und Nährstoffe für verschiedenen Sortimente und Kompartimente.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.TgRestStand
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/biomass/trees
Diese Methode liefert für alle Bäume eines Bestandes Biomassen und Nährstoffe für verschiedenen Sortimente und Kompartimente.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.TgRestStand
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/treegross/base/species/{artCode}/{is_nds_format}
This function returns detailed data on a specific Art-Code (nds or bwi). information contained: NDS-Code, BWI-Code, Name (short), Name (long), Genus, Species

Requiered parameters:


Parameter:
NameStyleTypeDefaultRemarks
artCodepathint
is_nds_formatpathboolean

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/treegross/base/species/list
This function returns detailed data for all implemented species.

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/treegross/base/species/tglist
This function returns detailed data for all implemented treegross species.

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/wet
Accepts an XML String representing a Stand in the internal TgRest Stand Format. Returns the corresponding WET.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.TgRestStand
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/grow/inventory
Diese Methode verarbeitet ein TgRestStandGrowRequest.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandGrowRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/grow/stand
Diese Methode verarbeitet ein TgRestStandGrowRequest.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandGrowRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/make/inventory
Accepts an XML String representing a Stand in the internal TgRest Stand Format. Returns the corresponding FoE-Data for a specified time period. Output can be sorted by Layer or Species.

Requiered parameters:


Parameter:
NameStyleTypeDefaultRemarks
sortByLayerquerybooleantrue
useHeightProfilequerybooleanfalse
yearsOutqueryint0

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.TgRestStand
text/xml
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/inventory/make/stand
Creates a stand in the internal TgRest Format out of provided FoE-Data. Returns the stand as XML String.

Processes the following media types (Content-Type-Header):
mediaType of request body representing java.lang.String
text/plain
text/csv

Supports the following media types (Accept-Header):
mediaType of request
text/xml
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/inventory/make/standandlayers
Creates a stand in the internal TgRest Format out of provided FoE-Data and computes the layers by WPEngine height profile. Returns the stand as XML String.

Processes the following media types (Content-Type-Header):
mediaType of request body representing java.lang.String
text/plain
text/csv

Supports the following media types (Accept-Header):
mediaType of request
text/xml
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/sort
Diese Methode verarbeitet ein TgRestStandSortRequest.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandSortRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/inventory
Diese Methode verarbeitet ein TgRestStandGrowAndTreatRequest. Dieser Request fasst einen Bestand eine optionale Treatment-Chain und weitere Parameter (Mortalität, Anzahl Jahre bzw. Simulationsdauer etc.) zusammen. Wird eine WET = 0 angegeben wird keine Behandlung simuliert.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandGrowAndTreatRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/json
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/stand
Diese Methode verarbeitet ein TgRestStandGrowAndTreatRequest. Dieser Request fasst einen Bestand eine optionale Treatment-Chain und weitere Parameter (Mortalität, Anzahl Jahre bzw. Simulationsdauer etc.) zusammen

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandGrowAndTreatRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/xml
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/scenario/inventory
Diese Methode verarbeitet ein TgRestStandGrowAndTreatRequest für einen Standardszenario (naturnah, naturschutz, ertrag). Dieser Request fasst einen Bestand und weitere Parameter (Szenarioname, Mortalität, Anzahl Jahre bzw. Simulationsdauer etc.) zusammen.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandGrowAndTreatRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/xml
application/json
treatScenarioReturningStand —> de.nwfva.tgrest.services.types.TgRestStand
POST https://www.nw-fva.de/TgRest/api/rest/treegross/base/stand/treat/scenario/stand
Diese Methode verarbeitet ein TgRestStandGrowAndTreatRequest für einen Standardszenario (naturnah, naturschutz, ertrag). Dieser Request fasst einen Bestand und weitere Parameter (Szenarioname, Mortalität, Anzahl Jahre bzw. Simulationsdauer etc.) zusammen.

Processes the following media types (Content-Type-Header):
mediaType of request body representing de.nwfva.tgrest.services.types.requests.TgRestStandGrowAndTreatRequest
application/xml

Supports the following media types (Accept-Header):
mediaType of request
application/xml



YieldTables
https://www.nw-fva.de/TgRest/api/rest/yieldtable

Methods
getTableByIndexGEThttps://www.nw-fva.de/TgRest/api/rest/yieldtable/{index}
getTableByPositionGEThttps://www.nw-fva.de/TgRest/api/rest/yieldtable/{species}/{lat}/{lon}
getTableIDByPositionGEThttps://www.nw-fva.de/TgRest/api/rest/yieldtable/id/{species}/{lat}/{lon}
getTableInfoByIndexGEThttps://www.nw-fva.de/TgRest/api/rest/yieldtable/info/{index}
getTableListGEThttps://www.nw-fva.de/TgRest/api/rest/yieldtable/list
getYTRowGEThttps://www.nw-fva.de/TgRest/api/rest/yieldtable/row/{tableid}/{age}/{yield}
GET https://www.nw-fva.de/TgRest/api/rest/yieldtable/{index}
Diese Methode liefert eine Ertragstafel.

Parameter:
NameStyleTypeDefaultRemarks
indexpathint-1

Supports the following media types (Accept-Header):
mediaType of request
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/yieldtable/{species}/{lat}/{lon}
Diese Methode liefert eine Ertragstafel zu einer Koordinate.

Parameter:
NameStyleTypeDefaultRemarks
speciespathint-1
lonpathdouble-1
latpathdouble-1

Supports the following media types (Accept-Header):
mediaType of request
application/xml
getTableIDByPosition —> int
GET https://www.nw-fva.de/TgRest/api/rest/yieldtable/id/{species}/{lat}/{lon}
Diese Methode liefert eine Ertragstafel zu einer Koordinate.

Parameter:
NameStyleTypeDefaultRemarks
speciespathint-1
lonpathdouble-1
latpathdouble-1
GET https://www.nw-fva.de/TgRest/api/rest/yieldtable/info/{index}
Diese Methode liefert Infos zu einer Ertragstafel.

Parameter:
NameStyleTypeDefaultRemarks
indexpathint-1

Supports the following media types (Accept-Header):
mediaType of request
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/yieldtable/list
Diese Methode liefert eine Lister aller unterstützten Ertragstafeln

Supports the following media types (Accept-Header):
mediaType of request
application/xml
GET https://www.nw-fva.de/TgRest/api/rest/yieldtable/row/{tableid}/{age}/{yield}
Creates a yield table row for given parameters (table id, age, yield).

Parameter:
NameStyleTypeDefaultRemarks
tableidpathint20
agepathint20
yieldpathdouble1.0

Supports the following media types (Accept-Header):
mediaType of request
application/xml