{% extends "_base.html" %} {% block extrahead %} {% endblock %} {% block body_map %}
{% if data['speckle_url'] %}
{% else %}
{% endif %}
{% endblock %} {% block body %}

This is the test deployment of the OGC API server for public Speckle projects. It allows you to share your Speckle model as geospatial data in the format of OGC API Features / Web Feature Service, so it can be natively added to a QGIS, ArcGIS or Civil3D project, or embedded into a web map using Leaflet, OpenLayers or other libraries. You can find more guidelines and examples on our GitHub page.

{% if not data['speckle_url'] %}

Provide Speckle Model link as an argument to start exploring, e.g.: https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/64753f52b7/models/338b386787&lat=-0.031405&lon=109.335828

{% else %}
Details of the current Speckle model
{% if data['features'] %}

{% trans %}Note: if Speckle model location data is available, the relevant URL parameters will be ignored. If neither model nor URL parameters specify the location, model will be placed randomly. {% endtrans %}

{% trans %}Speckle model data {% endtrans %}
Project name: {{ data['project'] }}
Model name: {{ data['model'] }}
Last version created: {{ data['model_last_version_date'] }}
Coordinate Reference System: {{ data['model_crs'] }}
{% trans %}URL parameters {% endtrans %}
Speckle URL ('speckleurl') {{ data['speckle_url'] }}
Requested data type ('datatype') {{ data['requested_data_type'] }}
Prioritize object attributes over display quality ('preserveattributes') {{ data['preserve_attributes'] }}
Coordinate Reference System ID ('crsauthid') {{ data['crs_authid'] }}
Latitide ('lat') {{ data['lat'] }}
Longitude ('lon') {{ data['lon'] }}
Angle to True North, in degrees ('northdegrees') {{ data['north_degrees'] }}
Feature limit ('limit') {{ data['limit'] }}

{% trans %}Features in this model {% endtrans %}
{% set props = [] %} {% if data.get('uri_field') %} {% set uri_field = data.uri_field %} {% elif data.get('title_field') %} {% set title_field = data.title_field %} {% else %} {% endif %} {% for k in data['features'][0]['properties'].keys() %} {% if k not in [data.id_field, data.title_field, data.uri_field, 'extent'] %} {% set props = props.append(k) %} {% endif %} {% endfor %} {% for ft in data.features %} {% set title_field = data.title_field %} {% for prop in props %} {% endfor %} {% endfor %}
{{ uri_field }}{{ title_field }}id{{ k | striptags }}
{{ ft.properties.get(title_field) | string | truncate( 35 ) }} {{ ft.properties.get(prop, '') | string | truncate( 35 ) }}
{% else %}

{% trans %}No items{% endtrans %}

{% endif %}

{% endif %}

You can use the current link to access OGC API dataset in your preferred software, as well as explore the data in the browser and share with others. URL should start with 'https://geo.speckle.systems/?' followed by required and optional parameters. Parameters should be separated with '&' symbol. Use the following URL parameters to construct a link that provides Speckle data with your preferred settings:

- speckleUrl

text, required, should contain path to a specific Model in Speckle Project, e.g. 'https://app.speckle.systems/projects/344f803f81/models/5582ab673e'

- dataType

text, optional, choose from: points, lines, polygons or projectcomments

- limit

positive integer, recommended, as some applications might apply their custom feature limit

- preserveAttributes

string, optional, choose from: true, false. If not set, meshes will be split into separate polygons for better display quality.

- crsAuthid

text, an authority string e.g. 'epsg:4326'. If set, LAT, LON and NORTHDEGREES arguments will be ignored.

- lat

number, in range -90 to 90

- lon

number, in range -180 to 180

- northDegrees

number, in range -180 to 180

If GIS-originated Speckle model is loaded, no location arguments are needed.

Here are some examples:

1. QGIS polygon features: https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/344f803f81/models/5582ab673e&datatype=polygons&preserveAttributes=true

2. QGIS point features: https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/344f803f81/models/8c49788b1f&datatype=points&preserveAttributes=true

3. Rhino building masses: https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/64753f52b7/models/338b386787&lat=-0.031405&lon=109.335828

4. Rhino detailed building: https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/5feae56049/models/9c43d7569c&limit=100000&northDegrees=-117

5. Speckle project comments: https://geo.speckle.systems/?speckleUrl=https://app.speckle.systems/projects/344f803f81/models/5582ab673e&datatype=projectcomments

Note: this is not a production server. It is still work in progress, and we are very curious to hear about your use case and your feedback so we can make it better!

{% endblock %} {% block extrafoot %} {% endblock %}