Good day,
i am trying to use the geo rest functionality inside AIMS 2013, but i have little understanding about the process, the docs inside autodesk wiki say nothing about this.
but, inside the GeoREST folder in the installation of the web server extensions, there is an excutable, georesteasyconf, who i think could help me to publish data, but as soon as i try it i found this:
first of all, seems stuck with mapguide feature source and shapefile options.
second, once a source has been provided there is not use for the use of the browse button, so i had to insert the source manually (no big deal, to be honest)
the folder for conf is unavailable
and when i try to create the files , i got the error i can see here (image attached).
there is a way to use the geoREST capabilities inside AIMS? should i use this software or there is another way to do it?
i thank you for all your help.
Hi,
Download the files from following link:
https://code.google.com/archive/p/georest/downloads
Unzip EasyConf folder under the bin folder under your GeoRest folder.
However, it didn't do too much works for me. It only generated the restcfg.xml for me.
I will suggest you to learn the basic knowledge of GeoRest from the following link:
https://code.google.com/archive/p/georest/wikis
I always make my own templates for HTML, and KML.
I learned it through wikis, and through the samples templates of Sheboygan.
OR Give mapguide-rest a try.
It's more powerful than GeoRest in many ways. Especially, it can transfer you geographic data into different coordinates systems on the fly!
I am currently using both GeoRest and Mapguide-Rest working with AIMS 2014.
Also, if you use MapGuide Maestro to manage your AIMS, you may be benefited with the Rest Explore tool.
It easy to use to generate different representations such as XML, GeoJSON, CSV, Image, and Template.
Many configurations that you can manage through the Rest Explorer for mapguide-rest!
Hi,
Thanks for your reply!
But it doesn't seem te make any difference.
Seems like when using source type = mapguide, georest points to another Library directory than aims.
Is this configurable?
When trying to call the api I get the response message:
Failed to retrieve message for "MgConnectionFailedException". - REST_Request_Hello.Execute line 205 file c_RestHandler_Data.cpp - Execute_Get_Class_Feature line 1214 file c_RestHandler_Data.cpp - MgSite.Open line 121 file e:\build\2016\re_ims2016_53_1-4136726\ent\os\common\mapguidecommon\Services/Site.cpp - MgSite.Authenticate line 1374 file e:\build\2016\re_ims2016_53_1-4136726\ent\os\common\mapguidecommon\Services/Site.cpp - MgCommand.ExecuteCommand line 120 file e:\build\2016\re_ims2016_53_1-4136726\ent\os\common\mapguidecommon\Services/Command.cpp - MgServerConnection.Open line 103 file e:\build\2016\re_ims2016_53_1-4136726\ent\os\common\mapguidecommon\Services/ServerConnection.cpp
I cannot find the answer in the wikis, or did I miss something?
Hi,
I got one step further maybe.
I was able to generate restcfg.xml file from the GeoRestEasyConf.exe, but I still got an error when calling the api to my resource:
Undefined Resource! Unable to map URL to Resource. Check configuration file.
It's rather self explanatory, but still I feel I'm missing something 🙂
I need to know more details about the content of you restcfg.xml.
Also, did the demo page of the GeoRest even work?
It will looks like following page:
Hi @reno.sun.gis,
I'm not sure about the georestsamples page, did not test that.
But the helloworld and the sdf demo from that page are working.
The spatiallite demo and the sheboyganmap are not working.
I have no access to the server with my restcfg.xml now, I'll post it next week Monday.
Thx!
Hey reno,
I'm ben's coworker and I'm checking this issue out right now as well.
I ran the GeoRESTHttpServer executable thing and used a browser to go to the port it provided, but it's just giving empty responses according to Chrome. But when I go to /rest/hello it does return the expected response.
I attached the restcfg.xml that ben generated.
Here is one of my XML looks like:
<RestConfig>
<Data>
<Resource uripart="TestReport">
<Source type="MapGuide">
<Provider>OSGeo.SQLServer</Provider>
<FeatureSource>Library://Test/Rest/Test.FeatureSource</FeatureSource>
<FeatureClass>dbo:Test</FeatureClass>
</Source>
<Representation renderer="PNG8" pattern=".png">
<MapDefinition>Library://Test/Rest/Test.MapDefinition</MapDefinition>
<SelectionLayer>Test</SelectionLayer>
<DefaultZoomFactor>1.3</DefaultZoomFactor>
</Representation>
<Representation renderer="Template" pattern=".html" mimetype="text/html" >
<Templates section="TEST" prefix="TEST_">
<Many file="test_html_many.tpl" />
<Single file="test_html_single.tpl" />
<None file="test_html_none.tpl" />
<Error file="test_html_error.tpl" />
</Templates>
<Method name="GET" defaultcount="3" maxcount="500" />
</Representation>
<Representation renderer="Template" pattern=".kml" mimetype="application/vnd.google-earth.kml+xml" >
<Templates section="TEST" prefix="TEST_">
<Many file="test_kml_many.tpl" />
<Single file="test_kml_single.tpl" />
<None file="test_kml_none.tpl" />
<Error file="test_kml_error.tpl" />
</Templates>
<Method name="GET" defaultcount="10" maxcount="100" />
</Representation>
<Representation renderer="Template" pattern=".kmz" mimetype="application/vnd.google-earth.kmz" >
<Templates section="TEST" prefix="TEST_">
<Many file="test_kml_many.tpl" />
<Single file="test_kml_single.tpl" />
<None file="test_kml_none.tpl" />
<Error file="test_kml_error.tpl" />
</Templates>
<Method name="GET" defaultcount="10" maxcount="100" />
</Representation>
</Resource>
</Data>
</RestConfig>
Did you guys set up your GeoRest under IIS default folder www?
Did you set up a Application Pool for the GeoRest?
Please follow the steps on the following link:
https://code.google.com/archive/p/georest/wikis/Installation.wiki
Make sure you link to the html pages generated by GeoRest with correct paths.
For example:
http://SITENAME/rest/data/uripart/ID_NUMBER(primary key).html
http://SITENAME/rest/data/uripart/ID_NUMBER(primary key).kml
I didn't have following content under my config file:
Hi sun,
We finally figured it out. We did actually need the ServerIp and ServerPort fields, we had just inserted the wrong port!
Thanks for all your help!