SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
GEO Colorado
GeoJSON & GeoLocate
Key Points
•   Introduce GeoJSON
•   Talk about GeoJSON Libs and Examples

•   Introduce GeoLocate
•   Talk about GeoLocate Libs and Examples
GeoJSON
 •   A format for encoding a variety of geographic data
     structures.
 •   A GeoJSON object may represent a geometry, a
     feature, or a collection of features.
 •   GeoJSON supports the following geometry types:
     Point, LineString, Polygon, MultiPoint,
     MultiLineString, MultiPolygon, and
     GeometryCollection.
 •   Features in GeoJSON contain a geometry object and
     additional properties, and a feature collection
     represents a list of features.

http://www.geojson.org/
PostGIS
   •   Since version 1.3.4

   Getting Data Out
   •   SELECT ST_AsGeoJSON(the_geom) FROM table

   Putting Data In
   •   INSERT INTO table (the_geom)
        VALUES (
            ST_SetSRID(
               ST_GeomFromGeoJSON('{"type":"Point","coordinates":[-104.983718,39.760808]}')
               ,4326
            )
        )
http://postgis.refractions.net/documentation/manual-2.0/ST_GeomFromGeoJSON.html
http://postgis.refractions.net/documentation/manual-2.0/ST_AsGeoJSON.html
PostGIS
   PostgresSQL 9.2 – New JSON Datatype
   •    http://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.2#JSON_datatype


   FeatureCollection
   •    SELECT row_to_json(fc)
            FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features
            FROM (SELECT 'Feature' As type
                      , ST_AsGeoJSON(lg.the_geom)::json As geometry
                      , row_to_json((SELECT l FROM (SELECT id, name) As l )) As properties
                      FROM locations As lg ) As f ) As fc;


   Currently CartoDB is on version PostgreSQL 9.1.2 but they do support GeoJSON output format.
   See http://developers.cartodb.com/documentation/cartodb-apis.html




http://www.postgresonline.com/journal/archives/267-Creating-GeoJSON-Feature-Collections-with-JSON-
and-PostGIS-functions.html
Using GeoJSON with Google Maps
•   Example: http://jsfiddle.net/x3pCk/8/
•   Library: https://github.com/JasonSanford/GeoJSON-to-Google-Maps
Using GeoJSON with Leaflet
•   http://leaflet.cloudmade.com/examples/geojson.html
•   http://leaflet.cloudmade.com/reference.html#geojson
Using GeoJSON with OpenLayers

•     http://docs.openlayers.org/library/spherical_mercator.html
•     http://openlayers.org/dev/examples/vector-formats.html

var geojson = new OpenLayers.Layer.GML("GeoJSON", "geo.json", {
     projection: new OpenLayers.Projection("EPSG:4326")
   , format: OpenLayers.Format.GeoJSON
});
map.addLayer(geojson);
In February of 2002, Dr. Bart and Nelson Rios received funding from the U.S. National
Science foundation to develop GeoLocate to facilitate georeferencing of natural
history collections data, a tool for comprehensive automated georeferencing of North
American locality descriptions. Ongoing development involves expanding coverage to the
entire world, multi-lingual support, user-defined pattern recognition, and collaborative
georeferencing.

•    Developed by Tulane University
•    Uses gazetteers, streams, rivers, roads, landmarks, geonames data
     set
•    Open Street Maps data coming in the near future
•    Uses GeoJSON for its RESTful responses

•    API: http://www.museum.tulane.edu/webservices/geolocatesvcv2/glcwrap.aspx
•    Ref: http://www.museum.tulane.edu/webservices/geolocatesvc/geolocatesvc.asmx

http://www.museum.tulane.edu/geolocate/
Example Strings
 Good vs Bad
 •    http://mvz.berkeley.edu/Locality_Field_Recording_examples.html


State       County           Locality
Alabama     Russell          Adams Branch, 3.0 road miles WSW junction County Highway 32 and Rt. 80 on 32, 4.75 air miles
                             WSW Crawford, (T17N, R28E, Sec. 32)
Louisiana   East Feliciana   Amite R. at LA 10 crossing, 4 mi. W of Darlington on LA Hwy 10
Alabama     Lee              Uchee Cr., trib.of Chattahoochee R., 0.7 mi. E of Marvyn
Alabama     Russell          Trib. of Uchee Cr., 3.1 mi. E of Marvyn
Alabama     Russell          Trib. of Little Uchee Cr., 0.9 mi. E of Crawford on Rt.80


 •    Guide to Best Practices for Georeferencing
      http://www.gbif.org/orc/?doc_id=1288
Sample Request
Request
•   http://www.museum.tulane.edu/webservices/geolocatesvcv2/glcwrap.aspx?locality=E shore of
    Bolinas Lagoon, 3.1 mi NW via Hwy. 1 from intersection of Hwy. 1 and Calle del Arroyo in Stinson
    Beach (town), Marin Co.,
    Calif.&country=USA&state=CA&county=marin&language=0&enableH2O=true&enableHwy=true&r
    estrictToLowestAdm=false&enableUncert=true&doPoly=true&displacePoly=false&fmt=geojson
     o   locality=E shore of Bolinas Lagoon, 3.1 mi NW via Hwy. 1 from intersection of Hwy. 1 and Calle del Arroyo in
         Stinson Beach (town), Marin Co., Calif.
     o   country=USA
     o   state=CA
     o   county=marin
     o   language=0
     o   enableH2O=true
     o   enableHwy=true
     o   restrictToLowestAdm=false
     o   enableUncert=true
     o   doPoly=true
     o   displacePoly=false
     o   fmt=geojson
GeoJSON Libs for Google & Leaflet
Project Repository
•   http://code.google.com/p/geolocate-libs/
•   Google Map Example: http://www.silverbiology.com/clients/geolocate/geolocate-gmapsv3/example.html
•   Leaflet Example: http://www.silverbiology.com/clients/geolocate/geolocate-leaflet/example.html

Contenu connexe

Similaire à GeoCO GeoJSON & GeoLocate

GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...
GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...
GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...Blake Regalia
 
Library of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservationLibrary of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservationAndrew Turner
 
Toward Next Generation of Gazetteer: Utilizing GeoSPARQL For Developing Link...
Toward Next Generation of Gazetteer:  Utilizing GeoSPARQL For Developing Link...Toward Next Generation of Gazetteer:  Utilizing GeoSPARQL For Developing Link...
Toward Next Generation of Gazetteer: Utilizing GeoSPARQL For Developing Link...Dongpo Deng
 
Revisiting the Representation of and Need for Raw Geometries on the Linked Da...
Revisiting the Representation of and Need for Raw Geometries on the Linked Da...Revisiting the Representation of and Need for Raw Geometries on the Linked Da...
Revisiting the Representation of and Need for Raw Geometries on the Linked Da...Blake Regalia
 
Spatial Data, KML, and the University Web
Spatial Data, KML, and the University WebSpatial Data, KML, and the University Web
Spatial Data, KML, and the University WebGlennon Alan
 
Where20 2008 Ruby Tutorial
Where20 2008 Ruby TutorialWhere20 2008 Ruby Tutorial
Where20 2008 Ruby TutorialShoaib Burq
 
Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...
Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...
Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...Stephane Fellah
 
NGSI: Geoqueries & Carto integration
NGSI: Geoqueries & Carto integrationNGSI: Geoqueries & Carto integration
NGSI: Geoqueries & Carto integrationFIWARE
 
CHUG_presentation_Hope
CHUG_presentation_HopeCHUG_presentation_Hope
CHUG_presentation_HopeLara Juliusson
 
The National Digital Stewardship Residency at PBS
The National Digital Stewardship Residency at PBSThe National Digital Stewardship Residency at PBS
The National Digital Stewardship Residency at PBSsquaredsong
 
Mblwhoil2010 Heidorn
Mblwhoil2010 HeidornMblwhoil2010 Heidorn
Mblwhoil2010 HeidornBryan Heidorn
 
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...Craig Knoblock
 
Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...
Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...
Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...NSW Environment and Planning
 
Hacking up location aware apps
Hacking up location aware appsHacking up location aware apps
Hacking up location aware appsAnshu Prateek
 
IEEE IRI 2016 lucene geo gazetteer
IEEE IRI 2016 lucene geo gazetteerIEEE IRI 2016 lucene geo gazetteer
IEEE IRI 2016 lucene geo gazetteerMadhav Sharan
 
OSCON july 2011
OSCON july 2011OSCON july 2011
OSCON july 2011chelm
 
Integrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsIntegrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsCommand Prompt., Inc
 

Similaire à GeoCO GeoJSON & GeoLocate (20)

GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...
GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...
GNIS-LD: Serving and Visualizing the Geographic Names Information System Gaze...
 
Library of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservationLibrary of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservation
 
Toward Next Generation of Gazetteer: Utilizing GeoSPARQL For Developing Link...
Toward Next Generation of Gazetteer:  Utilizing GeoSPARQL For Developing Link...Toward Next Generation of Gazetteer:  Utilizing GeoSPARQL For Developing Link...
Toward Next Generation of Gazetteer: Utilizing GeoSPARQL For Developing Link...
 
Revisiting the Representation of and Need for Raw Geometries on the Linked Da...
Revisiting the Representation of and Need for Raw Geometries on the Linked Da...Revisiting the Representation of and Need for Raw Geometries on the Linked Da...
Revisiting the Representation of and Need for Raw Geometries on the Linked Da...
 
Spatial Data, KML, and the University Web
Spatial Data, KML, and the University WebSpatial Data, KML, and the University Web
Spatial Data, KML, and the University Web
 
Where20 2008 Ruby Tutorial
Where20 2008 Ruby TutorialWhere20 2008 Ruby Tutorial
Where20 2008 Ruby Tutorial
 
Intro To GeoJSON
Intro To GeoJSONIntro To GeoJSON
Intro To GeoJSON
 
Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...
Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...
Constructing Semantic Gazetteers: Managing GeoSpatial Vocabularies Using Open...
 
NGSI: Geoqueries & Carto integration
NGSI: Geoqueries & Carto integrationNGSI: Geoqueries & Carto integration
NGSI: Geoqueries & Carto integration
 
CHUG_presentation_Hope
CHUG_presentation_HopeCHUG_presentation_Hope
CHUG_presentation_Hope
 
The National Digital Stewardship Residency at PBS
The National Digital Stewardship Residency at PBSThe National Digital Stewardship Residency at PBS
The National Digital Stewardship Residency at PBS
 
Mblwhoil2010 Heidorn
Mblwhoil2010 HeidornMblwhoil2010 Heidorn
Mblwhoil2010 Heidorn
 
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
 
Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...
Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...
Exploration in the House 2015: NSW Seamless Geology Project: Progress to date...
 
Hacking up location aware apps
Hacking up location aware appsHacking up location aware apps
Hacking up location aware apps
 
IEEE IRI 2016 lucene geo gazetteer
IEEE IRI 2016 lucene geo gazetteerIEEE IRI 2016 lucene geo gazetteer
IEEE IRI 2016 lucene geo gazetteer
 
July 29-1050-Stephen Roecker
July 29-1050-Stephen RoeckerJuly 29-1050-Stephen Roecker
July 29-1050-Stephen Roecker
 
OSCON july 2011
OSCON july 2011OSCON july 2011
OSCON july 2011
 
Lsu alts 07.19.12
Lsu alts 07.19.12 Lsu alts 07.19.12
Lsu alts 07.19.12
 
Integrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsIntegrating PostGIS in Web Applications
Integrating PostGIS in Web Applications
 

Plus de Mike Giddens

SilverBiology DROCG
SilverBiology DROCGSilverBiology DROCG
SilverBiology DROCGMike Giddens
 
Small Herbaria Michigan - SilverCollection
Small Herbaria Michigan - SilverCollectionSmall Herbaria Michigan - SilverCollection
Small Herbaria Michigan - SilverCollectionMike Giddens
 
Geo CO - RTD Denver
Geo CO - RTD DenverGeo CO - RTD Denver
Geo CO - RTD DenverMike Giddens
 
GeoCO Denver Crime Presentation
GeoCO Denver Crime PresentationGeoCO Denver Crime Presentation
GeoCO Denver Crime PresentationMike Giddens
 
iDigBio Presentation - Botany 2012
iDigBio Presentation - Botany 2012iDigBio Presentation - Botany 2012
iDigBio Presentation - Botany 2012Mike Giddens
 

Plus de Mike Giddens (6)

SilverBiology DROCG
SilverBiology DROCGSilverBiology DROCG
SilverBiology DROCG
 
Small Herbaria Michigan - SilverCollection
Small Herbaria Michigan - SilverCollectionSmall Herbaria Michigan - SilverCollection
Small Herbaria Michigan - SilverCollection
 
HelpingScience
HelpingScienceHelpingScience
HelpingScience
 
Geo CO - RTD Denver
Geo CO - RTD DenverGeo CO - RTD Denver
Geo CO - RTD Denver
 
GeoCO Denver Crime Presentation
GeoCO Denver Crime PresentationGeoCO Denver Crime Presentation
GeoCO Denver Crime Presentation
 
iDigBio Presentation - Botany 2012
iDigBio Presentation - Botany 2012iDigBio Presentation - Botany 2012
iDigBio Presentation - Botany 2012
 

Dernier

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Dernier (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

GeoCO GeoJSON & GeoLocate

  • 2. Key Points • Introduce GeoJSON • Talk about GeoJSON Libs and Examples • Introduce GeoLocate • Talk about GeoLocate Libs and Examples
  • 3. GeoJSON • A format for encoding a variety of geographic data structures. • A GeoJSON object may represent a geometry, a feature, or a collection of features. • GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. • Features in GeoJSON contain a geometry object and additional properties, and a feature collection represents a list of features. http://www.geojson.org/
  • 4. PostGIS • Since version 1.3.4 Getting Data Out • SELECT ST_AsGeoJSON(the_geom) FROM table Putting Data In • INSERT INTO table (the_geom) VALUES ( ST_SetSRID( ST_GeomFromGeoJSON('{"type":"Point","coordinates":[-104.983718,39.760808]}') ,4326 ) ) http://postgis.refractions.net/documentation/manual-2.0/ST_GeomFromGeoJSON.html http://postgis.refractions.net/documentation/manual-2.0/ST_AsGeoJSON.html
  • 5. PostGIS PostgresSQL 9.2 – New JSON Datatype • http://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.2#JSON_datatype FeatureCollection • SELECT row_to_json(fc) FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features FROM (SELECT 'Feature' As type , ST_AsGeoJSON(lg.the_geom)::json As geometry , row_to_json((SELECT l FROM (SELECT id, name) As l )) As properties FROM locations As lg ) As f ) As fc; Currently CartoDB is on version PostgreSQL 9.1.2 but they do support GeoJSON output format. See http://developers.cartodb.com/documentation/cartodb-apis.html http://www.postgresonline.com/journal/archives/267-Creating-GeoJSON-Feature-Collections-with-JSON- and-PostGIS-functions.html
  • 6. Using GeoJSON with Google Maps • Example: http://jsfiddle.net/x3pCk/8/ • Library: https://github.com/JasonSanford/GeoJSON-to-Google-Maps
  • 7. Using GeoJSON with Leaflet • http://leaflet.cloudmade.com/examples/geojson.html • http://leaflet.cloudmade.com/reference.html#geojson
  • 8. Using GeoJSON with OpenLayers • http://docs.openlayers.org/library/spherical_mercator.html • http://openlayers.org/dev/examples/vector-formats.html var geojson = new OpenLayers.Layer.GML("GeoJSON", "geo.json", { projection: new OpenLayers.Projection("EPSG:4326") , format: OpenLayers.Format.GeoJSON }); map.addLayer(geojson);
  • 9. In February of 2002, Dr. Bart and Nelson Rios received funding from the U.S. National Science foundation to develop GeoLocate to facilitate georeferencing of natural history collections data, a tool for comprehensive automated georeferencing of North American locality descriptions. Ongoing development involves expanding coverage to the entire world, multi-lingual support, user-defined pattern recognition, and collaborative georeferencing. • Developed by Tulane University • Uses gazetteers, streams, rivers, roads, landmarks, geonames data set • Open Street Maps data coming in the near future • Uses GeoJSON for its RESTful responses • API: http://www.museum.tulane.edu/webservices/geolocatesvcv2/glcwrap.aspx • Ref: http://www.museum.tulane.edu/webservices/geolocatesvc/geolocatesvc.asmx http://www.museum.tulane.edu/geolocate/
  • 10. Example Strings Good vs Bad • http://mvz.berkeley.edu/Locality_Field_Recording_examples.html State County Locality Alabama Russell Adams Branch, 3.0 road miles WSW junction County Highway 32 and Rt. 80 on 32, 4.75 air miles WSW Crawford, (T17N, R28E, Sec. 32) Louisiana East Feliciana Amite R. at LA 10 crossing, 4 mi. W of Darlington on LA Hwy 10 Alabama Lee Uchee Cr., trib.of Chattahoochee R., 0.7 mi. E of Marvyn Alabama Russell Trib. of Uchee Cr., 3.1 mi. E of Marvyn Alabama Russell Trib. of Little Uchee Cr., 0.9 mi. E of Crawford on Rt.80 • Guide to Best Practices for Georeferencing http://www.gbif.org/orc/?doc_id=1288
  • 11. Sample Request Request • http://www.museum.tulane.edu/webservices/geolocatesvcv2/glcwrap.aspx?locality=E shore of Bolinas Lagoon, 3.1 mi NW via Hwy. 1 from intersection of Hwy. 1 and Calle del Arroyo in Stinson Beach (town), Marin Co., Calif.&country=USA&state=CA&county=marin&language=0&enableH2O=true&enableHwy=true&r estrictToLowestAdm=false&enableUncert=true&doPoly=true&displacePoly=false&fmt=geojson o locality=E shore of Bolinas Lagoon, 3.1 mi NW via Hwy. 1 from intersection of Hwy. 1 and Calle del Arroyo in Stinson Beach (town), Marin Co., Calif. o country=USA o state=CA o county=marin o language=0 o enableH2O=true o enableHwy=true o restrictToLowestAdm=false o enableUncert=true o doPoly=true o displacePoly=false o fmt=geojson
  • 12. GeoJSON Libs for Google & Leaflet Project Repository • http://code.google.com/p/geolocate-libs/ • Google Map Example: http://www.silverbiology.com/clients/geolocate/geolocate-gmapsv3/example.html • Leaflet Example: http://www.silverbiology.com/clients/geolocate/geolocate-leaflet/example.html