bertt / geoparquet

.NET 8 Reader/Writer library for GeoParquet files.
MIT License
14 stars 3 forks source link

Spatial filters? #7

Open donnyv opened 5 days ago

donnyv commented 5 days ago

Do you think Spatial filters will be added?

bertt commented 5 days ago

Of course, have to look at 1.1

donnyv commented 5 days ago

I don't see the branch.

bertt commented 5 days ago

https://github.com/bertt/geoparquet/tree/to_1_1_0

But there is a build error because wrong code is generated for bbox property xmin,xmax,ymin,ymax:

        public System.Tuple<string, object> Xmin { get; set; } = new System.Tuple<string, object>();

Related Json schema code:

                  "properties": {
                    "xmin": {
                      "type": "array",
                      "items": [
                        {
                          "type": "string",
                          "minLength": 1
                        },
                        {
                          "const": "xmin"
                        }
                      ],
                      "minItems": 2,
                      "maxItems": 2
                    },
bertt commented 5 days ago

Got the build error fixed with a workaround