[mapguide-users] Postgis/mapguide

tmerz trishmerz at gmail.com
Fri Feb 6 14:08:29 EST 2009




zspitzer wrote:
> 
> Try using Maestro or MapGuide Studio, Web studio is more a proof of
> concept
> and has issues.... probably should be removed from the distribution IHMO
> 
> z
> 
> Thanks for the reply.  I am currently using Maestro.
>  
> I have added postGIS as a data connection, and have successfully tested
> the connection with no errors.
> 
> Next, I created a new layer and attempted to add my postGIS as the
> FeatureResouce.  Am getting the following error:  
> 
> Failed to read schema from data source.
> The operation gave the error message:  The remote server returned an
> error:  (559)  MgConnectionFailedException.:  Cannot establish connection.
> Exception occurred in method
> MgServerDescribeSchema::ExecuteDescribeSchema() at line 173 in file
> D:\build\mapguide_open_souce_v2.0\build_30.11\mgdev\server\services\feature\ServerDescribeSchema.cpp
> 
> 
> Am I going about this the wrong way?  Do I need to write a PHP script to
> establish the postGIS DB connection?  
> 
> I am new to MGOS and would appreciate any feedback in regards to
> connecting postGIS data and MGOS.
> 
> Thanks!
> 
> 
> On Sat, Jan 31, 2009 at 8:22 AM, tmerz <trishmerz at gmail.com> wrote:
>>
>> Hi there,
>>
>> I've found many of the posting regarding connecting PostGIS and MGOS
>> extremely useful.  I have managed to create a datasource, point it to the
>> PostGIS database, and no errors are reported when testing the connection.
>> GREAT!
>>
>> However...  Now, I am trying to create a map that will allow me to
>> display
>> my postGIS data.  I have created a new layer in MGOS Web Studio and
>> pointed
>> the layer to my postGIS datasource (as suggested in step 5-6).
>>
>> At this point, "Step 7 Select the table to use", I am not able to select
>> any
>> tables.  I am attempting to select a feature source from the drop down
>> list,
>> but it is empty.  Should my PostGIS tables show up at this point?
>>
>> Any feedback regarding displaying PostGIS data after establishing a
>> connection would be greatly appreciated!
>>
>> TMerz
>>
>>
>>
>>> 1. Create a datasource
>> How does one create a datasource using WebStudio or can some please post
>> a
>> working example of a datasource.
>>
>> On 13/09/2007, Kenneth, GEOGRAF A/S <ks at geograf.dk> wrote:
>>>
>>>  If you are able to connect to the datasource, there should be no
>>> problem
>>> displaying it.
>>>
>>> These are the steps to follow:
>>> 1. Create a datasource
>>> 2. Point it to the PostGIS database
>>> 3. Click "Test connection"
>>> 4. When it works, save the datasource.
>>> 5. Create a new layer
>>> 6. Point the layer to the datasource.
>>> 7. Select the table to use.
>>> 8. Style the point, line and area to your pleasing.
>>> 9. Save the layer.
>>> 10. Create a mapdefinition.
>>> 11. Select the correct projection for the data.
>>> 12. Add the layer to the map, make sure you have "Layer is initially
>>> visble in the map" checked.
>>> 13. Save the map.
>>> 14. Create a new WebLayout.
>>> 15. Select the map.
>>> 16. Save the WebLayout.
>>>
>>> After item 7, you should be able to preview your data, using the
>>> "Preview"
>>> feature.
>>> Item 8 is where you could set up filters and the like.
>>>
>>> You can repeat item 12, if you have many layers.
>>>
>>> If the above does not help, try to explain where it goes wrong.
>>>
>>> Regards, Kenneth, GEOGRAF A/S
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Postgis-mapguide-tp1812261p2247155.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
> 
> 
> 
> -- 
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Postgis-mapguide-tp1812261p2285941.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list