Comments (1)
The namespaces are just there to separate classes into logical packages and aren't meant to enforce a class hierarchy (although it is often consistent with one). I could have put both collection classes in a GeoJson\Collection
namespace, but I thought it was more intuitive to have all of the geometry or feature-related classes in one place.
The Feature and FeatureCollection classes do not extend a common Feature class
The collection classes shouldn't extend their non-collection counterparts, as they are only GeoJson objects (outlined in the spec). I'm not sure if your comment was motivated by the GeometryCollection's class hierarchy, but the fact that it extends Geometry instead of GeoJson is actually a bug. I'm tracking that in #13.
from geojson.
Related Issues (17)
- Errors trying to jsonSerialize in PHP 5.3 HOT 2
- Documentation is missing HOT 3
- GeometryCollection should extend GeoJson, not Geometry
- Installation guidelines for composer should be updated HOT 5
- Adding members not specified by GeoJSON HOT 1
- PHP warning when Polygon is created from invalid data HOT 5
- Adjusting constructor for multiple arguments HOT 1
- Get the center of a MultiPoint
- MultiPolygon not parsing although appearing to be valid HOT 2
- Patch release HOT 1
- PHP 8.1: Return type of GeoJson\GeoJson::jsonSerialize() HOT 2
- Validate Feature "id" property as string or number
- Make CoordinateReferenceSystem::jsonUnserializeFromProperties abstract HOT 1
- Remove CoordinateReferenceSystem classes
- Improved documentation HOT 1
- Example setting point doesn't work in PHP 5.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geojson.