<meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Evan,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you so much. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m fairly new to using GDAL/OGR. Will the fix appear in from the downloads page at <a href="http://www.gisinternals.com/sdk/" target="_top" rel="nofollow" link="external">http://www.gisinternals.com/sdk/</a> tomorrow? That is where we have been downloading from but not sure what the time lag is between those compiles and the trunk code you modified.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Again, thanks so much.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Brian<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Even Rouault [via OSGeo.org] [mailto:<a href="/user/SendEmail.jtp?type=node&node=5150786&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br><b>Sent:</b> Saturday, July 12, 2014 2:31 PM<br><b>To:</b> mccorb<br><b>Subject:</b> Re: Reading shapefile PRJ failing<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Brian, <br><br>I've added support in GDAL trunk for those files. I could see that at least <br>another GIS software supported them, so... <br><br>Even <o:p></o:p></p><div><p class=MsoNormal><div class='shrinkable-quote'><br>> Even, <br>> <br>> I am not sure what generated it. It seems as though I have run across a lot <br>> of files that have a BOM that have thrown me in recent years. Most seem to <br>> have some relation to using Microsoft .net framework tools that have <br>> Unicode support built in from the ground up. But I am really not sure and <br>> that is just a guess. Some text editors seem to do it also. I just know <br>> that it has caused me all sorts of grief over the years with all sorts of <br>> software I have both used and written. <br>> <br>> Here is what I have used in the past for the BOM list although the EF BB BF <br>> is by far the most common I have seen... <br>> <a href="http://en.wikipedia.org/wiki/Byte_order_mark" target="_top" rel="nofollow" link="external">http://en.wikipedia.org/wiki/Byte_order_mark</a><br>> <br>> Anyway I have attached a shapefile that has a bom marker in the prj file. <br>> Not sure yet about the other files...if they have any similar anomalies or <br>> exactly what was used to gen the shapefile. I haven't looked at the shp, <br>> shx or dbf file yet... <br>> <br>> Thanks, <br>> <br>> <br>> Brian S. McCormick <br>> <a href="/user/SendEmail.jtp?type=node&node=5150785&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>> 918-749-5453 <br>> <br>> <br>> <br>> -----Original Message----- <br>> From: Even Rouault [mailto:<a href="/user/SendEmail.jtp?type=node&node=5150785&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br>> Sent: Saturday, July 12, 2014 12:32 PM <br>> To: mccorb <br>> Subject: Re: [gdal-dev] Reading shapefile PRJ failing <br>> <br>> Le samedi 12 juillet 2014 18:45:24, vous avez écrit : <br>> > So I have tracked this down to the fact that the PRJ files that I have <br>> > been given to use have a BOM of 0xEF 0xBB 0xBF for the first three <br>> > bytes of the file. <br>> > <br>> > When I use the shapefiles that have these byte order markers the Layer <br>> > class method getSpatialRef() (java JNI bindings) returns null. I am <br>> > guessing that the PRJ file is being opened in binary mode instead of <br>> > text mode possibly? <br>> > <br>> > Regardless, is there any setting I can make to coerce the file <br>> > opener/reader into ignoring the BOM when grabbing the WKT from the PRJ <br>> > file? <br>> <br>> Not really. GDAL should be enhanced to support such a file. Do you have a <br>> sample of such a .prj ? Do you know which software has generated it ? <br>> That's the first time I hear about .prj with BOM marker. <br>> <br>> > thanks <br>> > <br>> > <br>> > <br>> > -- <br>> > View this message in context: <br>> > <a href="http://osgeo-org.1560.x6.nabble.com/Reading-shapefile-PRJ-failing-tp51" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Reading-shapefile-PRJ-failing-tp51</a><br>> > 5077 8.html Sent from the GDAL - Dev mailing list archive at <br>> > Nabble.com. <br>> > _______________________________________________ <br>> > gdal-dev mailing list <br>> > <a href="/user/SendEmail.jtp?type=node&node=5150785&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>> > <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>> <br>> -- <br>> Geospatial professional services <br>> <a href="http://even.rouault.free.fr/services.html" target="_top" rel="nofollow" link="external">http://even.rouault.free.fr/services.html</a><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'></div>-- <br>Geospatial professional services <br><a href="http://even.rouault.free.fr/services.html" target="_top" rel="nofollow" link="external">http://even.rouault.free.fr/services.html</a><br>_______________________________________________ <br>gdal-dev mailing list <br><a href="/user/SendEmail.jtp?type=node&node=5150785&i=3" target="_top" rel="nofollow" link="external">[hidden email]</a> <br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a> <o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#CCCCCC' align=center></div><div><div><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444'>If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p></div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444'><a href="http://osgeo-org.1560.x6.nabble.com/Reading-shapefile-PRJ-failing-tp5150778p5150785.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Reading-shapefile-PRJ-failing-tp5150778p5150785.html</a> <o:p></o:p></span></p></div><div style='margin-top:4.8pt'><p class=MsoNormal style='line-height:18.0pt'><span style='font-size:8.5pt;font-family:"Tahoma","sans-serif";color:#666666'>To unsubscribe from Reading shapefile PRJ failing, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br><a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>NAML</span></a> <o:p></o:p></span></p></div></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Reading-shapefile-PRJ-failing-tp5150778p5150786.html">RE: Reading shapefile PRJ failing</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>