Method | Description | |
---|---|---|
AddColumn ( GisSharpBlog.NetTopologySuite.IO.DbaseFileHeader header, string columnName, |
Helper function for SetupHeader, correctly maps C# data types to DbaseFileHeader types
|
|
GetGeomFactory ( ) : GisSharpBlog.NetTopologySuite.Geometries.GeometryFactory |
Constructs the default GeometryFactory for 4269 (census projection)
|
|
GetRemoteShapefileURL ( BoundaryLevels level, string stateFips ) : string |
Helper function for constructing the correct census URL for a particular Boundary Level / State
|
|
GetSchema ( SqliteDataClient client ) : |
Helper function for checking structure of existing Db
|
|
ImportShapefile ( |
Imports the provided shapefile into a sqlite database using the VirtualShape extension
|
|
IsForbiddenShapefileName ( string name ) : bool |
Checks to make sure a given table name doesn't conflict with any of the census shapefiles
|
|
LoadShapefile ( string filename, string tableName, IDataClient DbClient, ICoordinateSystem &CRS ) : bool |
Imports a shapefile into the database. Do not use this to load census shapefiles.
|
|
MakeCensusProjFile ( string filename ) : bool |
Generates a proj file for a given shapefile if it's missing
|
|
MakeOutputProjFile ( string sourceProjectionFilename, string destShapefilename ) : bool |
Copies an existing .prj file next to an existing shapefile (with correct destination name)
|
|
OpenShapefile ( string filename, string tableName ) : bool |
Helper function for testing the shapefile importer
|
|
SetupHeader ( |
Consumes an ADO.net datatable and correctly initializes a Shapefile header object
|
public static AddColumn ( GisSharpBlog.NetTopologySuite.IO.DbaseFileHeader header, string columnName, |
||
header | GisSharpBlog.NetTopologySuite.IO.DbaseFileHeader | |
columnName | string | |
t | ||
return | void |
public static GetGeomFactory ( ) : GisSharpBlog.NetTopologySuite.Geometries.GeometryFactory | ||
return | GisSharpBlog.NetTopologySuite.Geometries.GeometryFactory |
public static GetRemoteShapefileURL ( BoundaryLevels level, string stateFips ) : string | ||
level | BoundaryLevels | |
stateFips | string | |
return | string |
public static GetSchema ( SqliteDataClient client ) : |
||
client | SqliteDataClient | |
return |
public static ImportShapefile ( |
||
conn | ||
client | IDataClient | |
filename | string | |
tableName | string | |
srid | int | |
return | bool |
public static IsForbiddenShapefileName ( string name ) : bool | ||
name | string | |
return | bool |
public static LoadShapefile ( string filename, string tableName, IDataClient DbClient, ICoordinateSystem &CRS ) : bool | ||
filename | string | The path of the file to import |
tableName | string | |
DbClient | IDataClient | The database to load the file into |
CRS | ICoordinateSystem | |
return | bool |
public static MakeCensusProjFile ( string filename ) : bool | ||
filename | string | |
return | bool |
public static MakeOutputProjFile ( string sourceProjectionFilename, string destShapefilename ) : bool | ||
sourceProjectionFilename | string | |
destShapefilename | string | |
return | bool |
public static OpenShapefile ( string filename, string tableName ) : bool | ||
filename | string | |
tableName | string | |
return | bool |
public static SetupHeader ( |
||
table | ||
return | GisSharpBlog.NetTopologySuite.IO.DbaseFileHeader |