# Pozi Server

Pozi Server provides an on-premise API for organisations' spatial and non-spatial data.

Running as a Windows service, it responds to http requests generated by Pozi app from users on the client network. It uses ogr2ogr to tap into local datasets and return a GeoJSON response.

Requests to Pozi Server can be configured to return whole datastes (eg, to display a map layer), or to return subsets or individual features using paramaterised queries.

ogr2ogr resources:

# Examples

# Parameters

Any ogr2ogr options can be included as part of any request. A complete list of options is available at https://gdal.org/programs/ogr2ogr.html.


  • options are prefixed with &options=
  • any spaces (that are not within double quotes) must be replaced with a pipe character (|)
  • exclude any double quotes (ie, such as ones that are part of an -sql option)
  • if the source table name within a VRT (or SHZ or any other multi-layer dataset) contains spaces:
    • use double quotes around the table name
    • when populating the Pozi config, escape the double quotes with backslashes

Command line example:

ogrinfo frankston/council-facilities.vrt -where "type='Maternal and Child Health'"

Equivalent Pozi Server request example:

.../ogr2ogr?source=frankston/council-facilities.vrt&options=-where|type='Maternal and Child Health'

# Examples

  • https://d2nozjvesbm579.cloudfront.net/ogr2ogr?source=data.gov.au/bendigo/cogb-recreation-drinking-fountains.shz
  • https://d2nozjvesbm579.cloudfront.net/ogr2ogr?source=frankston/property-valuation-information.vrt&options=-where|propertynumber='214855'

# Advanced Example

  • https://d2nozjvesbm579.cloudfront.net/ogr2ogr?source=data.gov.au/bendigo/cogb-capital-works.shz&options=-sql|select * from "CoGB Capital Works" where BudgetYear='2022-2023' order by Category desc

The above example is derived from the ogr2ogr command which was used for testing the query:

ogrinfo cogb-capital-works.shz -sql "select * from ""CoGB Capital Works"" where BudgetYear='2022-2023' order by Category desc"

In the Pozi config, the double quotes must be escaped with backslashes

  "config": {
    "spatial": {
      "loader": "geojson",
      "url": "https://d2nozjvesbm579.cloudfront.net/ogr2ogr?source=data.gov.au/bendigo/cogb-capital-works.shz&options=-sql|select * from \"CoGB Capital Works\" where BudgetYear='2022-2023' order by Category desc"

# Default Parameters

Pozi Server applies the following parameters by default to all requests:

# Simplify

Apply geometry generalisation on polyline and polygon features to eliminate unneeded vertices. Note that the simplification unit is based on the source data. For sources in degrees, a simplification value of 0.00001 is approximately 1m.

-simplify 0.00001

# Spatial Intersection

# Unified Search

# Case Studies

# Filtering Static GeoJSON

A client has uploaded a GeoJSON to data.gov.au that they want displayed in Pozi as separate layers:


A VRT is configured that points to this GeoJSON and enables us to dynamically query it:

Pozi\userdata\ec 21354118232\frankston\council-facilities.vrt
<?xml version="1.0" encoding="UTF-8"?>
    <OGRVRTLayer name="frankston-city-council-facilities">
            select *
            from "Frankston City Council Facilities"

Note: it's not possible to test this VRT locally as is typically done with an ogrinfo or ogr2ogr command due to an SSL certificate issue with the https endpoint. (Changing it to http doesn't help either.) However, requests from the outside will utilise the server's SSL certificate and it will work correctly.


Here is an example of a request that returns all features with a "type" value of "Maternal and Child Health":