Changes between Version 3 and Version 4 of XML
- Timestamp:
- 09/19/07 08:09:18 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XML
v3 v4 1 1 = XML = 2 2 3 A number of Layer types in OpenLayers use Extensible Markup Language (XML) to load structured data from a file or URL. This makes it easy to draw complex layers with little or no additional coding. 3 A number of Layer types in OpenLayers use Extensible Markup Language (XML) to load structured data from a file or URL. This makes it easy to draw complex layers with little or no additional coding. There is also support for non-XML formats in several forms like WKT and GeoJSON. 4 4 5 5 In particular this means that data can be combined from a number of sources without requiring any server side processing as layers are assembled by the client. … … 9 9 This page describes and compares the various formats, linking to examples and language specifications where available. 10 10 11 A useful l comparison of the various formats is provided by the vector-formats example [but which lacks example data???] - http://openlayers.org/dev/examples/vector-features.html11 A useful comparison of the various formats is provided by the vector-formats example [but which lacks example data???] - http://openlayers.org/dev/examples/vector-formats.html 12 12 13 13 Vector layers are probably best suited to displaying XML type data, and can include markers displayed as external images via styling in a vector layer, as in the vector-features example - http://openlayers.org/dev/examples/vector-features.html 14 15 16 14 17 15 == GeoRSS - Geographically Encoded Objects for RSS feeds == … … 19 17 "GeoRSS is an emerging standard for encoding location as part of an RSS feed." - [http://en.wikipedia.org/wiki/GeoRSS wikipedia] 20 18 21 '''Read''': Can be used to display markers loaded from a GeoRSS Feed - http://openlayers.org/dev/examples/georss-markers.html 19 Currently, there are two forms of GeoRSS parsing. 20 21 There is the GeoRSS *layer*, which uses parsing in the layer, and only supports GeoRSS simple points and W3C Geo Points. This creates markers and popups for the features for you. 22 23 There is also the GeoRSS Format parser, which allows reading and writing of Vector Features from GeoRSS simple documents, including points, lines, and polygons. This section addresses the GeoRSS Format parser. 24 25 '''Read''': Can read W3C Geo points and most GeoRSS Simple features. Does not support georss:box. 26 * Point 27 * Line 28 * Polygon 22 29 23 30 '''Write''': Can be used to serialise vector data drawn with the editing toolbar - http://openlayers.org/dev/examples/georss-serialize.html 24 31 25 32 Question: Can GeoRSS display vector data such as that created with the serialise example? 33 * Yes, it can. However, the current GeoRSS layer does not use the Format.GeoRSS class, and therefore can not display anything other than points. 26 34 27 35 * '''Specification''': http://georss.org/ … … 34 42 "The Geography Markup Language (GML) is the XML grammar defined by the Open Geospatial Consortium (OGC) to express geographical features. GML serves as a modeling language for geographic systems as well as an open interchange format for geographic transactions on the Internet." - [http://en.wikipedia.org/wiki/Geography_Markup_Language - wikipedia] 35 43 36 '''Read''': Can be used to display polygon shapes from a GML file - http://openlayers.org/dev/examples/gml-layer.html 44 '''Read''': Full support for all geometries, including reading of attributes. http://openlayers.org/dev/examples/gml-layer.html 45 * Point 46 * LineString 47 * Polygon 48 * MultiPoint 49 * MultiLineString 50 * MultiPolygon 37 51 38 Write: Serialise vector data drawn with the editing toolbar [example does not seem to work in firefox 2.0???] - http://openlayers.org/dev/examples/gml-serialize.html 52 53 '''Write''': Serialise vector data drawn with the editing toolbar [example does not seem to work in firefox 2.0???] - http://openlayers.org/dev/examples/gml-serialize.html 39 54 40 55 * '''Specification''': http://portal.opengeospatial.org/files/?artifact_id=4700 (requires EULA to read) … … 50 65 51 66 '''Read''': Example [broken???] - http://openlayers.org/dev/examples/kml-layer.html 52 53 '''Read''': Linestring example - http://openlayers.org/dev/examples/kml-layer-linestring.html54 67 55 68 * '''Specification''': http://code.google.com/apis/kml/documentation/
