<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (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]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"
 downloadurl="http://www.microsoft.com"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hello Ragi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>            Thanks
for the information on shape type 19. I checked some NHD geodatabase shape
fields for a PolygonZ type 15, which has both the M and Z values.  However,
these type 19 shape fields correspond more closely to PolygonM type 25. There
appear to be additional Mmin, Mmax, and Marray[] for each Polygon record, all
of which are 0.0 for the NHD data sets I checked. I can’t really tell if
the additional values are measure or elevation.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>            Forcing
to type 25 PolygonM gives correct 2D <path> geometries but unfortunately
ogr2ogr does not appear to recognize a shape type 19 or have a way to override
to 2D Polygon.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>            In
addition there appears to be a shape type 9 in NHD HYDRO_NET_Junctions, which seems
to correspond to PointM shape type 21? Again ogr2ogr seems to skip this
geometry.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>            Does
anyone know where documentation can be found for these newer ESRI shape types?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Randy<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
postgis-users-bounces@postgis.refractions.net
[mailto:postgis-users-bounces@postgis.refractions.net] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ragi Y. Burhum<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 06, 2007
4:47 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
postgis-users@postgis.refractions.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [postgis-users] Re: USGS
NHD data to PostGIS</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 2/6/07, <b><span style='font-weight:bold'><a
href="mailto:postgis-users-request@postgis.refractions.net">postgis-users-request@postgis.refractions.net</a></span></b>
<<a href="mailto:postgis-users-request@postgis.refractions.net">
postgis-users-request@postgis.refractions.net</a>> wrote:</span></font></span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
Message: 8<br>
Date: Mon, 5 Feb 2007 17:42:57 -0700 <br>
From: "Randy George" <<a href="mailto:rkgeorge@cadmaps.com">rkgeorge@cadmaps.com</a>><br>
Subject: RE: [postgis-users] Re: USGS NHD data to PostGIS<br>
To: "'<st1:PersonName w:st="on">PostGIS Users Discussion</st1:PersonName>'"<br>
        <<a
href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>><br>
Message-ID: <<a
href="mailto:20070206004258.B982162D448@mpls-qmqp-05.inet.qwest.net">20070206004258.B982162D448@mpls-qmqp-05.inet.qwest.net
</a>><br>
Content-Type: text/plain;      
charset="US-ASCII"<br>
<br>
Hi,<br>
<br>
        I've investigated my NHD data
problem a little further. Looking at<br>
the NHDArea table of the mdb it appears that the Shape field's internal <br>
'Shape Type' is listed as 19. Unless there has been a recent change, I don't<br>
think the shp format has a type 19.<br>
<br>
I ran a test conversion to svg forcing .shp type 19 to a type 5 (Polygon)<br>
and I get valid polygon <paths>? <br>
<br>
Has ESRI added an additional "Shape Type" to the list? Or is there
some<br>
issue with NHD geodatabases?<br>
<br>
If 19 is unknown to the ogr translator that would explain the empty geometry<br>
columns and sporadic empty geometry fields. It would also explain why there <br>
is no error since those records would simply be created with no geometry.<br>
<br>
<a href="http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf">http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf</a><br>
Value Shape Type <br>
0 Null Shape<br>
1 Point<br>
3 PolyLine<br>
5 Polygon<br>
8 MultiPoint<br>
11 PointZ<br>
13 PolyLineZ<br>
15 PolygonZ<br>
18 MultiPointZ<br>
21 PointM<br>
23 PolyLineM<br>
25 PolygonM<br>
28 MultiPointM<br>
31 MultiPatch<br>
<br>
<br>
Thanks<br>
Randy<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
19 is a polygon with M and Z values.<br>
<br>
Regards,<br>
<br>
Ragi Yaser Burhum<o:p></o:p></span></font></p>

</div>

</body>

</html>