Map point not showing up in Neatline

I'm setting up a small test exhibit in Omeka and want to use Neatline to map photographs.

I have an item at

http://omeka.miskatonic.org/items/show/7

that has this as Coverage (in Toronto, Canada):

POINT(-8838929.760253618 5412133.705673304)

No points appear on the Neatline map, though:

http://omeka.miskatonic.org/neatline/show/kensington-market

The WKT formatting for the location looks fine, the Coverage is stored in the database, everything seems OK from what I expect from the documentation ... but there's nothing on the map.

What am I overlooking?

This is Omeka 2.1.4 and Neatline 2.0.

Hey wdenton,

Yeah, I just tried out that WKT and it works fine. I wonder if maybe there's a style setting that's causing the point not to appear? Go over into the "Style" tab for the record and make sure that "Point Radius" and "Fill Opacity" are both greater than 0. Either of these set to 0 make the point invisible.

Let me know if that fixes it. Thanks,
-David

Point Radius is 10, Fill Opacity is .3 (.4 for selected) ... so both non-zero. :( (All the settings in there are the default.)

Hmm, odd, I can't replicate this. Can you tell me the exact steps you're taking, so I can try to recreate it? Eg, are you pasting the WKT directly into a Neatline record, or into an Omeka item? If the latter, are you adding the record to an exhibit with a bulk import (via the "Import Items" form) or by linking an individual Neatline record to it (via the "Item" tab in the Neatline record form)?

Thanks,
David

Thanks for keeping at this!

For the first record, I entered the WKT into an Omeka item, along with other DC data, then imported it with Import Items into Neatline, in bulk with six other items. Result: didn't work.

I tried it again today by doing all the work in Neatline, editing a point and adding the coverage there, and it worked perfectly.

I looked into the database and saw what seems odd. I think the id numbers don't match up, but "Baskets of produce" is the Omeka #7 and the first one I added, that didn't work, and "Man wearing an apron" is the item I added in Neatline that did work.

select * from omeka_element_texts where element_id = 38;
+----+-----------+-------------+------------+------+---------------------------------------------+
| id | record_id | record_type | element_id | html | text                                        |
+----+-----------+-------------+------------+------+---------------------------------------------+
|  6 |         2 | Collection  |         38 |    0 | Toronto, Ontario                            |
| 24 |         7 | Item        |         38 |    0 | POINT(-8838929.760253618 5412133.705673304) |
+----+-----------+-------------+------------+------+---------------------------------------------+

select item_id, title, coverage from omeka_neatline_records;
+---------+---------------------------------------------------------------------------------------------------------+---------------------------+
| item_id | title                                                                                                   | coverage                  |
+---------+---------------------------------------------------------------------------------------------------------+---------------------------+
|       2 | NULL                                                                                                    |                         |
|       3 | Man wearing an apron leaning against the end of a truck and a woman looking down at a crate of produce. |        ?0?2???A,?W?TA        |
|       4 | NULL                                                                                                    |                         |
|       5 | NULL                                                                                                    |                         |
|       6 | NULL                                                                                                    |                         |
|       7 | Baskets of produce on the bed of a pickup truck parked on the street.                                   |                         |
|       7 | NULL                                                                                                    |                         |
+---------+---------------------------------------------------------------------------------------------------------+---------------------------+

It seems that "Baskets of produce" has Coverage in the Omeka table, but nothing in the Neatline table, which is why it doesn't show on the map. "Man wearing an apron" does a location in the Neatline table (I presume in binary), which is why it does.

Does this tell you anything? I can delete everything, start over, and document each step, if that would help.

Hey wdenton,

Reading back through this thread, I notice that you're using Neatline 2.0. Could you try upgrading to version 2.2.1, and see if you're still having trouble with this? We made a lot of improvements to the item-linking workflow in 2.2, and I just want to make sure that we're not running into a bug that was fixed in 2.2.

http://omeka.org/add-ons/plugins/Neatline/

Thanks,
David

It actually is Neatline 2.2.1 (I think when I said 2.0 I meant to indicate it wasn't version 1).

Sorry about the delay in following up, but I'm back on it now.

I deleted the exhibits and started over. I have six items in a Kensington Market collection in Omeka.

  • Create an Exhibit in Neatline
  • Call it Exhibit 1, make it public but otherwise use all the defaults
  • import items: search by collection, name "Kensington Market"
  • successfully imported
  • look at map with Fullscreen View (http://omeka.miskatonic.org/neatline/fullscreen/exhibit-1): nothing
  • go to edit mode in Neatline (http://omeka.miskatonic.org/admin/neatline/editor/3)
  • six items are there, but nothing showing on map
  • look at first item; select Map; Geometry box under Spatial Data is empty!

Database query: select item_id, item_title, astext(coverage) from omeka_neatline_records;


+---------+---------------------------------------------------------------------------------------------------------+------------------+
| item_id | item_title | astext(coverage) |
+---------+---------------------------------------------------------------------------------------------------------+------------------+
| 7 | Baskets of produce on the bed of a pickup truck parked on the street. | POINT(0 0) |
| 6 | food-ways-which-food-arrives-toronto.jpg | POINT(0 0) |
| 2 | 133-augusta-ave-valerie-agnes-riley-murdered-not-used.jpg | POINT(0 0) |
| 3 | Man wearing an apron leaning against the end of a truck and a woman looking down at a crate of produce. | POINT(0 0) |
| 4 | augusta-ave.jpg | POINT(0 0) |
| 5 | bellevue-ave-not-used.jpg | POINT(0 0) |
+---------+---------------------------------------------------------------------------------------------------------+------------------+

But I'd have thought at least item 7 should have been mapped, because it has coverage as an Omeka item:

Database query: select * from omeka_element_texts where element_id = 38;


+----+-----------+-------------+------------+------+---------------------------------------------+
| id | record_id | record_type | element_id | html | text |
+----+-----------+-------------+------------+------+---------------------------------------------+
| 6 | 2 | Collection | 38 | 0 | Toronto, Ontario |
| 24 | 7 | Item | 38 | 0 | POINT(-8838929.760253618 5412133.705673304) |
+----+-----------+-------------+------------+------+---------------------------------------------+

So something odd is still going on.

Any suggestions?

Hi wdenton,

Do each of the records in Neatline have a shape associated with them (point or otherwise)? I believe OpenLayers treats the coordinates 0 0 as a null value. We may need to bump this to a bug report on our issue tracker (https://github.com/scholarslab/neatline/issues).

Wayne

After posting I pasted the WKT of one point into the Neatline editor's Geometry box, which was empty. It immediately appeared on the map, which was great.

Then I went back and queried the database:


mysql> select item_id, item_title, astext(coverage) from omeka_neatline_records;
+---------+--------------+---------------------------------------------+
| item_id | item_title | astext(coverage) |
+---------+--------------+---------------------------------------------+
| 7 | Baskets of p | POINT(-8838929.760253618 5412133.705673304) |
| 6 | food-ways-wh | POINT(0 0) |
| 2 | 133-augusta- | POINT(0 0) |
| 3 | Man wearing | POINT(0 0) |
| 4 | augusta-ave. | POINT(0 0) |
| 5 | bellevue-ave | POINT(0 0) |
+---------+---------------------------------------------------------------------------------------------------------+---------------------------------------------+

So the point I edited was there nicely, but the others had POINT(0 0). If that's a null, that's a good clue, I guess.

Shall I go file this as a bug? Thanks!

Hi,

This is expected. As you guessed, this acts as a null value. Thanks for checking on it!

Thanks,
Eric