Skip to content

Commit a1984b4

Browse files
author
liushaofeng
committed
submit version 1.0.1
1 parent caad2ae commit a1984b4

File tree

6 files changed

+32
-13
lines changed

6 files changed

+32
-13
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>io.github.qmjy</groupId>
1515
<artifactId>map-offline-server</artifactId>
16-
<version>1.0.1-SNAPSHOT</version>
16+
<version>1.0.1</version>
1717
<packaging>jar</packaging>
1818
<name>${project.artifactId}</name>
1919
<description>Mapbox GL offline server with java.</description>

src/main/java/eu/smartdatalake/athenarc/osmwrangle/expression/Expr.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* it under the terms of the GNU General Public License as published by
88
* the Free Software Foundation, either version 3 of the License, or
99
* (at your option) any later version.
10-
*
10+
*
1111
* This library is distributed in the hope that it will be useful,
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* GNU General Public License for more details.
15-
*
15+
*
1616
* You should have received a copy of the GNU General Public License
1717
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
@@ -22,6 +22,7 @@
2222

2323
/**
2424
* Interface for evaluating a logical (boolean) expression.
25+
*
2526
* @author Kostas Patroumpas
2627
* @version 2.0
2728
*/
@@ -31,11 +32,12 @@
3132
* Last modified: 10/7/2019
3233
*/
3334
public interface Expr {
34-
35-
/**
36-
* Evaluates the expression against the given input data.
37-
* @param data A data record containing the attribute names (key) and their values.
38-
* @return
39-
*/
35+
36+
/**
37+
* Evaluates the expression against the given input data.
38+
*
39+
* @param data A data record containing the attribute names (key) and their values.
40+
* @return boolean
41+
*/
4042
public boolean evaluate(Map<String, String> data);
4143
}

src/main/java/eu/smartdatalake/athenarc/osmwrangle/package-info.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package eu.smartdatalake.athenarc.osmwrangle;
18-
19-
//all code modified from project: https://github.com/SLIPO-EU/OSMWrangle
17+
/**
18+
* all code modified from project: https://github.com/SLIPO-EU/OSMWrangle
19+
*/
20+
package eu.smartdatalake.athenarc.osmwrangle;

src/main/java/eu/smartdatalake/athenarc/osmwrangle/utils/TripleGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import java.util.*;
3737

3838
/**
39-
* Generates a collection of RDF triples from the (spatial & thematic) attributes of a given feature.
39+
* Generates a collection of RDF triples from the (spatial &amp; thematic) attributes of a given feature.
4040
*
4141
* @author Kostas Patroumpas
4242
* @version 2.0

src/main/java/io/github/qmjy/mapserver/model/AdministrativeDivisionTmp.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public class AdministrativeDivisionTmp implements Cloneable {
3838
@Setter
3939
private List<AdministrativeDivisionTmp> children = new ArrayList<>();
4040

41+
/**
42+
* 构造方法
43+
*
44+
* @param simpleFeature 特性
45+
* @param parentId 父ID
46+
*/
4147
public AdministrativeDivisionTmp(SimpleFeature simpleFeature, int parentId) {
4248
this.id = (int) simpleFeature.getAttribute("osm_id");
4349
this.name = (String) simpleFeature.getAttribute("local_name");
@@ -47,6 +53,15 @@ public AdministrativeDivisionTmp(SimpleFeature simpleFeature, int parentId) {
4753
this.adminLevel = simpleFeature.getAttribute("admin_level") == null ? -1 : (int) simpleFeature.getAttribute("admin_level");
4854
}
4955

56+
/**
57+
* 构造方法
58+
*
59+
* @param id id
60+
* @param parentId 父ID
61+
* @param name 行政区划节点名称
62+
* @param nameEn 行政区划节点英文名称
63+
* @param adminLevel 行政区划级别
64+
*/
5065
public AdministrativeDivisionTmp(int id, int parentId, String name, String nameEn, int adminLevel) {
5166
this.id = id;
5267
this.parentId = parentId;

src/main/java/io/github/qmjy/mapserver/util/SpringUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.springframework.stereotype.Component;
2323

2424
/**
25+
* Spring utils
2526
* @author LemonZuo
2627
*/
2728
@Component

0 commit comments

Comments
 (0)