coshp utility to support "cloud optimized shape file"#6518
Conversation
|
Thanks @pramsey . Is it possible for you to also include an msautotest/test as part of this PR for this utility? (see https://mapserver.org/development/tests/autotest.html ) |
|
This doesn't seem to be standard practice for the utility programs? I cannot find any tests running for |
|
I'm not sure about 'standard practice', but I think for a new utility as part of the MapServer 8.0 release the new utility should be tested as part of msautotest. Hope that answers your question. |
true, we are lacking on that side.
|
Seems like reasonable tests would be: For sortshp and coshp:
For shptree:
I'd can take a shot at @rouault suggestion for sortshp I guess. |
|
Should I tackle the msautotests for this? (beta release will be this coming Friday) Thanks! |
|
IMHO, I don't think the tests should hold up the beta. I'd recommend a merge and then create a separate ticket related to the tests... --Steve |
|
thanks @pramsey ! merging now... |

To enable fast bounding box access of shapes over HTTP-offset reads, we need to sort the contents of shape files so that they appear in the same order in the
shpfile as they do in theqixspatial index. (Also the contents of thedbfneed similar sorting.In the spirit of
sortshpthecoshputility takes in an unsorted shape file, and writes out a sorted shape file (shp,shx,dbf,qix).