Skip to main content
POST
Import a format (SP9)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
format
enum<string>
required
Available options:
kml,
kmz,
gpx,
shapefile,
gpkg,
dxf,
opendrive,
lanelet2,
openscenario,
plan,
wpl
arc_sagitta_m
number

dxf: the furthest a chord may lie from the curve it stands for, metres (0.001 when left out)

blob
string

TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of text or payload_base64: read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).

bulges
enum<string>

dxf: arcs (a polyline's bulged segments flattened within the sagitta; the default) or chords (each bulged segment taken as its straight chord)

Available options:
arcs,
chords
dbf_base64
string
dbf_blob
string

TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of dbf_base64 (a shapefile's .dbf): read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).

epsg
integer

shapefile with no .prj: the frame by its EPSG code instead of frame: 4326 (WGS 84), 4283 (GDA94) or 7844 (GDA2020) geographic, or a projected code of the vendored table (7855 = GDA2020 / MGA zone 55, 28355 = GDA94 / MGA zone 55, the UTM zones, …); another code refuses CRS; dxf: the same, for a drawing in a projected CRS

frame
object

shapefile with no .prj: the frame the coordinates are in, as a frame object ({"frame": "geodetic"} or {"frame": "projected", "crs": {…}}); dxf: the frame the drawing is in, required (a projected CRS or a local east-north-up plane; a geodetic frame refuses FRAME)

georeference
string
layers
string[]

dxf: keep only the entities on these layers (exact names)

name
string
payload_base64
string
polygons
boolean

dxf: closed polylines and circles as Polygons instead of closed LineStrings

prj
string
roadgraph_key
string
step_m
number
table
string
text
string
units
string

dxf: the drawing's unit (m, mm, cm, dm, km, in, ft, us_survey_ft, yd, mi); the file's $INSUNITS when left out. With neither, the import refuses DXF_UNITS

Response

OK

dxf
object

dxf: {units: {name, metres_per_unit, from: stated | file, file}, arcs, encoding, layers: [{name, features, frozen, off}], entities, left_out, arcs_flattened, arc_chords}

format
string
frame_from
object

shapefile: {from: prj | stated, datum, epsg}

id
string
key
string
kind
enum<string>
Available options:
vector,
roadgraph,
mission
name
string