Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Valued Mentor
gluckett
Posts: 426
Registered: ‎10-10-2003
Message 1 of 17 (1,375 Views)
Accepted Solution

Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

1375 Views, 16 Replies
11-22-2011 02:56 PM

In the Preview stuff (technical term) - the GeoRest is installed.from the C:\Autodesk\Autodesk_Infrastructure_Map_Server_2012_English_Win_64bit\TechnologyPreview

 

I have it working great on IIS for direct connect (i.e. FDO Features) but when I connect to AIMS 2012 - I get "MgConnectionFailedException".

 

I know GeoRest is configured ok since it works with direct connect data (i.e. path to SDF or ConnectString to SQL Server).

 

I am testing with the config.xml that comes with the GeoRest and points to the sample dataset (installed).

<Resource uripart="propertymap">
<Source type="MapGuide">
<FeatureSource>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</FeatureSource>
<FeatureClass>SHP_Schema:smileytongue:arcels</FeatureClass>
</Source>

 

I know I have Library://Samples/Sheboygan/Data/Parcels.FeatureSource available.

 

Any tips?

 

gordon

 

Discovered the issue.  The ports changed with AIMS 2012.

 

Old connection

 

<Resourceuripart="property">
     
<Sourcetype="MapGuide">
     
<FeatureSource>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</FeatureSource>
     
<FeatureClass>SHP_Schema:Parcels</FeatureClass>
     
<ServerIp>192.168.0.33</ServerIp>
     
<ServerPort>2812</ServerPort>
     
</Source>
   
</Resource>
NOW WITH AIMS 2012 the server port is "2822"
<Resourceuripart="property">
     
<Sourcetype="MapGuide">
     
<FeatureSource>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</FeatureSource>
     
<FeatureClass>SHP_Schema:Parcels</FeatureClass>
     
<ServerIp>192.168.0.33</ServerIp>
     
<ServerPort>2822</ServerPort>
     
</Source>
   
</Resource>
Valued Mentor
gluckett
Posts: 426
Registered: ‎10-10-2003
Message 2 of 17 (1,334 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

12-11-2011 05:48 PM in reply to: gluckett

Discovered the issue.  The ports changed with AIMS 2012.

 

Old connection

 

<Resourceuripart="property">
     
<Sourcetype="MapGuide">
     
<FeatureSource>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</FeatureSource>
     
<FeatureClass>SHP_Schema:Parcels</FeatureClass>
     
<ServerIp>192.168.0.33</ServerIp>
     
<ServerPort>2812</ServerPort>
     
</Source>
   
</Resource>
NOW WITH AIMS 2012 the server port is "2822"
<Resourceuripart="property">
     
<Sourcetype="MapGuide">
     
<FeatureSource>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</FeatureSource>
     
<FeatureClass>SHP_Schema:Parcels</FeatureClass>
     
<ServerIp>192.168.0.33</ServerIp>
     
<ServerPort>2822</ServerPort>
     
</Source>
   
</Resource>
Contributor
ericsn.tang
Posts: 15
Registered: ‎01-05-2014
Message 3 of 17 (474 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-19-2014 10:02 PM in reply to: gluckett

Now I'm able to access the source type "mapguide" and use the example "Property" parameters via the url http://localhost/rest/data/property_/11530.html

The attribute were displayed without problem, but it can't to generate the map image!

 

 <tr>
            <td width="200">Image Representation</td>
            <td><a href="../www/Image/{{PROPERTY_Autogenerated_SDF_ID}}.png">{{PROPERTY_Autogenerated_SDF_ID}}.png</a></td>
 </tr> 

 

Anyone have idea? Thanks.

Valued Mentor
gluckett
Posts: 426
Registered: ‎10-10-2003
Message 4 of 17 (468 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-20-2014 06:41 AM in reply to: ericsn.tang

Make sure that line 83 "Image" is configured.

 

C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2014\www\GeoREST\conf\SheboyganMap\restcfg.xml

 

This uses the AIMS Sheboygan map to get the image.

http://localhost/rest/data/Image/11530.png

 

 

 

 

Contributor
ericsn.tang
Posts: 15
Registered: ‎01-05-2014
Message 5 of 17 (462 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-20-2014 06:52 PM in reply to: gluckett

Thanks.

I did changed the serverport. The error message "Failed to retrieve message for "MgConnectionFailedException"." is disappear, but the image cannot be generated properly! The webpage(http://127.0.0.1/rest/data/Image/1.png) is empty in IE7. I think the problem is the PNG image generation. :smileysad:

 

 

 

Active Member
DEVR1105
Posts: 8
Registered: ‎07-22-2011
Message 6 of 17 (448 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-23-2014 09:01 AM in reply to: ericsn.tang
Make sure you have the correct ServerIp and ServerPort for your AIMS install for that data in AIMS for the image.
Contributor
ericsn.tang
Posts: 15
Registered: ‎01-05-2014
Message 7 of 17 (443 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-23-2014 05:44 PM in reply to: DEVR1105
Thanks. I did tried to update the serverconfig, webconfig, restcfg files. Which file should I update for the image path setting? :smileyhappy:
Valued Mentor
gluckett
Posts: 426
Registered: ‎10-10-2003
Message 8 of 17 (435 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-24-2014 08:21 AM in reply to: ericsn.tang

The image component comes from the config file  

C:\Program

Files\Autodesk\Autodesk Infrastructure Web Server Extension

2014\www\GeoREST\conf\SheboyganMap\restcfg.xml

 

Around line 83

 

<Resource uripart="Image">
<Source type="MapGuide">
<FeatureSource>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</FeatureSource>
<FeatureClass>SHP_Schema:smileytongue:arcels</FeatureClass>
<ServerIp>127.0.0.1</ServerIp>
<ServerPort>2812</ServerPort>
</Source>

 

be sure that the Port is correct.  Check out your serverconfig.ini to ensure 2812 is correct...

 

 

 

Contributor
ericsn.tang
Posts: 15
Registered: ‎01-05-2014
Message 9 of 17 (414 Views)

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-29-2014 01:44 AM in reply to: gluckett

Thanks.

 

I think it seems that it is caused by the image path, because I tried to change the server ip or server port of the rectcfg file. The image box will show a cross symbol in IE browser, if the wrong port was used. The following screen capture shows the difference server port were used.

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

Re: Autodesk Infrastructure GeoREST Extension 2012 - 64BIT

01-29-2014 06:19 AM in reply to: ericsn.tang

So the MGP for Sheboygan was loaded on your AIMS server in the default folders? 

The PORT is correct?

 

In my class at AU, I use the defualt Autodesk installs and tweak the xml to ensure it is correctly installed.  

 

The "IMAGE" path requires that Sheboygan is available and that you are using AIMS (with IIS).

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.