Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Contributor
ericsn.tang
Posts: 15
Registered: ‎01-05-2014
Message 11 of 17 (255 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-29-2014 08:10 PM in reply to: gluckett

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.

Active Member
reno.sun.gis
Posts: 8
Registered: ‎05-24-2013
Message 12 of 17 (191 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

03-31-2014 03:11 PM in reply to: gluckett

Hi :smileyhappy:

 

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";
byte[] imageBytes;
HttpWebRequest imageRequest = (HttpWebRequest)WebRequest.Create(sourceUrl);
WebResponse imageResponse = imageRequest.GetResponse();

Stream responseStream = imageResponse.GetResponseStream();

using (BinaryReader br = new BinaryReader(responseStream))
{
imageBytes = br.ReadBytes(500000);
br.Close();
}
responseStream.Close();
imageResponse.Close();

FileStream fs = new FileStream(localPath, FileMode.Create);
BinaryWriter bw = new BinaryWriter(fs);
try
{
bw.Write(imageBytes);
}
finally
{
fs.Close();
bw.Close();
}

 

Hope that will help you :smileyhappy:

Valued Mentor
gluckett
Posts: 374
Registered: ‎10-10-2003
Message 13 of 17 (173 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

04-04-2014 09:20 AM in reply to: reno.sun.gis
For those stuggling with the GeoRest bundled with AIMS, I also would recommend the new mapguide-rest project started by Jackie Ng.
It is dead easy to set up and works really quickly.

It uses AIMS 100% (sorry no direct connect to FDO) - but it is very slick and faster than GeoREST.

http://themapguyde.blogspot.ca/2014/02/introducing-mapguide-rest-new-rest.html

https://github.com/jumpinjackie/mapguide-rest
Valued Mentor
jackie.ng
Posts: 275
Registered: ‎10-06-2008
Message 14 of 17 (160 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

04-06-2014 06:14 PM in reply to: ericsn.tang

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.

 

- Jackie

Valued Mentor
gluckett
Posts: 374
Registered: ‎10-10-2003
Message 15 of 17 (142 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

04-10-2014 06:19 AM in reply to: jackie.ng
Still, your prototype ("Alpha") is very promising and slick. We should all keep an eye on the mapguide-rest project.
Contributor
ericsn.tang
Posts: 15
Registered: ‎01-05-2014
Message 16 of 17 (88 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

06-04-2014 12:10 AM in reply to: gluckett

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? :smileyhappy: 

 

<Name>SHPGEOM</Name>
<Value>
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,
-87.750602148149582 43.772512943108723))

Valued Mentor
gluckett
Posts: 374
Registered: ‎10-10-2003
Message 17 of 17 (85 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

06-04-2014 06:26 AM in reply to: ericsn.tang

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.

 

http://au.autodesk.com/au-online/classes-on-demand/class-catalog/2013/infrastructure-map-server/gs15...

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.