Re: [mapguide-users] Mapguide and the Cloud

2021-10-05 Thread Riccardo Pucci
ther spun up instance if
> it is misbehaving. By making your data/repository read-only, you can
> simplify spinning up a mapagent/mgserver pair with the following
> provisioning process.
>
>1. "Install" MapGuide server and webtiers via the InstantSetup package
>2. Use the included MgInstantSetup utility to set up paths and port
>numbers
>3. Assuming you're using the 4.0 previews:
>   1. Load in your packages from the command-line with mgserver (eg.
>   mgserver.exe loadpackage path/to/package/file.mgp)
>   2. Optionally change the password for Administrator and other user
>   accounts from the command-line also with mgserver
>4. Start the mgserver
>
> Now if you're not constrained by Windows / .net and can use Linux then you
> can explore the big-league stuff with docker containers and orchestrating
> it all through something like Kubernetes. That's another major topic on its
> own, so it may not be something you want to pursue.
>
> Hope this helps give you some more ideas.
>
> - Jackie
>
>
>
> You wrote:
>
> Hi,
>
>
> I have been thinking what is the best architectural solution to implement an
>
> ASP.Net/mapguide scalable solution at AWS Cloud.
>
> Today I have a windows server EC2 instance running the web server and
>
> mapguide. To be able to use EC2 autoscaling, I have to deal with user
>
> sessions outside the web server, maybe a ElastiCache as an ASP.NET Session
>
> Store.
>
> But I also have to deal with mapguide sessions outside EC2, maybe put them
>
> in Amazon Elastic File System ?
>
> I want to explore other options of architecture and open this discussion.
>
> How you guys are using mapguide in a cloud enviroment ?
>
> Liglio Cavalcante
>
>
>
>
>
> --
> *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
>


-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Is SQL Server GeometryCollection supported?

2020-11-06 Thread Riccardo Pucci
Hi Jon

I had the same issue with geometry collection, in sqlserver but also in
oracle and postgress. I suspect that MGOS is not able to render geometry
with mixed primitive (points, linestring, polygons).
I'm not gone deeper, because that issue was not critical for my project

Riccardo

Il giorno gio 5 nov 2020 alle ore 16:59 _Jon_  ha
scritto:

> I have been having difficulty viewing data that is stored in SQL Server as
> a
> GeometryCollection.  If the collection is split up into its component
> LINESTRING, COMPOUNDCURVE and CIRCULARSTRING elements I can see them just
> fine but I don't see anything when these features are stored in a
> collection.  Is GeometryCollection supported, and if so, is there a trick
> to
> using this type of geometry with mapguide?
>
>
>
> --
> 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



-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Memory Leak in Java

2019-12-20 Thread Riccardo Pucci
Hi Jackie
thanks for the hints!Calling .delete() changes nothing, it was the first
thing I tried to do...
MgByteSource (MgByteSync) instead, works well! For the moment I'll go with
temporary files.I'll try to make some other test with GetResourceContent to
understand if the leak is related to the reader or only to GetResourceData

Riccardo


Il giorno ven 20 dic 2019 alle ore 02:59 Jackie Ng 
ha scritto:

> Still haven't ran your test code, but I have looked at it at a glance and
> throwing out some ideas to try and pre-emptively solve your problem.
>
>  1. This may not actually be a memory leak in the classical definition but
> rather a case of memory being allocated faster than the Java GC can clean
> up. All Java proxy classes have a delete() method that tears down the
> underlying associated C++ pointer and frees any associated memory. This
> method is generally called as part of GC finalization. Perhaps try calling
> delete() on your MgByteSource/MgByteReader manually after using them to
> force the matter perhaps?
>
>  2. Do you need/have to pass file byte buffers around? MgByteSource
> constructor can also take a file path, so there's the option of using temp
> files, which would avoid needing to manage byte buffers and marshaling them
> between Java <-> C++ and avoid allocating memory on the C++ side to handle
> the marshaled bytes.
>
> - Jackie
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users



-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Memory Leak in Java

2019-12-19 Thread Riccardo Pucci
Hi Jackie

Exactly, I wanted to test if the leak is related to Java API only. .Net
test case works as expected.

Il giorno gio 19 dic 2019 alle ore 08:26 Jackie Ng 
ha scritto:

> I've just downloaded your test code and I'll take a look sometime over the
> xmas/NY break.
>
> Just to clarify: Is the included .net version leaking as well? Or is it
> just
> a reference point for what you're trying to achieve in Java?
>
> - Jackie
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users



-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Memory Leak in Java

2019-12-19 Thread Riccardo Pucci
Hi Benoit
Your hint is helpful: I tried with a smaller buffer (1024) and the leak is
greatly reduced so the dimension of buffer is somehow involved. Still the
leak remain. There is some memory allocated by c++ that is not freed. That
memory is off of the java heap, so it cannot be directly managed by garbage
collection.
Riccardo

Il giorno mer 18 dic 2019 alle ore 21:50 Benoit Begin 
ha scritto:

> Hi,
>
> I'm no Java expert, but I feel it could be a similar issue that you may
> face
> with .NET and Large Heap Objects. With the size of the byte array you are
> creating, 1024x1024, you might be overruning the size of the level 1
> generation for the Garbage Collector and end up putting your data in a
> later
> generation that doesn't get collected very often.
>
> So when I do things in .NET with MgReaders that can get sizeable, I do set
> a
> hard cap at 4096 bytes being read per iterations and they don't end up on
> the LOH. Looking at your code, you potentially create 4 1MB large objects
> every round. So those likely end up somewhere in your memory stack that the
> JVM garbage collector doesn't clean up very quickly.
>
> I did some quick Google searches about it and it seems a fairly common
> topic
> when it comes to Java and object generation. I think it might be worth it
> to
> do a quick search to optimize on that front.
>
> Hopefully someone more knowledgeable about Java can chime in, but I feel it
> might be a worthwhile area to look into while waiting for a reply!
>
> Regards,
>
> Benoit
>
>
>
> --
> 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



-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Memory Leak in Java

2019-12-18 Thread Riccardo Pucci
Hi

I'm facing a huge memory leak in ResourceService.GetContentData using Java
API.
.Net API works well but I need it in Java :)
I've written a small test case that can be run on any Mapguide Server since
it use just Session Repository. Below the link to the test source code.

https://drive.google.com/drive/folders/1HNrHd4smOczyxOcVM0uw3Opgvzsjfv8A?usp=sharing


I think an issue should be filled, but I'm not authorized.

Riccardo

-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MSSQL Provider

2016-01-18 Thread Riccardo Pucci
Thanks Gordon,

Usually mapguide server service restart is enough, the problem is that it
requires manual intervention.
I wonder if there is some trick to purge pool from invalid connection
without to restart.

Riccardo.

2016-01-15 21:08 GMT+01:00 GordonL <gordon.luck...@arrowgeomatics.com>:

> Since there is a connection but it was lost, you may have restart the web
> service too.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/MSSQL-Provider-tp5245582p5245605.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




-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] MSSQL Provider

2016-01-15 Thread Riccardo Pucci
Hi all
We have a customer where sometimes happens that network connection between
servers where mapguide and database are installed gets lost. After
connection is reestablished (maybe some milliseconds after) We got this
error from provider:

RDBMS: [Microsoft][SQL Server Native Client 10.0]SMux Provider: Physical
connection is not usable [x]. (Cause: , Root Cause: RDBMS:
[Microsoft][SQL Server Native Client 10.0]SMux Provider: Physical
connection is not usable [x]. )

Obviously is not a mapguide problem, but when it happens the only thing we
could do is restart the mapguide server service.
Others connection pool technologies (java common-dbcp for example) have an
option to check if the connection is valid after borrowing it from the
pool, by making a validation query like: "select 1". If the test is not
positive the connection is removed from pool and another one is borrowed.
Is there something analogous in MapGuide/Fdo, or someone knows any
workaround to avoid manual intervention after this problems?

Thanks!

Riccardo

-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] What Java version is needed for Mapguide 3.0?

2015-10-28 Thread Riccardo Pucci
Hi
1) Check if MapGuideJavaApi.dll is in java.library.path (on Windows the
easiest way is put MapGuideJavaApi.dll directory in system path).
2) Check if JVM and Mapguide are both 64 bit (or both 32bit)

Remember that if MgInitializeWebTier call fails the first time, any other
subsequent call do nothing, and the MapguideApi.jar is not loaded in
classpath, so any reference to a class inside the jar will throw a
ClassNotFoundException.

Riccardo

2015-10-27 18:31 GMT+01:00 Flipper <sco...@mpowerinnovations.com>:

> I have an old coldfusion Mapguide app that I wanted to keep maintained.
> its coldfusion 11 64 bit on Java 1.8 JRE I can't even get past
> MgInitializeWebTier.
> Trying to run Lines 4-5 Seperately on any other version gets the Object and
> dumps its methods on 3.0 it can't even retrieve the Object.
>
> 1
> 2 createObject("java","org.osgeo.mapguide.MapGuideJavaApi")>
> 3 Files\OSGeo\MapGuide\Web\www\webconfig.ini')>
> 4
> mgUserInformation=createObject("java","org.osgeo.mapguide.MgUserInformation")>
> 5
>
> I've copied all the C:\Program Files\OSGeo\MapGuide\Web\Tomcat\bin
> (except the MapGuideJavaApiEx.dll) into the cfusion/lib folder as well as
> the MapguideApi.jar, commons-codec-1.3.jar, and commons-fileupload-1.0.jar
> files.
>
> In the past this is all that was needed..I don't know if their are more
> dependancies or if Java 1.8 64 bit isn't compatible anymore
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/What-Java-version-is-needed-for-Mapguide-3-0-tp5232882.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




-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Color property in Mapguide 2.5.2

2015-04-29 Thread Riccardo Pucci
Color should be mapped to an expression that evaluate to Int32.
AFAIK Fdo Expression lack a function to convert hex to number...

Riccardo

2015-04-29 15:36 GMT+02:00 Jérôme Touré j.to...@global-stern.com:

 Hi all,

 In order to assign a color to a layer style from an Oracle database , I
 have to convert TO_NUMBER my color hex value.
 Is it possible to pass the hex value without this conversion ?

 Thanks in advance for your answers.

 Jérôme Touré

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




-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuideApi.MgInitializeWebTier String Problem (2.5 and 2.6 side by side)

2015-02-19 Thread Riccardo Pucci
Hi,
Only the first call to MgInitializeWebTier made inside the process that
load MapGuideAPI.dll actually read webconfig.ini file and initialize the
API. All the calls made after the first are ingnored.
If the process where your app runs, is shared with 2.5 the first one that
inizialize the API rules..

Riccardo

2015-02-19 14:07 GMT+01:00 Emma Schmidt emma...@gmx.net:

 Hi, its me again :-)

 I've installed the MG 2.6 by now (64 bit, mapviewernet (.NET)).  It’s a
 side by side installation with 2.5. It works fine as long as I’m not using
 the API.

 I can’t create a new Session with the MG2.6  with Code like that

 Dim webConfig As String =
 C:\Programme\OSGeo\MapGuide26\Web\www\webconfig.ini
 MapGuideApi.MgInitializeWebTier(webConfig)

 Dim site As New MgSite

 site.Open(New MgUserInformation(Anonymous, ))

 sessionId = site.CreateSession
 Session(var_sessionId) = sessionId


 The Problem is that the “MapGuideApi.MgInitializeWebTier(webConfig)” goes
 on the wrong “webconfig.ini”. It doesn’t matter if the sting is empty or
 wrong. (MapGuideApi.MgInitializeWebTier(“whatever”))

 I’ve got the feeling that it’s not using the sting inside the
 initialization. How can I work with the sting inside the initialization?

 Thanks helping :-)

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




-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide 2.5.2 : runtime map not properly closed...

2015-01-14 Thread Riccardo Pucci
The only thing I found should be explicitly closed is FeatureReader...

Riccardo

2015-01-13 19:29 GMT+01:00 Rémy Gourrat rgour...@ag-carto.fr:

  Hi,



 I developped in .net, a mapguide 2.5.2 ajax viewer application which read
 a map definition in library repository, edit and change the srs of all the
 feature source used by the current map,  add a filter to each layer and
 save it in the repository session.



 It seem to work fine.



 But 1 time by day, after 20 or 30 session initialized, mapguide can’t
 initialize a new session.



 The Old sessions are fine, I checkrd serverconfig.ini but I didn’t change
 the limit session.



 If i do nothing, sometime or not I have a dbxml error in the log but not
 systematically : “Error: An exception occurred in DB XML component.”



 But i see something important,



 - if i use a map without using my code (standard solution), after closing
 the viewer, MapGuide close the session and delete session files in the
 session repository correctly.



 - if I use the same map but using my code, map display and run very fine,
 but MapGuide never close the session.



 Session files in the session repository are present until I restart the
 mapguide service.



 If I try to connect to this session with Ajax viewer it said to me this
 session not exist…



 It’s a bug.



 i think I must forget something fundamental,



 is it necessary to close resource and feature service after generation of
 the runtimemap, and how ?



 is it something locked and mapguide can’t really delete sessions files ?



 thanks for your help



 Rémy






  AG-Carto - Bayonne

 --
 View this message in context: MapGuide 2.5.2 : runtime map not properly
 closed...
 http://osgeo-org.1560.x6.nabble.com/MapGuide-2-5-2-runtime-map-not-properly-closed-tp5181326.html
 Sent from the MapGuide Users mailing list archive
 http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html at
 Nabble.com.

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




-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Java vs PHP

2014-12-18 Thread Riccardo Pucci
Hi Farhan,

I use java api daily without problems. Basically there are no difference
between :net, php and java api because Mapguide has a single C++ server
side api, exposed via swig to the three high level languages. For that
reason documentation and samples are valid for the 3 languages.

The real choice that matters is the client viewer technology you want to
use:
1) Ajax viewer: you can use php, .net and java for customization. From java
point of view you are limited to jsp only programming (no servlets, no
frameworks).. not very comfortable.
2) Fusion viewer: only php available for customization.
3) Build your own openlayers based viewer. Much more effort but no
restriction.

My 2 cents: if  1) or 2) match your needs with little customization, go for
it and use php for portability. If you plan to do many changes or map
viewer is just a small piece of your whole project go for 3) with
technology you are most productive for you.

Riccardo

2014-12-17 15:22 GMT+01:00 Farhan Khan mrfarhank...@gmail.com:

 ok thanks a lot James.

 If anyone else has any experience regarding this, please do share.

 On Wed, Dec 17, 2014 at 7:20 PM, Berg, James james.b...@stantec.com
 wrote:

 It’s difficult to provide specific links. It’s more of a general
 impression that I have been given over time.

 I can tell you that most of my impressions come from this mailing list
 and this blog: http://themapguyde.blogspot.ca/

 ___
 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



-- 
Riccardo Pucci
Geoweb Italia S.r.l.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Centos Mapguide 2.6 Oracle provider missing

2014-10-17 Thread Riccardo Pucci
I'm pretty sure is Linux-wide. It depends on sizeof wchar_t which is 
compiler specific: on Windows (visual c++) is 2 byte while on Linux 
(gcc) 4 byte.
When Haris switched from UTF-8 to UTF-16 charset to perform oracle 
connection, used wchar_t to pass/retrieve string to oracle. In windows 
it's ok because UTF-16 and wchar_t have the same size, in Linux a 
shrink/deflate should be performed each time there's need to copy data 
from/to wchar_t array to/from the UTF-16 array, as some OCI wrapper 
does.  (OCILIB for example).
I tried in the past to modify the provider in a such way, but I never 
been able to have a fully functional provider, and finally I gave up.


Il 17/10/2014 02:18, Jackie Ng ha scritto:

Is this a Linux-wide issue or specific to one particular distro?

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Centos-Mapguide-2-6-Oracle-provider-missing-tp5167230p5167915.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] Centos Mapguide 2.6 Oracle provider missing

2014-10-16 Thread Riccardo Pucci

Hi Kajar,
Sadly this old bug http://trac.osgeo.org/fdo/ticket/562 prevent king 
oracle provider to work on Linux.
I think there are more chance with OGR Provider, but it should be 
compiled with Oracle Spatial support.


Riccardo.

Il 16/10/2014 10:17, Kajar ha scritto:

Now all files are istalled and Oracle Instant client is configured but I got
error when I want to connect to oracle database using Maestro:

The remote server returned an error: (559) MgFdoException.:
An exception occurred in FDO component.
Error occurred in Feature Source
(Session:4643b2a8-5508-11e4-8000-227fbd1e24c6_en_MTI3LjAuMC4x0AFC0AFB0AFA//7558decb-3d62-4d53-a8c2-874ec9389065.FeatureSource):
An exception occurred in FDO component.
Failed to retrieve the third party exception mesage. This message may not be
unicode compliant.

- MgFdoConnectionManager.Open() line 333 file FdoConnectionManager.cpp
- MgFdoConnectionManager.CacheFdoConnection() line 1097 file
FdoConnectionManager.cpp
- MgFdoConnectionManager.Open() line 1089 file FdoConnectionManager.cpp
  (Cause: , Root Cause: )
- MgFeatureServiceHandler.ProcessOperation() line 83 file
FeatureServiceHandler.cpp
- MgOpTestFeatureSourceConnection.Execute() line 100 file
OpTestFeatureSourceConnection.cpp
- MgServerFeatureService.TestConnection() line 243 file
ServerFeatureService.cpp
- MgFdoConnectionManager.Open() line 366 file FdoConnectionManager.cpp
The remote server returned an error: (559) MgFdoException.

Configuration i have:Centos 6.5(32 bit), Oracle instant client is 11ver(32
bit), Mapguide 2.6(32bit) Oracle database is 10ver(64bit).
Maybe 32 vs 64bit problems?





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Centos-Mapguide-2-6-Oracle-provider-missing-tp5167230p5167763.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] Rasterlite file on MGOS

2014-10-01 Thread Riccardo Pucci
Size depends on compression algorithm used to store tiles inside db, and 
on the number of overlay used on the pyramid.
I started from a already jpeg compressed geotiff, and I made 4 overlays 
without reduce quality. Final file was about the double in size.
I didn't tried wavelet compression through EPSILON library because I 
haven't find binaries around.

I was interested on quality and speed so I didn't mind size :)

Riccardo

Il 29/09/2014 04:15, Jackie Ng ha scritto:

That's interesting to hear. How does rasterlite fare in the size department?
Is it smaller/larger than the TIF file you converted from?

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rasterlite-file-on-MGOS-tp5163963p5164633.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] Rasterlite file on MGOS

2014-09-24 Thread Riccardo Pucci

Hi All,

I successfully managed to connect MGOS to a rasterlite db using FDO GDAL 
Provider.
Rasterlite is a library designed to give fast read access to large 
raster dataset. Data are stored in a sqlite db. When loaded into the db, 
raster are automatically tiled and pyramidal set of overview can be 
built. Follow the link below for better explanation.


http://www.gaia-gis.it/spatialite
http://www.gdal.org/frmt_rasterlite.html

Since GDAL Provider shipped with MGOS is not built with rasterlite 
support, I have followed the instruction to add ECW, MrSID as per


http://trac.osgeo.org/mapguide/wiki/MGOS22GdalProvider

Since I tested it with MGOS 2.5 I grabbed the needed dll from:

http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-1-9-0-mapserver-6-0-1.zip

If you want to give it a try you can use the gdal utilities to create a 
new rasterlite db (from a large geotiff for example):


gdal_translate -of Rasterlite yourfle.tiff 
RASTERLITE:filename.sqlite,table=source -co DRIVER=JPEG -co 
BLOCKXSIZE=1024 -co BLOCKYSIZE=1024 -co QUALITY=100

gdaladdo RASTERLITE:filename.sqlite,table=source 2 4 8 16

After that you just have to create a new GDAL feature source using 
Maestro and select the newly created  sqlite file.
I made a little test with a small (2x1) jpeg, performance are 
nearly 10 times better compared with original raster used as is.


Hopes it helps :)

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


Re: [mapguide-users] Any version of MGOS 64bit on Linux available?

2014-09-01 Thread Riccardo Pucci

Hi Jackie,

The issues 3 and 4 are blockers for both server and WSE or just for server?
Are there chances to get a working 64bit WSE?


Riccardo

Il 28/08/2014 12:55, Jackie Ng ha scritto:

Here's a laundry list of blockers that I know of that are preventing us from
a working 64-bit build of MapGuide.


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


[mapguide-users] Java memory leak

2013-12-20 Thread Riccardo Pucci

Hi,

I have a mapguide project running in a linux environment using the java 
api. After the user's load is increased from 10 users to about 150, we 
are continuously getting out of memory errors.
I've seen that java api had suffered memory leaks problems, we are using 
AIMS 2013 sp1, is it possible that also this version is affected? If 
answer is yes, can AIMS 2014 resolve ours problem?


Thanks

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


Re: [mapguide-users] Fusion cannot establish connection to the Mapguide Server

2013-10-23 Thread Riccardo Pucci

Liglio,

I guess you have a Web Server Extention, installed on your workstation, 
that points to your server. Pointing Maestro to your local WSE, are you 
able to connect to the server?


Riccardo

Il 21/10/2013 22:45, Liglio ha scritto:

Riccardo,

Thanks for you replay. I made the changes in the serverconfig.ini and
restarted the mapguide server, but the problem still remains. Maybe this can
be an Ipv6 problem ?

Liglio



--
View this message in 
context:http://osgeo-org.1560.x6.nabble.com/Fusion-cannot-establish-connection-to-the-Mapguide-Server-tp5083718p5084887.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] Fusion cannot establish connection to the Mapguide Server

2013-10-21 Thread Riccardo Pucci

Hi

Check inside serverconfig.ini (on the server): the MachineIp and 
IpAddress parameter should have the exact same value as IpAddress in 
webconfig.ini.
For example if on serverconfig.ini you have 127.0.0.1 you should change 
to 192.168.177.128.


Riccardo

Il 15/10/2013 16:31, Liglio ha scritto:

Hi,

I have a server installed with Windows server 2012 and mapguide server 2.5.
I am developing a application using Fusion and .NET. When the application is
installed at the server everything works fine, but if I try to run the
application from my workstation Fusion recieves a html response Cannot
establish connection to the Infrastructure Map Server as shown below. The
webconfig.ini is pointing to the right server IP address at
SiteConnectionProperties (IpAddress=192.168.177.128).

If someone can help, I appreciate.

var appDefUrl = Fusion.getQueryParam('ApplicationDefinition');
if(appDefUrl  (
 appDefUrl.indexOf('Library') == 0 ||
 appDefUrl.indexOf('Session') == 0)){
 var passedSessionId = Fusion.getQueryParam('Session');
 if(passedSessionId == null || passedSessionId ==  ){
 createSessionId(Fusion.getQueryParam(Username),
Fusion.getQueryParam(Password));
 }else{
 Fusion.sessionId = passedSessionId;
 }
 var xhr = new getXmlHttpRequest();
 var mapAgentUrl = getAgentUrl();
 xhr.open(GET, mapAgentUrl +
?OPERATION=GETRESOURCECONTENTVERSION=1.0.0LOCALE=enCLIENTAGENT=MapGuide+DeveloperRESOURCEID=
+ appDefUrl + FORMAT=text%2FxmlSESSION=+ Fusion.sessionId, false);
 xhr.send(null);

// The error is here ***
//* xhr.responseXML is null  and  xhr.response is shown bellow
***

 var appDefXML = xhr.responseXML.documentElement;

//*

 if(appDefXML){
 var googleElement =
appDefXML.getElementsByTagName(GoogleScript)[0];
 var yahooElement = appDefXML.getElementsByTagName(YahooScript)[0];
 var veElement =
appDefXML.getElementsByTagName(VirtualEarthScript)[0];
 var osmElement =
appDefXML.getElementsByTagName(OpenStreetMapScript)[0];

 addElement(googleElement);
 addElement(yahooElement);
 addElement(veElement);
 addElement(osmElement);
 }
}

xhr.response:
html
head
titleMgConnectionFailedException/title
meta http-equiv=Content-Type content=text/html; charset=utf-8
/head
body
Problem:\nCannot establish connection to the Infrastructure Map
Server.\n\nPossible Causes:\n-Your session has been idle for too
long;\n-Infrastructure Map Server is no longer responding;\n-Internet
connection problems.\n\nSolution:\nRestart your application / session,
restart the Infrastructure Map Server service, or contact with the server
administrator.

Problem:\nCannot establish connection to the Infrastructure Map
Server.\n\nPossible Causes:\n-Your session has been idle for too
long;\n-Infrastructure Map Server is no longer responding;\n-Internet
connection problems.\n\nSolution:\nRestart your application / session,
restart the Infrastructure Map Server service, or contact with the server
administrator.

/body
/html



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-cannot-establish-connection-to-the-Mapguide-Server-tp5083718.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] Advanced Stylization labelling

2013-07-30 Thread Riccardo Pucci
I have (sometime) used AS in my projects. From what I have understood, 
it's not correct to talk about labeling with A.S., but more exactly you 
can use text to stylize features.
Text became part of the main feature style (for example text can be part 
of the selection blue shape), and position, rotation and all other text 
properties are calculated by evaluating style rules for points, lines, 
and area and only by that.
So if you want fine grained control on label text position, rotation, 
etc AS is good. In contrast, interference between two text are not 
evaluated (AFAIK), and, for a given feature, text label wouldn't be 
drawn if the stylization rule used, place it outside of map request 
boundary.


Riccardo



Il 30/07/2013 03:26, Jackie Ng ha scritto:

Yes, I'm asking a question here :)

Does anyone know if Advanced Stylization lifts the limitation of label
display on line/area styles being at the mercy of the renderer? ie. Does
Advanced Stylization have anything akin to (fixed labels for basic point
styles) for line/area styles using Advanced Stylization?

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Advanced-Stylization-labelling-tp5069517.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] Dinamic Tile Render

2013-04-15 Thread Riccardo Pucci
Ok, I'm not talking about tiling as a cache system, I know that in 
webgis this is the common meaning of the word, so I will not use it 
anymore :)


I have a customer that asked me to implement a service that generate in 
background (during night) pdf file for later print. To do that I have 
encapsulated the image I retrieve via GETDYNAMICMAPOVERLAYIMAGE in pdf 
file. To obtain a decent result i have increased SETDISPLAYDPI parameter 
to 300 and adjusted SETDISPLAYWIDTH,SETDISPLAYHEIGHT and SETVIEWSCALE to 
produce the image I need. This work well till A3 print format. Then my 
customer ask me to generate A0 pdf file with the same quality. I 
explained him that it is not possible, since the image to retrieve it 
simply to big for MapGuide to generate. He pointed me out that A0 are 
just 8 A3 paper side by side, so what I'd should do is to make 8 
independent request to GETDYNAMICMAPOVERLAYIMAGE and then make a collage 
inside PDF...
The problem is that each request produce an image that is optimized for 
the specific view, so the combined image does not looks well at the 
border of two adjacent tile. A label for a polygonal feature, for 
example, could be render in both tile if the polygon is splitted a 
half in and a half in another tile.


I know that this is how MapGuide work and there is nothing to do. I just 
wonder if in the future, could be technically possible to have a 
rendering option to tell MapGuide to stylize feature without 
optimization at the border of the view. I'm interested to this not much 
for printing purpose, but to develop mobile application.


I'm sorry for my poor english :)

Riccardo

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


Re: [mapguide-users] Dinamic Tile Render

2013-04-15 Thread Riccardo Pucci

Hi Hans,

Thanks for the answer. I didn't tried yet to generate pdf with tiles. 
I gave up, due to rendering issue at the border of each tile when you 
deal with vector layer.


Riccardo

Il 15/04/2013 11:48, Hans Milling ha scritto:

Hi Riccardo

Do you put the individual pictures inside the PDF? I think that PDF files
smooth the edges of images making them semi transparent. Perhaps the GDI+
fuctions is doing this (you can turn this off i think).

What I do to produce A0 print is:

1. Make a bitmap that is the size of the output image. A0 600 dpi will be
like 19000x26000 pixels.
2. Render the tiles and draw them in the bitmap (Using the Graphics object
and DrawImageUnscaled).
3. Save the bitmap or put it inside a pdf.

The A0 bitmap in memory is a little over 2 GB in size and when saved as PNG
is 1.2 Gb in size on my machine (when printing ECW/Orthofoto). I guess
vector maps will be less once compresed. I am not sure if anyone want to
print A0 images or have any printer or software that can handle images of
this size.

Best Regards
   Hans Milling...



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Re-Dinamic-Tile-Render-tp5046148p5046907.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] Dinamic Tile Render

2013-04-15 Thread Riccardo Pucci

Jackie,
I like your solution, not for printing but for mobile apps it could work 
(at least with device with normal pixel density...)
Do you think the new Map Definition with base layer, could be stored in 
session repository? I ask it  because see that tiles are stored in the 
filesystem, in folder named path_to_mapdefiniton_mapname.


Riccardo

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


Re: [mapguide-users] Dinamic Tile Render

2013-04-12 Thread Riccardo Pucci

Hi Jackie,
That's true, But I think about some use case where dynamic tiles could 
be very useful:
1) Large format, high definition print service: if you want to create e 
pdf file of your map in A0 format and 1200 dpi resolution ( ! ), it 
could be possible to make a collage of tiles.
2) Mobile mapping application: during last few days, I've played with 
Google Maps Android Api v2. There is a TileProvider service you can 
implement to overlay map image generated with MapGuide. Obviously, at 
the tiles border, label and linestyle does not match very well, but it's 
amazing to rotate an tilt your map... and you can store the tiles on the 
device for offline navigation!


Since MapGuide can generate tiles for base layers, could be feasible to 
extend such behavior to dynamic layers?

Actually this is my n°1 position on mapguide wishlist!

Riccardo


Il 12/04/2013 08:16, Jackie Ng ha scritto:

Dynamic tile is an oxymoron.

Tiles are renderings of base layers at fixed zoom levels from a discrete
list of finite display scales. This is how tiles work.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Re-Dinamic-Tile-Render-tp5046148p5046278.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] Selection image opacity in Fusion

2013-03-19 Thread Riccardo Pucci

Hi all,
Is it possible to change opacity value of selection image in Fusion? I 
tried setting low alpha in SelectionColor element within my 
.ApplicationDefinition file but it seems that alpha component is ignored.


thanks Riccardo

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


Re: [mapguide-users] no MapGuideJavaApi in java.library.path

2009-01-08 Thread Riccardo Pucci
I think that problem is in the name: in Linux system, JNI search for 
something named libMapGuideJavaApi.so, and that file should be found in 
the library path, while in windows system it search for 
MapGuideJavaApi.dll. You may try to make a symbolic link to the object 
created by build system named libMapGuideJavaApi.so
The easiest way to put a library in the library path is to ensure that 
the directory where is located is in the system path.


Hope this helps
Riccardo

gimbrogno @smartlab ha scritto:

Hi, I have installed Mapguide OpenSource on same linux systems (ubuntu 7.10
and CentOS 5.1), but I have an error  zwhen try the java sample !!!

When LinuxApt is compiled, it is not able to create the MapGuideApi.jar, so
I have copied this jar from a windows in /WEB-INF/lib. 
Unber the directory tomcat/conf there is not Catalina/localhost, so I have

created this two directories and I've copied the LinuxApt/mapguide.xml into.

After these works the result page is no MapGuideJavaApi in
java.library.path... , but MapGuideJavaApi is not a jar file but a static
object (MapGuideJavaApi.so.0.7). Where is the library path where this object
must be copied to?

Under windows systems, I have no problems!!! There is anyone that uses
MaGuide OpenSource under Linux that can helps me?

Thanks in advantage... (I'm sorry for my english, but english is not my
native language)
  


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