diff --git a/feed.xml b/feed.xml index 28d28df..f8c231f 100644 --- a/feed.xml +++ b/feed.xml @@ -1676,6 +1676,91 @@ because astronomers need coffee to go through the night --> author-likes-the-name 2635 + + + Going around in circles in GeoRSS + Sun, 22 Oct 2023 19:19:32 +0200 + georss-circle + Tip + Geospatial/GeoRSS + In yet another incredibly niche blog post, I described GeoRSS GML. While working on this, I got quite confused by circles, eenough to decide to just remove any mention of circles in all of the previous GeoRSS posts.

+

The OGC standard, which is the only currently active standard, and the original archived pages for GeoRSS Simple and GeoRSS GML do not define any specific element to describe a circle. If you want to represent a circle, you can do so using the <georss:radius> element, which will create a buffer around a point.

+
+
+<!-- GeoRSS Simple -->
+<gml:point>-24.62759969859908 -70.40503541618583</gml:point>
+<georss:radius>14.74038882</gml:radius>
+<georss:featureName>Antu, VLT-UT1</georss:featureName>
+<georss:featureTypeTag>telescope</georss:featureTypeTag>
+<georss:relationshipTag>has-nothing-to-do-with</georss:relationshipTag>
+<georss:elev>2635</georss:elev>
+
+<!-- GeoRSS GML -->
+<georss:where>
+  <gml:CircleByCenterPoint>
+    <gml:pos>-24.62759969859908 -70.40503541618583</gml:pos>
+  </gml:CircleByCenterPoint>
+</georss:where>
+<georss:radius>14.74038882</gml:radius>
+<georss:featureName>Antu, VLT-UT1</georss:featureName>
+<georss:featureTypeTag>telescope</georss:featureTypeTag>
+<georss:relationshipTag>has-nothing-to-do-with</georss:relationshipTag>
+<georss:elev>2635</georss:elev>
+
+
Examples of a circle represented as a center point and a radius in GeoRSS
+
+

However, the XSD defining the GeoRSS GML Profile and the one for GeoRSS Simple, both include ways to specify a circle separately. The OGC standard has links to the schemas and does not state that those schemas are not non-normative, as many other specifications do. That means that in theory, it is completely legal to use them.

+ +

Reference

+
+
<georss:circle>
+
A GeoRSS Simple circle. Circles are defined by their center and their radius, so three numbers should be used here: latitude, longitude as WGS84 coordinates, and the radius in meters.
+
<gml:CircleByCenterPoint>
+
A GeoRSS GML circle. Must be used within a <georss:where> element. This should have a <gml:pos> element to specify the coordinates of the center point of the circle, and a <gml:radius> element to specify the radius.
+
<gml:radius>
+
The radius of a circle. This can have an uom attribute to specify the unit of measurement, which is by default m to represent meters.
+
uom
+
A unit of measurement. OGC GML 3.2.1 specification defines its value under section 8.2.3.6. It can be either a string, without any colons, spaces, tabs, carriage returns or line breaks, or a URL. When using strings, following the Unified Code for Units of Measure is recommended. For example, you could use m for meters, cm for centimeters, [ft_i] for feet (international definition) or [ft_us] for U.S. feets. It is highly likely that most systems will only support meters.
+
+ +

Examples

+
+
+<!-- GeoRSS Simple -->
+<georss:circle>-24.62759969859908 -70.40503541618583 14.74038882</georss:circle>
+<georss:featureName>Antu, VLT-UT1</georss:featureName>
+<georss:featureTypeTag>telescope</georss:featureTypeTag>
+<georss:relationshipTag>has-nothing-to-do-with</georss:relationshipTag>
+<georss:elev>2635</georss:elev>
+
+<!-- GeoRSS GML -->
+<georss:where>
+  <gml:CircleByCenterPoint>
+    <gml:pos>-24.62759969859908 -70.40503541618583</gml:pos>
+    <gml:radius uom="m">14.74038882</gml:radius>
+  </gml:CircleByCenterPoint>
+</georss:where>
+<georss:featureName>Antu, VLT-UT1</georss:featureName>
+<georss:featureTypeTag>telescope</georss:featureTypeTag>
+<georss:relationshipTag>has-nothing-to-do-with</georss:relationshipTag>
+<georss:elev>2635</georss:elev>
+
+
Examples of a circle represented with the secret circle geometries in GeoRSS
+
+ +

Notes

+

The GeoRSS documentation on ArcGIS Online mentions supports for circles on GeoRSS Simple, but excludes them from GeoRSS GML. I would therefore advise against trying to use a CircleByCenterPoint. It is likely that the few GeoRSS implementations out there will only support <georss:circle>, if they support circles at all.

+

The W3C Feed Validation Service does not support circles in either its GeoRSS Simple validator nor its GeoRSS GML validator. +

Circles were probably either added before <georss:radius> was introduced, or added, then partially removed when someone noticed <georss:radius> could already do the job. Another possibility is that circles and curves are far less supported by GIS software than linear geometries, so they wouldn't be that usable anyway. This raises interesting questions: what happens if you use a circle, but also add a radius around it? Do you get a larger circle? Is the radius ignored? Does it become an approximation of a circle as a polygon, as is common with GIS software that doesn't support circles? Those questions will definitely remain unanswered, as with most things about RSS, the answer of most organizations nowadays will be "who cares?". This is why we can't have nice things.

+ ]]>
+ + -24.62759969859908 -70.40503541618583 14.74038882 + Antu, VLT-UT1 + telescope + has-nothing-to-do-with + 2635 +