Skip to content

Instantly share code, notes, and snippets.

@tschaub
Created November 11, 2010 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tschaub/673209 to your computer and use it in GitHub Desktop.
Save tschaub/673209 to your computer and use it in GitHub Desktop.
GeoJSON GetFeatureInfo Response Template
<#list features as feature>
{
"type": "Feature",
"geometry": null,
"properties": {
<#list feature.attributes as attribute>
<#if !attribute.isGeometry>
"${attribute.name}": "${attribute.value}"<#if attribute_has_next>,</#if>
</#if>
</#list>
}
}<#if feature_has_next>,</#if>
</#list>
{
"type": "FeatureCollection",
"features": [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment