Re: [mapguide-users] How to use API (get selection geom) on Remote Server using a GETRUNTIMEMAP session ID?

2015-10-22 Thread Hans Milling
This is how I would query a layer on a remote MapGuide server (I've cut bits
and pieces fom my source):



Best regards
  Hans Milling...



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-use-API-get-selection-geom-on-Remote-Server-using-a-GETRUNTIMEMAP-session-ID-tp5231522p5231862.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Mapguide 2.6 and 3.0 Can't run Mapadmin or mapagent?

2015-10-22 Thread Flipper
I uninstalled mapguide 2.5.2 and installed mapguide 2.6 and couldn't get
Mapadmin or mapagent to run.
Maestro Cannot connect to either Mapadmin or mapagent.
The mapadmin page just chugs and never comes up.
Also tried a fresh install of mapguide 2.6...same thing.
In each case I did an unstall of prior product, a reboot, waited a few mins
and then did a new install..just the basic PHP with IIS and no further mods
of installed components.

Anyone know why this might be the case?

The Appools and service are both up and running.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-2-6-and-3-0-Can-t-run-Mapadmin-or-mapagent-tp5232043.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 2.6 and 3.0 Can't run Mapadmin or mapagent?

2015-10-22 Thread Scott Hameister
Thanks Mark...I got swamped and never corrected..I had to repoint the php
handler in IIS to the right one...no clue how it would have gotten
repointed between versions though
On Oct 22, 2015 7:07 PM, "Mark Volz (LeapCAD)"  wrote:

> Hi,
>
> Have you confirmed that php & the Mapguide/php integration has been
> configured correctly on IIS.
>
> The simplest way of doing this is to create a php file in the www folder
> of your mapguide installation that contains the following code;
>  Phpinfo();
> ?>
>
> Once that has been created op http://localhost/mapguide/ file>
>
> If it is all working you should see a page showing the installed &
> correctly running components of your php installation, & one of these items
> should be called Mapguide.
>
> Hope this helps
> Mark
>
>
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Search Widget Highlights but layer is still off

2015-10-22 Thread Jackie Ng
Hi Gordon,

I've noticed you've offered several fusion fixes like this in the past.

Can you provide svn diff patches for these changes? It will make it easier
for me to integrate into Fusion proper.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Search-Widget-Highlights-but-layer-is-still-off-tp5226168p5232080.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Getting Selection Geometry on Remote machine FCGI/REST OR API ANYONE?

2015-10-22 Thread Jackie Ng
For mapguide-rest, do a GET on 

/rest/session/:sessionId/:mapName.Selection/features.[geojson|xml|html]/:layerName

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Getting-Selection-Geometry-on-Remote-machine-FCGI-REST-OR-API-ANYONE-tp5231754p5232079.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Getting Selection Geometry on Remote machine FCGI/REST OR API ANYONE?

2015-10-22 Thread Scott Hameister
Thank you so much Jackie... I finally have an aspx class that can be called
by jquery etc that can get runtime map and make selection(put) on the rest
service across domains...one I get it to do the geometry collection I will
post it

I noticed that unless a map image has been requested that selections fail
because it must look at map states...try a runtime nap request then a
selection without requesting a map image and it will give a zero coord type
image request.

Always why a selection only returns a bounding box and not the individual
geometries? Maybe a flag to say return bbbox vs geometries?
On Oct 22, 2015 7:43 PM, "Jackie Ng"  wrote:

> For mapguide-rest, do a GET on
>
>
> /rest/session/:sessionId/:mapName.Selection/features.[geojson|xml|html]/:layerName
>
> - Jackie
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Getting-Selection-Geometry-on-Remote-machine-FCGI-REST-OR-API-ANYONE-tp5231754p5232079.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 2.6 and 3.0 Can't run Mapadmin or mapagent?

2015-10-22 Thread Mark Volz (LeapCAD)
Hi,

Have you confirmed that php & the Mapguide/php integration has been configured 
correctly on IIS.

The simplest way of doing this is to create a php file in the www folder of 
your mapguide installation that contains the following code;


Once that has been created op http://localhost/mapguide/

If it is all working you should see a page showing the installed & correctly 
running components of your php installation, & one of these items should be 
called Mapguide.

Hope this helps
Mark



___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] How to use API (get selection geom) on Remote Server using a GETRUNTIMEMAP session ID?

2015-10-22 Thread Flipper
Thanks Hans,
I had actually abandoned everything for the REST service. But got stuck on
the Make Selection and PUT aspects and my requests for help have gone
unanswered so I appreciate this allot.
I will now revisit using the Maestro SDK although I really did like the
idea of using the REST service..Jackie Really does do amazing work! I just
wish I could ever get his work to work for me.

On Thu, Oct 22, 2015 at 2:33 AM, Hans Milling [via OSGeo.org] <
ml-node+s1560n523186...@n6.nabble.com> wrote:

> This is how I would query a layer on a remote MapGuide server (I've cut
> bits and pieces fom my source):
>
> // 1. Connect:
>   private static IServerConnection mgconnection;
>   private static IMapDefinition map_definition;
> mgconnection = 
> ConnectionProviderRegistry.CreateConnection("Maestro.Http", "Url", url, 
> "Username", username, "Password", password);
> map_definition = 
> (IMapDefinition)mgconnection.ResourceService.GetResource("library://maps/mymap.mapdefinition");
> ModelSetup.Initialize(); // Needed if you use v1.3 or later 
> resources
> //2. Query the layer:
> ILayerDefinition layer_definition = null;
> foreach (IMapLayer layer in map_definition.MapLayer)
>   if (layer.Name.ToLower() == "TestLayer")
>   {
> layer_definition = 
> (ILayerDefinition)mgconnection.ResourceService.GetResource(layer.ResourceId);
> break;
>   }
> IVectorLayerDefinition vlayer = layer_definition.SubLayer as 
> IVectorLayerDefinition;
> IFeatureSource fs = 
> (IFeatureSource)mgconnection.ResourceService.GetResource(vlayer.ResourceId);
>
>
>   IFeatureService featSvc = 
> (IFeatureService)mgconnection.GetService((int)ServiceType.Feature);
>
>
>   using (IReader fsr = featSvc.QueryFeatureSource(vlayer.ResourceId, 
> vlayer.FeatureName, "ColumnA=1234", new string[] { vlayer.Geometry }))
> {
> while (fsr.ReadNext())
>   {
> IGeometry geometry = fsr[vlayer.Geometry] as IGeometry
>  // Do whatever you lik with the geometry
>   }
> }
> return ret;
>
>
> Best regards
>   Hans Milling...
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.x6.nabble.com/How-to-use-API-get-selection-geom-on-Remote-Server-using-a-GETRUNTIMEMAP-session-ID-tp5231522p5231862.html
> To unsubscribe from How to use API (get selection geom) on Remote Server
> using a GETRUNTIMEMAP session ID?, click here
> 
> .
> NAML
> 
>



-- 


*Scott Hameister | www.mpowerinnovations.com
**mPower
Innovations*
1051 N Lynndale Drive, Suite 2A, Appleton, WI 54914
Main: (877) 269-6971 x 204 <%28877%29%20269-6971%20x%20207> | Mobile: (920)
419-6250 <%28920%29%20470-0292>




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-use-API-get-selection-geom-on-Remote-Server-using-a-GETRUNTIMEMAP-session-ID-tp5231522p5231994.html
Sent from the MapGuide Users mailing list archive at Nabble.com.___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Getting Selection Geometry on Remote machine FCGI/REST OR API ANYONE?

2015-10-22 Thread Scott Hameister
Makes sense. It's the concept of selection for immediate buffer..and
selection against another selection that raises my point..its rapid enough
however to go the steps..thanks JN
On Oct 22, 2015 10:46 PM, "Jackie Ng"  wrote:

> Only bboxes are ever returned for each feature in the standard
> QUERYMAPFEATURES so that the "zoom to selection" feature in both AJAX and
> Fusion viewers can work.
>
> The reason geometries are not returned is there is no guarantee that the
> selected feature is of reasonable geometric size. Selections have to be
> fast
> and compact. Including geometry data in selections adds overheads to speed
> and size.
>
> - Jackie
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Getting-Selection-Geometry-on-Remote-machine-FCGI-REST-OR-API-ANYONE-tp5231754p5232082.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Getting Selection Geometry on Remote machine FCGI/REST OR API ANYONE?

2015-10-22 Thread Scott Hameister
That's why I wondered if a flag/setting could be possible. I absolutely
Love the REST calls..thanks so much for all your work. I will share my
cross-domain (cors) .net callables from JavaScript when I am done.
On Oct 22, 2015 10:53 PM, "Scott Hameister" 
wrote:

> Makes sense. It's the concept of selection for immediate buffer..and
> selection against another selection that raises my point..its rapid enough
> however to go the steps..thanks JN
> On Oct 22, 2015 10:46 PM, "Jackie Ng"  wrote:
>
>> Only bboxes are ever returned for each feature in the standard
>> QUERYMAPFEATURES so that the "zoom to selection" feature in both AJAX and
>> Fusion viewers can work.
>>
>> The reason geometries are not returned is there is no guarantee that the
>> selected feature is of reasonable geometric size. Selections have to be
>> fast
>> and compact. Including geometry data in selections adds overheads to speed
>> and size.
>>
>> - Jackie
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/Getting-Selection-Geometry-on-Remote-machine-FCGI-REST-OR-API-ANYONE-tp5231754p5232082.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Getting Selection Geometry on Remote machine FCGI/REST OR API ANYONE?

2015-10-22 Thread Jackie Ng
Only bboxes are ever returned for each feature in the standard
QUERYMAPFEATURES so that the "zoom to selection" feature in both AJAX and
Fusion viewers can work.

The reason geometries are not returned is there is no guarantee that the
selected feature is of reasonable geometric size. Selections have to be fast
and compact. Including geometry data in selections adds overheads to speed
and size.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Getting-Selection-Geometry-on-Remote-machine-FCGI-REST-OR-API-ANYONE-tp5231754p5232082.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users