Ticket #2474 (closed defect: fixed)
DateTime -> Date write support in Shapefile support
| Reported by: | candrsn | Owned by: | mloskot |
|---|---|---|---|
| Priority: | high | Milestone: | 1.5.4 |
| Component: | OGR_SF | Version: | unspecified |
| Severity: | normal | Keywords: | shape |
| Cc: | warmerdam |
Description
Shapefile write support for DateTime? is hinted to in this notice
"Field %s create as date field, though DateTime? requested.\n",
but the value written is always null.
This patch causes the conversion to take place.
--- ogr/ogrsf_frmts/shape/shape2ogr.cpp 2008-02-10 05:59:48.000000000 -0500 +++ ogr/ogrsf_frmts/shape/shape2ogr.cpp 2008-07-14 19:20:56.000000000 -0400 @@ -1242,6 +1242,7 @@
break;
case OFTDate:
+ case OFTDateTime:
{
OGRField sFld; int nFullDate =
Change History
Note: See
TracTickets for help on using
tickets.
