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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ different operations:

* [index](./staccato-commons/src/main/java/com/planet/staccato/filter/ItemIndexFilter.java)
* [update](./staccato-commons/src/main/java/com/planet/staccato/filter/ItemUpdateFilter.java)
* [search](./staccato-commons/src/main/java/com/planet/stacccato/filter/ItemSearchFilter.java)
* [search](./staccato-commons/src/main/java/com/planet/staccato/filter/ItemSearchFilter.java)

Any Spring managed bean that implements one of these interfaces will be called during the corresponding event in the
request lifecycle. An bean that implements ItemIndexFilter will be called before an item is indexed in Elasticsearch.
Expand Down Expand Up @@ -202,7 +202,7 @@ the data is serialized/deserialized the way you want.
or simply extend
[`CollectionMetadataAdapter`](../staccato-commons/src/main/java/com/planet/staccato/collection/CollectionMetadataAdapter.java).
4) A class annotated with `@Configuration` that creates 2 beans, both instances of your `CollectionMetadata` class.
One bean is the the WFS3 collection and one is the STAC catalog. Yes, it seems silly, but there are differences per
One bean is the WFS3 collection and one is the STAC catalog. Yes, it seems silly, but there are differences per
the spec (the collection is WFS3 compliant; the catalog enables STAC-specific capabilities, such as the traversing
subcatalogs). It is important that when creating the collection bean, you set
`metadata.setCatalogType(CatalogType.COLLECTION);` and when you create the catalog bean, you set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void generatePropertyValueLinks(ServerRequest request, CollectionMetadata
* @return The protocol/host/port portion of the URL
*/
public String getSelfString(ServerRequest request) {
// request.uri() shceme seems to always be "http"
// request.uri() scheme seems to always be "http"
String self = request.uri().toASCIIString();
if (request.uri().getScheme().equalsIgnoreCase("http") &&
linksConfigProps.getSelf().getScheme().equalsIgnoreCase("https")) {
Expand Down Expand Up @@ -164,7 +164,7 @@ public static String appendLinkPath(String url, String ...subPaths) {
log.warn("LinkGenerator encounters malformed url " + e.toString());
return url;
} catch(URISyntaxException e) {
log.warn("LinkGenerator encounteres uri syntax exception " + e.toString());
log.warn("LinkGenerator encountered uri syntax exception " + e.toString());
}
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public InvalidParameterException(String message) {
super(message);
}

public InvalidParameterException(String invalidParameter, Collection<String> knownParmaeters) {
super(buildMessage(invalidParameter, knownParmaeters));
public InvalidParameterException(String invalidParameter, Collection<String> knownParameters) {
super(buildMessage(invalidParameter, knownParameters));
}

public static String buildMessage(String invalidParameter, Collection<String> knownParameters) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface Planet {
@JsonAlias("quality_category")
@JsonProperty(EXTENSION_PREFIX + ":quality_category")
String getQualityCategory();
void setQualityCategory(String quailtyCategory);
void setQualityCategory(String qualityCategory);

@JsonAlias("satellite_azimuth")
@JsonProperty(EXTENSION_PREFIX + ":satellite_azimuth")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.Objects;

/**
* provides the core metatdata fieldsExtension plus extensions
* provides the core metadata fieldsExtension plus extensions
*/
@Data
public class ItemProperties {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Band {

@Mapping(type = MappingType.KEYWORD)
@JsonProperty("common_name")
private String commmonName;
private String commonName;

@Mapping(type = MappingType.TEXT)
private String description;
Expand All @@ -57,7 +57,7 @@ public Band name(String name) {
}

public Band commonName(String commonName) {
setCommmonName(commonName);
setCommonName(commonName);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This puzzles/scares me...

return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.Map;

/**
* Defines the item assets xtension and Jackson property values
* Defines the item assets extension and Jackson property values
* @see <a href="https://github.com/radiantearth/stac-spec/tree/master/extensions/item-assets">Item Assets Extension</a>
* @author joshfix
* Created on 06/08/2020
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PixelBuffer {
private Double borderTop;
@JsonProperty("border_left")
private Double borderLeft;
@JsonProperty("border_bottomw")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@JsonProperty("border_bottom")
private Double borderBottom;
@JsonProperty("border_right")
private Double borderRight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public static Optional<QueryBuilder> intersectsBuilder(Object intersects) {
/**
* Builds an Elasticsearch query from the OGC CQL filter spec
*
* @param filterCrs The CRS of the filter as specified by the API paramter "filter-crs"
* @param filterLang The language of the filter as specified by the API paramter "filter-lang"
* @param filterCrs The CRS of the filter as specified by the API parameter "filter-crs"
* @param filterLang The language of the filter as specified by the API parameter "filter-lang"
* @param filter The query filter passed in the api request
* @return The Elasticsearch query builder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* An initializer that will prevent the STAC application from reporting a healthy status until it can successfully
* connect to the Elasticsearch instance and retrieve the version number or until the maximum number of attempts
* as defined in {@link ElasticsearchConfigProps ElasticsearchConfigProps.Es.maxReconnectionAttempts} has been reached.
* After a failed attempt, reattempts will implement a back-off delay strategy according the the fibonacci sequence.
* After a failed attempt, reattempts will implement a back-off delay strategy according the fibonacci sequence.
* @author joshfix
* Created on 2/27/18
*/
Expand Down