Re: [mapguide-users] MySQL Linestring or Polygon Selection Issues

2019-11-18 Thread pplim87
Done. This is the XML fragment generated from my computer, only display 2 out
of 11 operation.


  EnvelopeIntersects
  Intersects


 




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MySQL Linestring or Polygon Selection Issues

2019-11-18 Thread Jackie Ng
Excuse the poor default browser output of XML content, you should:
 
 1. Save that frame content out to an XML file, format it and try to locate
the fragment I'm referring.
-OR-
 2. Open the GetCapbabilities link into a new browser window and submit from
there. Chrome should be able to auto-format the XML from there.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MySQL Linestring or Polygon Selection Issues

2019-11-18 Thread pplim87
Hi, i open http://localhost:8008/mapguide/mapagent/index.html 
I navigate to Features Tab > GetCapabilities and enter 

Operation: GETPROVIDERCAPABILITIES
Version: 2.0.0
Locale: en
Client Agent: MapGuide Developer
Provider: OSGeo.SDF
Connection String: Service=localhost;Username=root;Password=password;

*I get this error messages:*
An exception occurred in FDO component. Invalid connection property name
'service' (Cause: , Root Cause: Invalid connection property name 'service' )

An exception occurred in FDO component. Invalid connection property name
'service' (Cause: , Root Cause: Invalid connection property name 'service' )
- MgFeatureServiceHandler.ProcessOperation() line 83 file
c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
- MgOpGetCapabilities.Execute() line 124 file
c:\working\build_area\mapguide\3.1.2\x64\mgdev\server\src\services\feature\OpGetCapabilities.cpp



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Show MapGuide Map using OpenLayers

2019-11-18 Thread Jackie Ng
mapagent operations are versioned by the [version of MapGuide the operation
was first introduced or updated in]

So in this particular case, the params refer to the parameters of a
GETMAPIMAGE operation, which according to this (sadly incomplete) mapagent
reference:

https://trac.osgeo.org/mapguide/wiki/HttpApi/RenderingService

And some enhancement work I've put in:

https://trac.osgeo.org/mapguide/wiki/MapGuideRfc148

There are 3 versions of this operation:

 - 1.0.0
 - 2.0.0
 - 3.0.0

As you are on MGOS 2.5.2, this means the only applicable versions you can
use are 1.0.0 and 2.0.0. 

Consult the respective links for an idea of what parameters you can pass for
the respective operation version.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Show MapGuide Map using OpenLayers

2019-11-18 Thread frieda
Hello,

I'm trying to display a MapGuide Map using OpenLayer v6.1.0. I can see the
Map in preview in Maestro but the Map does not showing up in OpenLayers, the
example from here works fine:
https://openlayers.org/en/latest/examples/mapguide-untiled.html

I don't understand the Version parameter, which is set to 3.0.0 in the
example code. Is this the MapGuide Version? I'm using MapGuide 2.5.2

This is my code so far:

var agentUrl = 'http://192.168.128.176:85/mapguide/mapagent/mapagent.fcgi?';
var mdf = 'Library://Test/Maps/Test.MapDefinition';

var mapguide = new ol.source.ImageMapGuide({
projection: 'EPSG:31467',
url: agentUrl,
useOverlay: false,
metersPerUnit: 1.00,
params: {
MAPDEFINITION: mdf,
FORMAT: 'PNG',
VERSION: '2.5.2',
USERNAME: 'Administrator',
PASSWORD: 'admin'
},
ratio: 1
})

var layersource = new ol.layer.Image({
source: mapguide
})

var map = new ol.Map({
layers: [layersource],
target: 'map',
view: new ol.View({
zoom: 12,
center: [3474969.4459683, 5494505.61502864]
})
});

There are no errors, just a white screen with zoom control.
This is the information I obtained from maestro for that test map:

*PROJCS["DHDN/3.Gauss3d-3",GEOGCS["DHDN/3.LL",DATUM["DHDN/3",SPHEROID["BESSEL",6377397.155,299.15281535],TOWGS84[598.1000,73.7000,418.2000,-0.202000,-0.045000,2.455000,6.7000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",350.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",1.],PARAMETER["central_meridian",9.00],PARAMETER["latitude_of_origin",0.00],UNIT["Meter",1.00]]*



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapguide-react-layout 0.12 released

2019-11-18 Thread Jackie Ng
I've put out a new 0.12.7 release that:

 * Plugs more localization holes in:
   * Display of measure segments
   * Loading screen text
 * Auto-closes the Task Pane menu when the Task Pane is made
invisible/hidden.

https://github.com/jumpinjackie/mapguide-react-layout/releases/tag/v0.12.7

- Jackie




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MySQL Linestring or Polygon Selection Issues

2019-11-18 Thread Jackie Ng
Thanks for a concrete visual example.

Can I just confirm that after applying the patched dll when you go to the
mapagent test pages and do a GETCAPABILITIES request for the OSGeo.MySQL
provider with the connection string pointing to your MySQL/MariaDB server
that the capabilities XML response contains the following XML fragment:


EnvelopeIntersects
Intersects
Disjoint
Inside
Contains
CoveredBy
Equals
Overlaps
Within
Crosses
Touches


?

Because this is the expected capabilities I am getting from this patched
provider.

An example MySQL connection string would look like the following:

If your MySQL/MariaDB server is on 192.168.0.5 and your root password is
"secureme", the connection string for this would be:

Service=192.168.0.5;Username=root;Password=secureme

Let me know if you are getting the same capabilities XML fragment.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users