Search in sources :

Example 21 with CoordinateReferenceSystem

use of org.neo4j.values.storable.CoordinateReferenceSystem in project neo4j by neo4j.

the class SpaceFillingCurveSettingsFactoryTest method shouldGetModifiedSpaceFillingCurveSettingsForCartesian_3D.

@Test
void shouldGetModifiedSpaceFillingCurveSettingsForCartesian_3D() {
    CoordinateReferenceSystem crs = CoordinateReferenceSystem.Cartesian_3D;
    shouldGetCustomSettingsFor(crs, new double[] { -1000000, -1000000, -1000000 }, new double[] { 1000000, 1000000, 1000000 });
    shouldGetCustomSettingsFor(crs, new double[] { 0, -1000000, -1000000 }, new double[] { 1000000, 0, 1000000 });
    shouldGetCustomSettingsFor(crs, new double[] { -1000, -1000, -1000 }, new double[] { 1000, 1000, 1000 });
    shouldGetCustomSettingsFor(crs, new double[] { -1000000000, -1000000000, -1000000000 }, new double[] { 1000000000, 1000000000, 1000000000 });
}
Also used : CoordinateReferenceSystem(org.neo4j.values.storable.CoordinateReferenceSystem) Test(org.junit.jupiter.api.Test)

Aggregations

CoordinateReferenceSystem (org.neo4j.values.storable.CoordinateReferenceSystem)21 Test (org.junit.jupiter.api.Test)10 HashMap (java.util.HashMap)5 IndexConfig (org.neo4j.internal.schema.IndexConfig)5 PointValue (org.neo4j.values.storable.PointValue)5 SpaceFillingCurveSettings (org.neo4j.kernel.impl.index.schema.config.SpaceFillingCurveSettings)4 Value (org.neo4j.values.storable.Value)4 SpaceFillingCurve (org.neo4j.gis.spatial.index.curves.SpaceFillingCurve)3 IndexDescriptor (org.neo4j.internal.schema.IndexDescriptor)3 Assertions.assertEquals (org.junit.jupiter.api.Assertions.assertEquals)2 Config (org.neo4j.configuration.Config)2 Node (org.neo4j.graphdb.Node)2 Transaction (org.neo4j.graphdb.Transaction)2 PropertyIndexQuery (org.neo4j.internal.kernel.api.PropertyIndexQuery)2 LabelSchemaDescriptor (org.neo4j.internal.schema.LabelSchemaDescriptor)2 IndexDirectoryStructure (org.neo4j.kernel.api.index.IndexDirectoryStructure)2 InternalTransaction (org.neo4j.kernel.impl.coreapi.InternalTransaction)2 ConfiguredSpaceFillingCurveSettingsCache (org.neo4j.kernel.impl.index.schema.config.ConfiguredSpaceFillingCurveSettingsCache)2 IndexSpecificSpaceFillingCurveSettings (org.neo4j.kernel.impl.index.schema.config.IndexSpecificSpaceFillingCurveSettings)2 DoubleArray (org.neo4j.values.storable.DoubleArray)2