According to <a href="http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf">http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf</a> 
that the M fields are optional on a shape by shape basis.  So while it 
is for sure that there will be X, Y and Z content for every shape, you 
don&#39;t get a guarantee that there will be M values.  My memory is that we
 resorted to testing the shape length from the header to ensure that the
 data size was long enough to include M values for the number of points 
listed.  You might figure out something else clever.  But your ordering seems correct.<br><br>Ted<br><br><br><div class="gmail_quote">On Sat, Mar 24, 2012 at 3:37 AM, Carsten Troelsgaard <span dir="ltr">&lt;<a href="mailto:carsten@troelsgaard.net">carsten@troelsgaard.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
 
    
 
 <div>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times">Hey all</span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times"> </span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times">Thank you for responding to my question about geographic coordinates. It&#39;s a part of a continouing quest of accessing shapefiles and paint em&#39; to the screen. It&#39;s going well, and I&#39;m currently trying out, if my code works as it&#39;s supposed to. I&#39;ve been to the osgeo pages with the purpose of scrutinizing overall &#39;standards&#39; that relates to GIS, Geography, Projections etc, to conform my work to updated standards. I&#39;ve shyed away though, becourse it appears to be very formal documents that takes an oath to download .. never mind, I&#39;ve probably got something wrong somewhere. </span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times">I díd hope, that shapefiles was a solid standard, but I havn&#39;t got far before meeting one that doesn&#39;t execute in my code. It&#39;s one that contains polygon-z data, and it errs exactly where it reaches the end, had it been polygon-m file. I&#39;ll set up some error-redirection of the code to conform to this particular type of error, but .. how much malformed implementation can I expect to meet? se note*</span>
  </p>
  <p style="margin:0">
   <span>
    <span style="font-family:&#39;times new roman&#39;,times">
     The .prj file doesn&#39;t seem to comply to any standard. Atleast, I&#39;ve got two different types on my 
     <span style="font-size:18px">pc</span>
     . How many different types can I expect? I&#39;ll be able to handle the two I&#39;ve met so far, so it&#39;s no big deal for now.
    </span>
   </span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times">As for the attribute .dbf file, I did start out with a standard that didn&#39;t match the first file I tried it on, but it wasn&#39;t hard to redo it. I look forward to the worst though ...</span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times"> </span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times">Setting out to try to combine the files is somewhat doomed to fail a lot on the basis I noted above. I would appreciate any suggestion as to what standards to aim at, or comments on what hurdles to expect else</span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times"> </span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times">Kindly Carsten</span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times"> </span>
  </p>
  <p style="margin:0">
   <span style="font-family:&#39;times new roman&#39;,times;font-size:14pt">
    note* the funny thing is, that I exactly knows what goes on in the mind of the person that has made the wrong implementation: The order that&#39;s in your head says x,y (ordinary contents) then x.y.z (conceptual z cont) then x,y,z,m (
    <span>conceptual </span>
    m cont). Esri has it x,y  .. x,y,m  (for m-cont) and  x,y,z,m (for z cont).
   </span>
  </p>
  <p style="margin:0px;font-family:times new roman,times;font-size:12pt"></p>
 </div>
<br>_______________________________________________<br>
DotNet mailing list<br>
<a href="mailto:DotNet@lists.osgeo.org">DotNet@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/dotnet" target="_blank">http://lists.osgeo.org/mailman/listinfo/dotnet</a><br>
<br></blockquote></div><br>