This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch prepare-1.4.0-doc
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/prepare-1.4.0-doc by this push:
new 33ea4187 Fix license issue
33ea4187 is described below
commit 33ea418710612102fd41c3a0341663e3c2127464
Author: Jia Yu <[email protected]>
AuthorDate: Wed Mar 15 16:53:22 2023 -0700
Fix license issue
---
LICENSE | 4 +++
.../org/apache/sedona/common/utils/S2Utils.java | 18 ++++++++++++++
docs/community/publish.md | 5 ++--
licenses/LICENSE-pygeos | 29 ++++++++++++++++++++++
.../spark/sql/sedona_sql/UDT/RasterUDT.scala | 18 ++++++++++++++
5 files changed, 72 insertions(+), 2 deletions(-)
diff --git a/LICENSE b/LICENSE
index 58c092c0..13e2f5f4 100644
--- a/LICENSE
+++ b/LICENSE
@@ -213,6 +213,10 @@ BSD 2-Clause License
--------------------------------------
zeppelin/index.js (modified based on volume-leaflet:
https://github.com/volumeint/helium-volume-leaflet)
+BSD 3-Clause License
+--------------------------------------
+python/src/pygeos/c_api.h (modified based on
https://github.com/pygeos/pygeos/blob/master/src/c_api.h)
+
No-copyright data used in unit tests
--------------------------------------
diff --git a/common/src/main/java/org/apache/sedona/common/utils/S2Utils.java
b/common/src/main/java/org/apache/sedona/common/utils/S2Utils.java
index 3a59dc59..51df201d 100644
--- a/common/src/main/java/org/apache/sedona/common/utils/S2Utils.java
+++ b/common/src/main/java/org/apache/sedona/common/utils/S2Utils.java
@@ -1,3 +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.
+ */
package org.apache.sedona.common.utils;
import com.google.common.geometry.*;
diff --git a/docs/community/publish.md b/docs/community/publish.md
index 8a0f6fc7..fb3eae8c 100644
--- a/docs/community/publish.md
+++ b/docs/community/publish.md
@@ -22,15 +22,16 @@ chmod 777 create-release.sh
1. Run the following script:
```bash
#!/bin/bash
-wget -q
https://dlcdn.apache.org//creadur/apache-rat-$RAT_VERSION/apache-rat-0.15-bin.tar.gz
+wget -q
https://dlcdn.apache.org//creadur/apache-rat-0.15/apache-rat-0.15-bin.tar.gz
tar -xvf apache-rat-0.15-bin.tar.gz
git clone --shared --branch master https://github.com/apache/sedona.git
sedona-src
-java -jar apache-rat-0.15.jar -d sedona-src > report.txt
+java -jar apache-rat-0.15/apache-rat-0.15.jar -d sedona-src > report.txt
```
2. Read the generated report.txt file and make sure all source code files have
ASF header.
3. Delete the generated report and cloned files
```bash
#!/bin/bash
+rm -rf apache-rat-0.15
rm -rf sedona-src
rm report.txt
```
diff --git a/licenses/LICENSE-pygeos b/licenses/LICENSE-pygeos
new file mode 100644
index 00000000..6c21cb47
--- /dev/null
+++ b/licenses/LICENSE-pygeos
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2019, Casper van der Wel
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git
a/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/RasterUDT.scala
b/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/RasterUDT.scala
index 3411a49c..f046d6b8 100644
--- a/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/RasterUDT.scala
+++ b/sql/src/main/scala/org/apache/spark/sql/sedona_sql/UDT/RasterUDT.scala
@@ -1,3 +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.
+ */
package org.apache.spark.sql.sedona_sql.UDT