clickbar/laravel-magellan
Laravel Magellan is a modern PostGIS toolbox for Laravel. It provides geometry data classes, generators and parsers, request validation, and seamless database interaction for inserting, updating, and querying spatial data with PostGIS functions.
GeojsonParser, TransformsGeojsonGeometry,
GeometryGeojsonRule)WKBParser, WKTParser, GeojsonParser) and generators (WKBGenerator, WKTGenerator,
GeojsonGenerator)Please check out the upgrade guide for more recommended steps.
HasPostgisColumns trait & $postgisColumns property.GeometryWKBCastBBoxCast to be generic & internal, please use Box subclasses directlystSelect, stWhere, ...)GeometryType EnumtoString to toRawSql on Box classesGeometryGeojsonRule is not directly invokable anymoreCastable to all geometries to use them as casters, instead of the GeometryWKBCastCastable to all boxes to use them as casters, instead of the BBoxCastAliased Expression class as wrapper for AS in query selects
->as() helper method on MagellanBaseExpressionwithMagellanCasts() as EloquentBuilder macroAsGeometry and AsGeography database expressionsfromString() to Box classes to create a box from a stringStringable interface to all box classesJsonSerializable to Box2D and Box3DGeojsonParser and fail if not$geometry to $geometryOrGeographyExpression and therefore can be used in ->select(...) directly nowtoRawSql methods, now uses the maximum precisionmagellan:update-postgis-columns commandmagellan.eloquent & magellan.model_directories configsST::asGeoJson function to convert geometries to GeoJSON via the databaseExpression types in SRID-related functionsST functionsST::transform and ST::setSRID (thanks @BezBIS #91)ST::buffer & ST:offsetCurve: Correctly renamed styleMitreLevel to styleMitreLimitperformInsert or
performUpdate entirely (thanks @RomainMazB #89)spatie/invade to v2, works without reflection now 🥳Point dimension when using setAltitudeas parameter for stFrom functionstHaving with stWhere to also accept string column and ST expressions, boxes and geometries as valueST_PROJECT function not being migrated to the GeometryType enum.TransformsGeojsonGeometry trait (Fixes #37)query()->update() calls.How can I help you explore Laravel packages today?