Mapguide 3.1 WFS service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Mapguide 3.1 WFS service

Kajar
HI!

Does Mapguide 3.1 is able to provide WFS service?
I' tried to enable WFS service but wasn't able to see any feature layers.
I tried connect using AUTOCAD MAP 3d, Qgis. MAP 3d wasn't able to get even schema information, using Qgis I see schema but its not possible to get any features to map.
Does anyone can confirm that Mapguide WFS is working?

Kajar

Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Kajar
Really, no feedback at all?
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

RenoSun
This post was updated on .
In reply to this post by Kajar
I am still trying to figure out how to connect Mapguide 3.1 WFS properly.

These links might help...

http://osgeo-org.1560.x6.nabble.com/MapGuide-Maestro-connection-issue-td4989223.html

mapagent test page:
http://localhost/mapguide/mapagent/index.html

I was able to get following submits working:
GetCapabilities
DescribeFeatureType
GetFeature

I am not master of WFS, but I think the result looks good. I don't understand why QGIS/Map 3D cannot load following XML:

<wfs:FeatureCollection xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ns136065525="http://fdo.osgeo.org/schemas/feature/ns136065525" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">

<gml:featureMember>
<ns136065525:Parcels>
<ns136065525:Autogenerated_SDF_ID>1</ns136065525:Autogenerated_SDF_ID>
<ns136065525:NAME>CITY OF SHEBOYGAN</ns136065525:NAME>
<ns136065525:ID>628988</ns136065525:ID>
<ns136065525:RSTATE>WI</ns136065525:RSTATE>
<ns136065525:RYEAR>7777</ns136065525:RYEAR>
<ns136065525:GEOEXTRA>9101001</ns136065525:GEOEXTRA>
<ns136065525:RBLDGVC>0</ns136065525:RBLDGVC>
<ns136065525:RLDESCR1>UNPLATTED LAND</ns136065525:RLDESCR1>
<ns136065525:RLANDVC>0</ns136065525:RLANDVC>
<ns136065525:RTYPE>EXM</ns136065525:RTYPE>
<ns136065525:DETACHED_G>0</ns136065525:DETACHED_G>
<ns136065525:RACRE>14.25</ns136065525:RACRE>
<ns136065525:RLOT>IRREG</ns136065525:RLOT>
<ns136065525:RNAME>CITY OF SHEBOYGAN</ns136065525:RNAME>
<ns136065525:RLDESCR2>PART OF THE SW NW SEC 9</ns136065525:RLDESCR2>
<ns136065525:NO_UNITS>0</ns136065525:NO_UNITS>
<ns136065525:LAST_SALE>0</ns136065525:LAST_SALE>
<ns136065525:YRBUILT>0</ns136065525:YRBUILT>
<ns136065525:RES_BED>0</ns136065525:RES_BED>
<ns136065525:RES_FULL_B>0</ns136065525:RES_FULL_B>
<ns136065525:RPROPAD>3616 MUELLER RD</ns136065525:RPROPAD>
<ns136065525:RES_HALF_B>0</ns136065525:RES_HALF_B>
<ns136065525:KEYRLSEQ>628988</ns136065525:KEYRLSEQ>
<ns136065525:RLDESCR3>DESC AS: COM IN THE S LINE</ns136065525:RLDESCR3>
<ns136065525:ATTACHED_G>0</ns136065525:ATTACHED_G>
<ns136065525:RCITY>SHEBOYGAN</ns136065525:RCITY>
<ns136065525:RBILAD>828 CENTER AVE</ns136065525:RBILAD>
<ns136065525:SQFT>0</ns136065525:SQFT>
<ns136065525:RSQFT>620730</ns136065525:RSQFT>
<ns136065525:RZIP>53081</ns136065525:RZIP>
<ns136065525:RLDESCR4>OF SD SW NW 1383.2' W OF THE</ns136065525:RLDESCR4>
<ns136065525:GEOMAIN>1523</ns136065525:GEOMAIN>
<ns136065525:RES_TTL_RO>0</ns136065525:RES_TTL_RO>
<ns136065525:RPROCD>Y</ns136065525:RPROCD>
<ns136065525:RWARD>13</ns136065525:RWARD>
<ns136065525:SHPGEOM>
<gml:Polygon srsName="EPSG:4326">
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>
-87.755036,43.782782 -87.757203,43.782756 -87.757215,43.783088 -87.757469,43.783084 -87.757478,43.783318 -87.757743,43.783314 -87.757810,43.785109 -87.755129,43.785141 -87.755036,43.782782
</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</ns136065525:SHPGEOM>
</ns136065525:Parcels>
</gml:featureMember>
</wfs:FeatureCollection>

I got the same result like you with QGIS, and with Map 3D:
http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WFS&VERSION=1.1.0&FORMAT=text%2Fxml 







Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

RenoSun
This post was updated on .
In reply to this post by Kajar
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Kajar
In reply to this post by RenoSun
No luck for me, I tried to configure WFS service without port nr in mapguide site administrator.
Autocad MAP 3d not connecting at all when I dont add port nr. When adding port numbr then I can connect but  getting error when reading schema: There was a problem accessing the connection's schema information.
Insturction is about IIS server but I use Apache.
Anyone else have tried to create WFS service?
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

RenoSun
This post was updated on .
Hi Kajar,

Firstly, I think you should probably let people know what Environment you're using, so people can help you to find the right solution. I will think you don't need to use any port number in order to use the WFS service.

Are you not using Windows Server? or are you using Linux, CentOS, Ubuntu etc.?
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Kajar
My environment:
Windows Server 2016 64 bit
Mapguide 3.1
Apache webserver.

Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

RenoSun
Hi there,

Hope this may help you to find the solution...

First of all, did you restart the World Web Wide Publishing Service too?

What is the port your Apache web server is using in httpd.conf?

WFS service - AIMS using Apache webserver
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Kajar
Apache server is using port 8008.
Now I have configured wfs server myserverip:8008.
World Web Wide Publishing Service? This must be IIS stuff, this service is not enabled for my environment at all.


Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

RenoSun
This post was updated on .
Maybe firewall setting can solve the problem?

https://stackoverflow.com/questions/7363470/windows-server-2008-r2-cant-get-apache-to-run-on-port-80

In your case, use 8008 port.

Also, check this out too.

http://osgeo-org.1560.x6.nabble.com/Problem-with-the-dwf-viewer-and-a-reverse-proxy-td4189846.html

I hope others may be able to help you too if this doesn't work still.
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Kajar
Yes, if anyone have sucessfully setup Mapguide 3.1 WFS service  in Apache
server then share it please.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Johan Van de Wauw
I have been able to get WFS working on mapguide. I indeed had to
change the port.

But also performance was quite bad - I would not recommend doing it.

Kind Regards,
Johan

On Wed, Aug 30, 2017 at 2:30 PM, Kajar <[hidden email]> wrote:

> Yes, if anyone have sucessfully setup Mapguide 3.1 WFS service  in Apache
> server then share it please.
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
> _______________________________________________
> mapguide-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Hans Milling
In reply to this post by Kajar
I usually ask my clients to install GeoServer (also open source) to host WFS
or WFS. Because MapGuide WFS is not compatible with ArcGIS or QGIS and some
others (at least version 2.0 and 2.2). Only MapInfo I could get it to work.
But perhaps things are better in 3.1.

You need to setup WFS properly and then tell MapGuide what to make available
in the WFS services. Here is how:

To get WFS server configured properly, do this:
1. Open the site administrator from Maestro or go to:
http://localhost/mapguide31/mapadmin/login.php
2. Open "Configure WFS"
3. Change Server name from:
localhost:8008
to:
www.mydomainname.com:80
This field contains the name if the server is accessed from outside the
server.
You can use external IP or the like. But localhost points to the local
machine, so if you try to call the WFS from somewhere else, the WFS XML will
contain links to localhost and that is not valid unless you are running QGIS
from the same server as MapGuide is running. So if you need to access the
WFS from some other machine you need to put the server name or IP here. If
the WFS is to be access from people all over the world, you need the
external IP or domain name here. Also when running on IIS you are using port
80 for HTTP traffic as default and you need to change the port to port 80 to
make it work. Port 8008 is only for Apache installations I think. MapGuide
in IIS is using port 80 as default.

Now WFS is set up properly, you need to tell MapGuide what is available on
the users of the WFS service.
1. From MapGuide Maestro right click the FeatureSource you want available on
your WFS server and select thw WFS tab. Setup the title, and make sure to
check "Available". Also set the SRS and bounds properly. Click ok and when
you refresh your WFS (GetCapabilities) the feature source should be
available.
Make sure that the feature source or any columns names only contain letters
a-z and numbers 0-9. If you have spaces, accents (é) letters from russian,
chinese or anything else, most desktop GIS systems will fail to load the WFS
do to the poor implementation in MapGuide.

One last thing, try to change the version=x.x.x to version=1.0.0
or version=1.1.0 in your desktop GIS (the GetCapabilities string) where you
try to add the WFS. I am not sure if MapGuide supports 1.3 or newer (only
change if still can not get it to work).

I hope this helps.

Best Regards
  Hans Milling...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Mapguide 3.1 WFS service

Kajar
Thanks Hans!

I gave up with Mapguide and WFS. I just wanted to try to get it working.
As you mentioned Geoserver is good for provide WFS servise so I tried it.
I tried to create service using Postgis and view it using Autocad and Qgis
but I failed.
I keep trying, some sample  WFS service(created using shp datasource)
working great with Cad and Qgis.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users