|
|
Utilities for transforming dates within Maptitude GIS. GPLv3 license.
DateWidget.rsc contains five macros:
"Test" is a simple demo allowing you to explore the functionality of the DateWidget.
"Date Field" provides a more applied demo of the DateWidget. This macro adds a new field (whose name is specified in the administrative settings) to hold the widgetized date (whose format is also specified in the administrative settings). It will then loop through all records, read the contents of the date field, and then write the widgetized date in the format specified in the options. The "Sample_dates.bin" file is provided as demo data.
"DateWidget" is the main macro. It converts dates from all-numeric formats, e.g. 2/14/2011 to formats such as February 14, 2011. If you use the string "today" for a date, it will produce today's date in the desired format. The macro takes two options related to input: date type (e.g. MDY vs. DMY) and separator (e.g. 2/14/2011 vs. 2-14-2011). It also accepts five options related to output: format (e.g. Monday, February 14, 2011 vs. 14-02-2011); day (include day of week if format is not otherwise specified); longmonth (e.g. Feb vs. February); zeroes (02/01/2011 vs. 2/1/2011); and language.
"DOW" is a helper macro for DateWidget, but may also be used separately,. It macro converts an English day of the week to another language. The first parameter, american_date, is a date of the form "MM/DD/YYYY". The second parameter, days, is an array of days of the week in the target language, beginning with Sunday.
"Today" is another helper macro for DateWidget that may be used separately. It converts today's date (via Maptitude's GetDateAndTime() function) into an American-style (MM/DD/YYYY) date, which is the format Maptitude requires for its built-in date functions.
Moshe Haspel
The Lower Hudson Journal News has been under fire for publishing a map of gun permit holders in two counties in New York State before Christma. (APB coverage 1, 2, podcast). On Friday January 18 the paper removed the interactive map. Why? Publisher Janet Hasson gave answers in a media statement and in a letter to readers.
In a statement in response to The Poynter Institute (a journalism school) she argued:
With the passage this week of the NYSAFE gun law, which allows permit holders to request their names and addresses be removed from the public record, we decided to remove the gun permit data from lohud.com at 5 pm today. While the new law does not require us to remove the data, we believe that doing so complies with its spirit. For the past four weeks, there has been vigorous debate over our publication of the permit data, which has been viewed nearly 1.2 million times by readers. One of our core missions as a newspaper is to empower our readers with as much information as possible on the critical issues they face, and guns have certainly become a top issue since the massacre in nearby Newtown, Conn. Sharing as much public information as possible provides our readers with the ability to contribute to the discussion, in any way they wish, on how to make their communities safer. We remain committed to our mission of providing the critical public service of championing free speech and open records.
In a letter to readers published on Friday she wrote:
So intense was the opposition to our publication of the names and addresses that legislation passed earlier this week in Albany included a provision allowing permit holders to request confidentiality and imposing a 120-day moratorium on the release of permit holder data.
She goes on to say that during the 27 days the map was online any one interested would have seen it and that the data would eventually be out of date. She also noted that the paper does not endorse the way the state chose to limit availability of the data.
The original map/article still includes a graphic - but it's a snapshot, a raster image, with no interactivity. Says Hasson in the letter to readers:
And we will keep a snapshot of our map — with all its red dots — on our website to remind the community that guns are a fact of life we should never forget.
I continue to applaud the paper for requesting the data via a Freedom on Informat request, mapping it, keeping the map up despite threats and criticism and now responding to state law. I think the paper did a service to the state, to citizens and to journalism.
- via reader Jim and Poynter