Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions sources/oceania/au/vic/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## City of Melbourne

City of Melbourne imagery processed with https://gitlab.com/andrewharvey/city-of-melbourne-cogeo and hosted on openstreetmap.org imagery service.

## Vicmap

### Filtering a WMS layer

The `cql_filter` parameter can be set to filter the data shown using the [CQL query langauge for GeoServer](https://docs.geoserver.org/main/en/user/tutorials/cql/cql_tutorial.html#cql-tutorial).

For example using `cql_filter=status=%27A%27` on the "Vicmap-property_view" layer would filter where the `status` attribute is `A` (Assigned, as opposed to P for Proposed).

### User supplied styles

A WMS layer can have a custom style following the SLD schema.

We have some custom SLDs in the `sld` directory. To convert these into the URL parameter use

xmlstarlet format --noindent Address.xml | tr -d '\n\t\r' | jq -sRr @uri

This will compact the XML by removing indents and new lines, then URL encode it.

Then use that value for the `sld_body=` URL parameter.

https://opendata.maps.vic.gov.au/geoserver/wms?service=wms&version=1.3.0&request=getmap&format=image%2Fpng&transparent=true&width={width}&height={height}&crs={proj}&bbox={bbox}&layers=open-data-platform:property_view&sld_body=
4 changes: 2 additions & 2 deletions sources/oceania/au/vic/Vicmap-address_no.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "Vicmap-address_no",
"attribution": {
"url": "https://discover.data.vic.gov.au/dataset/vicmap-address-address-point",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2023",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2026",
"required": true
},
"license_url": "https://wiki.openstreetmap.org/wiki/File:Vicmap_CCBYPermission_OSM_Final_Jan2018_Ltr.pdf",
Expand All @@ -15,7 +15,7 @@
"EPSG:4326",
"CRS:84"
],
"url": "https://opendata.maps.vic.gov.au/geoserver/wms?service=wms&version=1.3.0&request=getmap&format=image%2Fpng&transparent=true&width={width}&height={height}&crs={proj}&bbox={bbox}&layers=open-data-platform:address&styles=open-data-platform:address_no",
"url": "https://opendata.maps.vic.gov.au/geoserver/wms?service=wms&version=1.3.0&request=getmap&format=image%2Fpng&transparent=true&width={width}&height={height}&crs={proj}&bbox={bbox}&layers=open-data-platform:address&sld_body=%3C%3Fxml%20version%3D%221.0%22%3F%3E%3Csld%3AStyledLayerDescriptor%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%2F3.2%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3Asld%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%22%20xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%20StyledLayerDescriptor.xsd%22%20version%3D%221.0.0%22%3E%3Csld%3ANamedLayer%3E%3Csld%3AName%3Eopen-data-platform%3Aaddress%3C%2Fsld%3AName%3E%3Csld%3AUserStyle%3E%3Csld%3AFeatureTypeStyle%3E%3Csld%3ARule%3E%3CTextSymbolizer%3E%3CLabel%3E%3Cogc%3APropertyName%3Enum_address%3C%2Fogc%3APropertyName%3E%3C%2FLabel%3E%3CFont%3E%3CCssParameter%20name%3D%22font-family%22%3EArial%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22font-size%22%3E12%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22font-style%22%3Enormal%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22font-weight%22%3Ebold%3C%2FCssParameter%3E%3C%2FFont%3E%3CLabelPlacement%3E%3CPointPlacement%3E%3CAnchorPoint%3E%3CAnchorPointX%3E0.5%3C%2FAnchorPointX%3E%3CAnchorPointY%3E0.5%3C%2FAnchorPointY%3E%3C%2FAnchorPoint%3E%3C%2FPointPlacement%3E%3C%2FLabelPlacement%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23FFFFFF%3C%2FCssParameter%3E%3C%2FFill%3E%3CHalo%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23000000%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FHalo%3E%3C%2FTextSymbolizer%3E%3C%2Fsld%3ARule%3E%3C%2Fsld%3AFeatureTypeStyle%3E%3C%2Fsld%3AUserStyle%3E%3C%2Fsld%3ANamedLayer%3E%3C%2Fsld%3AStyledLayerDescriptor%3E",
"overlay": true,
"max_zoom": 22,
"country_code": "AU",
Expand Down
2 changes: 1 addition & 1 deletion sources/oceania/au/vic/Vicmap-el_contour.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "Vicmap-el_contour",
"attribution": {
"url": "https://discover.data.vic.gov.au/dataset/vicmap-elevation-contour-line-10-and-20-metres",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2023",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2026",
"required": true
},
"license_url": "https://wiki.openstreetmap.org/wiki/File:Vicmap_CCBYPermission_OSM_Final_Jan2018_Ltr.pdf",
Expand Down
2 changes: 1 addition & 1 deletion sources/oceania/au/vic/Vicmap-hy_watercourse.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "Vicmap-hy_watercourse",
"attribution": {
"url": "https://discover.data.vic.gov.au/dataset/vicmap-hydro-watercourse-line",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2023",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2026",
"required": true
},
"license_url": "https://wiki.openstreetmap.org/wiki/File:Vicmap_CCBYPermission_OSM_Final_Jan2018_Ltr.pdf",
Expand Down
4 changes: 2 additions & 2 deletions sources/oceania/au/vic/Vicmap-property_view.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "Vicmap-property_view",
"attribution": {
"url": "https://discover.data.vic.gov.au/dataset/vicmap-property-property-polygon",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2023",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2026",
"required": true
},
"license_url": "https://wiki.openstreetmap.org/wiki/File:Vicmap_CCBYPermission_OSM_Final_Jan2018_Ltr.pdf",
Expand All @@ -15,7 +15,7 @@
"EPSG:4326",
"CRS:84"
],
"url": "https://opendata.maps.vic.gov.au/geoserver/wms?service=wms&version=1.3.0&request=getmap&format=image%2Fpng&transparent=true&width={width}&height={height}&crs={proj}&bbox={bbox}&layers=open-data-platform:property_view&styles=open-data-platform:property_view_1",
"url": "https://opendata.maps.vic.gov.au/geoserver/wms?service=wms&version=1.3.0&request=getmap&format=image%2Fpng&transparent=true&width={width}&height={height}&crs={proj}&bbox={bbox}&layers=open-data-platform:property_view&sld_body=%3C%3Fxml%20version%3D%221.0%22%3F%3E%3Csld%3AStyledLayerDescriptor%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%2F3.2%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3Asld%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%22%20xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%20StyledLayerDescriptor.xsd%22%20version%3D%221.0.0%22%3E%3Csld%3ANamedLayer%3E%3Csld%3AName%3Eopen-data-platform%3Aproperty_view%3C%2Fsld%3AName%3E%3Csld%3AUserStyle%3E%3Csld%3AFeatureTypeStyle%3E%3Csld%3ARule%3E%3Csld%3AFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Estatus%3C%2FPropertyName%3E%3CLiteral%3EA%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2Fsld%3AFilter%3E%3Csld%3APolygonSymbolizer%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23FFFFFF%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2Fsld%3APolygonSymbolizer%3E%3C%2Fsld%3ARule%3E%3Csld%3ARule%3E%3Csld%3AFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Estatus%3C%2FPropertyName%3E%3CLiteral%3EP%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2Fsld%3AFilter%3E%3Csld%3APolygonSymbolizer%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23FFFF00%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2Fsld%3APolygonSymbolizer%3E%3C%2Fsld%3ARule%3E%3C%2Fsld%3AFeatureTypeStyle%3E%3C%2Fsld%3AUserStyle%3E%3C%2Fsld%3ANamedLayer%3E%3C%2Fsld%3AStyledLayerDescriptor%3E",
"overlay": true,
"max_zoom": 22,
"country_code": "AU",
Expand Down
2 changes: 1 addition & 1 deletion sources/oceania/au/vic/Vicmap-tr_road.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "Vicmap-tr_road",
"attribution": {
"url": "https://discover.data.vic.gov.au/dataset/vicmap-transport-road-line",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2023",
"text": "The State of Victoria Department of Energy, Environment and Climate Action 2026",
"required": true
},
"license_url": "https://wiki.openstreetmap.org/wiki/File:Vicmap_CCBYPermission_OSM_Final_Jan2018_Ltr.pdf",
Expand Down
41 changes: 41 additions & 0 deletions sources/oceania/au/vic/sld/Address.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<sld:StyledLayerDescriptor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:sld="http://www.opengis.net/sld" version="1.0.0">
<sld:NamedLayer>
<sld:Name>open-data-platform:address</sld:Name>
<sld:UserStyle>
<sld:FeatureTypeStyle>
<sld:Rule>
<TextSymbolizer>
<Label>
<ogc:PropertyName>num_address</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-style">normal</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
<Halo>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
</Halo>
</TextSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
56 changes: 56 additions & 0 deletions sources/oceania/au/vic/sld/AddressWithDot.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<sld:StyledLayerDescriptor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:sld="http://www.opengis.net/sld" version="1.0.0">
<sld:NamedLayer>
<sld:Name>open-data-platform:address</sld:Name>
<sld:UserStyle>
<sld:FeatureTypeStyle>
<sld:Rule>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
</Mark>
<Size>6</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Label>
<ogc:PropertyName>num_address</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-style">normal</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>8</DisplacementX>
<DisplacementY>0</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
<Halo>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
</Halo>
</TextSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
40 changes: 40 additions & 0 deletions sources/oceania/au/vic/sld/Property.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<sld:StyledLayerDescriptor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:sld="http://www.opengis.net/sld" version="1.0.0">
<sld:NamedLayer>
<sld:Name>open-data-platform:property_view</sld:Name>
<sld:UserStyle>
<sld:FeatureTypeStyle>
<sld:Rule>
<sld:Filter>
<PropertyIsEqualTo>
<PropertyName>status</PropertyName>
<Literal>A</Literal>
</PropertyIsEqualTo>
</sld:Filter>
<sld:PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#FFFFFF</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</sld:PolygonSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:Filter>
<PropertyIsEqualTo>
<PropertyName>status</PropertyName>
<Literal>P</Literal>
</PropertyIsEqualTo>
</sld:Filter>
<sld:PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#FFFF00</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</sld:PolygonSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
Loading