Hey Keith,
Have you loaded your species list yet? Also, there may be a
"TreeImport1.csv.err" file with rows that were explicitly rejected.
v1.3 does have an improved version of the upload script. That might
give you better results.
-Adam
On 03/14, Keith Bornhorst wrote:
> Trying to import a few trees...
>
> - OTM v1.2
>
> Input data:
> "ID","POINT_X","POINT_Y","SCIENTIFIC","ADDRESS","PLOTTYPE","PLOTLENGTH","PLOTWIDTH","POWERLINE","OWNER","DATEPLANTED","DIAMETER","HEIGHT","CANOPYHEIGHT","CONDITION","CANOPYCONDITION"
> 1,-82.409141,28.060768,"Acer rubrum",,,,,,,,,,,,
> 2,-82.408968,28.060432,"Acer rubrum",,,,,,,,,,,,
> 3,-82.40898,28.060737,"Acer rubrum",,,,,,,,,,,,
> 4,-82.408976,28.060762,"Acer rubrum",,,,,,,,,,,,
> 5,-82.408959,28.060737,"Acer rubrum",,,,,,,,,,,,
> 6,-82.408549,28.060431,"Acer rubrum",,,,,,,,,,,,
> 7,-82.408549,28.060522,"Acer rubrum",,,,,,,,,,,,
>
> - "Acer rubrum" exists in treemap_species (id=4)
>
> First attempt failed
> - Updated /treemap/management/commands/uimport.py to remove unnecessary
> "OpenTreeMap" and fix how CHOICES were being loaded
>
> Second attempt resulted with:
>
> $ python manage.py uimport --verbose
> treemap/management/commands/data_tampa/TreeImport1.csv 1
> Opening input file: treemap/management/commands/data_tampa/TreeImport1.csv
> Importing 7 records
> Finished data load.
> Calculating new species tree counts...
> Done.
>
> Yet no rows exist in *treemap_tree* or *treemap_plot* (or any audit/pending
> version of those tables). The import attempt was logged to *
> treemap_importevent*. The "xxx.csv.err" file is empty.
>
> Any thoughts on what might be wrong or how to determine where in the import
> process we ran into problems?
>
> Thanks,
> Keith
>
--
Adam Hinz
Software Engineer, Azavea
ad...@adamhinz.com | c:
608-445-8391 | Twitter: @ahinz