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

c# - Validate object ID from GET to POST -

php - Find a regex to take part of Email -

javascript - Function overwritting -