Files
secondo/Algebras/OSM/Osm.examples
2026-01-23 17:03:45 +08:00

93 lines
2.8 KiB
Plaintext

Database: testData/osmtest
Restore : Yes
Operator : shpimport3
Number : 1
Signature: text -> stream(T)
Example : query shpimport3('buildings.shp') count
Result : 323
Operator : getconnectivitycode
Number : 1
Signature: d1 x d2 x d3 x d4 x o1 x o2 x o3 x o4 -> c, d1, d2, d3, d4, c int, o1, o2, o3, o4 bool
Example : query getconnectivitycode(0, 0, 0, 0, FALSE, FALSE, FALSE, FALSE)
Result : 0
Operator : binor
Number : 1
Signature: d1 x d2 -> c, d1, d2, c int
Example : query binor(0, 1)
Result : 1
Operator : getscalefactorx
Number : 1
Signature: -> int
Example : query getscalefactorx()
Result : 1
Operator : getscalefactory
Number : 1
Signature: -> int
Example : query getscalefactory()
Result : 1
Operator : setscalefactorx
Number : 1
Signature: int -> int
Example : query setscalefactorx(2000)
Result : 2000
Operator : setscalefactory
Number : 1
Signature: int -> int
Example : query setscalefactory(2000)
Result : 2000
Operator : osmimport
Number : 1
Signature: text x ('node','way','restriction') -> stream (tuple (...))
Example : query osmimport('city.osm','node') count
Result : 0
Operator : fullosmimport
Number : 1
Signature: text x string -> bool
Example : query fullosmimport('kirchditmold.osm', "kirch")
Result : TRUE
Operator : divide_osm
Number : 1
Signature: text x string x int x string -> bool
Example : query divide_osm('kirchditmold.osm', "kirchsub", 20, "Lie")
Result : TRUE
Operator : divide_osm2
Number : 1
Signature: text x string x int x string -> bool
Example : query divide_osm2('kirchditmold.osm', "kirch2sub", 10)
Result : TRUE
Operator : divide_osm3
Number : 1
Signature: text x int x int -> bool
Example : query divide_osm3('kirchditmold.osm', 10, 7)
Result : TRUE
Operator : importairspaces
Number : 1
Signature: text -> stream(tuple(Category: string, Version: text, Id: int, Country: string, Name: string, Altlimit_top_ref: string, Altlimit_top_unit: string, Altlimit_top: int, Altlimit_bottom_ref: string, Altlimit_bottom_unit: string, Altlimit_bottom: int, Geometry: region))
Example : query importairspaces('openaip_airspace_germany_de.aip') head[10] count
Result : 10
Operator : importnavaids
Number : 1
Signature: text -> stream(tuple(Type: string, Country: string, Name: string, Id: int, Pos: point, Elevation: real, Frequency: real, Channel: string, Range: int, Declination: real, AlignedToTrueNorth: bool))
Example : query importnavaids('openaip_navaid_germany_de.aip') head[10] count
Result : 10
Operator : importairports
Number : 1
Signature: text x string x string -> stream(tuple(Type: string, Country: string, Name: string, ICAO: string, Pos: point, Elevation: real))
Example : query importairports('openaip_airports_germany_de.aip', "Radio", "Runways") head[10] count
Result : 10