geojson

package
v0.0.0-...-9fb24d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CRSPropertiesUnion = graphql.NewUnion(graphql.UnionConfig{
	Name:        "GeoJSONCRSProperties",
	Description: "GeoJSON Coordinate Reference System (CRS) Properties",
	Types: []*graphql.Object{
		NamedCRSPropertiesObject,
		LinkedCRSPropertiesObject,
	},
	ResolveType: func(value interface{}, info graphql.ResolveInfo) *graphql.Object {
		if valueMap, ok := value.(map[string]interface{}); ok {
			if _, hasHref := valueMap["href"]; hasHref {
				return LinkedCRSPropertiesObject
			}
			if _, hasName := valueMap["name"]; hasName {
				return NamedCRSPropertiesObject
			}
		}
		return nil
	},
})
View Source
var CRSTypeEnum = graphql.NewEnum(graphql.EnumConfig{
	Name:        "GeoJSONCRSType",
	Description: "GeoJSON Coordinate Reference System (CRS) Types Enum",
	Values: graphql.EnumValueConfigMap{
		"name": &graphql.EnumValueConfig{
			Value: "name",
		},
		"link": &graphql.EnumValueConfig{
			Value: "link",
		},
	},
})
View Source
var CoordinateReferenceSystemObject = graphql.NewObject(graphql.ObjectConfig{
	Name:        "GeoJSONCoordinateReferenceSystem",
	Description: "GeoJSON Coordinate Reference System (CRS)",
	Fields: graphql.Fields{
		"type": &graphql.Field{
			Type: graphql.NewNonNull(CRSTypeEnum),
		},
		"properties": &graphql.Field{
			Type: graphql.NewNonNull(CRSPropertiesUnion),
		},
	},
})
View Source
var CoordinatesScalar *graphql.Scalar
View Source
var FeatureCollectionObject *graphql.Object
View Source
var FeatureObject *graphql.Object
View Source
var GeoJSONInterface *graphql.Interface
View Source
var GeometryCollectionObject *graphql.Object
View Source
var GeometryInterface *graphql.Interface
View Source
var LineStringObject *graphql.Object
View Source
var LinkedCRSPropertiesObject = graphql.NewObject(graphql.ObjectConfig{
	Name:        "GeoJSONLinkedCRSProperties",
	Description: "GeoJSON Linked Coordinate Reference System (CRS) Properties",
	Fields: graphql.Fields{
		"href": &graphql.Field{
			Type: graphql.NewNonNull(graphql.String),
		},
		"type": &graphql.Field{
			Type: graphql.String,
		},
	},
})
View Source
var MultiLineStringObject *graphql.Object
View Source
var MultiPointObject *graphql.Object
View Source
var MultiPolygonObject *graphql.Object
View Source
var NamedCRSPropertiesObject = graphql.NewObject(graphql.ObjectConfig{
	Name:        "GeoJSONNamedCRSProperties",
	Description: "GeoJSON Named Coordinate Reference System (CRS) Properties",
	Fields: graphql.Fields{
		"name": &graphql.Field{
			Type: graphql.NewNonNull(graphql.String),
		},
	},
})
View Source
var PointObject *graphql.Object
View Source
var PolygonObject *graphql.Object
View Source
var TypeEnum *graphql.Enum

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL