⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc.xml

📁 包含详细例子的c#创建shape文件的开源码
💻 XML
📖 第 1 页 / 共 3 页
字号:
            </summary>
            <param name="psObject">The object to deallocate.</param>
            <returns>void</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPComputeExtents(MapTools.ShapeLib.SHPObject)">
            <summary>
            This function will recompute the extents of this shape, replacing the existing values 
            of the dfXMin, dfYMin, dfZMin, dfMMin, dfXMax, dfYMax, dfZMax, and dfMMax values based 
            on the current set of vertices for the shape. This function is automatically called by 
            SHPCreateObject() but if the vertices of an existing object are altered it should be 
            called again to fix up the extents.
            </summary>
            <param name="psObject">An existing shape object to be updated in place.</param>
            <returns>void</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPCreateObject(MapTools.ShapeLib.ShapeType,System.Int32,System.Int32,System.Int32[],MapTools.ShapeLib.PartType[],System.Int32,System.Double[],System.Double[],System.Double[],System.Double[])">
            <summary>
            The SHPCreateObject() function allows for the creation of objects (shapes). 
            This is normally used so that the SHPObject can be passed to SHPWriteObject() 
            to write it to the file.
            </summary>
            <param name="shpType">The ShapeType of the object to be created, such as ShapeType.Point, or ShapeType.Polygon.</param>
            <param name="nShapeId">The shapeid to be recorded with this shape.</param>
            <param name="nParts">The number of parts for this object. If this is zero for PolyLine, 
            or Polygon type objects, a single zero valued part will be created internally.</param>
            <param name="panPartStart">The list of zero based start vertices for the rings 
            (parts) in this object. The first should always be zero. This may be NULL if nParts is 0.</param>
            <param name="paPartType">The type of each of the parts. This is only meaningful for MultiPatch files. 
            For all other cases this may be NULL, and will be assumed to be PartType.Ring.</param>
            <param name="nVertices">The number of vertices being passed in padfX, padfY, and padfZ. </param>
            <param name="adfX">An array of nVertices X coordinates of the vertices for this object.</param>
            <param name="adfY">An array of nVertices Y coordinates of the vertices for this object.</param>
            <param name="adfZ">An array of nVertices Z coordinates of the vertices for this object. 
            This may be NULL in which case they are all assumed to be zero.</param>
            <param name="adfM">An array of nVertices M (measure values) of the vertices for this object. 
            This may be NULL in which case they are all assumed to be zero.</param>
            <returns>SHPObject</returns>
            <remarks>
            The SHPDestroyObject() function should be used to free 
            resources associated with an object allocated with SHPCreateObject(). This function 
            computes a bounding box for the SHPObject from the given vertices.
            </remarks>
        </member>
        <member name="M:MapTools.ShapeLib.SHPCreateSimpleObject(MapTools.ShapeLib.ShapeType,System.Int32,System.Double[],System.Double[],System.Double[])">
            <summary>
            The SHPCreateSimpleObject() function allows for the convenient creation of simple objects. 
            This is normally used so that the SHPObject can be passed to SHPWriteObject() to write it 
            to the file. The simple object creation API assumes an M (measure) value of zero for each vertex. 
            For complex objects (such as polygons) it is assumed that there is only one part, and that it 
            is of the default type (PartType.Ring). Use the SHPCreateObject() function for more sophisticated 
            objects. 
            </summary>
            <param name="shpType">The ShapeType of the object to be created, such as ShapeType.Point, or ShapeType.Polygon.</param>
            <param name="nVertices">The number of vertices being passed in padfX, padfY, and padfZ.</param>
            <param name="adfX">An array of nVertices X coordinates of the vertices for this object.</param>
            <param name="adfY">An array of nVertices Y coordinates of the vertices for this object.</param>
            <param name="adfZ">An array of nVertices Z coordinates of the vertices for this object. 
            This may be NULL in which case they are all assumed to be zero.</param>
            <returns>SHPObject</returns>
            <remarks>
            The SHPDestroyObject() function should be used to free resources associated with an 
            object allocated with SHPCreateSimpleObject().
            </remarks>
        </member>
        <member name="M:MapTools.ShapeLib.SHPClose(System.IntPtr)">
            <summary>
            The SHPClose() function will close the .shp and .shx files, and flush all outstanding header 
            information to the files. It will also recover resources associated with the handle. 
            After this call the hSHP handle cannot be used again.
            </summary>
            <param name="hSHP">The handle previously returned by SHPOpen() or SHPCreate().</param>
            <returns>void</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPTypeName(MapTools.ShapeLib.ShapeType)">
            <summary>
            Translates a ShapeType.* constant into a named shape type (Point, PointZ, Polygon, etc.)
            </summary>
            <param name="shpType">ShapeType enum</param>
            <returns>string</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPPartTypeName(MapTools.ShapeLib.PartType)">
            <summary>
            Translates a PartType enum into a named part type (Ring, Inner Ring, etc.)
            </summary>
            <param name="partType">PartType enum</param>
            <returns>string</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPCreateTree(System.IntPtr,System.Int32,System.Int32,System.Double[],System.Double[])">
            <summary>
            Creates a quadtree index
            </summary>
            <param name="hSHP"></param>
            <param name="nDimension"></param>
            <param name="nMaxDepth"></param>
            <param name="adfBoundsMin"></param>
            <param name="adfBoundsMax"></param>
            <returns>IntPtr</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPDestroyTree(System.IntPtr)">
            <summary>
            Releases resources associated with quadtree
            </summary>
            <param name="hTree"></param>
            <returns>void</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPTreeAddShapeId(System.IntPtr,MapTools.ShapeLib.SHPObject)">
            <summary>
            
            </summary>
            <param name="hTree"></param>
            <param name="psObject"></param>
            <returns>int</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPTreeTrimExtraNodes(System.IntPtr)">
            <summary>
            
            </summary>
            <param name="hTree"></param>
            <returns>void</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPTreeFindLikelyShapes(System.IntPtr,System.Double[],System.Double[],System.Int32@)">
            <summary>
            
            </summary>
            <param name="hTree"></param>
            <param name="adfBoundsMin"></param>
            <param name="adfBoundsMax"></param>
            <param name="pnShapeCount"></param>
            <returns>IntPtr</returns>
        </member>
        <member name="M:MapTools.ShapeLib.SHPCheckBoundsOverlap(System.Double[],System.Double[],System.Double[],System.Double[],System.Int32)">
            <summary>
            
            </summary>
            <param name="adfBox1Min"></param>
            <param name="adfBox1Max"></param>
            <param name="adfBox2Min"></param>
            <param name="adfBox2Max"></param>
            <param name="nDimension"></param>
            <returns>int</returns>
        </member>
        <member name="T:MapTools.ShapeLib.DBFFieldType">
            <summary>
            xBase field type enumeration
            </summary>
        </member>
        <member name="F:MapTools.ShapeLib.DBFFieldType.FTString">
            <summary>String data type</summary> 
        </member>
        <member name="F:MapTools.ShapeLib.DBFFieldType.FTInteger">
            <summary>Integer data type</summary>
        </member>
        <member name="F:MapTools.ShapeLib.DBFFieldType.FTDouble">
            <summary>Double data type</summary> 
        </member>
        <member name="F:MapTools.ShapeLib.DBFFieldType.FTLogical">
            <summary>Logical data type</summary>
        </member>
        <member name="F:MapTools.ShapeLib.DBFFieldType.FTInvalid">
            <summary>Invalid data type</summary>
        </member>
        <member name="M:MapTools.ShapeLib.DBFOpen(System.String,System.String)">
            <summary>
            The DBFOpen() function should be used to establish access to an existing xBase format table file. 
            The returned DBFHandle is passed to other access functions, and DBFClose() should be invoked 
            to recover resources, and flush changes to disk when complete. The DBFCreate() function should 
            called to create new xBase files. As a convenience, DBFOpen() can be called with the name of a 
            .shp or .shx file, and it will figure out the name of the related .dbf file.
            </summary>
            <param name="szDBFFile">The name of the xBase (.dbf) file to access.</param>
            <param name="szAccess">The fopen() style access string. At this time only "rb" (read-only binary) 
            and "rb+" (read/write binary) should be used.</param>
            <returns>IntPtr</returns>
        </member>
        <member name="M:MapTools.ShapeLib.DBFCreate(System.String)">
            <summary>
            The DBFCreate() function creates a new xBase format file with the given name, 
            and returns an access handle that can be used with other DBF functions. 
            The newly created file will have no fields, and no records. 
            Fields should be added with DBFAddField() before any records add written. 
            </summary>
            <param name="szDBFFile">The name of the xBase (.dbf) file to create.</param>
            <returns>IntPtr</returns>
        </member>
        <member name="M:MapTools.ShapeLib.DBFGetFieldCount(System.IntPtr)">
            <summary>
            The DBFGetFieldCount() function returns the number of fields currently defined 
            for the indicated xBase file. 
            </summary>
            <param name="hDBF">The access handle for the file to be queried, as returned by 
            DBFOpen(), or DBFCreate().</param>
            <returns>int</returns>
        </member>
        <member name="M:MapTools.ShapeLib.DBFGetRecordCount(System.IntPtr)">
            <summary>
            The DBFGetRecordCount() function returns the number of records that exist on the xBase 
            file currently. Note that with shape files one xBase record exists for each shape in the 
            .shp/.shx files.
            </summary>
            <param name="hDBF">The access handle for the file to be queried, as returned by 
            DBFOpen(), or DBFCreate().</param>
            <returns>int</returns>
        </member>
        <member name="M:MapTools.ShapeLib.DBFAddField(System.IntPtr,System.String,MapTools.ShapeLib.DBFFieldType,System.Int32,System.Int32)">
            <summary>
            The DBFAddField() function is used to add new fields to an existing xBase file opened with DBFOpen(), 
            or created with DBFCreate(). Note that fields can only be added to xBase files with no records, 
            though this is limitation of this API, not of the file format. Returns the field number of the 
            new field, or -1 if the addition of the field failed
            </summary>
            <param name="hDBF">The access handle for the file to be updated, as returned by DBFOpen(), 
            or DBFCreate().</param>
            <param name="szFieldName">The name of the new field. At most 11 character will be used. 
            In order to use the xBase file in some packages it may be necessary to avoid some special 
            characters in the field names such as spaces, or arithmetic operators.</param>
            <param name="eType">One of FTString, FTInteger, FTLogical, or FTDouble in order to establish the 
            type of the new field. Note that some valid xBase field types cannot be created such as date fields.</param>
            <param name="nWidth">The width of the field to be created. For FTString fields this establishes 
            the maximum length of string that can be stored. For FTInteger this establishes the number of 
            digits of the largest number that can be represented. For FTDouble fields this in combination 
            with the nDecimals value establish the size, and precision of the created field.</param>
            <param name="nDecimals">The number of decimal places to reserve for FTDouble fields. 
            For all other field types this should be zero. For instance with nWidth=7, and nDecimals=3 
            numbers would be formatted similarly to `123.456'.</param>
            <returns>int</returns>
        </member>
        <member name="M:MapTools.ShapeLib.DBFGetFieldInfo(System.IntPtr,System.Int32,System.Text.StringBuilder,System.Int32@,System.Int32@)">
            <summary>
            The DBFGetFieldInfo() returns the type of the requested field, which is one of the DBFFieldType 
            enumerated values. As well, the field name, and field width information can optionally be returned. 
            The field type returned does not correspond one to one with the xBase field types. 
            For instance the xBase field type for Date will just be returned as being FTInteger. 
            </summary>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -