[mapguide-users] FDO Provider for Postgis ERROR
Jackie Ng
jumpinjackie at gmail.com
Wed Apr 22 07:20:02 EDT 2009
What does the XML for the feature source look like? (Edit the resource as xml
in Maestro, or use "GetResourceContent" in the mapagent)
- Jackie
nasp wrote:
>
> Thank you very much for your answer.
>
> That is what I got from Mapagent:
>
> Library://POSTGIS/postgisDB.FeatureSource 2 Administrator
> 2009-04-17T08:25:15Z 2009-04-17T08:25:15Z true Everyone r,w
>
> So, Mapagent returned no XML. Probably the problem is the Postgis
> provider, but how can I solve it?
> When I test DataConnection with Maestro, I got "Provider reported no
> errors" but in the error log (when I try to create a layer on that data
> connection) I find "Error: Cannot establish connection.".
> Why?
>
> Naspi
>
>
>
> This is what I have in mapguide error log:
> ---------------------------------
> Error: Cannot establish connection.
> StackTrace:
> - MgFeatureServiceHandler.ProcessOperation line 83 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
> - MgOpDescribeSchemaAsXml.Execute line 105 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\OpDescribeSchemaAsXml.cpp
> - MgServerDescribeSchema.DescribeSchemaAsXml line 607 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp
> - MgServerDescribeSchema.DescribeSchema line 564 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp
> - MgServerDescribeSchema.ExecuteDescribeSchema line 176 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp
> - MgServerDescribeSchema::ExecuteDescribeSchema() line 173 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp
> Cannot establish connection.
>
>
>
>
>
>
>
> Jackie Ng wrote:
>>
>> Go to the mapagent interface:
>>
>> http://yourmapguideserver:port/mapguide/mapagent/index.html
>>
>> Click "Feature" under "Services API"
>>
>> Click "GetSchemas"
>>
>> Enter the resource id of the feature source and click "Submit"
>>
>> If you get xml content, then click "DescribeSchema" and enter the same
>> resource id and enter the name of the schema that was returned by
>> GetSchemas, and click "Submit"
>>
>> If you get xml content here, then there must be a problem somewhere with
>> Maestro because the mapagent (that Maestro is talking to) is reporting
>> everything as working fine.
>>
>> If you didn't get any xml content with "GetSchemas" or "DescribeSchema"
>> then something is wrong on the PostGIS provider side.
>>
>> - Jackie
>>
>>
>> nasp wrote:
>>>
>>> Hi,
>>> I successfully installe PostGre 8.3.4 with Postgis 1.3.5 on windows
>>> Vista. I also have Mapguide 2.0.2.
>>> I created a new data connection with Mapguide Maestro that refers to a
>>> postgis database. The database has 1 table with 1 colum of type
>>> geometry.
>>> When I do "Test Connection" with Maestro, I get
>>> "The povider reported non errors"
>>>
>>> Then I created a layer based on that connection and I got the message:
>>>
>>> Failed to get schema from datasource.[..]
>>> The remote server returned an error: (559) MgConnectionFailedException.:
>>> Cannot Establish a connection.....ExecuteDescribeSchema.
>>>
>>> If I try to connect to database via OGR Provider-Postgis and It works
>>> fine.
>>>
>>> Could someone help me, please?
>>>
>>> Thank you in advance.
>>>
>>> Naspi
>>>
>>
>>
>
>
--
View this message in context: http://n2.nabble.com/FDO-Provider-for-Postgis-ERROR-tp2674319p2675475.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list