<p dir="ltr">Once again, Thanks Jackie!<br>
Thought I had read the schema changed the coordsys and wrote the schema back to the runtime map once in my old java coldfusion app. I might be confusing changing buffer layer coordsys</p>
<div class="gmail_quote">On Oct 29, 2015 7:27 PM, "Jackie Ng" <<a href="mailto:jumpinjackie@gmail.com">jumpinjackie@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The coordinate system of a map is always immutable. Nothing can be done about<br>
this.<br>
<br>
To create a feature source, do a POST to<br>
<br>
/rest/library/:resourcePath.FeatureSource/json<br>
<br>
OR<br>
<br>
/rest/session/:sessionId/:resName.FeatureSource/json<br>
<br>
And provide the JSON payload describing the feature source to create. As to<br>
the structure of the JSON payload, I don't have a documented reference on<br>
hand.<br>
<br>
You could have a look at this method<br>
<br>
<a href="https://github.com/jumpinjackie/mapguide-rest/blob/7fb3021b05afa0a0cf6cd4a108d469f56feb44bb/app/controller/featureservicecontroller.php#L348" rel="noreferrer" target="_blank">https://github.com/jumpinjackie/mapguide-rest/blob/7fb3021b05afa0a0cf6cd4a108d469f56feb44bb/app/controller/featureservicecontroller.php#L348</a><br>
<br>
And see what properties are being read from $json and infer the structure<br>
from there.<br>
<br>
- Jackie<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Can-Rest-be-used-to-Change-a-Session-Map-Coord-System-or-Make-a-new-Buffer-layer-tp5233400p5233446.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Can-Rest-be-used-to-Change-a-Session-Map-Coord-System-or-Make-a-new-Buffer-layer-tp5233400p5233446.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></blockquote></div>