Eventually it works! The map can be generated, but it is only support the feature type which is the polygon type! Is it true? Once I used the point feature, the message "Failed to retrieve message for "MgInvalidArgumentException". [SETVIEWSCALE] = "0" Failed to retrieve message for "MgValueCannotBeLessThanOrEqualToZero"." will prompt.
I don't know if you noticed that GeoRest actually generate PNG/JPEG images slowly. It took about 30 secs to generate every PNG images in my case.
Therefore, you will not see the images showed up properly on your GeoRest many/single template pages.
In my opinion, you can probably use C# or other programming languages to create a small GeoRest images pre-geneartion application to generate all the images that you need.
The code will be very similar as following:
int start = Int32.Parse(StarttextBox.Text);
int end = Int32.Parse(EndtextBox.Text);
for (int i = start; i <= end; i++)
string sourceUrl = @"http://localhost/rest/data/test/" + i.ToString() + ".png";
string localPath = @"C:\inetpub\wwwroot\test\png\" + i.ToString() + ".png";
HttpWebRequest imageRequest = (HttpWebRequest)WebRequest.Create(sourceUrl);
WebResponse imageResponse = imageRequest.GetResponse();
Stream responseStream = imageResponse.GetResponseStream();
using (BinaryReader br = new BinaryReader(responseStream))
imageBytes = br.ReadBytes(500000);
FileStream fs = new FileStream(localPath, FileMode.Create);
BinaryWriter bw = new BinaryWriter(fs);
Hope that will help you
Before anybody gets too excited, mapguide-rest is not production-ready yet.
There's still some security hardening to be done before I can safely say that you can put this to production use.
Sure, download the current release to have a play around and see what it can do, but I strongly discourage production deployment at this point in time, especially on public-facing MapGuide/AIMS installations.
Is there someone try to use the post/ put of georest? I want to update/ create a new entries for the specific SDF connection. How can I generate the SHPGEOM from the fusion viewer?
POLYGON ((-87.750602148149582 43.772512943108723, -87.750820980626941 43.772509600594994,
-87.751112034446564 43.772505154303111, -87.751191267124568 43.772701180970984, -87.750821769925366
43.772706826945878, -87.750681379906538 43.77270897188734, -87.750664555803112 43.772667347110961,
Check out the classic GeoREST (Comes with AIMS) how to put post and get data to a SDF or SHP.
He is my presentation at Autodesk University.