[postgis-users] Re: USGS NHD data to PostGIS

Ragi Y. Burhum ragi at burhum.com
Tue Feb 6 15:46:46 PST 2007


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

Regards,

Ragi Yaser Burhum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070206/a16a06cd/attachment.html>


More information about the postgis-users mailing list