Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ members = [
"rust/sedona-schema",
"rust/sedona-spatial-join",
"rust/sedona-testing",
"rust/sedona-serde",
"rust/sedona",
"sedona-cli",
]
Expand Down
1 change: 1 addition & 0 deletions rust/sedona-functions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ sedona-common = { workspace = true }
sedona-expr = { workspace = true }
sedona-geometry = { workspace = true }
sedona-schema = { workspace = true }
sedona-serde = { path = "../sedona-serde" }
wkb = { workspace = true }
wkt = { workspace = true }
serde_json = { workspace = true }
Expand Down
27 changes: 27 additions & 0 deletions rust/sedona-functions/src/fixtures/crs_point.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
// Point XY with CRS EPSG:4326
19

// CRS EPSG:4326
0 16 230

// number of coordinates
1 0 0 0

// coordinates (2 doubles per coordinate)
0 0 0 0 0 0 240 63 0 0 0 0 0 0 240 63
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
114

0 0 0

0 0 0 0
21 changes: 21 additions & 0 deletions rust/sedona-functions/src/fixtures/empty_linestring.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
34

0 0 0

0 0 0 0
21 changes: 21 additions & 0 deletions rust/sedona-functions/src/fixtures/empty_multilinestring.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
82

0 0 0

0 0 0 0 0 0 0 0
21 changes: 21 additions & 0 deletions rust/sedona-functions/src/fixtures/empty_multipolygon.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
98

0 0 0

0 0 0 0 0 0 0 0
21 changes: 21 additions & 0 deletions rust/sedona-functions/src/fixtures/empty_point.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
18

0 0 0

0 0 0 0
21 changes: 21 additions & 0 deletions rust/sedona-functions/src/fixtures/empty_polygon.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
50

0 0 0

0 0 0 0
59 changes: 59 additions & 0 deletions rust/sedona-functions/src/fixtures/geometrycollection.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

// metadata GeometryCollection XY NO SRID
114

// missing srid information
0 0 0

// number of geometries
3 0 0 0

// point geometry
18

0 0 0

1 0 0 0

0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64

// linestring geometry
34

0 0 0

2 0 0 0

0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64
0 0 0 0 0 0 28 64 0 0 0 0 0 0 36 64

// polygon geometry
50

0 0 0

4 0 0 0

0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64
0 0 0 0 0 0 28 64 0 0 0 0 0 0 36 64
0 0 0 0 0 0 16 64 0 0 0 0 0 0 36 64
0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64

1 0 0 0
4 0 0 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

// metadata GeometryCollection XY NO SRID
114

// missing srid information
0 0 0

// number of geometries
4 0 0 0

// point geometry
18

0 0 0

1 0 0 0

0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64

// linestring geometry
34

0 0 0

2 0 0 0

0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64
0 0 0 0 0 0 28 64 0 0 0 0 0 0 36 64

// polygon geometry
50

0 0 0

4 0 0 0

0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64
0 0 0 0 0 0 28 64 0 0 0 0 0 0 36 64
0 0 0 0 0 0 16 64 0 0 0 0 0 0 36 64
0 0 0 0 0 0 16 64 0 0 0 0 0 0 24 64

1 0 0 0
4 0 0 0

// multipoint geometry
66

0 0 0

2 0 0 0

0 0 0 0 0 0 240 63 0 0 0 0 0 0 0 64
0 0 0 0 0 0 8 64 0 0 0 0 0 0 16 64
30 changes: 30 additions & 0 deletions rust/sedona-functions/src/fixtures/linestring.sedona
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

// metadata LINESTRING XY NO SRID
34

// missing srid information
0 0 0

// number of coordinates
3 0 0 0

// coordinates (2 doubles per coordinate)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 240 63 0 0 0 0 0 0 240 63
0 0 0 0 0 0 0 64 0 0 0 0 0 0 0 64
Loading
Loading