Field for Spatial Data

I'm working on a web map that uses the Zotero API to place citations on a map: http://micheletobias.github.io/maps/LiteratureMap Currently, I have the location information in the Extra field in the form of a geoJSON geometry string, but that means I have to remove any other information in the Extra field. At some point, would it be possible to add a Geometry or SpatialData field? I tried adding it to my personal database but then I couldn't open it in my desktop Zotero program.
  • Yes, we're hoping to add support for custom item types and fields later this year, and we'll likely add support for spatial data fields at that time.
  • Though until then: couldn't you start the relevant line in Extra with a clear label and then use a regex to extract it and leave the rest alone? Or is that what you mean by "remove"?
    (That's what we do for things like PMID that we currently add to the Extra field).
  • edited April 22, 2015
    Also: A lot of geo functionality would have to come in the form of plugins or API consumers, but if you'd like to expand on the sorts of things you'd like to be able to do with geographic data via Zotero, we can refer to that later when working on this.
  • edited April 10, 2017
    I thought I'd chime in on this thread as adding geospatial capabilities to Zotero would be hugely useful for people in the environmental and so many other industries. I've seen two efforts to do this, LiteratureMap is one. Zotero Maps (https://www.zotero.org/blog/zotero-maps-visualize-your-zotero-library-on-the-globe/) is another. Unfortunately, development of the latter seems to have stopped.

    LitMap looks promising and the addition of a geospatial field would certainly help keep geodata organized and untangled with other forms of data that might be in the Extras field. On the LitMap end, it would be great to see not only point data handled, but also line and polygon data. Integration with ArcGIS and Google Earth would be incredibly helpful.

    For Zotero, further development of Zotero Maps would be great as the incorporation of a map within the Zotero interface would give users a unique way access their bibliographic data, ie on a map rather than a standard list. When you're dealing with lots of documents that have a specific geographic focus, this means of visualizing your library would really streamline your work flow. Another handy feature would be the ability to access your documents through the map interface by way of a pop-up balloon with a hyperlink to the document, so that you could open it by interacting with the map.

    Geospatial development would be ideal for people in the sciences and resource management industries, such as biological or archaeological resources, where documentation is often strongly linked to specific geographic areas- such as the territory of a specific animal species under study, or the distribution of archaeological sites within a particular city, state, or region. The same is true of the construction industry, where documentation is typically confined to a specific project area. I'm sure there are many other industries or research fields that would benefit immensely from the ability to visualize a library on a map, to be able to click on a geographic area and see all the documents that pertain to it. For a large number of people this functionality would allow much better access to documents stored in Zotero than the current database style list does.

    I definitely hope we see some movement forward in this direction and I appreciate the efforts made so far.
  • Adding features such as adding the capability for more geometry types for Literature Mapper is definitely planned. You can see progress and planned features at the GitHub repository for this project: https://github.com/MicheleTobias/LiteratureMapper This project is not financially supported at this time, so progress is slow until more developers join the project. Please add feature requests there, not here, as Literature Mapper is not a Zotero project.
  • Definitely appreciate your work on this and will do
  • I don't know if this work has progressed, but here is some info for maybe someone better than me in database manipulation.
    QGIS has a plugin to load and make SQL query on SQLITE database. I have been able throught that plugin, to get a table with my extra field for one particular reference. I have to work on it but I should be able to extract x and y data from the extra field and map it.
    The table structure in the zotero database make it difficult. Extra field is fieldID 22, but contains only a value ID which refer to another table where the real value is stored. So, to have a complete list of the extra field, the query as to:
    - for each element in the database, get the valueID of the fieldID 22.
    - for each valueID, get the real value contained.
    - Split the x and y value
    - map it.

    2 first operation has to go through SQL query and, for now, it goes over my capacities. I'll update if I get farther into the problem.
  • The API provides pretty easy access to the correct field without having to deal with the complex table relationships for Zotero. We've actually solved the need for an additional field in an upcoming release for Literature Mapper. It will use html-style tags to store the spatial information in the Extra field so it won't overwrite other text there.
  • Looking forward to the new LitMap release.
Sign In or Register to comment.