├── .gitignore ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── composer.json ├── docker-compose.yml ├── phpunit.xml.dist ├── src ├── Connectors │ └── ConnectionFactory.php ├── Doctrine │ ├── Geometry.php │ ├── GeometryCollection.php │ ├── LineString.php │ ├── MultiLineString.php │ ├── MultiPoint.php │ ├── MultiPolygon.php │ ├── Point.php │ └── Polygon.php ├── Eloquent │ ├── BaseBuilder.php │ ├── Builder.php │ ├── SpatialExpression.php │ └── SpatialTrait.php ├── Exceptions │ ├── InvalidGeoJsonException.php │ ├── SpatialFieldsNotDefinedException.php │ ├── UnknownSpatialFunctionException.php │ ├── UnknownSpatialRelationFunction.php │ └── UnknownWKTTypeException.php ├── MysqlConnection.php ├── Schema │ ├── Blueprint.php │ ├── Builder.php │ └── Grammars │ │ └── MySqlGrammar.php ├── SpatialServiceProvider.php └── Types │ ├── Factory.php │ ├── Geometry.php │ ├── GeometryCollection.php │ ├── GeometryInterface.php │ ├── LineString.php │ ├── MultiLineString.php │ ├── MultiPoint.php │ ├── MultiPolygon.php │ ├── Point.php │ ├── PointCollection.php │ └── Polygon.php └── tests ├── Integration ├── IntegrationBaseTestCase.php ├── MigrationTest.php ├── Migrations │ ├── CreateTables.php │ └── UpdateTables.php ├── Models │ ├── GeometryModel.php │ ├── NoSpatialFieldsModel.php │ └── WithSridModel.php ├── SpatialTest.php └── SridSpatialTest.php └── Unit ├── BaseTestCase.php ├── Connectors └── ConnectionFactoryTest.php ├── Eloquent ├── BuilderTest.php └── SpatialTraitTest.php ├── MysqlConnectionTest.php ├── Schema ├── BlueprintTest.php ├── BuilderTest.php └── Grammars │ └── MySqlGrammarTest.php ├── Stubs └── PDOStub.php └── Types ├── GeometryCollectionTest.php ├── GeometryTest.php ├── LineStringTest.php ├── MultiLineStringTest.php ├── MultiPointTest.php ├── MultiPolygonTest.php ├── PointTest.php └── PolygonTest.php /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | vendor/ 3 | composer.lock 4 | _db/ 5 | build/ -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/composer.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Connectors/ConnectionFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Connectors/ConnectionFactory.php -------------------------------------------------------------------------------- /src/Doctrine/Geometry.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/Geometry.php -------------------------------------------------------------------------------- /src/Doctrine/GeometryCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/GeometryCollection.php -------------------------------------------------------------------------------- /src/Doctrine/LineString.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/LineString.php -------------------------------------------------------------------------------- /src/Doctrine/MultiLineString.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/MultiLineString.php -------------------------------------------------------------------------------- /src/Doctrine/MultiPoint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/MultiPoint.php -------------------------------------------------------------------------------- /src/Doctrine/MultiPolygon.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/MultiPolygon.php -------------------------------------------------------------------------------- /src/Doctrine/Point.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/Point.php -------------------------------------------------------------------------------- /src/Doctrine/Polygon.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Doctrine/Polygon.php -------------------------------------------------------------------------------- /src/Eloquent/BaseBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Eloquent/BaseBuilder.php -------------------------------------------------------------------------------- /src/Eloquent/Builder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Eloquent/Builder.php -------------------------------------------------------------------------------- /src/Eloquent/SpatialExpression.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Eloquent/SpatialExpression.php -------------------------------------------------------------------------------- /src/Eloquent/SpatialTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Eloquent/SpatialTrait.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidGeoJsonException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Exceptions/InvalidGeoJsonException.php -------------------------------------------------------------------------------- /src/Exceptions/SpatialFieldsNotDefinedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Exceptions/SpatialFieldsNotDefinedException.php -------------------------------------------------------------------------------- /src/Exceptions/UnknownSpatialFunctionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Exceptions/UnknownSpatialFunctionException.php -------------------------------------------------------------------------------- /src/Exceptions/UnknownSpatialRelationFunction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Exceptions/UnknownSpatialRelationFunction.php -------------------------------------------------------------------------------- /src/Exceptions/UnknownWKTTypeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Exceptions/UnknownWKTTypeException.php -------------------------------------------------------------------------------- /src/MysqlConnection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/MysqlConnection.php -------------------------------------------------------------------------------- /src/Schema/Blueprint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Schema/Blueprint.php -------------------------------------------------------------------------------- /src/Schema/Builder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Schema/Builder.php -------------------------------------------------------------------------------- /src/Schema/Grammars/MySqlGrammar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Schema/Grammars/MySqlGrammar.php -------------------------------------------------------------------------------- /src/SpatialServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/SpatialServiceProvider.php -------------------------------------------------------------------------------- /src/Types/Factory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/Factory.php -------------------------------------------------------------------------------- /src/Types/Geometry.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/Geometry.php -------------------------------------------------------------------------------- /src/Types/GeometryCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/GeometryCollection.php -------------------------------------------------------------------------------- /src/Types/GeometryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/GeometryInterface.php -------------------------------------------------------------------------------- /src/Types/LineString.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/LineString.php -------------------------------------------------------------------------------- /src/Types/MultiLineString.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/MultiLineString.php -------------------------------------------------------------------------------- /src/Types/MultiPoint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/MultiPoint.php -------------------------------------------------------------------------------- /src/Types/MultiPolygon.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/MultiPolygon.php -------------------------------------------------------------------------------- /src/Types/Point.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/Point.php -------------------------------------------------------------------------------- /src/Types/PointCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/PointCollection.php -------------------------------------------------------------------------------- /src/Types/Polygon.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/src/Types/Polygon.php -------------------------------------------------------------------------------- /tests/Integration/IntegrationBaseTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/IntegrationBaseTestCase.php -------------------------------------------------------------------------------- /tests/Integration/MigrationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/MigrationTest.php -------------------------------------------------------------------------------- /tests/Integration/Migrations/CreateTables.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/Migrations/CreateTables.php -------------------------------------------------------------------------------- /tests/Integration/Migrations/UpdateTables.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/Migrations/UpdateTables.php -------------------------------------------------------------------------------- /tests/Integration/Models/GeometryModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/Models/GeometryModel.php -------------------------------------------------------------------------------- /tests/Integration/Models/NoSpatialFieldsModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/Models/NoSpatialFieldsModel.php -------------------------------------------------------------------------------- /tests/Integration/Models/WithSridModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/Models/WithSridModel.php -------------------------------------------------------------------------------- /tests/Integration/SpatialTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/SpatialTest.php -------------------------------------------------------------------------------- /tests/Integration/SridSpatialTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Integration/SridSpatialTest.php -------------------------------------------------------------------------------- /tests/Unit/BaseTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/BaseTestCase.php -------------------------------------------------------------------------------- /tests/Unit/Connectors/ConnectionFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Connectors/ConnectionFactoryTest.php -------------------------------------------------------------------------------- /tests/Unit/Eloquent/BuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Eloquent/BuilderTest.php -------------------------------------------------------------------------------- /tests/Unit/Eloquent/SpatialTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Eloquent/SpatialTraitTest.php -------------------------------------------------------------------------------- /tests/Unit/MysqlConnectionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/MysqlConnectionTest.php -------------------------------------------------------------------------------- /tests/Unit/Schema/BlueprintTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Schema/BlueprintTest.php -------------------------------------------------------------------------------- /tests/Unit/Schema/BuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Schema/BuilderTest.php -------------------------------------------------------------------------------- /tests/Unit/Schema/Grammars/MySqlGrammarTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Schema/Grammars/MySqlGrammarTest.php -------------------------------------------------------------------------------- /tests/Unit/Stubs/PDOStub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Stubs/PDOStub.php -------------------------------------------------------------------------------- /tests/Unit/Types/GeometryCollectionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/GeometryCollectionTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/GeometryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/GeometryTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/LineStringTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/LineStringTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/MultiLineStringTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/MultiLineStringTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/MultiPointTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/MultiPointTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/MultiPolygonTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/MultiPolygonTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/PointTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/PointTest.php -------------------------------------------------------------------------------- /tests/Unit/Types/PolygonTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grimzy/laravel-mysql-spatial/HEAD/tests/Unit/Types/PolygonTest.php --------------------------------------------------------------------------------