Re: [mapserver-users] Mapserver 7.0.4 Join 1:M ouput in GML

2017-04-13 Thread pe_lord
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

[mapserver-users] Mapserver 7.0.4 Join 1:M ouput in GML

2017-04-10 Thread pe_lord
I would like to know if it is possible to ouput a 1:M join  -- join doc --
into a GML as suggested into
this page:  Template output
  

At this moment, I succeed with HTML template. Here one of my HTML template
retrieving content from many pg tables.
Example 1

  
Example 2

  

This question is linked ton an integration to Openlayers4 (  URL

 
)





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapserver-7-0-4-Join-1-M-ouput-in-GML-tp5316702.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