DATAMONGO-2231 - URL Cleanup.

This commit is contained in:
Mark Paluch
2019-06-05 11:19:31 +02:00
parent 2879348d4b
commit a212f5f79d
9 changed files with 12 additions and 12 deletions

View File

@@ -16,7 +16,7 @@
package org.springframework.data.mongodb.core.geo; package org.springframework.data.mongodb.core.geo;
/** /**
* Interface definition for structures defined in GeoJSON ({@link http://geojson.org/}) format. * Interface definition for structures defined in GeoJSON ({@link https://geojson.org/}) format.
* *
* @author Christoph Strobl * @author Christoph Strobl
* @since 1.7 * @since 1.7
@@ -27,7 +27,7 @@ public interface GeoJson<T extends Iterable<?>> {
* String value representing the type of the {@link GeoJson} object. * String value representing the type of the {@link GeoJson} object.
* *
* @return will never be {@literal null}. * @return will never be {@literal null}.
* @see <a href="http://geojson.org/geojson-spec.html#geojson-objects">http://geojson.org/geojson-spec.html#geojson-objects</a> * @see <a href="https://geojson.org/geojson-spec.html#geojson-objects">https://geojson.org/geojson-spec.html#geojson-objects</a>
*/ */
String getType(); String getType();
@@ -36,7 +36,7 @@ public interface GeoJson<T extends Iterable<?>> {
* determined by {@link #getType()} of geometry. * determined by {@link #getType()} of geometry.
* *
* @return will never be {@literal null}. * @return will never be {@literal null}.
* @see <a href="http://geojson.org/geojson-spec.html#geometry-objects">http://geojson.org/geojson-spec.html#geometry-objects</a> * @see <a href="https://geojson.org/geojson-spec.html#geometry-objects">https://geojson.org/geojson-spec.html#geometry-objects</a>
*/ */
T getCoordinates(); T getCoordinates();
} }

View File

@@ -27,7 +27,7 @@ import org.springframework.util.ObjectUtils;
* *
* @author Christoph Strobl * @author Christoph Strobl
* @since 1.7 * @since 1.7
* @see <a href="http://geojson.org/geojson-spec.html#geometry-collection">http://geojson.org/geojson-spec.html#geometry-collection</a> * @see <a href="https://geojson.org/geojson-spec.html#geometry-collection">https://geojson.org/geojson-spec.html#geometry-collection</a>
*/ */
public class GeoJsonGeometryCollection implements GeoJson<Iterable<GeoJson<?>>> { public class GeoJsonGeometryCollection implements GeoJson<Iterable<GeoJson<?>>> {

View File

@@ -24,7 +24,7 @@ import org.springframework.data.geo.Point;
* *
* @author Christoph Strobl * @author Christoph Strobl
* @since 1.7 * @since 1.7
* @see <a href="http://geojson.org/geojson-spec.html#linestring">http://geojson.org/geojson-spec.html#linestring</a> * @see <a href="https://geojson.org/geojson-spec.html#linestring">https://geojson.org/geojson-spec.html#linestring</a>
*/ */
public class GeoJsonLineString extends GeoJsonMultiPoint { public class GeoJsonLineString extends GeoJsonMultiPoint {

View File

@@ -28,7 +28,7 @@ import org.springframework.util.ObjectUtils;
* *
* @author Christoph Strobl * @author Christoph Strobl
* @since 1.7 * @since 1.7
* @see <a href="http://geojson.org/geojson-spec.html#multilinestring">http://geojson.org/geojson-spec.html#multilinestring</a> * @see <a href="https://geojson.org/geojson-spec.html#multilinestring">https://geojson.org/geojson-spec.html#multilinestring</a>
*/ */
public class GeoJsonMultiLineString implements GeoJson<Iterable<GeoJsonLineString>> { public class GeoJsonMultiLineString implements GeoJson<Iterable<GeoJsonLineString>> {

View File

@@ -29,7 +29,7 @@ import org.springframework.util.ObjectUtils;
* *
* @author Christoph Strobl * @author Christoph Strobl
* @since 1.7 * @since 1.7
* @see <a href="http://geojson.org/geojson-spec.html#multipoint">http://geojson.org/geojson-spec.html#multipoint</a> * @see <a href="https://geojson.org/geojson-spec.html#multipoint">https://geojson.org/geojson-spec.html#multipoint</a>
*/ */
public class GeoJsonMultiPoint implements GeoJson<Iterable<Point>> { public class GeoJsonMultiPoint implements GeoJson<Iterable<Point>> {

View File

@@ -25,7 +25,7 @@ import org.springframework.data.geo.Point;
* *
* @author Christoph Strobl * @author Christoph Strobl
* @since 1.7 * @since 1.7
* @see <a href="http://geojson.org/geojson-spec.html#point">http://geojson.org/geojson-spec.html#point</a> * @see <a href="https://geojson.org/geojson-spec.html#point">https://geojson.org/geojson-spec.html#point</a>
*/ */
public class GeoJsonPoint extends Point implements GeoJson<List<Double>> { public class GeoJsonPoint extends Point implements GeoJson<List<Double>> {

View File

@@ -32,7 +32,7 @@ import org.springframework.util.Assert;
* @author Christoph Strobl * @author Christoph Strobl
* @author Mark Paluch * @author Mark Paluch
* @since 1.7 * @since 1.7
* @see <a href="http://geojson.org/geojson-spec.html#polygon">http://geojson.org/geojson-spec.html#polygon</a> * @see <a href="https://geojson.org/geojson-spec.html#polygon">https://geojson.org/geojson-spec.html#polygon</a>
*/ */
public class GeoJsonPolygon extends Polygon implements GeoJson<List<GeoJsonLineString>> { public class GeoJsonPolygon extends Polygon implements GeoJson<List<GeoJsonLineString>> {

View File

@@ -70,7 +70,7 @@
* Assert compatibility with MongoDB 3.0 and MongoDB Java Driver 3-beta3 (see: <<mongo.mongo-3>>). * Assert compatibility with MongoDB 3.0 and MongoDB Java Driver 3-beta3 (see: <<mongo.mongo-3>>).
* Support JSR-310 and ThreeTen back-port date/time types. * Support JSR-310 and ThreeTen back-port date/time types.
* Allow `Stream` as a query method return type (see: <<mongodb.repositories.queries>>). * Allow `Stream` as a query method return type (see: <<mongodb.repositories.queries>>).
* http://geojson.org/[GeoJSON] support in both domain types and queries (see: <<mongo.geo-json>>). * https://geojson.org/[GeoJSON] support in both domain types and queries (see: <<mongo.geo-json>>).
* `QueryDslPredicateExcecutor` now supports `findAll(OrderSpecifier<?>… orders)`. * `QueryDslPredicateExcecutor` now supports `findAll(OrderSpecifier<?>… orders)`.
* Support calling JavaScript functions with <<mongo.server-side-scripts>>. * Support calling JavaScript functions with <<mongo.server-side-scripts>>.
* Improve support for `CONTAINS` keyword on collection-like properties. * Improve support for `CONTAINS` keyword on collection-like properties.

View File

@@ -1319,11 +1319,11 @@ The geo-near operations return a `GeoResults` wrapper object that encapsulates `
[[mongo.geo-json]] [[mongo.geo-json]]
=== GeoJSON Support === GeoJSON Support
MongoDB supports http://geojson.org/[GeoJSON] and simple (legacy) coordinate pairs for geospatial data. Those formats can both be used for storing as well as querying data. See the http://docs.mongodb.org/manual/core/2dsphere/#geospatial-indexes-store-geojson/[MongoDB manual on GeoJSON support] to learn about requirements and restrictions. MongoDB supports https://geojson.org/[GeoJSON] and simple (legacy) coordinate pairs for geospatial data. Those formats can both be used for storing as well as querying data. See the http://docs.mongodb.org/manual/core/2dsphere/#geospatial-indexes-store-geojson/[MongoDB manual on GeoJSON support] to learn about requirements and restrictions.
==== GeoJSON Types in Domain Classes ==== GeoJSON Types in Domain Classes
Usage of http://geojson.org/[GeoJSON] types in domain classes is straightforward. The `org.springframework.data.mongodb.core.geo` package contains types such as `GeoJsonPoint`, `GeoJsonPolygon`, and others. These types are extend the existing `org.springframework.data.geo` types. The following example uses a `GeoJsonPoint`: Usage of https://geojson.org/[GeoJSON] types in domain classes is straightforward. The `org.springframework.data.mongodb.core.geo` package contains types such as `GeoJsonPoint`, `GeoJsonPolygon`, and others. These types are extend the existing `org.springframework.data.geo` types. The following example uses a `GeoJsonPoint`:
==== ====
[source,java] [source,java]