Including images in GeoJSON

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Is there a correct way of including links to images within geoJSON?
This is the FeatureCollection I have for an object on my site:
"type": "FeatureCollection",
"features": [
"id": 1234,
"type": "Feature",
"geometry":
"type": "Point",
"coordinates": [
-0.322825,
51.065361
]
,
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park"
]
I also want to include the links to multiple images. Is it OK to add another property? For example:
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park",
"media": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
Or is there a better / more standard way of doing it?
geojson
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
Is there a correct way of including links to images within geoJSON?
This is the FeatureCollection I have for an object on my site:
"type": "FeatureCollection",
"features": [
"id": 1234,
"type": "Feature",
"geometry":
"type": "Point",
"coordinates": [
-0.322825,
51.065361
]
,
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park"
]
I also want to include the links to multiple images. Is it OK to add another property? For example:
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park",
"media": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
Or is there a better / more standard way of doing it?
geojson
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Is there a correct way of including links to images within geoJSON?
This is the FeatureCollection I have for an object on my site:
"type": "FeatureCollection",
"features": [
"id": 1234,
"type": "Feature",
"geometry":
"type": "Point",
"coordinates": [
-0.322825,
51.065361
]
,
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park"
]
I also want to include the links to multiple images. Is it OK to add another property? For example:
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park",
"media": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
Or is there a better / more standard way of doing it?
geojson
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is there a correct way of including links to images within geoJSON?
This is the FeatureCollection I have for an object on my site:
"type": "FeatureCollection",
"features": [
"id": 1234,
"type": "Feature",
"geometry":
"type": "Point",
"coordinates": [
-0.322825,
51.065361
]
,
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park"
]
I also want to include the links to multiple images. Is it OK to add another property? For example:
"properties":
"popupContent": "In loving memory ofrnGordon Wisemanrn15.4.30 ~ 11.8.06rnWho spent many happy hoursrnin this park",
"media": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
Or is there a better / more standard way of doing it?
geojson
geojson
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 hour ago
Terence Eden
1113
1113
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Terence Eden is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
AFAIK GeoJSON is standardized by the Internet Engineering Task Force (IETF), and the standard mainly defines the implementation of geographic objects.
The properties are based on and extended from the key: value structure of JSON itself; you can populate it with anything that fits this concept.
The exact contents should be tailored to the parsing capabilities of your target software; it's likely some frameworks/systems can automatically parse image URLs from a dedicated property.
For interchangeability, I would probably stick to the standard properties: key: value, just like you did.
In many applications, properties are treated as attributes/field/columns...you can add as many as the target system allows. However, I would avoid furrther nesting of property objects.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
AFAIK GeoJSON is standardized by the Internet Engineering Task Force (IETF), and the standard mainly defines the implementation of geographic objects.
The properties are based on and extended from the key: value structure of JSON itself; you can populate it with anything that fits this concept.
The exact contents should be tailored to the parsing capabilities of your target software; it's likely some frameworks/systems can automatically parse image URLs from a dedicated property.
For interchangeability, I would probably stick to the standard properties: key: value, just like you did.
In many applications, properties are treated as attributes/field/columns...you can add as many as the target system allows. However, I would avoid furrther nesting of property objects.
add a comment |Â
up vote
2
down vote
AFAIK GeoJSON is standardized by the Internet Engineering Task Force (IETF), and the standard mainly defines the implementation of geographic objects.
The properties are based on and extended from the key: value structure of JSON itself; you can populate it with anything that fits this concept.
The exact contents should be tailored to the parsing capabilities of your target software; it's likely some frameworks/systems can automatically parse image URLs from a dedicated property.
For interchangeability, I would probably stick to the standard properties: key: value, just like you did.
In many applications, properties are treated as attributes/field/columns...you can add as many as the target system allows. However, I would avoid furrther nesting of property objects.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
AFAIK GeoJSON is standardized by the Internet Engineering Task Force (IETF), and the standard mainly defines the implementation of geographic objects.
The properties are based on and extended from the key: value structure of JSON itself; you can populate it with anything that fits this concept.
The exact contents should be tailored to the parsing capabilities of your target software; it's likely some frameworks/systems can automatically parse image URLs from a dedicated property.
For interchangeability, I would probably stick to the standard properties: key: value, just like you did.
In many applications, properties are treated as attributes/field/columns...you can add as many as the target system allows. However, I would avoid furrther nesting of property objects.
AFAIK GeoJSON is standardized by the Internet Engineering Task Force (IETF), and the standard mainly defines the implementation of geographic objects.
The properties are based on and extended from the key: value structure of JSON itself; you can populate it with anything that fits this concept.
The exact contents should be tailored to the parsing capabilities of your target software; it's likely some frameworks/systems can automatically parse image URLs from a dedicated property.
For interchangeability, I would probably stick to the standard properties: key: value, just like you did.
In many applications, properties are treated as attributes/field/columns...you can add as many as the target system allows. However, I would avoid furrther nesting of property objects.
answered 52 mins ago
ThingumaBob
4,5381222
4,5381222
add a comment |Â
add a comment |Â
Terence Eden is a new contributor. Be nice, and check out our Code of Conduct.
Terence Eden is a new contributor. Be nice, and check out our Code of Conduct.
Terence Eden is a new contributor. Be nice, and check out our Code of Conduct.
Terence Eden is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f298808%2fincluding-images-in-geojson%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
