<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error on shapefile generation... What's wrong ? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304930#M1949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It’s a quite interesting problem. If I add your shapefiles to ESRI ArcMap there are no visible glitches. There is 8 features in in the shapefile named “4480___327550” and 1 feature in the other one. Some of them are overlapping and duplicate, but rendering perfectly. I also tried to add it to the open source MapWindow GIS with the same result: no problem at all. After that I tried to import into GRASS GIS and it turned out that the GRASS (OGR) can’t import anything from “4480___S12_060_4”. The message is: “Error in fread() reading object of size 916 at offset 100 from .shp file”. I made a comparison in HEX viewer and there is no difference between the shapefiles, but the last byte of the shx file differs. If I replace the shx it works everywhere! So the problem is somewhere the value of “Content Length” in the index record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, throw a comment if working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ákos Halmai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 14:50:19 GMT</pubDate>
    <dc:creator>ÁkosHalmai</dc:creator>
    <dc:date>2016-04-05T14:50:19Z</dc:date>
    <item>
      <title>Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304926#M1945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GeoNet people &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developped an application with a class able to read data from an Oracle database with MapXtreme (MapInfo), and convert them in Shapefile. This class follows the ESRI specifications from here : &lt;A class="moz-txt-link-freetext" href="https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf"&gt;https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like an issue in my creation algorithm, but I really don't see what's wrong, it seems to follow well the ESRI specifications. I'm not a "GIS expert", so maybe some of you could help me to discover what's wrong. &lt;/P&gt;&lt;P&gt;Or if you have any GIS tool that can tell me what's not correct in my shapefile, it could really help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already asked this question on QGIS forums and mailing list, where the generated shapefile cannot be well displayed, but I didn't got many help. I hope I'll have more luck here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find in attachment the source code of my class in VB.Net and some generated shapefiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 08:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304926#M1945</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-04T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304927#M1946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might get more responses if you provide a relevant code sample &lt;EM&gt;in the body of the question&lt;/EM&gt;, along with a description of the error you are receiving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 15:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304927#M1946</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-04-04T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304928#M1947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vangelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I don't get any error message in my code, the issue comes from the &lt;/P&gt;&lt;P&gt;softwares used to open my generated shapefile.&lt;/P&gt;&lt;P&gt;For example, opening it in QGIS lead simply to not display it on the &lt;/P&gt;&lt;P&gt;map, completly or partially depending of file.&lt;/P&gt;&lt;P&gt;A QGIS user gave me a Python script showing that the spatial object is &lt;/P&gt;&lt;P&gt;simply "None", but that doesn't tell me what is wrong (maybe a EOF is off).&lt;/P&gt;&lt;P&gt;Putting all my code in my post isn't useful, because my code runs well, &lt;/P&gt;&lt;P&gt;this is the result that is wrong, but I don't see what.&lt;/P&gt;&lt;P&gt;That's why I'm asking some help to see if someone can check my code and &lt;/P&gt;&lt;P&gt;see if it follows well ESRI specifications, or if it exists a tool that &lt;/P&gt;&lt;P&gt;can analyze a shapefile to see if it follows ESRI specifications, or &lt;/P&gt;&lt;P&gt;anything that can tell me what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le 04/04/2016 17:10, Vince Angelo a écrit :&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;  GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;    Error on shapefile generation... What's wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Vince Angelo &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/people/vangelo-esristaff?et=watches.email.thread&amp;gt; &lt;/P&gt;&lt;P&gt;in /Developers/ - View the full discussion &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/message/599452?et=watches.email.thread#comment-599452&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 07:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304928#M1947</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-05T07:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304929#M1948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to debug your code, since it does not produce the correct output.&amp;nbsp; We'd be willing to help, but you need to do the majority of the work.&amp;nbsp; The other option would be to pay someone to review your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've written a number of shapefile readers and writers in both Java and 'C', and the core code was under 100 lines.&amp;nbsp; Once you've verified that the header isn't mangled, the code you'd need to post would be under 40 lines.&amp;nbsp; If the problem is with dBase, then it might be as large as 60 lines (most of it in a large case statement by datatype).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting folks to download and review your code without context may be the reason you didn't get help from the QGIS list.&amp;nbsp; I know a question like this would be closed immediately in GIS StackExchange for failure to include code (an &lt;A href="http://stackoverflow.com/help/mcve"&gt;MCVE&lt;/A&gt;) in the post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we'd need to help you is for you to verify the dBase (.dbf) component, then review the 100 byte header contents, then review the individual shape contents.&amp;nbsp; If you write exactly one shape then post the contents of bytes 101 through EOF as a hex dump (`&lt;STRONG style="font-family: 'courier new', courier;"&gt;od -t x1`&lt;/STRONG&gt; is a wonderful tool), along with the code that generated that .shp record, we'd be able to tell you what was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304929#M1948</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-04-05T13:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304930#M1949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It’s a quite interesting problem. If I add your shapefiles to ESRI ArcMap there are no visible glitches. There is 8 features in in the shapefile named “4480___327550” and 1 feature in the other one. Some of them are overlapping and duplicate, but rendering perfectly. I also tried to add it to the open source MapWindow GIS with the same result: no problem at all. After that I tried to import into GRASS GIS and it turned out that the GRASS (OGR) can’t import anything from “4480___S12_060_4”. The message is: “Error in fread() reading object of size 916 at offset 100 from .shp file”. I made a comparison in HEX viewer and there is no difference between the shapefiles, but the last byte of the shx file differs. If I replace the shx it works everywhere! So the problem is somewhere the value of “Content Length” in the index record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, throw a comment if working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ákos Halmai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304930#M1949</guid>
      <dc:creator>ÁkosHalmai</dc:creator>
      <dc:date>2016-04-05T14:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304931#M1950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi halmaia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your answer.&lt;/P&gt;&lt;P&gt;I don't know MapWindow GIS and GRASS GIS, I'll do a test as soon as I &lt;/P&gt;&lt;P&gt;can and do more investigation in the index file generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le 05/04/2016 16:50, Ákos Halmai a écrit :&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;  GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;    Error on shapefile generation... What's wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Ákos Halmai &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/people/halmaia?et=watches.email.thread&amp;gt; in &lt;/P&gt;&lt;P&gt;/Developers/ - View the full discussion &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/message/599732?et=watches.email.thread#comment-599732&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 07:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304931#M1950</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-06T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304932#M1951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ákos Halmai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did your tests with MapWindow GIS and GRASS GIS and got same results.&lt;/P&gt;&lt;P&gt;In GRASS, I have many times error "Error in fread() reading object of &lt;/P&gt;&lt;P&gt;size 916 at offset 100 from .shp file", and warning "1 feature without &lt;/P&gt;&lt;P&gt;geometry skipped".&lt;/P&gt;&lt;P&gt;I'm just discovering GRASS, so which shx files are you comparing ? The &lt;/P&gt;&lt;P&gt;original I created and ... ? When I go to "grassdata" folder, I see a &lt;/P&gt;&lt;P&gt;"vector" folder with my export, but it doesn't look like a shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test with the index file generation : writting content length in &lt;/P&gt;&lt;P&gt;little Endian instead of big Endian as said in specifications.&lt;/P&gt;&lt;P&gt;In that way, I have no more error messages, but always the warning "1 &lt;/P&gt;&lt;P&gt;feature without geometry skipped".&lt;/P&gt;&lt;P&gt;Just wanted to check...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the index file generation is very simple : it has same header &lt;/P&gt;&lt;P&gt;than main file, and records of offset and content length.&lt;/P&gt;&lt;P&gt;Here is the code to generate the index file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(9994, internalIndexStream)'File code (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(0, internalIndexStream)'Unused (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(0, internalIndexStream)'Unused (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(0, internalIndexStream)'Unused (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(0, internalIndexStream)'Unused (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(0, internalIndexStream)'Unused (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(indexFileLength, internalIndexStream)'File Length (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(1000, internalIndexStream)'Version (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(5, internalIndexStream)'Shape Type : 5&amp;lt;=&amp;gt;Polygone (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(boundingBoxXMin, internalIndexStream)'Xmin (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(boundingBoxYMin, internalIndexStream)'Ymin (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(boundingBoxXMax, internalIndexStream)'Xmax (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(boundingBoxYMax, internalIndexStream)'Ymax (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(0.0, internalIndexStream)'Zmin (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(0.0, internalIndexStream)'Zmax (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(0.0, internalIndexStream)'Mmin (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;                 Me.WriteLittleEndian(0.0, internalIndexStream)'Mmax (cf. ESRI Shapefile Technical Description)&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;                 currentOffset = 50&lt;/P&gt;&lt;P&gt;                 For  i = 0To  containerOfLengthsForIndexFile.Count - 1&lt;/P&gt;&lt;P&gt;                     Me.WriteBigEndian(currentOffset, internalIndexStream)&lt;/P&gt;&lt;P&gt;                     Me.WriteBigEndian(containerOfLengthsForIndexFile(i), internalIndexStream)&lt;/P&gt;&lt;P&gt;                     currentOffset += containerOfLengthsForIndexFile(i)&lt;/P&gt;&lt;P&gt;                 Next&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;                 Me.internalIndexStream.Close()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to your tests, the last element of &lt;/P&gt;&lt;P&gt;"containerOfLengthsForIndexFile" should be invalid.&lt;/P&gt;&lt;P&gt;The counter is calculated each time writting a geometry (in &lt;/P&gt;&lt;P&gt;WriteGeometryToFile function, at record header) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Snippet         Me.counterOfCurrentRecord = counterOfCurrentRecord + 1&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(counterOfCurrentRecord, internalMainTemporaryStream)&lt;/P&gt;&lt;P&gt;		counterOfContentLength = 22'22 words of 16 bits&lt;/P&gt;&lt;P&gt;                 counterOfContentLength += (counterOfRings * 2)'Parts&lt;/P&gt;&lt;P&gt;                 counterOfContentLength += (counterOfPoints * (2 * 4))'Points&lt;/P&gt;&lt;P&gt;                 Me.WriteBigEndian(counterOfContentLength, internalMainTemporaryStream)&lt;/P&gt;&lt;P&gt;                 Me.containerOfLengthsForIndexFile.Add(counterOfContentLength + 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why there is a "+4" at the last line.&lt;/P&gt;&lt;P&gt;This is code from a former employee, and I don't see anything in &lt;/P&gt;&lt;P&gt;specifications about that.&lt;/P&gt;&lt;P&gt;But by removing this "+4", it looks like well working now in any GIS &lt;/P&gt;&lt;P&gt;software !&lt;/P&gt;&lt;P&gt;I did a new export in that way. Can you just try to open it in other GIS &lt;/P&gt;&lt;P&gt;like ArcMap (I don't have it) to see if it opens well ?&lt;/P&gt;&lt;P&gt;It would be very nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le 05/04/2016 16:50, Ákos Halmai a écrit :&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;  GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;    Error on shapefile generation... What's wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Ákos Halmai &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/people/halmaia?et=watches.email.thread&amp;gt; in &lt;/P&gt;&lt;P&gt;/Developers/ - View the full discussion &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/message/599732?et=watches.email.thread#comment-599732&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 12:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304932#M1951</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-06T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304933#M1952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ákos Halmai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did another test this morning with another shapefile containing more &lt;/P&gt;&lt;P&gt;polygons, and unfortunately the fix I did yesterday isn't working with &lt;/P&gt;&lt;P&gt;more than one polygon.&lt;/P&gt;&lt;P&gt;In GIS like QGIS, MapWindow or GRASS, they display only one polygon... &lt;/P&gt;&lt;P&gt;See sample in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to investigate further...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le 05/04/2016 16:50, Ákos Halmai a écrit :&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;  GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;    Error on shapefile generation... What's wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Ákos Halmai &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/people/halmaia?et=watches.email.thread&amp;gt; in &lt;/P&gt;&lt;P&gt;/Developers/ - View the full discussion &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/message/599732?et=watches.email.thread#comment-599732&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 07:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304933#M1952</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-07T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304934#M1953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to check out the attachments, but there are no attachment in the comments, because (I assume) you used the answer function in your e-mail provider and in this case there might be no attachment support on the GeoNet. So you should attach the files with the GeoNet web-page inbuilt attachment support. The attachment is also missing in your previous comment, only the first contains one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ákos Halmai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 08:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304934#M1953</guid>
      <dc:creator>ÁkosHalmai</dc:creator>
      <dc:date>2016-04-07T08:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304935#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ákos Halmai,&lt;/P&gt;&lt;P&gt;Indeed, I was replying by email, but this is strange, I see the attachment in my previous post.&lt;/P&gt;&lt;P&gt;Anyway, please find another export (53503) with simplier polygons : first with 4 nodes, second with 3 nodes and third with 5 nodes.&lt;/P&gt;&lt;P&gt;The last one isn't displaying.&lt;/P&gt;&lt;P&gt;I'm currently checking the code step by step with these.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 08:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304935#M1954</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-07T08:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304936#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the Arc-version of your files.&lt;/P&gt;&lt;P&gt;I think (I'm not sure) the problem somewhere with the offset: length + offset is not enough because there is a record number too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H.Á.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 09:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304936#M1955</guid>
      <dc:creator>ÁkosHalmai</dc:creator>
      <dc:date>2016-04-07T09:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error on shapefile generation... What's wrong ?</title>
      <link>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304937#M1956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ákos,&lt;/P&gt;&lt;P&gt;Thank you so much for your help !&lt;/P&gt;&lt;P&gt;I wasn't so far with my "+4 bug fix" in my previous post (+4 means index record size).&lt;/P&gt;&lt;P&gt;The +4 offset was put in the length of geometry object, not in the offset stored in index records.&lt;/P&gt;&lt;P&gt;You pointed to the right place, and I lost many time to test things that was already working. &lt;/P&gt;&lt;P&gt;It was just an issue in the way the index file was built.&lt;/P&gt;&lt;P&gt;Again, thank you very much, I'm definitly out with this bug now ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 11:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/error-on-shapefile-generation-what-s-wrong/m-p/304937#M1956</guid>
      <dc:creator>Jean-ChristopheBastin</dc:creator>
      <dc:date>2016-04-07T11:51:47Z</dc:date>
    </item>
  </channel>
</rss>

