Skip to content

Commit 0cd09c8

Browse files
committed
initial commit
0 parents  commit 0cd09c8

21 files changed

+2591
-0
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/target/
2+
/bin/
3+
4+
# IntelliJ
5+
.idea
6+
*.iml
7+
8+
# Eclipse Core
9+
.project
10+
.settings/
11+
12+
# JDT-specific (Eclipse Java Development Tools)
13+
.classpath

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
language: java

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#Change Log
2+
All notable changes to this project will be documented in this file.
3+
Adheres to [Semantic Versioning](http://semver.org/).
4+
5+
---
6+
7+
## 1.0.0 (TBD)
8+
9+
* Initial Release

ISSUE_TEMPLATE.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Please fill out as much known and relevant information as possible.
2+
3+
#### Version Information:
4+
5+
* OpenAPI Features JSON Java Version:
6+
* OpenAPI Features JSON Java Source: (e.g. Central Repository, Release, Source Code Build)
7+
* IDE Name & Version:
8+
* Maven Version: (mvn -version)
9+
* Java Version: (java -version)
10+
* Platform & OS:
11+
* Other Relevant Libraries:
12+
13+
#### Expected Results:
14+
15+
* What did you expect to happen?
16+
17+
#### Observed Results:
18+
19+
* What happened instead?
20+
* How often does this occur?
21+
22+
#### Output:
23+
24+
* Any logs, errors, or output messages?
25+
26+
#### Steps to Reproduce:
27+
28+
1. Step One
29+
2. Step Two
30+
3. ...
31+
32+
#### Relevant Code:
33+
34+
```java
35+
// Code to reproduce the problem?
36+
```
37+
38+
#### Test Files:
39+
40+
* Links to any files needed for testing?
41+
42+
#### Additional Information:
43+
44+
* Any additional configuration, data, or information that might help with the issue?

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 National Geospatial-Intelligence Agency
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# OpenAPI Features JSON Java
2+
3+
#### OpenAPI Features JSON Lib ####
4+
5+
The OpenAPI Libraries were developed at the [National Geospatial-Intelligence Agency (NGA)](http://www.nga.mil/) in collaboration with [BIT Systems](http://www.bit-sys.com/). The government has "unlimited rights" and is releasing this software to increase the impact of government investments by providing developers with the opportunity to take things in new directions. The software use, modification, and distribution rights are stipulated within the [MIT license](http://choosealicense.com/licenses/mit/).
6+
7+
### Pull Requests ###
8+
If you'd like to contribute to this project, please make a pull request. We'll review the pull request and discuss the changes. All pull request contributions to this project will be released under the MIT license.
9+
10+
Software source code previously released under an open source license and then modified by NGA staff is considered a "joint work" (see 17 USC § 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.
11+
12+
### About ###
13+
14+
[OpenAPI Features JSON](http://ngageoint.github.io/openapi-features-json-java/) is a Java library for writing and reading [OpenAPI Features](https://github.com/opengeospatial/WFS_FES) to and from JSON.
15+
16+
### Usage ###
17+
18+
View the latest [Javadoc](http://ngageoint.github.io/openapi-features-json-java/docs/api/)
19+
20+
#### Read ####
21+
22+
```java
23+
24+
Collections collections = FeaturesConverter.toCollections(collectionsContent);
25+
Collection collection = FeaturesConverter.toCollection(collectionContent);
26+
FeatureCollection featureCollection = FeaturesConverter.toFeatureCollection(featureCollectionContent);
27+
28+
```
29+
30+
#### Write ####
31+
32+
```java
33+
34+
String collectionsContent = FeaturesConverter.toStringValue(collections);
35+
String collectionContent = FeaturesConverter.toStringValue(collection);
36+
String featureCollectionContent = FeaturesConverter.toStringValue(featureCollection);
37+
38+
```
39+
40+
### Installation ###
41+
42+
Pull from the [Maven Central Repository](http://search.maven.org/#artifactdetails|mil.nga.sf|sf-geojson|2.0.1|jar) (JAR, POM, Source, Javadoc)
43+
44+
```xml
45+
46+
<dependency>
47+
<groupId>mil.nga.openapi.features</groupId>
48+
<artifactId>features-json</artifactId>
49+
<version>1.0.0</version>
50+
</dependency>
51+
52+
```
53+
54+
### Build ###
55+
56+
Build this repository using Eclipse and/or Maven:
57+
58+
mvn clean install
59+
60+
### Remote Dependencies ###
61+
62+
* [Simple Features GeoJSON](https://github.com/ngageoint/simple-features-geojson-java) (The MIT License (MIT)) - Simple Features GeoJSON Lib

docs/index.html

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>OpenAPI Features JSON Java</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
8+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
9+
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
10+
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
11+
</head>
12+
<body>
13+
<section class="page-header">
14+
<h1 class="project-name">OpenAPI Features JSON Java</h1>
15+
<h2 class="project-tagline">by the National Geospatial-Intelligence Agency</h2>
16+
<a href="https://github.com/ngageoint/openapi-features-json-java" class="btn">GitHub</a>
17+
<a href="http://ngageoint.github.io/openapi-features-json-java/docs/api/" class="btn">API</a>
18+
<a href="https://github.com/ngageoint/openapi-features-json-java/zipball/master" class="btn">.zip</a>
19+
<a href="https://github.com/ngageoint/openapi-features-json-java/tarball/master" class="btn">.tar.gz</a>
20+
<a href="http://search.maven.org/#artifactdetails|mil.nga.openapi.features|features-json|1.0.0|jar" class="btn">The Central Repository</a>
21+
</section>
22+
23+
<section class="main-content">
24+
25+
<p>The OpenAPI Features JSON Java library was developed by the <a href='http://www.nga.mil/'>National Geospatial-Intelligence Agency (NGA)</a> in collaboration with <a href='http://www.bit-sys.com/'>BIT Systems</a>.
26+
27+
<p>OpenAPI Features JSON is a Java library for for writing and reading <a href='https://github.com/opengeospatial/WFS_FES'>OpenAPI Features</a> to and from JSON.</p>
28+
29+
<footer class="site-footer">
30+
<span class="site-footer-owner"><a href="https://github.com/ngageoint/openapi-features-json-java">OpenAPI Features JSON Java</a> is maintained by:</span>
31+
<br>
32+
<a href="https://github.com/ngageoint"><image src="http://ngageoint.github.io/GeoPackage/images/NGA_Logo.png" align="middle" height=60>National Geospatial-Intelligence Agency</a>
33+
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
34+
<a href="http://www.bit-sys.com/"><image src="http://ngageoint.github.io/GeoPackage/images/BITSystems_Logo.png" align="middle" height=40></a>
35+
<br>
36+
<br>
37+
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
38+
</footer>
39+
40+
</section>
41+
42+
43+
</body>
44+
</html>

docs/stylesheets/github-light.css

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
Copyright 2014 GitHub Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
16+
*/
17+
18+
.pl-c /* comment */ {
19+
color: #969896;
20+
}
21+
22+
.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */,
23+
.pl-s .pl-v /* string variable */ {
24+
color: #0086b3;
25+
}
26+
27+
.pl-e /* entity */,
28+
.pl-en /* entity.name */ {
29+
color: #795da3;
30+
}
31+
32+
.pl-s .pl-s1 /* string source */,
33+
.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ {
34+
color: #333;
35+
}
36+
37+
.pl-ent /* entity.name.tag */ {
38+
color: #63a35c;
39+
}
40+
41+
.pl-k /* keyword, storage, storage.type */ {
42+
color: #a71d5d;
43+
}
44+
45+
.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
46+
.pl-s /* string */,
47+
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
48+
.pl-sr /* string.regexp */,
49+
.pl-sr .pl-cce /* string.regexp constant.character.escape */,
50+
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */,
51+
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ {
52+
color: #183691;
53+
}
54+
55+
.pl-v /* variable */ {
56+
color: #ed6a43;
57+
}
58+
59+
.pl-id /* invalid.deprecated */ {
60+
color: #b52a1d;
61+
}
62+
63+
.pl-ii /* invalid.illegal */ {
64+
background-color: #b52a1d;
65+
color: #f8f8f8;
66+
}
67+
68+
.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
69+
color: #63a35c;
70+
font-weight: bold;
71+
}
72+
73+
.pl-ml /* markup.list */ {
74+
color: #693a17;
75+
}
76+
77+
.pl-mh /* markup.heading */,
78+
.pl-mh .pl-en /* markup.heading entity.name */,
79+
.pl-ms /* meta.separator */ {
80+
color: #1d3e81;
81+
font-weight: bold;
82+
}
83+
84+
.pl-mq /* markup.quote */ {
85+
color: #008080;
86+
}
87+
88+
.pl-mi /* markup.italic */ {
89+
color: #333;
90+
font-style: italic;
91+
}
92+
93+
.pl-mb /* markup.bold */ {
94+
color: #333;
95+
font-weight: bold;
96+
}
97+
98+
.pl-md /* markup.deleted, meta.diff.header.from-file */ {
99+
background-color: #ffecec;
100+
color: #bd2c00;
101+
}
102+
103+
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
104+
background-color: #eaffea;
105+
color: #55a532;
106+
}
107+
108+
.pl-mdr /* meta.diff.range */ {
109+
color: #795da3;
110+
font-weight: bold;
111+
}
112+
113+
.pl-mo /* meta.output */ {
114+
color: #1d3e81;
115+
}
116+

0 commit comments

Comments
 (0)