[mapguide-users] mapguide-rest 1.0 RC6 released

2023-12-04 Thread Jackie Ng via mapguide-users
Hi All,

After 6 years since the last release (!!!), I've put out the 6th release
candidate of mapguide-rest 1.0.

https://github.com/jumpinjackie/mapguide-rest/releases/tag/1.0rc6

The main feature of this release is:

   - Compatibility with MapGuide Open Source 3.1.2 (PHP 5.6) and MapGuide
   Open Source 4.0 Beta 1 (PHP 8.1)
   - A new series of APIs for performing various geo-processing tasks

Refer to the release notes for more information.

Special thanks to Gordon Luckett and Scott Hamiester for their assistance
in testing various builds of mapguide-rest that finally culminated in this
release.

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


Re: [mapguide-users] Mapguide-Rest with Beta 4.0

2023-09-21 Thread Jackie Ng
Making mapguide-rest compatible with MGOS 4.0 / PHP 8.1 is my current
active priority.

- Jackie

You wrote:

I saw that Jackie had work with Mapguide-Rest on his todo list.

Has any one tried Mapguide-Rest with Beta 4.0?

Does it work? I have a customer has has flagged the old PHP versions as a

problem , however I need mapguide Rest to work if I upgrade them to Beta

4.0.

I just use rest for Getting sessions, MAking selections, Getting

fieldnames, Getting layers, no fancy stuff.



-- 
*Please Note: I no longer create new posts or post replies to any OSGeo
mailing list through nabble. As a result, you most likely won't see this
message appear on nabble's view of any OSGeo mailing list and may only see
this message through mailing list archives or depending on your mailing
list subscription settings, through daily message digests or automated
notifications from the mailing lists.*
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Mapguide-Rest with Beta 4.0

2023-09-20 Thread Gordon Luckett
Just run php composer listed on the mapguide rest site..

On Thu, 21 Sep 2023, 03:19 Sympatico,  wrote:

> Hi Gordon,
>
> What do you mean by you had to recompile the Rest first ? Mapguide-rest is
> developped with PHP and JS.
>
> Regards
>
> Pierre
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Mapguide-Rest with Beta 4.0

2023-09-20 Thread Sympatico
Hi Gordon,What do you mean by you had to recompile the Rest first ? Mapguide-rest is developped with PHP and JS.RegardsPierre
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Mapguide-Rest with Beta 4.0

2023-09-20 Thread Gordon Luckett
I had the Rest working with MGOS 4 Beta, but I had to recompile the Rest
first - not just download the files...

On Wed, Sep 20, 2023 at 6:24 PM Scott Hameister 
wrote:

> I saw that Jackie had work with Mapguide-Rest on his todo list.
> Has any one tried Mapguide-Rest with Beta 4.0?
> Does it work? I have a customer has has flagged the old PHP versions as a
> problem , however I need mapguide Rest to work if I upgrade them to Beta
> 4.0.
>
> I just use rest for Getting sessions, MAking selections, Getting
> fieldnames, Getting layers, no fancy stuff.
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide-Rest with Beta 4.0

2023-09-20 Thread Scott Hameister
I saw that Jackie had work with Mapguide-Rest on his todo list.
Has any one tried Mapguide-Rest with Beta 4.0?
Does it work? I have a customer has has flagged the old PHP versions as a
problem , however I need mapguide Rest to work if I upgrade them to Beta
4.0.

I just use rest for Getting sessions, MAking selections, Getting
fieldnames, Getting layers, no fancy stuff.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide-Rest GeoJSON Adaptor in RC 5

2021-05-24 Thread Gordon Luckett
Thanks Jackie,
I installed mapguide-rest from source and it works great with MapGuide 4.0
R2



On Mon, May 24, 2021 at 10:00 AM Jackie Ng  wrote:

> This is due to the PHP MgGeoJsonWriter class in mapguide-rest now
> colliding with the C++ class of the same name introduced in the MapGuide
> 4.0 API (I am assuming you are using MGOS 4.0). There is already a fix for
> this, but it is not in the rc5 package, which pre-dates a lot of the 4.0
> development work.
>
> Until I revisit mapguide-rest after the 4.0 vanilla SWIG binding work,
> you'll have to "install from source" to get this fix. Clone the latest
> master commit of mapguide-rest and install all required dependencies with
> PHP composer.
>
> Hope this helps.
>
> - Jackie
>
> You wrote:
>
> I am getting the following error for the GeoJSON Adaptor in mapguide-rest
>
> PHP Fatal error:  Cannot redeclare class MgGeoJsonWriter in C:\Program
>
> Files\OSGeo\MapGuide\Web\www\rest\app\util\geojsonwriter.php on line
>
> 21
>
> The registration.php is using require_once, so I don't know why the error
>
> is coming up...
>
>
> --
> http://themapguyde.blogspot.com
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide-Rest GeoJSON Adaptor in RC 5

2021-05-24 Thread Jackie Ng
This is due to the PHP MgGeoJsonWriter class in mapguide-rest now colliding
with the C++ class of the same name introduced in the MapGuide 4.0 API (I
am assuming you are using MGOS 4.0). There is already a fix for this, but
it is not in the rc5 package, which pre-dates a lot of the 4.0 development
work.

Until I revisit mapguide-rest after the 4.0 vanilla SWIG binding work,
you'll have to "install from source" to get this fix. Clone the latest
master commit of mapguide-rest and install all required dependencies with
PHP composer.

Hope this helps.

- Jackie

You wrote:

I am getting the following error for the GeoJSON Adaptor in mapguide-rest

PHP Fatal error:  Cannot redeclare class MgGeoJsonWriter in C:\Program

Files\OSGeo\MapGuide\Web\www\rest\app\util\geojsonwriter.php on line

21

The registration.php is using require_once, so I don't know why the error

is coming up...


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


[mapguide-users] MapGuide-Rest GeoJSON Adaptor in RC 5

2021-05-22 Thread Gordon Luckett
I am getting the following error for the GeoJSON Adaptor in mapguide-rest


PHP Fatal error:  Cannot redeclare class MgGeoJsonWriter in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app\util\geojsonwriter.php on line
21


The registration.php is using require_once, so I don't know why the error
is coming up...
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide-rest and React Viewer

2017-12-11 Thread GordonL
On step 5 of this page: https://github.com/jumpinjackie/mapguide-rest

It recommends to use the  Application Request Routing module for IIS
https://www.iis.net/downloads/microsoft/application-request-routing


but I have found that sometimes you need the IIS URL Rewrite module too:

https://www.iis.net/downloads/microsoft/url-rewrite





--
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-rest and React Viewer

2017-12-11 Thread BMason
Rest is installed with Mapguide 3.0 but when calling up a record from a
tooltip I am getting an error: HTTP Error 500.19 -Internal Server Error.. 
the related configuration data for the page is invalid.  Error code
0x8007000d which could be because the ApplicationHost.config file contains a
malformed XML element.   The same code is working with mapguide 2.4 on a
different server.  Does anyone have any suggestions about what could be
wrong? thanks



--
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-rest and React Viewer

2017-12-10 Thread BMason
I am looking for procedures to install and configure REST with mapguide.  
thanks



--
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-rest and React Viewer

2017-11-22 Thread GordonL
Found it:  taskPaneFrame

concat('Parcel\nName: ', RNAME, '\nAddress: ', RBILAD,
' Edit Property   ')

Now I can edit and draw new Parcels using mapguide-rest and React Viewer...



--
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] mapguide-rest and React Viewer

2017-11-22 Thread GordonL
Hi All,
just trying out mixing mapguide-rest with React Viewer today.  I love how
seamless they work together.

 

My only trouble right now is how to target the URL in the tooltip to the
React's Task Pane.  Any ideas?




--
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-rest samples

2017-02-27 Thread Jackie Ng
Everything after /mapguide/rest/... is a virtual path that's URL rewritten so
that index.php knows what to do with that URL route.

You will find a route handler that handles /services/createmap.{format}
under app/routes

To further assist debugging, you can turn on stack traces in app/config.php

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-samples-tp5309722p5309754.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] mapguide-rest 1.0 RC5

2017-01-02 Thread Jackie Ng
Hi All, 

I've released the 5th release candidate of mapguide-rest 1.0 

https://github.com/jumpinjackie/mapguide-rest/releases/tag/1.0-rc5

A summary of this release can be found on my blog post 

http://themapguyde.blogspot.com/2017/01/announcing-mapguide-rest-10-rc5.html

Please report any issues on the github repository. 

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC5-tp5301766.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-rest

2016-12-06 Thread Jackie Ng
First: Syntax error on my end. It's most likely fixed since the most recent
release.

Second: Certain APIs allow for anonymous access, certain APIs require
authentication and some require authentication from certain classes of users
(Author, Administrator). I should probably document the required access
levels for each API.

Third: There is a CreateFeatureSource API available that supports SHP
feature source creation (pass OSGeo.SHP as the provider name). This API is
limited to flat files (SHP, SDF, SQLite) just like its official MapGuide API
counterpart.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-tp5296412p5298957.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-rest

2016-12-05 Thread Rémy Gourrat
Thanks Jackie,

Sorry i come back on this post very later. For memory, I am on mapguide 2.5.2.

First : after log in administrator, i can see resources tree via 
http://localhost/mapguide/rest/library/list.html, but each time i want to see 
resource content I have this error "Unhandled Exception Undefined variable: 
resIdStr at C:\Program 
Files\OSGeo\MapGuide\Web\www\rest\app\controller\resourceservicecontroller.php:571"

Second : I can browse the doc with 
http://localhost/mapguide/rest/doc/index.html, i can use API that doesn't ask 
authentication, but when i want try some api that ask for authentication, i 
have an infinite loop displaying textbox authentication with Anonymous or 
Administrator (I'm ok with my Administrator password...)

is there a link between the first and second point ?

Third Point : I don't want just only download an existent file but generate a 
shape file, on fly, from a MapGuide feature source like Oracle, PostGRe, 
SQLLite, in fact any feature source used by maguide...

But I don’t see it in doc mapguide-rest, is it true ?

Thanks for your answered

Rémy

-Message d'origine-
De : mapguide-users [mailto:mapguide-users-boun...@lists.osgeo.org] De la part 
de Jackie Ng
Envoyé : vendredi 18 novembre 2016 14:14
À : mapguide-users@lists.osgeo.org
Objet : Re: [mapguide-users] mapguide-rest

The general URL pattern is:

GET http://localhost/mapguide/rest/library/.FeatureSource/data/

On a side-note, I would recommend you to have a look at the repository through 
its HTML representation:

http://localhost/mapguide/rest/library/list.html

The HTML representation of the repository really maps out all the possible URLs 
you can access for any particular resource. It's a simple way to "explore" what 
the mapguide-rest API offers, as it's all there as links.
Failing that, there's also an interactive swagger API runner at:

http://localhost/mapguide/rest/doc/index.html

This lists all the APIs available with auto-generated forms for you to test the 
various APIs.

Now back to the topic at hand, a SHP file throws a spanner in the works because 
it is not one physical file. It has various components (.shx, .dbf, and a whole 
bunch of other files) that you also have to download and mapguide-rest does not 
provide any SHP-specific access path where you can download the whole SHP 
"file", so your application has to be aware of a SHP feature source and have 
some custom code that downloads all the components of the SHP "file" and serve 
out a zip file of all the component parts.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-tp5296412p5296470.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-rest

2016-11-18 Thread Jackie Ng
The general URL pattern is:

GET http://localhost/mapguide/rest/library/.FeatureSource/data/

On a side-note, I would recommend you to have a look at the repository
through its HTML representation:

http://localhost/mapguide/rest/library/list.html

The HTML representation of the repository really maps out all the possible
URLs you can access for any particular resource. It's a simple way to
"explore" what the mapguide-rest API offers, as it's all there as links.
Failing that, there's also an interactive swagger API runner at:

http://localhost/mapguide/rest/doc/index.html

This lists all the APIs available with auto-generated forms for you to test
the various APIs.

Now back to the topic at hand, a SHP file throws a spanner in the works
because it is not one physical file. It has various components (.shx, .dbf,
and a whole bunch of other files) that you also have to download and
mapguide-rest does not provide any SHP-specific access path where you can
download the whole SHP "file", so your application has to be aware of a SHP
feature source and have some custom code that downloads all the components
of the SHP "file" and serve out a zip file of all the component parts.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-tp5296412p5296470.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-rest

2016-11-18 Thread Rémy Gourrat
Hi,

Is there a MapGuide rest api to download a shape file from a layer definition ? 
I can see it in the "kitchen"

Scenario will be in 3 steps (with rest api) :

-  map layers list

-  user choose and Click on a layer item

-  Download the shape file

Thanks for your advice

Rémy




-
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-tp5296412.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-rest setup issue with Mpaguide 2.5.2

2016-11-04 Thread Rémy Gourrat
Thanks a lot Jackie, it was the right way !

After few hours to understand and resolve ERROR 500 (add privileges Write/Edit 
on the rest cache directory to the IIS_USERS group),

I had success to print my first Map Image with filter on my own map, and just 
after i have inserted this rest link in a jasper server report, I was like 
children with my beautiful dynamic report with a beautiful dynamic map !

Thanks again for this very powerful mapguide-rest.

Rémy




-
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-setup-issue-with-Mpaguide-2-5-2-tp5294155p5294348.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-rest setup issue with Mpaguide 2.5.2

2016-11-03 Thread Jackie Ng
PHP 5.3 is long unsupported and full of security vulnerabilities. MapGuide
2.5.x is sadly tied to this version of PHP (because newer PHP versions are
built with an incompatible MSVC compiler) so you cannot just swap it out
that for a newer once.

All I can suggest (if you *really* have to stay on this version) is try the
most recent release package of mapguide-rest (you can find it under the
releases section). Just forget about trying a source-based install as that
requires setting up dev dependencies with composer, which requires PHP 5.5
at a bare minimum. All those incompatible errors you're seeing are for
dependencies needed to *build* various bits of mapguide-rest (eg. swagger
docs, release packaging, etc), but are not actually used by mapguide-rest.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-setup-issue-with-Mpaguide-2-5-2-tp5294155p5294171.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-rest setup issue with Mpaguide 2.5.2

2016-11-03 Thread Rémy Gourrat
Hi,

I try to setup mapguide-rest with MapGuide 2.5.2 which use PHP 3.3.8,

I read that theorically mapguide-rest is running with a mapguide supporting PHP 
3.3 and upper

Jackie said that :
"mapguide-rest has been tested on MapGuide Open Source 2.6.
It should theoretically work on any installation of MapGuide Open Source or 
AIMS that includes PHP 5.3 or newer."

When I execute composer install I see lot of problems of dependencies.

The only solution is to setup another PHP outside mapguide 2.5.2 (I can't 
migrate in 2.5.6) ?

Or can I get an old mapguide-rest 2.5.2 compatible ?

Thanks for your advice

Rémy

When I execute composer install, I see that :

C:\Program Files\OSGeo\MapGuide\Web\www\rest>composer install
Your version of PHP, 5.3.8-Win64, is affected by CVE-2013-6420 and cannot 
safely perform certificate validation, we strongly suggest you upgrade.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
- Installation request for brianium/paratest dev-master -> satisfiable by 
brianium/paratest[dev-master].
- brianium/paratest dev-master requires php >=5.5.11 -> your PHP version 
(5.3.8) does not satisfy that requirement.
  Problem 2
- Installation request for phpdocumentor/reflection-common 1.0 -> 
satisfiable by phpdocumentor/reflection-common[1.0].
- phpdocumentor/reflection-common 1.0 requires php >=5.5 -> your PHP 
version (5.3.8) does not satisfy that requirement.
  Problem 3
- Installation request for phpdocumentor/reflection-docblock 3.1.1 -> 
satisfiable by phpdocumentor/reflection-docblock[3.1.1].
- phpdocumentor/reflection-docblock 3.1.1 requires php >=5.5 -> your PHP 
version (5.3.8) does not satisfy that requirement.
  Problem 4
- Installation request for phpdocumentor/type-resolver 0.2 -> satisfiable 
by phpdocumentor/type-resolver[0.2].
- phpdocumentor/type-resolver 0.2 requires php >=5.5 -> your PHP version 
(5.3.8) does not satisfy that requirement.
  Problem 5
- Installation request for symfony/console v3.1.5 -> satisfiable by 
symfony/console[v3.1.5].
- symfony/console v3.1.5 requires php >=5.5.9 -> your PHP version (5.3.8) 
does not satisfy that requirement.
  Problem 6
- Installation request for symfony/debug v3.1.5 -> satisfiable by 
symfony/debug[v3.1.5].
- symfony/debug v3.1.5 requires php >=5.5.9 -> your PHP version (5.3.8) 
does not satisfy that requirement.
  Problem 7
- Installation request for symfony/finder v3.1.5 -> satisfiable by 
symfony/finder[v3.1.5].
- symfony/finder v3.1.5 requires php >=5.5.9 -> your PHP version (5.3.8) 
does not satisfy that requirement.
  Problem 8
- Installation request for symfony/process v3.1.5 -> satisfiable by 
symfony/process[v3.1.5].
- symfony/process v3.1.5 requires php >=5.5.9 -> your PHP version (5.3.8) 
does not satisfy that requirement.
  Problem 9
- Installation request for symfony/yaml v3.1.5 -> satisfiable by 
symfony/yaml[v3.1.5].
- symfony/yaml v3.1.5 requires php >=5.5.9 -> your PHP version (5.3.8) does 
not satisfy that requirement.
  Problem 10
- Installation request for zircote/swagger-php 2.0.7 -> satisfiable by 
zircote/swagger-php[2.0.7].
- zircote/swagger-php 2.0.7 requires php >=5.4.0 -> your PHP version 
(5.3.8) does not satisfy that requirement.
  Problem 11
- symfony/yaml v3.1.5 requires php >=5.5.9 -> your PHP version (5.3.8) does 
not satisfy that requirement.
- phpunit/phpunit 4.8.27 requires symfony/yaml ~2.1|~3.0 -> satisfiable by 
symfony/yaml[v3.1.5].
- Installation request for phpunit/phpunit 4.8.27 -> satisfiable by 
phpunit/phpunit[4.8.27].




-
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-setup-issue-with-Mpaguide-2-5-2-tp5294155.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 rest - 404 Page Not Found

2016-10-04 Thread GordonL
Rest is a tool for Programming (i.e. JQUERY) so you can get things like
geojson and CZML and dynamically query mapguide and your data.  

What are you doing with mapguide-rest?

To check if mapguide-rest is installed try:
http://localhost/mapguide/rest/sampleapps/index.php

If this still isn't working try giving heaps of rights to USERS for the
C:\Program Files\OSGeo\MapGuide\Web\www\rest\cache folder.  That always gets
me hung up.







--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-rest-404-Page-Not-Found-tp5289212p5289280.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 rest - 404 Page Not Found

2016-10-04 Thread Draugnim
Hi everyone,
I'm new to MapGuide but I'm geting into it. 

I installed MapGuideOpenSource-3.1.0.9043-RC1-x64 on Windows Server 2012 R2.

I followed the instructions and installed MapGuide rest. I downloaded the
repository to the www folder. Changed the name to 'rest'. I installed the
PHP Composer and the ARR for IIS. Chnaged the name f the web.config.iis
file. 

As I tried to access the rest endpoint trough http://localhost/mapguide/rest
and I also http://localhost/mapguide/rest/index.php but I got an error
telling me tha i did not have permission. So I gave permissions to some User
Accounts for the rest folder. 

Now I'm geting the 404 Page Not Found error.

If anyone has an idea or can help I would appreciate it. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-rest-404-Page-Not-Found-tp5289212.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 Rest Permission Deny

2016-03-07 Thread GeorgesK
Thanks Jackie,

I created another directory for the cache and updated the files accordingly,
and it works now.

Thanks again.

Georges



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179p5254854.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 Rest Permission Deny

2016-03-06 Thread Jackie Ng
Nothing says that all your cached files/configs/logs/etc must reside inside
the mapguide-rest installation directory

If all else fails, you can set the "Cache.RootDir" property in config.php
and "log.writer" property in log_config.php to point to a directory
*outside* of "C:\Program Files\...".

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179p5254758.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 Rest Permission Deny

2016-03-02 Thread GeorgesK
Hello all,

I've tried without success to make mapguide-rest work. I even grant full
rights to the rest directory (not only cache directory), but I keep on
having the same error message :


Using : IIS 7 (Windows 7)
MapGuide Open Source 3.0 final

Does anybony know how to solve this ?

Thanks in advance.

Georges



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179p5253969.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 Rest Permission Deny

2016-02-16 Thread GordonL
Yes, after you copy the files, you have to grant the IIS User rights to the
cache folder in mapguide-rest..





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179p5250858.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 Rest Permission Deny

2016-02-05 Thread swimming123
Hi All,

I just started to play with MapGuide Rest and I got permission denied error,
how to fix this:

PHP Warning:  fopen(C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app/../cache/debug.log): failed to open
stream: Permission denied in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app\log_config.php on line 23
PHP Warning:  Wrong parameter count for
invalidargumentexception::invalidargumentexception() in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\LogWriter.php on
line 60
PHP Fatal error:  Uncaught exception 'invalidargumentexception' in
C:\Program
Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\LogWriter.php:60
Stack trace:
#0 C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\log_config.php(23):
Slim\LogWriter->__construct(false)
#1 C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\log_config.php(30):
LogWriter->__construct('C:\\Program File...')
#2 C:\Program Files\OSGeo\MapGuide\Web\www\rest\index.php(64):
require_once('C:\\Program File...')
#3 {main}
  thrown in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\LogWriter.php on
line 60

Thank you very much.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179.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 Rest Permission Deny

2016-02-05 Thread swimming123
Fixed, it's user permission setting.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179p5249186.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-rest 1.0 RC4

2016-01-29 Thread Jackie Ng
Hi All, 

I've released the 4th release candidate of mapguide-rest 1.0 

https://github.com/jumpinjackie/mapguide-rest/releases/tag/1.0-rc4

A summary of this release can be found on my blog post 

http://themapguyde.blogspot.com.au/2016/01/announcing-mapguide-rest-10-rc4.html

Please report any issues on the github repository.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC4-tp5248008.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-rest 1.0 RC4 heads up

2015-12-11 Thread Jackie Ng
Hi All,

This is a heads up for the next RC (yes, it's another RC release) of
mapguide-rest.

To simplify and streamline the API surface of mapguide-rest before we lock
it down for the final 1.0 release, I've removed all routes where XML is the
implicit response format. For example, suppose we wanted to enumerate all
coordinate system categories. 

You would do a GET on either:

 /coordsys/categories

or

 /coordsys/categories.{xml|json}

The first one is a route where XML is the implicitly defined as the response
format. The second one requires that the format be specified. All URL routes
like the first example have been removed.

To eliminate the impact of this change when RC4 comes out, migrate all your
URL routes to the explicit form. You only need to do this if you use the XML
form of the various URL routes. If you use the JSON form, you would've had
to specify .json already wherever it is required, so you won't be impacted
by this change.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC4-heads-up-tp5240904.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-rest 1.0 RC3

2015-12-02 Thread Flipper
Jackie,
Should a call to http://localhost/mapguide/rest/services/createmap.json Be
able to create a Runtimemap and a new session without any SessionID sent or
Credentials sent? 

I thought Whitelisting is for published data like your
http://localhost/mapguide/rest/data/property/.png example.

However I noticed that calls to SERVICE allows unchecked Runtimemap
creation.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC3-tp5239551p5239663.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-rest 1.0 RC3

2015-12-02 Thread Scott Hameister
Will do. Could find the gap but PHP is new
On Dec 2, 2015 10:37 PM, "Jackie Ng"  wrote:

> The whitelisting feature is so that Mr. Anonymous MapGuide user account
> doesn't have unfettered feature/resource service API access to *all*
> resources in your site repository.
>
> Runtime map creation does not fall under the feature service or resource
> service classification of APIs, so whitelisting doesn't cover it.
>
> As to whether createmap should be guarded. Yes it probably should, even if
> you send anonymous credentials to it (if it isn't, it's an oversight on my
> part and you should probably file a github issue on it).
>
> - Jackie
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC3-tp5239551p5239754.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-rest 1.0 RC3

2015-12-02 Thread Jackie Ng
The whitelisting feature is so that Mr. Anonymous MapGuide user account
doesn't have unfettered feature/resource service API access to *all*
resources in your site repository.

Runtime map creation does not fall under the feature service or resource
service classification of APIs, so whitelisting doesn't cover it.

As to whether createmap should be guarded. Yes it probably should, even if
you send anonymous credentials to it (if it isn't, it's an oversight on my
part and you should probably file a github issue on it).

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC3-tp5239551p5239754.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-rest 1.0 RC3

2015-12-02 Thread Jackie Ng
Hi All,

I've released the 3rd release candidate of mapguide-rest 1.0

https://github.com/jumpinjackie/mapguide-rest/releases/tag/1.0-rc3

A summary of this release can be found on my blog post

http://themapguyde.blogspot.com.au/2015/12/announcing-mapguide-rest-10-rc3.html

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC3-tp5239551.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-rest feature requests

2015-09-25 Thread GordonL
Great Request Reno.
This would be a great feature.  I ran into this myself.  (I have to use the
PROJ4 javascript library to do the bbox conversion before sending to the
AJAX request).





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feature-requests-tp5208708p5226167.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-rest feature requests

2015-09-25 Thread RenoSun
Hi Gordon,

Thank you for your response, and Jackie actually added this feature into
mapguide-rest RC2.

Please have a look, and I am using it now.

https://github.com/jumpinjackie/mapguide-rest/releases
  

Thanks



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feature-requests-tp5208708p5226192.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-rest 1.0 RC2

2015-06-16 Thread RenoSun
Yeah! Thanks Jackie! It make Mapguide/AIMS be more powerful, and more
potential. Mapguide users now can use mapguide-rest to complete various
web-based mapping/GIS projects so easily.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC2-tp5210209p5211321.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-rest 1.0 RC2

2015-06-15 Thread GordonL
Thanks for keeping up the mapguide-rest project.  

For anyone who uses jQuery, I swear mapguide-rest is a god-send!




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC2-tp5210209p5211108.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-rest 1.0 RC2

2015-06-10 Thread Jackie Ng
Hi All,

I've released the 2nd release candidate of mapguide-rest 1.0.

https://github.com/jumpinjackie/mapguide-rest/releases/tag/1.0-rc2

A summary of this release can be found on my blog post

http://themapguyde.blogspot.com.au/2015/06/announcing-mapguide-rest-10-rc2.html

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC2-tp5210209.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-rest feature requests

2015-06-02 Thread RenoSun
1.mapguide-rest search results 

For the GeoRest, if only one result is found, it will display page with
single templates. If there is no result will use None template. However,
mapguide-rest only uses the many templates to display the result to me when
there is only one/no records being found.

For example, there is no RNAME like NORTHT

http://localhost/mapguide/rest/data/property/.html?filter=RNAME%20LIKE%20%27NORTHT%25%27

2.BBOX filter and Coordinate Transformation

It will be a good feature if the mapguide-rest allow users to do spatial
query using BBOX with transformed coordinates if they are using transformto
URL parameters.

For example, the feature originally is in UTM84-10N coordinate system.

No Result
http://localhost/mapguide/rest/library/DatabaseName/FolderName/data/FeatureName.FeatureSource/features.geojson/dbo/Building?transformto=LL84BBOX=-124.3991,49.35648,-124.3983,49.35709

Working (BBOX using original coordinate system)
http://localhost/mapguide/rest/library/DatabaseName/FolderName/data/FeatureName.FeatureSource/features.geojson/dbo/Building?transformto=LL84BBOX=39,5463999,40,5468999

Thanks!!!





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feature-requests-tp5208708.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-rest query restriction, and runtime map questions

2015-03-15 Thread RenoSun
Thank you for the answers Jackie

Re: Item 1
I think that will be a great idea to have the whitelist to define which
feature sources are allowed to be accessed by mapguide-rest, and a list of
allowed formats in config.php.

Also, if we can also have a list of the active fields of the feature sources
will be awesome. Because the users may want to show/hide specific fields of
the feature sources to be accessed. 

Furthermore, I will hope the users will be able to change the order of the
fields of the feature sources. It can just follow the order of the active
fields list of the feature sources.

Re: Item 2

Thanks! Problem solved!!!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-rest-query-restriction-and-runtime-map-questions-tp5193319p5193419.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-rest query restriction, and runtime map questions

2015-03-14 Thread Jackie Ng
Re: Item 1

Although mapguide-rest is now RC, this is actually a good feature
enhancement to add in. Suppose we define a new Feature Source query
whitelist property in config.php, which can have security and a list of
allowed formats defined.

If the property is present in config.php, the whitelist is active and any
feature source not on that list is an automatic 403 forbidden when
attempting to access. Same for any feature source in that list, but your
user/session is not one of the allowed user/groups/roles or the format
specified is not of the allowed ones on the list.

Would this be a suitable solution?

Re: Item 2

It's a known issue where a max scale of infinity is not being properly
handled. See: https://github.com/jumpinjackie/mapguide-rest/issues/98

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-rest-query-restriction-and-runtime-map-questions-tp5193319p5193374.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-rest:

2015-03-13 Thread RenoSun
Environment
AIMS2014
IIS 7.5
Windows Server 2008 R2

1. Is there a configure file allowing users to decide which feature sources,
and the fields of the features can be queried?
For example: I don't need a permission to access this feature source 
http://localhost/mapserver2014/rest/library/Samples/Sheboygan/Data/Parcels.FeatureSource/features.geojson/SHP_Schema/Parcels?filter=RNAME%20LIKE%20%27SCHMITT%25%27maxfeatures=10
http://localhost/mapserver2014/rest/library/Samples/Sheboygan/Data/Parcels.FeatureSource/features.geojson/SHP_Schema/Parcels?filter=RNAME%20LIKE%20%27SCHMITT%25%27maxfeatures=10
  

It's a very useful way to query the feature sources since I don't even need
to build a restcfg.json if I only need to access geojson, and xml of the
features. However, it will be great that I can choose which to shares to
public or not.

2.  The RuntimeMaps are not working. Is it because I am using AIMS 2014 not
MapGuide 2.6?
I tried following links under sampleapps page:
http://osgeo-org.1560.x6.nabble.com/file/n5193319/MapGuideRESTAPIwithOpenLayers.png
 
I got following images:
http://osgeo-org.1560.x6.nabble.com/file/n5193319/kitchensink.png 

However, 
Sheboygan map as an XYZ tile layer (OpenLayers 2)
Sheboygan map as an XYZ tile layer (OpenLayers 3)
Sheboygan map as a vector tile layer
Sheboygan map as a set of dynamic GeoJSON layers (OpenLayers 3)
OpenLayers map consuming published data
are working very well.

Would you please know what should I do to make RunTimeMaps work?

Thank you for all your helps!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-rest-tp5193319.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-rest 1.0 RC1

2015-03-05 Thread Jackie Ng
Blog post is up:
http://themapguyde.blogspot.com/2015/03/announcing-mapguide-rest-10-rc1.html

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC1-tp5190811p5191707.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-rest 1.0 RC1

2015-03-01 Thread Jackie Ng
Hi All,

I've released the first release candidate of mapguide-rest 1.0. 

https://github.com/jumpinjackie/mapguide-rest/releases/tag/1.0-rc1

I'm feature-freezing mapguide-rest now. Only bug fixes and (really) minor
enhancements from now to 1.0 final.

A more detailed write-up of what's new and changed in this release will
appear on my blog shortly.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-1-0-RC1-tp5190811.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-rest with multiple Base Layer Groups

2015-02-27 Thread Jackie Ng
Is this only happening for XYZ tiles, or it is happening for normal tiled
maps as well?

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-with-multiple-Base-Layer-Groups-tp5190432p5190475.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-rest with multiple Base Layer Groups

2015-02-27 Thread Gunter Becker
happens only for XYZ tiles!

Normal tiled maps wor as expected.

Gunter



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-with-multiple-Base-Layer-Groups-tp5190432p5190480.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-rest with multiple Base Layer Groups

2015-02-27 Thread Jackie Ng
Ok, it's been sorted.

https://github.com/jumpinjackie/mapguide-rest/issues/96

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-with-multiple-Base-Layer-Groups-tp5190432p5190488.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-rest with multiple Base Layer Groups

2015-02-27 Thread Gunter Becker
Hi,

while testing the mapguid-rest Extension, I realized that only
MapDefinitions work which have just one Base Layer Group defined. When
adding another Base Layer Group I got an error while requesting the
xyz-Tiles. 

Is this per design or is this just a shortcoming?

I personally would like to have all my base layers in just one
MapDefinition.

Thanks, Gunter



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-with-multiple-Base-Layer-Groups-tp5190432.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 rest - bbox parameter with map?

2015-02-18 Thread Fritz Robert
Hi Jackie,

yes, I think I misunderstood the concept. Things are much clearer now,

Thank you for your replies,

Rob


-Ursprüngliche Nachricht-
Von: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] Im Auftrag von Jackie Ng
Gesendet: Mittwoch, 18. Februar 2015 04:05
An: mapguide-users@lists.osgeo.org
Betreff: Re: [mapguide-users] mapguide rest - bbox parameter with map?

I think you might be misunderstanding the purpose of the image representation 
in restcfg.json

Features will *always* be selected in the image representation. This is by 
design. The intention behind the image representation is to show where your
feature(s) are in relation to the map specified in restcfg.json, and we do that 
by showing such features as selected on the map. GeoREST follows this same 
idea. Your feature(s) are the centre of attention, not the map.

If you are just after an image of a map at a certain view, then you can just 
use the image representation of the map definition:

eg.
http://localhost/mapguide/rest/library/Testing/report/AV_Vorlage.MapDefinition/image.png?x=YOUR_CENTER_Xy=YOUR_CENTER_Yscale=YOUR_SCALEwidth=YOUR_IMAGE_WIDTHheight=YOUR_IMAGE_HEIGHT

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-bbox-parameter-with-map-tp5187340p5188279.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 rest - bbox parameter with map?

2015-02-17 Thread Jackie Ng
I think you might be misunderstanding the purpose of the image representation
in restcfg.json

Features will *always* be selected in the image representation. This is by
design. The intention behind the image representation is to show where your
feature(s) are in relation to the map specified in restcfg.json, and we do
that by showing such features as selected on the map. GeoREST follows this
same idea. Your feature(s) are the centre of attention, not the map.

If you are just after an image of a map at a certain view, then you can just
use the image representation of the map definition:

eg.
http://localhost/mapguide/rest/library/Testing/report/AV_Vorlage.MapDefinition/image.png?x=YOUR_CENTER_Xy=YOUR_CENTER_Yscale=YOUR_SCALEwidth=YOUR_IMAGE_WIDTHheight=YOUR_IMAGE_HEIGHT

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-bbox-parameter-with-map-tp5187340p5188279.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 rest - bbox parameter with map?

2015-02-16 Thread Fritz Robert
Hi Jackie,

the restcfg.json is quite simple:

{
Source: {
Type: MapGuide,
LayerDefinition: 
Library://FS_INFO/WT_AV_I/Layers/AV_Grundstücke/AV_Eigentumsinformation.LayerDefinition
},
Representations: {
png: {
Adapter: MapImage,
Methods: {
GET: {
MapDefinition: 
Library://Testing/report/AV_Vorlage.MapDefinition,
SelectionLayer: AV_Eigentumsinformation,
PageSize: 100,
MaxCount: 500,
AllowAnonymous: true,
AllowGroups: [Everyone]
}
}
},
(repeated for jpg and png8).

No feature should be selected. Don't know where the selection comes from.
Here ist he complete URL request:  
http://x/mapserver2013/rest2/index.php/data/av_report/.png?BBOX=697600,261300,697700,261400width=935height=935dpi=144

Regards, Rob


-Ursprüngliche Nachricht-
Von: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] Im Auftrag von Jackie Ng
Gesendet: Dienstag, 17. Februar 2015 03:43
An: mapguide-users@lists.osgeo.org
Betreff: Re: [mapguide-users] mapguide rest - bbox parameter with map?

Assuming you are talking about any URL under /mapguide/rest/data ...

Any data URL shows the current page of features in the given representation

 - .xml returns a page of features and their attributes as XML
 - .geojson returns a page of features and their attributes as GeoJSON
 - .html displays a page of features and their attributes in a HTML page

For the image representations the page as it were is the list of features 
rendered as selections against the configured map in restcfg.json. In this 
respect, the bbox parameter might be ignored (which is probably a bug) and 
defaulting to the bbox of the selected features.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-bbox-parameter-with-map-tp5187340p5188026.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 rest - bbox parameter with map?

2015-02-16 Thread Jackie Ng
Assuming you are talking about any URL under /mapguide/rest/data ...

Any data URL shows the current page of features in the given
representation

 - .xml returns a page of features and their attributes as XML
 - .geojson returns a page of features and their attributes as GeoJSON
 - .html displays a page of features and their attributes in a HTML page

For the image representations the page as it were is the list of features
rendered as selections against the configured map in restcfg.json. In this
respect, the bbox parameter might be ignored (which is probably a bug) and
defaulting to the bbox of the selected features.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-bbox-parameter-with-map-tp5187340p5188026.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-rest feedback

2015-01-25 Thread GordonL
I found a jQuery work-around for sorting the json...

$(#address).autocomplete({ 
delay: 0, 
source: function( request, response ) { 
  $.ajax({ 
  url:
/mapserver2015/rest/library/Samples/Sheboygan/Layers/Parcels.LayerDefinition/features.geojson,
 
  dataType: json, 
  data: { 
filter: RBILAD LIKE ' + request.term   + %' 
  },

success: function(data) {

*data.features = $(data.features).sort(sortJsonAddress);*
  }


I create a function called sortJsonAddress that sorted by a field in the
json...


*function sortJsonAddress(a,b)
{
return a.properties.RBILAD  b.properties.RBILAD ? 1 : -1;
};*

Surprisingly it works well, even with 1000s of records.





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5183663.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-rest feedback

2015-01-21 Thread Jackie Ng
Ordering is not implemented yet. Ordering support is provider-specific, so I
wasn't sure of the best approach about wrapping functionality that is
provider-specific.

Now that I think about it more, I'll probably just let it crash and burn for
those that try to order results where the underlying provider doesn't
support it.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5182796.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-rest feedback

2015-01-21 Thread Jackie Ng
However, even if I add ordering support to mapguide-rest, the providers of
interest that you want to have ordered results (SDF/SHP) do not support
ordering.

We can have a limited form of ordering support at the MapGuide level for
these providers if we implement this:

http://trac.osgeo.org/mapguide/ticket/2530

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5182798.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-rest feedback

2015-01-20 Thread GordonL
Another question, the AutoComplete from jQuery UI, is cool and I managed to
test is with the JSON from the parcels in Sheboygan using rest:

/$(#address).autocomplete({
delay: 0,
source: function( request, response ) {
  $.ajax({
  url:
/mapserver2015/rest/library/Samples/Sheboygan/Layers/Parcels.LayerDefinition/features.geojson,
  dataType: json,
  data: {
filter: RBILAD LIKE ' + request.term   + %'
  },/

Is there a way to sort? By the feature.properties.RBILAD for example.  
?sortBy=RBILAD as an example?








--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5182738.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-rest : set marker in a map?

2015-01-20 Thread GordonL
Since mapguide-rest can stream geoJSON, you can use that to show a feature in
OpenLayers or Leaflet.  If your request returns json, you can draw it on the
map.





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-set-marker-in-a-map-tp5182295p5182737.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-rest feedback

2015-01-20 Thread GordonL
Thanks Mark,
I didn't see those parameters here:
https://github.com/jumpinjackie/mapguide-rest/wiki/Adapter-Documentation





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5182743.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-rest feedback

2015-01-20 Thread Mark Volz (LeapCAD)
Hi Gordon,

Yes, JQuery + Mapguide = very cool functionality.

To order your results use the following parameters
orderBy=column name
orderOption=ascending or descending


 so in your example try this;
  $.ajax({
  url:
/mapserver2015/rest/library/Samples/Sheboygan/Layers/Parcels.LayerDefinitio
n/features.geojson,
  dataType: json,
  data: {
filter: RBILAD LIKE ' + request.term   + %',
orderBy= RBILAD,
orderOption=ascending
  },/

You can also specify which field(s) get returned by using the properties
tag. This helps to cut down on the amount of traffic required for auto
complete functions.

Hope this helps.

Mark

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


[mapguide-users] mapguide-rest : set marker in a map?

2015-01-19 Thread Fritz Robert
Hi,

with mapguide-rest - can you add a marker to a map? I didn't find anything - 
but maybe I overlooked it?

When you query a map MapGuide highlights selected features. Sometimes I do not 
want the feature to be highlighted  as the the symbol then becomes difficult to 
recognize. Instead I would like to add my own marker - such as circle - around 
the feature. Basically as it was possible with MG Liteview (parameters: 
symbol/symwidth/symheight).


Rob


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

Re: [mapguide-users] mapguide-rest feedback

2015-01-12 Thread GordonL
This is the full restcfg.json - anything missing?

{
Source: {
Type: MapGuide,
FeatureSource:
Library://Samples/Sheboygan/Data/Parcels_Writeable.FeatureSource,
FeatureClass: Parcels
},
Representations: {
xml: {
Adapter: FeatureSetXml,
Methods: {
GET: {
PageSize: 100,
MaxCount: 500,
AllowAnonymous: true,
AllowGroups: [Everyone]
},
POST: {
AllowGroups: [Everyone]
},
PUT: {
AllowGroups: [Everyone]
},
DELETE: {
AllowGroups: [Everyone]
}
}
}
}
}



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5181141.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-rest feedback

2015-01-12 Thread Jackie Ng
In the FeatureClass property, replace the Parcels' with the fully qualified
name of the FDO feature class (i think it is SHP_Schema;Parcels)

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5181168.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-rest feedback

2015-01-09 Thread Jackie Ng
Use a qualified class name in your restcfg.json

Or wait for the next release that fixes this (we weren't checking and
forcing qualified class names if encountering a non-qualified one).

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5180806.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-rest feedback

2015-01-08 Thread GordonL
Hi Jackie,
moved on to the editing with mapguide-rest - (Release 0.11.2)

Trying out 
http://localhost/mapguide/mapviewerajax/?WEBLAYOUT=Library://Samples/Sheboygan/Layouts/SheboyganREST.WebLayout

Very cool. Had to tweak the xml representation to:
POST: {
AllowGroups: [Everyone]
},
PUT: {
AllowGroups: [Everyone]
},
DELETE: {
AllowGroups: [Everyone]
}

This got me so far, now I get an error:

Unhandled Exception

Undefined offset: 1 at C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app\adapters\featurexmladapter.php:225
Stack Trace

#0 C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app\adapters\featurexmladapter.php(225):
Slim\Slim::handleErrors(8, 'Undefined offse...', 'C:\Program File...', 225,
Array)#1 




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5180567.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-rest QueryMapFeatures parameters LAYERATTRIBUTEFILTER and FEATUREFILTER

2014-11-14 Thread Jackie Ng
Specifying FEATUREFILTER does not work in releases of MapGuide older than 2.6

http://trac.osgeo.org/mapguide/ticket/2464

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-rest-QueryMapFeatures-parameters-LAYERATTRIBUTEFILTER-and-FEATUREFILTER-tp5172263p5173024.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-rest QueryMapFeatures parameters LAYERATTRIBUTEFILTER and FEATUREFILTER

2014-11-10 Thread Alen
When I add LAYERATTRIBUTEFILTER and FEATUREFILTER parametersin
rest/sampleapps/selection sample, they do not have any effect on query
result. Otherwise the sample works OK.
I suppose those values can be set as so:
LAYERATTRIBUTEFILTER: 4,
FEATUREFILTER: ?xml version='1.0' encoding='UTF-8'?FeatureSet 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation=FeatureSet-1.0.0.xsdLayer
id=bc37592a-68f3-11e4-8000-685d436c0bfbClass
id=SHP_Schema:ParcelsIDVSEAAA==/ID/Class/Layer/FeatureSet,

These request should select only layers that have a tooltip defined (which
are inside area defined by geometry param) plus feature in Parcels class
with IDVSEAAA==/ID as defined in feature set ( I understand 
FEATUREFILTER is a way for adding features to previous selection set).

Does anybody had some success adding these parameters to
rest/sampleapps/selection sample or they are not suppose to work in
mapguide-rest ?





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-rest-QueryMapFeatures-parameters-LAYERATTRIBUTEFILTER-and-FEATUREFILTER-tp5172263.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-rest feedback

2014-10-29 Thread Jackie Ng
Hi Mark,

Responses inline:

 Issues/tweaks I've had to make to the responses (pretty much all are just 
 string operations in php  code) 
 Calls to get the current list layers for the map; 
 1) would be nice if it include the link to generate the legend icon 
 2) would be nice if it also returned the sub styles as well as the layers 

[JN]: This URL route

/session/:sessionId/:mapName.Map/layers.:format

Actually supports the following additional optional parameters:

 * requestedfeatures - A bitmask indicating what optional data to include
with the layers (2 = Include Feature Source info, 4 = Include styles/icons)
 * iconformat - The icon image format. Only applicable if requestedfeatures
has 4 logically-ORed in
 * iconwidth - The width of generated icons. Only applicable if
requestedfeatures has 4 logically-ORed in
 * iconheight - The height of generated icons. Only applicable if
requestedfeatures has 4 logically-ORed in
 * iconsperscalerange - The number of icons to generate per scale range.
Only applicable if requestedfeatures has 4 logically-ORed in
 * group - The group name to filter layers by

The reason you probably don't know about this is because I forgot to
document these optional parameters so they don't appear in the interactive
REST API documentation.

I've made a new github issue for this:
https://github.com/jumpinjackie/mapguide-rest/issues/77

 Calls against the current selection set; 
 1) would be nice if it returned only the fields that have been
 set/selected 
 for the layer (layer properties visible in viewer section in maestro) 
 rather than all fields. 

[JN]: You can pass a mappedonly=1 parameter to the selected features route:

/session/:sessionId/:mapName.Selection/features.:format/:layerName

To only respect the property mappings of the layer definition

 2) a  variable (true/false) whether the geometry records should be
 returned. 

[JN]: Passing mappedonly=1 to the request will already achieve this as
geometry properties never show up in the property mappings of a Layer
Definition and thus are omitted when mappedonly=1. Unless you are after a
give me everything but the geometry type result, it would be simpler for
all parties involved to just use the property mappings of the Layer
Definition to drive the behaviour.

 And one extra really, really nice tool would be a utility that created a 
 smarty template for KML by reading a layer definition. 

[JN]: This is a problem that someone else will have to solve :) The main
problem of KML output (if we're not wrapping existing KML service
functionality) is around the issue of thematic layers. We can't really
dynamically generate KML content with appropriate translated styles from a
Layer Definition because the MapGuide API itself lacks the means of
evaluating filters against a feature (ie. Does this feature match this rule
in the Layer Definition?).

These problems surfaced when we added CZML support. We've hacked a workable
solution for CZML output, but that has its own pitfalls:

 * We do x feature queries for x number of rules in the Layer Definition, we
build PHP closures over the parsed Layer Definition so it knows what styles
to generate for a given feature.
 * We skip over the default style rule to avoid re-processing features
already covered by the above style rules. This naturally presents problems
for features that do not satisfy any of the above style rules. There's no
workaround for that. 
 * Don't get me started on Advanced Stylization :) We don't support such
layers and we ain't going there now or in the future.

This is just to get rudimentary CZML output that somewhat retains visual
fidelity from the Layer Definition. I am saying all of this because if we
want KML output in mapguide-rest, I am strongly in favour of wrapping
existing services/APIs already in MapGuide in a RESTful manner instead of
reinventing the wheel and having to go through so many hoops like I did to
get basic CZML output support.

So for KML smarty templates, this is some of the pitfalls you have to be
aware of if you're going to be writing an automated tool to generate such
templates.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5170146.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-rest feedback

2014-10-28 Thread Johan Van de Wauw
Jackie,

In fact one of my colleagues created a similar which do this (in .net).
We have a function setlayervisibilityfilter to which you can pass a
list of features:
groupon: group1, group2
groupoff: group3
layeron: layer1
filteron: layer1:id4

apart from that the mapid of course.

I think we even added things like selectability in the end. This may
give some inspiration on how you could do this.

Johan

On Fri, Oct 24, 2014 at 3:35 PM, Jackie Ng jumpinjac...@gmail.com wrote:
 I don't believe such functionality is available. It's definitely something to
 consider, but I'd have to think how to best do layer/group toggling in a
 REST-ful manner.

 - Jackie



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169414.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-rest feedback

2014-10-28 Thread Jackie Ng
Let me clarify this.

You can do layer/group toggling via the overlayimage URL route. If you look
at the bundled OpenLayers examples, you can see the requests that are made
when you toggle a layer or group on/off in the legend.

If you want to do this silently without requesting a new map image, then
that is not currently possible as there is no dedicated URL route for that.
The closest possible workaround would be to request an overlayimage that
will return the smallest possible information (behavior=1, format=png8/jpg),
and just discard the response.

This is similar to my documented technique of modifying MgMap state:
http://themapguyde.blogspot.com.au/2013/05/an-elegant-mgmap-hack.html

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5170073.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-rest feedback

2014-10-27 Thread U. Schlachter
Hi Jackie,

that would be nice, I have a lot of trouble with this.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169653.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-rest feedback

2014-10-24 Thread Jackie Ng
The benefit of mapguide-rest over the official MapGuide API is that the REST
API has a much simplified programming model and greater flexibility over the
official MapGuide API. 

You have to know .net, PHP or Java to use the official MapGuide API.

With the REST API, you only need to know how to make HTTP requests and
process HTTP responses. Nearly every programming language out there has some
kind of library to do this.

There's an editable properties sample application that comes with
mapguide-rest that demonstrates how you can query and edit spatial data just
by using AJAX requests to the REST API. If you look at the code behind that
example, it's all HTML/JavaScript. No trace of any .net, PHP or Java code
whatsoever.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169293.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-rest feedback

2014-10-24 Thread U. Schlachter
Is it possible to switch Layers on/off in an Fusion-Map with REST? 

I didn't find anything in the Rsst-Api.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169389.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-rest feedback

2014-10-24 Thread Berg, James
Fusion doesn't render its layers with REST, so I can't image it would. The way 
I see it, REST has nothing to do with the existing viewers or their 
functionality. It's a new method of sending and receiving map information. 
Fusion and AJAX already have their ways of sending and getting data. A viewer 
that could toggle layers on and off implementing REST would be a fundamentally 
different viewer. 
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide-rest feedback

2014-10-24 Thread Jackie Ng
I don't believe such functionality is available. It's definitely something to
consider, but I'd have to think how to best do layer/group toggling in a
REST-ful manner.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169414.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-rest feedback

2014-10-23 Thread Berg, James
Just noticed this. When I create a DWF using REST and I have labeled features, 
the labels don't show up.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide-rest feedback

2014-10-23 Thread Berg, James
Scratch that. The labeling is behaving strange depending on the sizing settings 
I have.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide-rest feedback

2014-10-23 Thread Jackie Ng
There's a whole suite of sample apps bundled with mapguide-rest demonstrating
various bits of the mapguide-rest API under rest/sampleapps/index.php

Or you can view a live version on my demo server:
http://119.9.23.42:8008/mapguide/rest/sampleapps/index.php

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169257.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-rest feedback

2014-10-23 Thread BMason
Jackie,  we currently use SQL server with php runner to make data entry forms
and database query capabilities and data editing.  Do you think that
mapguide-rest can be used for this purpose?  What are the benefits?
thanks 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169262.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-rest feedback

2014-10-23 Thread Mark Volz (LeapCAD)
Jackie,

Firstly I would just like to say it's a very powerful tool kit. I've
implemented on a number of my clients sites. I've used it in a couple of
different ways;

Option 1
I have a containing page using jquery/dojo objects reading mapguide rest
url's for dynamic content  and an iframe for the map (just a tool bar
across the top). In the map iframe I have hooks into various mapwidget
events that control the URL's used by the different jquery/dojo objects in
the host page. i.e. select an object and the photo slider, impact analysis
report and cross section panel all dynamically update.

Option 2
Same setup as per option 1 but I have replaced many of the default mapguide
widgets with jquery/dojo ones (selection panel, legend, etc). very simple to
implement and made my long standing issue with the legend panel disappear (3
stage check boxes are wonderful!!).

Option 3
Simple image creation. The basic requirement of producing an image for
polygon number 1234 at a scale of 1:50,000. Instead of approx. 200 lines of
PHP code (site connection, create session, get extents of objects, build
map, load a custom layer to highlight the polygon, print, close session.)
has turned into a single URL and some parameters in a json file. I have now
integrated this functionality with intelledox to automatically generate maps
and reports for environment impacts and emergency response plans.

Issues/tweaks I've had to make to the responses (pretty much all are just
string operations in php  code)
Calls to get the current list layers for the map;
1) would be nice if it include the link to generate the legend icon
2) would be nice if it also returned the sub styles as well as the layers

Calls against the current selection set;
1) would be nice if it returned only the fields that have been set/selected
for the layer (layer properties visible in viewer section in maestro)
rather than all fields.
2) a  variable (true/false) whether the geometry records should be returned.

And one extra really, really nice tool would be a utility that created a
smarty template for KML by reading a layer definition.

Thanks again for developing this tool kit.

Mark

P.S. a donation is on your way once I get paid for some of these sites.

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


Re: [mapguide-users] mapguide-rest feedback

2014-10-22 Thread Berg, James
I've been using MapGuide REST to develop some custom printing functionality.

In particular I've I'm interested in the PDF and DWF output. The layered PDF 
functionality I couldn't use because it doesn't work with maps with base map 
groups yet.

The DWF output has been really helpful because you can template it with a 
PrintLayout. The printlayout features are most important. The visible legend 
and scale are pretty much essential when doing anything engineering related. 
DWF is also great because users can markup the page using something like 
Autodesk Design Review. PDF is a great output for users who don't know how to 
convert things to PDF. In my world, if it can't be turned into a PDF, it need 
not exist.

The PrintLayout resource editor in Maestro is pretty limited, but out of the 
box is does what we need.

Other things I'm planning to use REST for:

Creation of a new mobile viewer based on REST and either OpenLayers or Leaflet 
could be in the future. It's all theoretical, though. If I'm going the make a 
whole new viewer I'd rather use REST than the mapagent. Seems simpler that way.

I can't think of any new features to include yet. It'll come up, though. 
MapGuide REST looks pretty important to me.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide-rest feedback

2014-10-22 Thread GordonL
HI Jackie,
I absolutely love the TransformTo parameter.  I have been playing with
Cesium and MapGuide-Rest and love it.

I love that I can reach a lot of the standard layers/feature sources with a
path rather than having to configure the restcfg.json.  

It would be cool to have a generic HTML page/KML using the same technique
where I just pass the path to the url:

http://localhost/mapguide/rest/library/REDDING/3_LAYERS/Parcels.LayerDefinition/features.kml?TransformTo=LL84;



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169044.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-rest feedback

2014-10-22 Thread Jackie Ng
Ah, forgot about KML representations.

This should be somewhat easy to implement, though it probably doesn't make
much sense to support TransformTo in this case as the MgKmlService APIs
already auto-transform any features to LL84 when outputting KML, and keeping
in mind that the majority of the REST API in mapguide-rest is nothing more
than applying a RESTful facade around existing MapGuide APIs and services

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169045.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-rest feedback

2014-10-21 Thread Jackie Ng
Hi All,

I'd like some general feedback about mapguide-rest. It's been 8 months since
I first introduced mapguide-rest to the world. How has mapguide-rest been
working for your MapGuide/AIMS installation? Any issues that I should be
aware of? Any features you'd like to see in mapguide-rest? Other feedback?

I'm all ears.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657.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 REST units for DWF scale using printLayout

2014-10-07 Thread Berg, James
I figured it out. Posting my problems here tends to help me organize my 
thoughts and solve problems. Hope you don't mind.

The solution was from an old mapguide user post: 
http://osgeo-org.1560.x6.nabble.com/scale-bar-always-says-Meters-td4203151.html

I edited rest\app\controller\mappingservicecontroller.php. Look for the 
function GeneratePlot(). This function affects DWFs created from runtime maps. 
To change the scale units for DWFs created from the library you would have to 
edit GeneratePlotFromMapDefinition(). The source code is pretty similar in 
both. One gets the map from Session, the other gets it from Library:\\.

Find the lines:

if ($printLayoutStr != null) {
 $layoutRes = new MgResourceIdentifier($printLayoutStr);
 $layout = new MgLayout($layoutRes, $title, MgPageUnitsType::Inches);
}

This checks if you're your REST request includes the path to a printlayout 
resource in Library:\\.  If so, it creates an MgLayout object. The third 
parameter in the constructor is what we're concerned with.

The parameter appears to be a constant, so you would think that the units would 
be imperial to start with. According the post, the constant doesn't work 
properly and we can work around it by including the actual string: US-English

Now the code reads:

if ($printLayoutStr != null) {
 $layoutRes = new MgResourceIdentifier($printLayoutStr);
 $layout = new MgLayout($layoutRes, $title, US-English);
}

If I could request a change to make this less confusing, it would be that the 
third parameter for the MgLayout object be dependent on some kind of global 
configuration so it doesn't need to be edited manually.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] MapGuide REST units for DWF scale using printLayout

2014-10-03 Thread Berg, James
Windows Server 2008 64-bit
MapGuide Open Source 2.5.2
MapGuide REST 0.10
Maestro 5.1

Hi,

I'm using the following REST GET request:

localhost/mapguide/rest/session/[SessionId]/[MapName].Map/plot.dwf?papersize=A3printlayout=Library://Shared/Layouts/Print.PrintLayout

Library://Shared/Layouts/Print.PrintLayout is just a library path to a copy of 
the Sheboygan print layout.

The scale that is supplied by the print layout is in metric. Is there any way 
to display a scale in inches or feet?

Thanks
[cid:image001.png@01CFDF11.767EC010]
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] MapGuide REST plot.pdf?layeredpdf=1 doesn't work for maps with base layer groups

2014-10-02 Thread Berg, James
Windows Server 2008 64-bit
MapGuide Opensource 2.5.2
MapGuide REST 0.10

MapGuide REST is a very nice thing with many valued features. Here's an error I 
found while exploiting its functionality:

Creating a layered PDF using MapGuide REST doesn't seem to work for maps that 
have base layer groups. Here's how to reproduce the error:


1.   Open localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx

2.   Find the SessionId in the query string from the TaskPane.

3.   In another window open 
localhost/mapguide/rest/session/[SessionId]/Sheboygan.Map/plot.pdf?layeredpdf=1

Page displays an error instead of the PDF.

This error does not occur when using a non-tiled map such as

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

Re: [mapguide-users] MapGuide REST plot.pdf?layeredpdf=1 doesn't work for maps with base layer groups

2014-10-02 Thread Jackie Ng
Issue logged: https://github.com/jumpinjackie/mapguide-rest/issues/73

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-REST-plot-pdf-layeredpdf-1-doesn-t-work-for-maps-with-base-layer-groups-tp5165523p5165552.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-rest security

2014-04-04 Thread Roberto Quintela Modia
I’m trying to unsubscribeme but nothing…

¿¿¿???

Thanks
Kintela
@esekintela



El 04/04/2014, a las 00:05, GordonL gordon.luck...@arrowgeomatics.com 
escribió:

 Ok the restcfg.json was relocated between versions:
 
 
 I was adding the:
 Representations: {
xml: {
Adapter: FeatureSetXml,
Methods: {
GET: {
MaxCount: 500
},
POST: {},
PUT: {},
DELETE: {}
}
 
 to \www\rest\conf\property\restcfg.json
 
 where I should have modifying:
 
 \www\rest\conf\data\property\restcfg.json
 
 I can edit now in mapguide-rest 0.6!!
 
 Thanks Jackie!
 
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/mapguide-rest-security-tp5132879p5132983.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


[mapguide-users] mapguide-rest security

2014-04-03 Thread GordonL
Hi Jackie, kudos for mapguide-rest I would like to say first!

Some questions:
1. Does version 0.5 support XML post/put/delete?
2. In version 0.6, I am struggling just getting authenticated (tried
Anonymous and Administrator/admin) but get the
http://localhost/mapguide/rest/data/property/1.xml or any type, gives me 403
after login...

Any clues about the second issue?

IIS 7.5
mapguide 2.5
6.4 bit





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-security-tp5132879.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-rest security

2014-04-03 Thread Jackie Ng
1. 0.5 was just a test of the github release system and not actually for
consumption, but nevertheless XML post/put/delete should've already been
implemented at that point.

2. Are you sure you're actually using 0.6 and not the git master? I'm
currently working on ACLs for published data sources. The existing examples
have not yet been updated to use ACLs so they will 403 for any MG user or
session ID you pass in.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-security-tp5132879p5132901.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-rest security

2014-04-03 Thread Roberto Quintela
How could i unsuscibme

kintela
El 03/04/2014 15:40, GordonL gordon.luck...@arrowgeomatics.com escribió:

 Hi Jackie, kudos for mapguide-rest I would like to say first!

 Some questions:
 1. Does version 0.5 support XML post/put/delete?
 2. In version 0.6, I am struggling just getting authenticated (tried
 Anonymous and Administrator/admin) but get the
 http://localhost/mapguide/rest/data/property/1.xml or any type, gives me
 403
 after login...

 Any clues about the second issue?

 IIS 7.5
 mapguide 2.5
 6.4 bit





 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/mapguide-rest-security-tp5132879.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-rest security

2014-04-03 Thread GordonL
Thanks Jackie, I think the Master not 0.6 was the issue with Security...

My XML POST Error:
Slim Application Error
The application could not run because of the following error:

Details

Type: Exception
Message: The configured representation 'xml' is not configured to handle
POST requests
File: C:\Program
Files\osgeo\mapguide\www\rest\app\controller\datacontroller.php
Line: 72

Post Request: http://localhost/mapguide/rest/data/property/.xml

My XML:





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-security-tp5132879p5132979.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-rest security

2014-04-03 Thread GordonL
Ok the restcfg.json was relocated between versions:


I was adding the:
Representations: {
xml: {
Adapter: FeatureSetXml,
Methods: {
GET: {
MaxCount: 500
},
POST: {},
PUT: {},
DELETE: {}
}

to \www\rest\conf\property\restcfg.json

where I should have modifying:

\www\rest\conf\data\property\restcfg.json

I can edit now in mapguide-rest 0.6!!

Thanks Jackie!




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-security-tp5132879p5132983.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 REST Extension Documentations

2010-03-30 Thread Simon Pelicon
Hi!

You can get some information on www.georest.com and
from sample which comes with georest download.
There will be some documentation/wiki soon, but for now I can give you
some explanation on how to work with georest.

simon

On Sun, Mar 28, 2010 at 8:42 PM, Nimrod Cnaan nimcn...@hotmail.com wrote:


 Is there any Documentations on how to work with Jason's RESTful technology
 ?

 --
 View this message in context:
 http://n2.nabble.com/MapGuide-REST-Extension-Documentations-tp4814222p4814222.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


[mapguide-users] MapGuide REST Extension Documentations

2010-03-28 Thread Nimrod Cnaan

Is there any Documentations on how to work with Jason's RESTful technology ?

-- 
View this message in context: 
http://n2.nabble.com/MapGuide-REST-Extension-Documentations-tp4814222p4814222.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 REST Extension

2009-02-04 Thread GordonL

Hi Jason,
the REST extension looks really promising.  I particularly like the
code-free aspect to extract attributes and coordinates of the features.

Have  you found it limiting due to the GET limitations.  For example, I
often have features with thousands of vertices, and it would be difficult
passing those features as a GET...

thanks 
gordon


Jason Birch wrote:
 
 Hi all,
  
 Haris Kurtagic of SL-King has been working on a REST extension for
 MapGuide, which basically exposes the individual features of
 MapGuide-authored FDO data sources as resources on the web.  The code is
 currently undergoing a major refactor to work around some limitations and
 make it ready for the open source community, so it probably won't be
 available for about a month.  However, in the hopes of gaining early
 feedback and generating interest, I've blogged about some of the technical
 details here:
  
 http://tinyurl.com/mapguide-rest http://tinyurl.com/mapguide-rest 
  
 and you can see a live example on the City of Nanaimo's new maps site:
  
 http://maps.nanaimo.ca/data/property/
 http://maps.nanaimo.ca/data/property/ 
  
 The beauty of this is that I didn't have to write any code, just had to do
 a bit of configuration.  As we get closer to being release-ready, I'll try
 to blog a series of short tutorials to cover the basics of configuration
 and how to work with this extension's Google CTemplate implementation.
  
 If you have any questions or feature suggestions, please respond here or
 in my blog comments, and I'll do my best to respond.
  
 Jason
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/MapGuide-REST-Extension-tp2252742p2270543.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


  1   2   >