1

Topic: Import Wizard - Lower Case OS Grid Reference Letters

I'm working on a Recorder 6 database that has a few records with lower case letters in the grid reference of the sample. The records were imported from Excel using the import wizard when the database was at version 6.14.5.218. The database has since been updated to 6.18.1.260.

When the records are viewed using the GUI all appears fine the grid references are displayed with upper case letters, the anomaly only became apparent when using Mike's LCReturnEastingsV2 and LCReturnNorthingsV2 functions to export some records. When the records were plotted in GIS the records with the lower case letters were mapped thousands of miles off as the were allocated negative eastings and northings.

Two things

- Does it matter that some grid references are lower case - do any other database functions rely on upper case values?

If not, simply creating a copy of the above mentioned functions then adding 'set @SpatialRef = UPPER(@SpatialRef)' solves the problem.

If so I'll use:

USE NBNData
UPDATE    SAMPLE
SET       SPATIAL_REF = UPPER(SPATIAL_REF)

then I'll run the update query on the SURVEY_EVENT and LOCATION tables


Have I missed any tables that might contain the imported grid ?


- can anyone confirm that lower case grid reference letters are converted to upper case by the current import wizard or is this issue something to watch for in the future?

Thanks

Ian

2

Re: Import Wizard - Lower Case OS Grid Reference Letters

I don't see how lower case letters have occurred. In the Wizard, if the spreadsheet being imported has lower case letters in the grid ref field, at the location matching stage the grid refs from R6 locations will be upper case. If a new site is entered in R6, using lower case in the grid ref field produces upper case anyway. Or am I misunderstanding the problem?

Bob Marsh
Doncaster LRC
Coleoptera recorder for YNU

3

Re: Import Wizard - Lower Case OS Grid Reference Letters

Thanks for the response.

It looks as though one lot of records has been allocated to a new location, I would guess that the location was created at the time of the import as there are no other records attached to it, so would have been created by the import wizard. The other looks as though it has been matched to an existing location, however the grid reference on the record has a greater precision than the default location grid reference so I guess the importer went with the spreadsheet grid reference rather than the default one.

The strange thing is the grid references are displayed as upper case in Recorder 6 but are definitely lower case in the SQL Server tables.

I should just correct my previous post. The northings are negative and the eastings value is over 700000.

4

Re: Import Wizard - Lower Case OS Grid Reference Letters

I've noticed the same - presumably the import wizard capitalizes the letters for display, but not for input into the database. Like Ian, I have only found a problem when using LCReturnEastingsV2 et. al. (although I upper before using the function).

Charlie Barnes
Information Officer
Greater Lincolnshire Nature Partnership

5

Re: Import Wizard - Lower Case OS Grid Reference Letters

Still an issue with 6.19.4.267

6

Re: Import Wizard - Lower Case OS Grid Reference Letters

Isn't this fixed in v6.22?

Les Evans-Hill
Senior Data Officer
Butterfly Conservation, Butterflies for the New Millennium and National Moth Recording Scheme

7

Re: Import Wizard - Lower Case OS Grid Reference Letters

I guess we'll have to upgrade to find out :)

8

Re: Import Wizard - Lower Case OS Grid Reference Letters

The release notes for v6.22 do refer to your issue as being dealt with.

Les Evans-Hill
Senior Data Officer
Butterfly Conservation, Butterflies for the New Millennium and National Moth Recording Scheme

9

Re: Import Wizard - Lower Case OS Grid Reference Letters

Great, looks like it might be time for an upgrade. Thanks.

10

Re: Import Wizard - Lower Case OS Grid Reference Letters

Before you upgrade, do read the v6.22 release notes thoroughly and checkout some of the recent postings re some of our experiences with the upgrade :)

Les

Les Evans-Hill
Senior Data Officer
Butterfly Conservation, Butterflies for the New Millennium and National Moth Recording Scheme

11

Re: Import Wizard - Lower Case OS Grid Reference Letters

Thanks, I think I might wait for a bit as I can code corrections to this issue.

Ian