serialization - Serializing a postGIS query to geojson -


i have query serialize geojson:

select article_title, pub_date, city, geom  article, location article.id = location.id; 

i can serialize geom field enough with:

select st_asgeojson(geom) location; 

and fields article with:

select row_to_json(t) from(select article_title, pub_date article) t; 

the problem can't find way serialize geojson both article , location fields. can me this? let me know if need more details. in advance!


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -