We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Jsonix: Talking to OGC Web Services in JSON

00:00

Formal Metadata

Title
Jsonix: Talking to OGC Web Services in JSON
Title of Series
Number of Parts
183
Author
License
CC Attribution - NonCommercial - ShareAlike 3.0 Germany:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this
Identifiers
Publisher
Release Date
Language
Producer
Production Year2015
Production PlaceSeoul, South Korea

Content Metadata

Subject Area
Genre
Abstract
Can you talk to OGC Web Services in JSON instead of XML? You can - with Jsonix, a powerful JavaScript tool for XML - JSON conversion. JSON has probably already replaced XML as a "lingua franca". JSON is much lighter and easier to use than XML, especially in JavaScript-based web apps. In the context of GIS, web mapping is dominated by JavaScript libraries like OpenLayers and Leaflet, which speak JSON natively. But what about the standards? Open Geospatial Consortium defines more than 50 specifications with more than 100 individual versions. Technically almost all of them are XML-based and defined by XML schemas. These are de jure and de facto standards, widely used and well supported. So you still need XML processing in JS web mapping apps. Processing XML is no rocket science, but it's seldom a pleasure to implement. The OL3 KML parser is about 2.5KLoc of dense XML parsing. Even a very simple WMS GetCapabilities format is almost 1 KLOC. From this code around 90% is pure XML parsing and only 10% is the processing of the payload. Would not it be nice if we could talk to the OGC Web Services directly in JSON? So that the developers could focus on the 10%, the payload processing, and cut off the 90% (XML handling) of the effort. Jsonix is an open source library for XML - JS conversion which makes it just possible. With Jsonix you can take an XML Schema and generate XML - JS mappings. These mappings allow you to parse XML in the original schema and get your data in pretty JSON. It also works in the opposite direction: you can serialize JSON in XML, which would correspond to the original XML Schema. What makes Jsonix unique is that it is type and structure-safe. On the JSON side, you will get types and structures exactly as they are defined in the original XML Schema. For instance, xs:decimal is converted into a number in number in JSON, repeatable elements are represented by arrays etc. You just need the corresponding mapping. You can generate Jsonix mappings on your own or use one of the pre-generated mappings. The (unofficial) OGC Schemas Project compiles and provides mappings for many of the popular OGC schemas (OWS, WMS, WFS, CSW, SLD and many more). This presentation gives an overview of Jsonix demonstrates its usage by a number of examples.
126
Web servicePhysical systemResonanceMiniDiscOpen sourceDeutscher FilmpreisTexture mappingGeometryPoint (geometry)Coordinate systemStandard deviationProduct (business)Computer fileRevision controlTensorServer (computing)Client (computing)IcosahedronTelecommunicationMobile appLibrary (computing)Data conversionWeb browserType theoryBinary fileSpacetimeParsingParsingContext awarenessLink (knot theory)Uniform resource locatorFunction (mathematics)CodeString (computer science)File formatData typeElement (mathematics)Exception handlingData structureOrder (biology)SineComputer clusterMoment (mathematics)Form (programming)Multiplication signInheritance (object-oriented programming)Semiconductor memoryQuicksortMereologyTheoryFamilyXMLComputer animation
CodeData structureRevision controlNumberBoolean algebraString (computer science)Exception handlingUsabilityType theoryTexture mappingElement (mathematics)Attribute grammarQuery languageData conversionComputer programImperative programmingJava appletLibrary catalogNumbering schemeCompilerCollisionComplex (psychology)Error messagePatch (Unix)Social classOpen sourceCompilerDigital filterLibrary (computing)Scalable Coherent InterfaceProcess (computing)Mobile appMathematicsTheoryFamilyRule of inferenceMultiplication signInheritance (object-oriented programming)Resultant
Execution unitLecture/ConferenceMeeting/Interview
Arithmetic meanMeeting/Interview
Lecture/Conference
8 (number)Lecture/ConferenceMeeting/Interview
Meeting/InterviewLecture/Conference
Lecture/ConferenceMeeting/Interview
Meeting/Interview
Physical systemWeb serviceConvex hullComputer animation
Computer animation
Transcript: English(auto-generated)
in the world of our society. So I am very proud of myself, and also to celebrate a moment when I first met my grandparents
and I wanted to share some of my feelings and why I am very proud of myself. So I'm proud of myself, and I'm very proud of myself. I want to thank our friends at the last 2008 when we first met in the first year. And also, I want to thank the people
I think this is a very important moment
and I hope that we can do that here too.