Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)

Similar presentations


Presentation on theme: "Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)"— Presentation transcript:

1 Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)

2 GeoMoose GeoMOOSE is a Web Client JavaScript Framework for displaying distributed cartographic data. The GeoMOOSE core is written using JavaScript and HTML. It is entirely possible to run GeoMOOSE with nothing more than a basic web server (Nginx, Apache, IIS). But besides the basic client core, GeoMOOSE also comes prepackaged with a number of built in services written in PHP.

3 GeoMoose Components GeoMoose.html – starts it all Mapbook.xml – basic configuration for GeoMoose Services – PHP based “services” that provide functionality Extensions – JavaScript that provides added client side capabilities Maps/Templates – mapserver controls for how maps and data are displayed

4 GeoMoose 2.61/Oregon – Print The current version of GeoMoose provides a mechanism to print mailing labels for selected property features. CSV or PDF

5 GeoMoose 2.61/Oregon – Print Good Easy to implement Works Well Easy to use Bad Only one layer can print per application Can only print as a “mailing label”

6 GeoMoose 2.61/Oregon New Print Extension What is needed A simple way to print the contents of the “results tab” for ANY feature layer. A simple way to implement the tool Surveys I want to print this stuff!

7 GeoMoose 2.61/Oregon New Print Extension How to make it happen…. 1.JavaScript – to print contents of a “div”. (A willingness to hack code) 2.A way to register it so GeoMoose knows what to do. 3.A way to call it from GeoMoose. 4.The willingness to DOCUMENT and SHARE your results.

8 GeoMoose 2.61/Oregon New Print Extension 1. JavaScript – PrintTab.js

9 GeoMoose 2.61/Oregon New Print Extension 2. Register – geomoose.html “Registered”

10 GeoMoose 2.61/Oregon New Print Extension 3. Template – Select_header.html “Reference to our registered javascript function”

11 GeoMoose 2.61/Oregon New Print Extension

12 4. Document and Share! Everyone I know….

13 GeoMoose 2.61/Oregon New Print Extension How it happened Polk Wrote Original Code – OR 2.4 Houston Engineering Expanded It – OR 2.6 Polk County Expanded Code – OR 2.61

14 GeoMoose 2.61/Oregon New Print Extension 1.It worked! 2.GeoMoose has good architecture that supports client extensions. 3.GeoMoose has a good community for sharing. 4.When you get an upgrade you have to “re-install”. Summary

15 GeoMoose 2.61/Oregon – Query The current version of GeoMoose includes a powerful tool to manage queries for features. Referenced as a service in the Mapbook.xml Results are displayed using a template html.

16 GeoMoose 2.61/Oregon – Query Good Powerful Easy to implement Bad We need a SIMPLE way to search for property with few clicks Users can NOT remember all the field names used for searching (ie. to find a property owner you have to search BOTH owner and agent). Users can NOT remember the format of the data in our fields for searching (ie. does street direction come after or before the street name and is owner stored by first name first or last name first). Users can not remember how to implement wild cards (ie. is a * of a %). Users CAN NOT remember the proper order for ands/or etc to put the needed queries together.

17 GeoMoose 2.61/Oregon Modified Service What is needed A new service that is more intuitive to use that does not require the user to enter in fields, values, and comparators…. Something my Mom could use.

18 GeoMoose 2.61/Oregon New Query Service How to make it happen…. 1.Design a new way to query. 2.Modify existing PHP service. 3.Modify Mapbook.xml so the service can be called from GeoMoose. 4.The willingness to DOCUMENT and SHARE your results.

19 GeoMoose 2.61/Oregon New Query Service 1. Design – How do you make a Search Similar to GOOGLE ? INALL (Match All Entered Words) - the values entered must be in all occurrences of a field(s) - this is a "shorthand" way of entering the repetitive "AND“. INANY (Match Any Entered Words) - the values entered could be in any occurrence of the value in a field(s) - this is a "shorthand" way of entering the repetitive "OR“. Search Field Collections - Add the ability to collect fields into search "collections" before doing the search. Instead of explicitly selecting each field and the condition for searching.

20 GeoMoose 2.61/Oregon New Query Service 1. Design – How do you make a Search Similar to GOOGLE ? INALL (Match All Entered Words) INANY (Match Any Entered Words) Search Field Collections (([OWNER] LIKE "ANDERSON") AND ([OWNER] LIKE "DEAN")) OR (([AGENT] LIKE "ANDERSON") AND ([AGENT] LIKE "DEAN")) Dean Russell AndersonWhere ‘Dean’ AND ‘Russell’ AND ‘Anderson’ Dean Russell AndersonWhere ‘Dean’ OR ‘Russell’ OR ‘Anderson’

21 GeoMoose 2.61/Oregon New Query Service 2. Code – Change Query Services htdocs/php/query.php

22 GeoMoose 2.61/Oregon New Query Service 3. Mapbook.xml – Make a new service

23 GeoMoose 2.61/Oregon New Query Service

24 Find property owned by Dean Anderson.

25 GeoMoose 2.61/Oregon New Query Service Find property at 15840 Guthrie.

26 GeoMoose 2.61/Oregon New Query Service 4. Document and Share Add Code back to “Oregon 2.61 Demo and Test”. Add code back to “GeoMoose 2.61 Demo and Test”. Share Oregon 2.61 Demo with Oregon Users. Submit New Query Service as a “enhancement request” back to GeoMoose. Send out e-mails to all that this works!

27 GeoMoose 2.61/Oregon New Query Service How it happened Houston Engineering Wrote Original Code – OR 2.4 Houston Engineering Expanded It – OR 2.6 Polk County Expanded Code – OR 2.61 GeoMoose Core Wrote Original Code – 2.4

28 GeoMoose 2.61/Oregon New Query Service Summary 1.It worked! 2.GeoMoose has good architecture that supports services. 3.GeoMoose has a good community for sharing. 4.GeoMoose is NOT very good at updating core (is this different from ANY developer?)

29 Open Source Case Study 1.It is “relatively” easy to enhance open source software. 2.The “shared” development model is VERY enabling and powerful. 3.The “extension design” is a very cool part of GeoMoose. 4.It is EASY NOT to share, but you should! 5.It is frustrating to work with core programmers who do not share your sense of urgency to get what you need done. 6.Doing your thing and sharing with others works. Summary

30 How ‘You Too’ Can Play 1.Download Software http://www.geomoose.org/download.html http://www.geomoose.org/download.html 2.Install and Test GeoMoose 2.6 3.Download Oregon 2.62 - ftp://ftp.co.polk.or.us/ ftp://ftp.co.polk.or.us/ Login: general Password: general File: GeoMoose2.62Oregon.zip 4.Install as in Readme


Download ppt "Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)"

Similar presentations


Ads by Google