I did'nt succed to overide the gml native template from Mapserver. Despite, I succeded in combining my join into a GEOJSON. The real problem to increment [shpxy] with correct option to format coordinates correctly. With my tries, i've seen that the trimlast option do not work properly.
Here how look my templates ==================================================================== Main template ==================================================================== // mapserver template { "type":"FeatureCollection", "crs":{ "type":"name", "properties":{ "name":"urn:ogc:def:crs:EPSG::3857" } }, "features":[ { "type":"Feature", "properties":{ "ID":"[ID]", [join_NAMEOFTHEJOIN] "Total":"[total]" # NEED to add something after the 1:M Join to manage my last , from my join content. }, "geometry":{ "type":"Polygon", "coordinates":[ [shpext format="[[$minx,$miny],[$maxx,$miny],[$maxx,$maxy],[$minx,$maxy],[$minx,$miny]]"] ] } } ] } ============================================= 1:M template join ============================================= //Mapserver Template "field1_[NAMEOFTHEJOIN_FIELD1]":"[NAMEOFTHEJOIN_FIELD1]", # I ADD NAMEOFTHEJOIN_FIELD1] after field1 or field2 because JSON dont manage identical keys. "field2_[NAMEOFTHEJOIN_FIELD1]":"[NAMEOFTHEJOIN_FIELD1]", -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-7-0-4-Join-1-M-ouput-in-GML-tp5316702p5317266.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users