Comments (3)
Oh, I found something else, I did the same for the .shp
, in the spec from ESRI page 9/34 they said that record numbers begin at 1.
With hexyl, shapefile-rs begin at 0 and not 1 (check the line 00000060
).
hexyl test.shp
āāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāā¬āāāāāāāāā
ā00000000ā 00 00 27 0a 00 00 00 00 ā 00 00 00 00 00 00 00 00 ā00'_0000ā00000000ā
ā00000010ā 00 00 00 00 00 00 00 00 ā 00 00 00 6e e8 03 00 00 ā00000000ā000nĆā¢00ā
ā00000020ā 05 00 00 00 00 00 00 00 ā 00 e8 27 c0 ae cd 88 e7 āā¢0000000ā0Ć'ĆĆĆĆĆā
ā00000030ā c0 f3 3f 40 00 00 00 00 ā 00 a4 3f 40 ab 2c fb 50 āĆĆ?@0000ā0Ć?@Ć,ĆPā
ā00000040ā 39 49 4b 40 00 00 00 00 ā 00 00 00 00 00 00 00 00 ā9IK@0000ā00000000ā
ā00000050ā 00 00 00 00 00 00 00 00 ā 00 00 00 00 00 00 00 00 ā00000000ā00000000ā
ā00000060ā 00 00 00 00 00 00 00 00 ā 00 00 00 38 05 00 00 00 ā00000000ā0008ā¢000ā
ā00000070ā 00 00 00 00 00 e8 27 c0 ā ae cd 88 e7 c0 f3 3f 40 ā00000Ć'ĆāĆĆĆĆĆĆ?@ā
ā00000080ā 00 00 00 00 00 a4 3f 40 ā ab 2c fb 50 39 49 4b 40 ā00000Ć?@āĆ,ĆP9IK@ā
ā00000090ā 01 00 00 00 04 00 00 00 ā 00 00 00 00 00 00 00 00 āā¢000ā¢000ā00000000ā
ā000000a0ā 00 e0 00 c0 ab 2c fb 50 ā 39 49 4b 40 00 00 00 00 ā0Ć0ĆĆ,ĆPā9IK@0000ā
ā000000b0ā 00 a4 3f 40 52 f7 77 fc ā 35 0b 46 40 00 00 00 00 ā0Ć?@RĆwĆā5ā¢F@0000ā
ā000000c0ā 00 e8 27 c0 ae cd 88 e7 ā c0 f3 3f 40 00 00 00 00 ā0Ć'ĆĆĆĆĆāĆĆ?@0000ā
ā000000d0ā 00 e0 00 c0 ab 2c fb 50 ā 39 49 4b 40 ā0Ć0ĆĆ,ĆPā9IK@ ā
āāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāā“āāāāāāāāā
hexyl qgis.shp
āāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāā¬āāāāāāāāā
ā00000000ā 00 00 27 0a 00 00 00 00 ā 00 00 00 00 00 00 00 00 ā00'_0000ā00000000ā
ā00000010ā 00 00 00 00 00 00 00 00 ā 00 00 00 6e e8 03 00 00 ā00000000ā000nĆā¢00ā
ā00000020ā 05 00 00 00 00 00 00 00 ā 00 e8 27 c0 ae cd 88 e7 āā¢0000000ā0Ć'ĆĆĆĆĆā
ā00000030ā c0 f3 3f 40 00 00 00 00 ā 00 a4 3f 40 ab 2c fb 50 āĆĆ?@0000ā0Ć?@Ć,ĆPā
ā00000040ā 39 49 4b 40 00 00 00 00 ā 00 00 00 00 00 00 00 00 ā9IK@0000ā00000000ā
ā00000050ā 00 00 00 00 00 00 00 00 ā 00 00 00 00 00 00 00 00 ā00000000ā00000000ā
ā00000060ā 00 00 00 00 00 00 00 01 ā 00 00 00 38 05 00 00 00 ā0000000ā¢ā0008ā¢000ā
ā00000070ā 00 00 00 00 00 e8 27 c0 ā ae cd 88 e7 c0 f3 3f 40 ā00000Ć'ĆāĆĆĆĆĆĆ?@ā
ā00000080ā 00 00 00 00 00 a4 3f 40 ā ab 2c fb 50 39 49 4b 40 ā00000Ć?@āĆ,ĆP9IK@ā
ā00000090ā 01 00 00 00 04 00 00 00 ā 00 00 00 00 00 00 00 00 āā¢000ā¢000ā00000000ā
ā000000a0ā 00 e0 00 c0 ab 2c fb 50 ā 39 49 4b 40 00 00 00 00 ā0Ć0ĆĆ,ĆPā9IK@0000ā
ā000000b0ā 00 a4 3f 40 52 f7 77 fc ā 35 0b 46 40 00 00 00 00 ā0Ć?@RĆwĆā5ā¢F@0000ā
ā000000c0ā 00 e8 27 c0 ae cd 88 e7 ā c0 f3 3f 40 00 00 00 00 ā0Ć'ĆĆĆĆĆāĆĆ?@0000ā
ā000000d0ā 00 e0 00 c0 ab 2c fb 50 ā 39 49 4b 40 ā0Ć0ĆĆ,ĆPā9IK@ ā
āāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāā“āāāāāāāāā
from shapefile-rs.
Hey, thank you for taking the time to report an error.
There was indeed 2 problems:
- The shape began from 0
- The shape offset written in the index file was not in '16 bit words' length
With the code from #7 the file written by your test can actually be shown by QGIS
from shapefile-rs.
Thank you for your fast response and fix ! š
Yes ! The PR fix my issue ! š
from shapefile-rs.
Related Issues (12)
- convert to geotype ? HOT 12
- Provide better shape constructors
- Trying to port to dbase 0.1 - ownership issue on Reader::iter_shapes_and_records_as HOT 1
- Publish new release with geo-types updates HOT 3
- Not able to read feature metadata. HOT 5
- Make geo_types directly Writable and Readable without having to use Convertions HOT 6
- attempt to multiply with overflow with hdr.record_size in read_one_shape_as HOT 4
- Character encoding HOT 1
- There is a problem that can't parse chinese char in the *.dbf file just like the above show , can you fix it ? HOT 5
- How to get the CRS from a shapefile? HOT 3
- why the shapefile read .shp Slower than shapefile(pyshp) of python? It doesn't make HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapefile-rs.