Skip to content

Commit

Permalink
add schema 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bertt committed Jun 28, 2024
1 parent a901233 commit 47032cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions geoparquet.codegen/1.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"$schema":"http://json-schema.org/draft-07/schema#","title":"GeoParquet","description":"Parquet metadata included in the geo field.","type":"object","required":["version","primary_column","columns"],"properties":{"version":{"type":"string","const":"1.1.0"},"primary_column":{"type":"string","minLength":1},"columns":{"type":"object","minProperties":1,"patternProperties":{".+":{"type":"object","required":["encoding","geometry_types"],"properties":{"encoding":{"type":"string","pattern":"^(WKB|point|linestring|polygon|multipoint|multilinestring|multipolygon)$"},"geometry_types":{"type":"array","uniqueItems":true,"items":{"type":"string","pattern":"^(GeometryCollection|(Multi)?(Point|LineString|Polygon))( Z)?$"}},"crs":{"oneOf":[{"$ref":"https://proj.org/schemas/v0.7/projjson.schema.json"},{"type":"null"}]},"edges":{"type":"string","enum":["planar","spherical"]},"orientation":{"type":"string","const":"counterclockwise"},"bbox":{"type":"array","items":{"type":"number"},"oneOf":[{"description":"2D bbox consisting of (xmin, ymin, xmax, ymax)","minItems":4,"maxItems":4},{"description":"3D bbox consisting of (xmin, ymin, zmin, xmax, ymax, zmax)","minItems":6,"maxItems":6}]},"epoch":{"type":"number"},"covering":{"type":"object","required":["bbox"],"properties":{"bbox":{"type":"object","required":["xmin","xmax","ymin","ymax"],"properties":{"xmin":{"type":"array","items":[{"type":"string","minLength":1},{"const":"xmin"}],"minItems":2,"maxItems":2},"xmax":{"type":"array","items":[{"type":"string","minLength":1},{"const":"xmax"}],"minItems":2,"maxItems":2},"ymin":{"type":"array","items":[{"type":"string","minLength":1},{"const":"ymin"}],"minItems":2,"maxItems":2},"ymax":{"type":"array","items":[{"type":"string","minLength":1},{"const":"ymax"}],"minItems":2,"maxItems":2}}}}}}}},"additionalProperties":false}}}
7 changes: 7 additions & 0 deletions geoparquet.codegen/geoparquet.codegen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
<None Update="1.0.0\schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="1.1.0\schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<Folder Include="1.1.0\" />
</ItemGroup>

</Project>

0 comments on commit 47032cf

Please sign in to comment.