| 21 | | model -- GeoDjango model (not an instance) |
|---|
| 22 | | |
|---|
| 23 | | data -- OGR-supported data source file (e.g. a shapefile) or |
|---|
| 24 | | gdal.DataSource instance |
|---|
| 25 | | |
|---|
| 26 | | mapping -- A python dictionary, keys are strings corresponding |
|---|
| 27 | | to the GeoDjango model field, and values correspond to |
|---|
| 28 | | string field names for the OGR feature, or if the model field |
|---|
| 29 | | is a geographic then it should correspond to the OGR |
|---|
| 30 | | geometry type, e.g. 'POINT', 'LINESTRING', 'POLYGON'. |
|---|
| | 21 | model: |
|---|
| | 22 | GeoDjango model (not an instance) |
|---|
| | 23 | |
|---|
| | 24 | data: |
|---|
| | 25 | OGR-supported data source file (e.g. a shapefile) or |
|---|
| | 26 | gdal.DataSource instance |
|---|
| | 27 | |
|---|
| | 28 | mapping: |
|---|
| | 29 | A python dictionary, keys are strings corresponding |
|---|
| | 30 | to the GeoDjango model field, and values correspond to |
|---|
| | 31 | string field names for the OGR feature, or if the model field |
|---|
| | 32 | is a geographic then it should correspond to the OGR |
|---|
| | 33 | geometry type, e.g. 'POINT', 'LINESTRING', 'POLYGON'. |
|---|
| 37 | | Use this to specify the source SRS manually (for example, some |
|---|
| 38 | | shapefiles don't come with a '.prj' file). A SRID integer, a |
|---|
| 39 | | WKT string, a SpatialReference, and a SpatialRefSys object are |
|---|
| 40 | | all valid parameters here. |
|---|
| | 40 | Use this to specify the source SRS manually (for example, |
|---|
| | 41 | some shapefiles don't come with a '.prj' file). An integer SRID, |
|---|
| | 42 | a string WKT, and SpatialReference objects are valid parameters. |
|---|
| | 43 | |
|---|
| | 44 | encoding: |
|---|
| | 45 | Specifies the encoding of the string in the OGR data source. |
|---|
| | 46 | For example, 'latin-1', 'utf-8', and 'cp437' are all valid |
|---|
| | 47 | encoding parameters. |
|---|
| 87 | | source spatial reference system (WGS84) to the spatial reference system of |
|---|
| 88 | | the GeoDjango model (NAD83). If no spatial reference system is defined for |
|---|
| 89 | | the layer, use the `source_srs` keyword with a SpatialReference object to |
|---|
| 90 | | specify one. Further, data is selectively imported from the given data source |
|---|
| 91 | | fields into the model fields. |
|---|
| | 94 | source spatial reference system (WGS84) to the spatial reference system of |
|---|
| | 95 | the GeoDjango model (NAD83). If no spatial reference system is defined for |
|---|
| | 96 | the layer, use the `source_srs` keyword with a SpatialReference object to |
|---|
| | 97 | specify one. Further, data is selectively imported from the given data source |
|---|
| | 98 | fields into the model fields. |
|---|