Re: [mapguide-users] ECW file with mapguide 2.4 and gdal 1.9

2012-11-02 Thread Jonio, Dennis (Aviation)
Mange,
I have 2.4 RC1 working with GDAL 1.9. I just followed the procedure outlined 
for one of the older releases(gdalplugins directory and copy some files around) 
and it seems to work fine. 
However, I do not use ECW but use MrSiD. Process should be the same.
r,
dennis
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Map takes very long time

2012-10-29 Thread Jonio, Dennis (Aviation)
David,
The only thing that I found to do was turn all of my vector layers into SDF 
format and publish those. This helped but did not resolve the issue. (Kinda' 
sorta' defeats the purpose of FDO but I had no choice)
This is NOT a flame against Mapguide but just to let you know ... It took about 
3 months of learning curve and coding but I have written my own DESKTOP mapping 
application using the SharpMap 0.9.Trunk-2011.11.17 iteration on Codeplex as a 
base. Works great, users love it, no wait...and depending on options an xcopy 
install.
r,
dennis

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


RE: [mapguide-users] Darn DLL files again

2012-02-10 Thread Jonio, Dennis (Aviation)
Hans,
Good luck to you! I tried to get it all to work and just gave up. Way
too complicated for me. At least I will monitor your progress.
r,
dennis

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


RE: [mapguide-users] Oracle 11gR2 - Basics..

2012-01-26 Thread Jonio, Dennis (Aviation)
Specify the _OracleSchema_ (aka - object owner)
r,
dennis
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Join between an Oracle spatial table and a view

2011-11-23 Thread Jonio, Dennis (Aviation)
Iulia,

I would recommend:

1)  Create a “normal” Oracle view w/your join

2)  Add the entry for it in user_sdo_geom_metadata. (No need for an index.)

3)  Create a layer for the view … 

Does all appear normal and as expected? 

All that I am suggesting here is to gradually add complexity. No need to boil 
the ocean from the get-go. You can delete/remove this stuff later.  But maybe 
you have already done these things.. in which case I am no help.

r,

dennis

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


RE: [mapguide-users] fusion viewer performance vs basic viewer

2011-09-23 Thread Jonio, Dennis (Aviation)
IMHO, the fanfare surrounding Fusion was just that. Great promise,
beautiful presentation but as you have surmised, terrible performance. I
have tried a couple times over the years to make a fit for us but it is
just a nogo.
There has been some posts in the past about the future direction of MG
and I am becoming more pessimistic all the time. I really have no right
to flame or complain since our financial contributions has been nil.
It is my guess that MG will languish and wither unless significant
effort is put into utilizing a couple of those "specialized" plugins.
But there seems to be this religious fervor NOT to do that, O'well...
Anyway, in answer your question; We do not use Fusion and I gave up
trying.

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


RE: [mapguide-users] Re: Map fails to load

2011-06-21 Thread Jonio, Dennis (Aviation)
Maybe: Are you stopping and restarting IIS application pools?
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Re: how to convert agf to wkt?

2011-05-23 Thread Jonio, Dennis (Aviation)
The WKT string that you have posted does not pass: 
SOD_UTIL.VALIDATE_WKTGEOMETRY. I do not know what version of Oracle you are 
using but if my  memory serves the WKT functions and procedures were/are very 
limiting. I do not believe that the 10g versions support curves. In addition I 
thing the syntax is somewhat different than AGF/FGF. 

From the Oracle docs:

To be valid, the input geometry must be in the well-known text (WKT) format, as 
defined by the Open Geospatial Consortium and the International Organization 
for Standardization (ISO).

This function is patterned after the SQL Multimedia recommendations in ISO 
13249-3, Information technology - Database languages - SQL Multimedia and 
Application Packages - Part 3: Spatial.

To validate a geometry in the well-known binary (WKB) format, use the 
SDO_UTIL.VALIDATE_WKBGEOMETRY 

  function.

 

 

From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of mahpooya
Sent: Monday, May 23, 2011 6:39 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Re: how to convert agf to wkt?

 

Let me introduce my code
I use php and oracle database.
I have an AGF geometry string ($geometryString in below code) that contain a 
circular sector  ;
But oracle is not support AGF text format.
Oracle have "SDO_UTIL.FROM_WKTGEOMETRY" that input geometry from wkt.
I want to convert AGF to WKT and insert it to database.
How can i convert it?

$geometryString="CURVEPOLYGON ((67.894181638047 32.989785090909 
(LINESTRINGSEGMENT (70.229107873737 33.852692612795), CIRCULARARCSEGMENT 
(70.38340259381948 32.973385371885676 , 70.2175355016466 
32.096187451063344";

$conn = oci_pconnect('gis', '123456', '127.0.0.1:1521/orcl');

if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$sql='INSERT INTO "GIS"."P" ("ID_AUTO", "MYINT", "MYSTR", "GEOMETRY") VALUES 
(1, 123, \'asd\', SDO_UTIL.FROM_WKTGEOMETRY(\''.$geometryString.'\') )';

$stid = oci_parse($conn, $sql);

$r = oci_execute($stid, OCI_NO_AUTO_COMMIT);
if (!$r) {
$e = oci_error($stid);
oci_rollback($conn); // rollback changes
trigger_error(htmlentities($e['message']), E_USER_ERROR);
}

 



View this message in context: Re: how to convert agf to wkt? 

 
Sent from the MapGuide Users mailing list archive 
  at 
Nabble.com.



Email Scan by McAfee 

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


RE: [mapguide-users] Re: saving drawing data to oracle

2011-01-20 Thread Jonio, Dennis (Aviation)
Will be glad to after you help yourself first.
I would suggest you begin by reading _Oracle Spatial User's Guide and
Reference_ (11g in your case). _Pro Oracle Spatial for Oracle Database
11g_ is an excellent book. There are many very bright people who
contribute to Oracle's _Oracle Spatial_ forum when you have questions. 
There b a lot more to the process when compared to working with an SDF
file  
r,
dennis 
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Re: Mapguide won't display all features fromKing Oracle connections

2010-10-27 Thread Jonio, Dennis (Aviation)
Haris,
Apologies for my poor explanation. 
Yes, you did fix gtype=4. Works just fine, DB wise. _MapGuide_ does NOT render 
4's. It does render the other multi-gtypes = 5,6 and 7.

Like I said, I have always constructed _circle_ objects as 
INFO_ARRY(1,1005,1,1,2,2)'s. I was skeptical from the beginning about Oracles 
_optimized point_ so I make those as INFO_ARRAY(1,1,1) and the Oracle 
_rectangle_ becomes a INFO_ARRAY(1,1003,1,1,2,1) w/all 5 ordinates.  A couple 
days ago I experimented w/Function:
 OnCircleDigitized(Circle) {
r = Circle.Radius;
p1x = Circle.Center.X + r;
p1y = Circle.Center.Y + r;

p2x = Circle.Center.X - r;
p2y = Circle.Center.Y + r;

p3x = Circle.Center.X - r;
p3y = Circle.Center.Y - r;

p4x = Circle.Center.X + r;
p4y = Circle.Center.Y - r;

ords = p1x + "," + p1y + "," + p4x + "," + p4y + "," + p3x + "," + 
p3y + "," + p2x + "," + p2y + "," + p1x + "," + p1y;
//tmp = "MDSYS.SDO_GEOMETRY(2003, 2236, NULL, 
MDSYS.SDO_ELEM_INFO_ARRAY(1,1005,1,1,2,2), MDSYS.SDO_ORDINATE_ARRAY(" +
//ords + "))";
tmp = "MDSYS.SDO_GEOMETRY(2003, 2236, NULL, 
MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,4), MDSYS.SDO_ORDINATE_ARRAY("
+ p1x + "," + p1y + "," + p2x + "," + p2y + "," + p3x + "," 
+ p3y + 
"))";
var geometryInput = 
document.getElementById("currentscribblegeometryInput");
geometryInput.value = tmp;
tmp_control = document.getElementById("sessionName");
SESSION = tmp_control.value;
tmp_control = document.getElementById("mapName");
MAPNAME = tmp_control.value;
tmp_control = document.getElementById("textForFeature");
TEXT = tmp_control.value;
tmp_control = document.getElementById("currentscribbleText");
tmp_control.value = TEXT;

MiMethodsMgr.InsertUserSessionFeature(SESSION, MAPNAME, TEXT, 0, 
geometryInput.value,
OnCompleteUserSessionInsertMethod, 
OnError_Generic, OnTimeOut_Generic);

}
And found that my _ORACLE circles_ were _Oraclewise_ valid BUT I get the 
_failed to stylize-my bad_ error in the log and the layer does not render.
As a side note FDO Toolkit fails to read a table w/a Oracle _circle_. (By the 
way, I do this insert via OracleConnection NOT MapGuide/FDO. I must do validity 
checking before the insert. So if there is/was an issue I would not have seen 
it here.)

I hope I have done a better job in explaining? I am very, very pleased 
w/KingOra. Oracle itself has done a poor job in explaining that Oracle Locator 
is all that is required to do the basics and it is totally FREE. With the sheer 
weight of Oracle's experience w/geometry objects I certainly believe you have 
hit the mark w/this provider! Kudoes to you!!! 

Haris, IMHO, there is absolutely NO advantage in storing INFO_ARRAY(1,1003,4)'s 
over INFO_ARRY(1,1005,1,1,2,2)'s. 
r,
dennis



  

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Haris Kurtagic
Sent: Tuesday, October 26, 2010 1:32 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Re: Mapguide won't display all features fromKing 
Oracle connections

I forgot a bit, but haven't I fixed some gtype 4 after you send me
test geometries ?
If there are gtype 4 geometries you think King.Oracle can't read, send
them please, I will check it

Haris

On Tue, Oct 26, 2010 at 1:37 PM, djonio  wrote:
>
> Howdy,
>
> MGOS 2.1
> KingOra 8.19
>
> We use KingOracle a bunch and our only issue is and has been mixed
> multi-geometries(collections - sdo_gtype : 4) and circles (1,1003,4). We
> have no issues at all on the FDO/Mg input input side and it appears to me
> that it is an issue with MG rendering. Circles have been a real issue in
> that MG throws one of those "failed to stylize" errors and just gives up.
> The fix for me is to use (1,1005,1, 1,2,2)'s as a couple arcs instead of
> circles. The gtype 4's don't produce the failed to stylize error but they
> silently do not render.
>
> Since the workaround for circles is relatively easy and the need for the
> collection type geometry is rare for me I have not persued the issue.
> However, if someone wishes to fix this I can produce some EPSG:2236(FL83-EF)
> geometries for test.
> r,
> dennis
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Mapguide-won-t-display-all-features-from-King-Oracle-connections-tp5657213p5674262.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] RE: Multiple points with same lat/lon

2010-09-08 Thread Jonio, Dennis (Aviation)
Ok ... Maybe have the user offer up a chant to the D.W.I.M(Do What I
Mean) gods?   ;-)

r,
dennis

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Nickthetemp
Sent: Wednesday, September 08, 2010 12:02 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] RE: Multiple points with same lat/lon


The points are in the same layer.

Also, the map is embedded in a page with an iframe so the legend has
been
turned off to save space.

Thanks
-- 
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Multiple-points-with-same-lat-lon
-tp5510865p5511244.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


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


RE: [mapguide-users] Multiple points with same lat/lon

2010-09-08 Thread Jonio, Dennis (Aviation)
How about explaining to them that they could temporarily _turn off_ the
undesirable layer?
r,
dennis

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Nickthetemp
Sent: Wednesday, September 08, 2010 10:32 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Multiple points with same lat/lon


Hello Everyone

I am working on a map application that displays water sample stations.

Each station is represented by a point on the map that can be clicked to
activate a url to show station data.

Many of the stations are two in one and share the same lat/lon.
Therefore,
two points are in the exact same spot on the map and I can only get the
url
to activate for the point that ends up on top of the other.

Is there any way to give the user a choice of which point they are
trying to
activate if there are multiple points in the exact same spot?

Thanks
-- 
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Multiple-points-with-same-lat-lon
-tp5510865p5510865.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


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


RE: [mapguide-users] Re: How to render MgMultiGeometry

2010-06-01 Thread Jonio, Dennis (Aviation)
Zak,
I did do just a bit more research. Yes, you dialoged on the issue back
in Dec. 2007 and it looks to me that the _issue_ has gotten worse or, at
best, stayed the same.

>From the FDO API reference:
The FdoIMultiGeometry class is a heterogeneous MultiGeometry type. 

>From the MapGuide API Reference:
An MgMultiGeometry is a heterogeneous aggregate of one or more
MgGeometry objects. 

I went ahead and tested the homogeneous _multi_geometry types with the
SDF and KingOra providers, both seem to work well with all of the types.

As far as heterogeneous geometry objects(point,line), (line,surface) go,
as I noted earlier, KingOra adds the record but with a null geometry
column. SDF does not even add the record. No error in the logs. Looks
like Gunter is outa' luck.

For my part I am not going to pursue the issue since we have no real
practical use for those types of collections but I can envision them
being useful for some.
r,
dennis
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] How to render MgMultiGeometry

2010-05-28 Thread Jonio, Dennis (Aviation)
Gunter,
I do know it works with _polygon - polygon_ via KingOra). I never had
the need for any other provider OR geometry type combo.
r,
dennis


i'm wondering how to render a MgMultiGeometry feature (point + polygon).
It
is definitely in the FeatureSource but I'm not able to see it on the
map. I
even tried to make a SimpleSymbolDefinition and a
CompoundSymbolDefintition
but that takes no effect 

Is it possible at all? Someone ever did this!

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


RE: [mapguide-users] Successful MGOS 2.1 install

2009-12-03 Thread Jonio, Dennis (Aviation)
Yes it is and it works just fine ... but I wanted to play/test/do the
"DotNet" function thingees ... they do the mapviewernet app directly

r,

dennis

 



From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jason Birch
Sent: Thursday, December 03, 2009 3:54 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Successful MGOS 2.1 install

 

MapAgent should be accessible under /mapguide/mapagent/mapagent.fcgi
with the tests under /mapguide/mapagent/index.html (or something like
that)?

 

For some subset of functionality (that used by developers and active
testers) Fusion works great, and is a lot faster than previous versions
especially if you do a custom build. There are still performance
problems with maps containing large numbers of layers, and there are
probably lots and lots of edge cases out there to be stumbled over.  

 

It's a bit of chicken and egg.  If people don't start using/testing it,
the problems won't get found and fixed.  Of course, if they're found
there also needs to be reproducible test cases submitted to the Fusion
Trac instance, developer time to address, etc, so I wouldn't go into a
Fusion project expecting rapid deployment unless I had resources to
throw at it.

 

Jason

2009/12/3 djonio


Jason,

Is mapviewerajax set up as an alias to mapviewernet and set as an
application?

Yes it is/was. I wanted to play with mapagent.
What is your opinion: Do I dare work with fusion?

r,
dennis



Scan by McAfee 

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


RE: [mapguide-users] Oracle 10g Standard

2009-10-29 Thread Jonio, Dennis (Aviation)
James,
This is relevant to 10g and 11g. There is much misunderstanding
concerning Oracle's support of GIS. Oracle Locator is a subset of Oracle
Spatial functionality within ALL of the Oracle database products
including Oracle Express. Yes, you may optionally not install it w/in
Standard and Enterprise. (I am not sure if you even have the option of
not installing if you are using Oracle Express.) Because Oracle Express
does not come with the built in java engine some WKT/WKB functionality
is not there.
I would recommend using SL King Oracle FDO provider. I works very well.
Oracle Express 10g is free and works very well. 
I have found absolutely no need for the additional functionality that
comes with the purchase of Oracle Spatial. FREE Oracle Locator provides
ample support for our needs at the moment.

I put this together some time ago. Check it out:
http://code.google.com/p/tf-net/wiki/OracleXeLicensedFunctionality

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


RE: [mapguide-users] web studio help!

2009-09-17 Thread Jonio, Dennis (Aviation)
Gary,
I was not aware. Thank you. I will check it out.
r,
dennis

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Gary Morin

Hi

Something you many not be aware, but can download and use MapGuide
Studio
if you have a valid AutoCAD Map subscription.

Regards

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


RE: [mapguide-users] web studio help!

2009-09-17 Thread Jonio, Dennis (Aviation)
We were very, very disappointed in Autodesk once again. A little-strong arm if 
you ask me. Especially for those of us who had Studio from the get-go.
Maybe we should all work on cloning a few Kenneth Skovhedes'?  ;-)

r,
dennis 

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Andy Morsell

That's an interesting view of paying thousands of dollars when you only want
a license of Autodesk Studio to work with MapGuide Open Source..

I would rather see Autodesk make Studio available as a stand-alone product
again at a reasonable IDE price and then have people contribute any
remaining money directly to the MapGuide Open Source project.  That way we
KNOW those funds will be used for that project and that project only.

Andy Morsell, P.E.
Spatial Integrators, Inc.
47° 46' N 116° 49' W
www.SpatialGIS.com

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer

Studio is available for MGOS, you just need to take out a subscription for
mapguide enterprise which bundles studio, which is in effect sponsoring
the bulk of the mapguide / fdo project developers and plus gets you
access to autodesk support...

z

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


RE: [mapguide-users] Still curious about King.Oracle FDO

2009-06-23 Thread Jonio, Dennis (Aviation)
ary.sucaya,

Thank you for sharing. You have really given us something to be
watchfull of. My only other questions at this point: 
Did you experience these same issues with 2.0.2? 
In conjunction w/KingOra whatever version?

r,
dennis

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


RE: [mapguide-users] Mapguidesever crash abruptly

2009-06-17 Thread Jonio, Dennis (Aviation)
Friends, please bare with me, this is one of the BEST and KINDEST forums
I have ever used but this is going to far ...!!!

YOU, sathish, have got to be kidding with this question!!! ... I would
prefer your jokes be done elsewhere.

No regards,
dennis

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of sathishpsk9
Sent: Wednesday, June 17, 2009 11:39 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Mapguidesever crash abruptly


Hi all,
My mapguide sever stop abruptly. Can anyone why exactly this
happens
?

Thanks & Regards
sathish
-- 
View this message in context:
http://n2.nabble.com/Mapguidesever-crash-abruptly-tp3093564p3093564.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


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Translate Meters and Scale in french

2009-06-16 Thread Jonio, Dennis (Aviation)
Maybe here:
C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\localized

r,
dennis

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of fmalamaire
Sent: Tuesday, June 16, 2009 1:30 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Translate Meters and Scale in french


Hello Everybody

I'm a french user of MapGuide Opensource, I have a question about french
translation.
When I plot with Mapguide, I want to translate the bar scale set by defaut,
and change meters and scale by "Mètre" and "Echelle".
I know this feature is hard coded, how to get around this problem ?
In the source code where is the file to modify ?
Thank you

Franck MALAMAIRE
AEC Informatique
France

-- 
View this message in context: 
http://n2.nabble.com/Translate-Meters-and-Scale-in-french-tp3087702p3087702.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


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] King.Oracle important update

2009-06-09 Thread Jonio, Dennis (Aviation)
Haris,

Great news!!!

r,

dennis

 



From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Haris
Kurtagic
Sent: Tuesday, June 09, 2009 5:12 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] King.Oracle important update

 

Hi,

I have released new version of King.Oracle provider. It solves stability
issue with MapGuide and King.Oracle.

http://www.sl-king.com/fdooracle/

 

Haris



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] [MapGuide OSE FDO Oracle SL-King 0.8.5]HolePolygon Type 7 Problem

2009-04-08 Thread Jonio, Dennis (Aviation)
Your example shows sdo_gtype of 3003 not 3007. I was under the
impression that that was the issue?  Based upon what you have here the
contents of ELEM_INFO are in sync with the sdo_gtype. Polygon (straight
line segment inner ring starting a 1, straight line segment external
ring starting at 106) I cannot load this up myself, something must have
been corrupted via the email so I cannot check the ordinates myself.

r,
dennis

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


RE: [mapguide-users] [MapGuide OSE FDO Oracle SL-King 0.8.5] HolePolygon Type 7 Problem

2009-04-08 Thread Jonio, Dennis (Aviation)
I would contend that your "... polygon with hole have only one exterior
boundary and the geometry type is 7" is NOT a valid SDO_GEOMETRY and
does not fall w/in the specification. What you describe is in fact a
??03 sdo_gtype NOT a ??07. Have you validated the geometry via
SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT? Oracle will certainly store the
invalid geometry.

You might wish to check out the Oracle spatial forum:
http://forums.oracle.com/forums/forum.jspa?forumID=76
Some very, very bright folks prowl that forum.

I have no experience w/MGOS 2.0.2 service failure over a bad geometry so
I cannot speak to that. 

r,
dennis 

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


RE: [mapguide-users] Scribble markup application question

2009-04-07 Thread Jonio, Dennis (Aviation)
Warren,

 

It has been some time since I wrote Scribble and my head is currently
into OBJECTARX/Oracle but I believe its purpose is to stuff the
currentscribbleselectionXMLcntrl.value for the dark-side. As to why,
well I just did it that way. Yes, that is exactly what it does.

As for the error it looks to me that I store the original but on exit I
never put it back. Since I did not do it, check out the 
"onunload" event. I would think you just have to put the original back.

mainFrame.OnSelectionChanged = originalOnSelectionChanged;

 

r,

dennis

 



From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Warren
Medernach
Sent: Tuesday, April 07, 2009 11:57 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Scribble markup application question

 

I'd like to know if somebody that knows the Scribble app can explain why
the app implements a local selection changed handler and what the
purpose of it is: LocalOnSelectionChangedHandler

 

>From what I can see, it just sets the selectionXML to one of the hidden
fields, is this correct?

 

I've created a wrapper of sorts for the Scribble app that takes part of
the GT markup app for managing the creation and loading of 'local' and
global' markup resources based on a user login, and then the scribble
app for the feature creation.  The app works great creating and deleting
features.  However, when I exit the editing mode and close the
resources, the app goes back to the default Task Page.  At this point,
if I try to select objects on the map, a JScript runtime error is
thrown: "Can't execute code from a freed script" and the app stops on a
parent.OnSelectionChanged(); call in the mapframe.aspx.

 

I may be off-track on this error, but I think it has something to do
with the local onchanged handler in the Scribble app?

Any insight or comments would be greatly appreciated,  thanks so much.

 

Warren M



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] MapGuide Programming using C#, need help, please

2009-02-10 Thread Jonio, Dennis (Aviation)
What is the value of "nameQuery" ... what is it that you are trying to
select? Have/did you define your selection? What is it you expect to
see?
I would hazard to guess that your current issue has nothing to do with
the cast or no cast of MgLayerBase 



-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz
Sent: Tuesday, February 10, 2009 10:01 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] MapGuide Programming using C#, need help,
please


Dennis, I am really sorry for making you confused because I mistyped the
code.
These are the original code that I copied from aspx that i got the first
error.

//Highlight the query result on the map
MgSelection selection = new MgSelection(map);
MgLayer layer = map.GetLayers().GetItem("Parcels");
featureReader = featureService.SelectFeatures(parcelId, "Parcels",
nameQuery);
selection.AddFeatures(layer, featureReader, 0);
String selectionXML = selection.ToXml();

I changed the line to  ---MgLayerBase layer =
map.GetLayers().GetItem("Parcels");--- 
as your suggestion but the Query result is still empty.

I am sorry.


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


RE: [mapguide-users] MapGuide Programming using C#, need help, please

2009-02-10 Thread Jonio, Dennis (Aviation)
I have not a clue what you are doing with it later but just change the
line to this ... 
MgLayerBase layer = map.GetLayers().GetItem("Parcels");


BTW ... it is NOT Mglayer it is MgLayer





-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz
Sent: Tuesday, February 10, 2009 9:11 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] MapGuide Programming using C#, need help,
please


Thanks for comments.
I have tried to modify  by adding (MgLayer) to DisplayQueryResult.aspx 
---MgLayer layer = (Mglayer)map.GetLayers().GetItem("Parcels");--- , 
but no result coming after  pushing the Submit Query Button .

regards
Staniz





staniz wrote:
> 
> I am using MGE Server and Studio 2008, windows XP and IIS 5.1. I
> downloaded sample code from
>
http://download.autodesk.com/media/adn/DevTV_%20Introduction_to_MGE_Prog
ramming/SampleCode.zip
> these code is recommended for MGE2007, but I think its also work for
> MGE2008.
> I followed all the instruction in video, and ran the default.aspx. Its
> worked by but When I was trying to run the Query.aspx and execute the
> DisplayQueryResult.aspx I got the following error:
> 
> 
> Compiler Error Message : CS0266:
> cannot implicitly convert type
> `OSGeo.Mapguide.MgLayerBase` to
> `OSGeo.Mapguide.MgLayer`. An explicit 
> conversion exist (are you missing a cast?)
> 
> Source code:
> Line 58:  MgLayer layer =map.Getlayer().GetItem("Parcels");
> 
> .Net framwork Version:2.0.50727.42
> 
> 
> please help to solve this problem...
> thanks is advance.
> 
> staniz
> 
> 
> 
> 
> 
> 

-- 
View this message in context:
http://n2.nabble.com/MapGuide-Programming-using-C-%2C-need-help%2C-pleas
e-tp2301814p2302724.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


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Oracle SDO Geometry to MgGeometry

2009-02-09 Thread Jonio, Dennis (Aviation)
1) You must(should) use Mapguide's FDO interface for this.
2) The Oracle SDO_GEOMETRY type is NOT a WKT type. 

If you find the above not to your liking you could do your own
translation from SDO_GEOMETRY to MgGeometry. I have done it but I found
it to be absolutely no fun at all. IMHO it would be best to stick with
Haris K's KingOra FDO implementation. Not perfect but it has come a long
way.

If you have not been already, look here:
http://code.google.com/p/tf-net/
and here: http://www.topologyframework.blogspot.com/ for additional info
on sdo_geometry, conversions etc. 

r,
dennis

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


RE: [mapguide-users] Mapguide raster problem

2009-01-19 Thread Jonio, Dennis (Aviation)
Marius,
No help but I have the same issue. I think the workaround is Version
1.2. It sounds like some others have put schemes in place that monitor
the mgserver process and then reset when necessary. IMO a kluge to say
the least. I have heard nothing about a real fix.
r,
dennis

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


RE: [mapguide-users] New King.Oracle 0.8 - improved performance

2008-11-19 Thread Jonio, Dennis (Aviation)
Haris,

 

>From the Event Viewer:

 

Faulting application mgserver.exe, version 2.0.2.3011, faulting module
KingOracleOverrides.dll, version 0.8.0.0, fault address 0x6129.

 

 

 

StackTrace:

  - MgMappingUtil.StylizeLayers line 786 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\mapping\MappingUtil.cpp  Failed to stylize layer:
LayerDefinition0

An unclassified exception occurred.

<2008-11-19T13:53:07> Fusion Viewer10.14.12.190 Administrator

 Error: Failed to stylize layer: LayerDefinition0

An unclassified exception occurred.

 

r,

dennis



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haris
Kurtagic
Sent: Wednesday, November 19, 2008 1:01 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

Sounds very strange, you are able to render that same data with other
tools ?

 

I tested provider with sheboygan sample data and couple of other data
sets I have and it looked ok.

 

Haris

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: Wednesday, November 19, 2008 6:29 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

Haris,

I followed Dave's and your suggestions. Finally got two(2) geoms to
render (out of 26000+). I am in shock. If I PAN at all everything
disappears. But if a do a Select in just the right place I get a
selection.

Geometry is rendered willy-nilly, PAN is worthless ... move 2 feet
across geoms that are hundereds' of feet in length and most disappear.
Drag a geom to the map center and it disappears. Zooming is just as bad.
I am not using that "fusion" thingee just the plain'ol frames jobbee'do.

 

There is something "way wrong" here. I have not a clue if it is your
issue Haris or this falls on the "dark side" :-)  

 

R,

dennis

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haris
Kurtagic
Sent: Wednesday, November 19, 2008 11:39 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

Yes, I would guess it is wrong extent in layer preview.

As Dave suggested set manually extents in the map and try it.

 

Haris

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Wednesday, November 19, 2008 5:10 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

If a layer preview fails you should generally add that layer to a new
map to see if the extent information and coordinate system are set
correctly. Often times the extent values are not correct.

 

Regards,

Dave

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: Wednesday, November 19, 2008 9:04 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

Haris,

 

MGOS 2.0.2 on MS2003 Server, using MG Studio 2009 for the rest of it. 

Installed your .8 release. 

 

Feature Source

Connection ... OK

Set coorsys Override... OK

save ... OK

 

Create Layer:

Fetched all 200+ Feauture Classes ... OK

Properties.. OK

 

Layer Preview: 

a)nothing ... should have 2+ geometries in
one of the selected feature class'

b)tried a bunch of different tables ... nothing 



 

I don't get any errors logged anywhere that I can find.

I had downloaded and installed the instant client that was discussed
previously. Obviously we are making connection because you are getting
the list of Feature Classes.

I did both the Override thing and I also tried without the Override
thingee(It was populated correctly)

 

r,

dennis

 





E-mails are automatically scanned for viruses using McAfee. 



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] New King.Oracle 0.8 - improved performance

2008-11-19 Thread Jonio, Dennis (Aviation)
Haris,

I followed Dave's and your suggestions. Finally got two(2) geoms to
render (out of 26000+). I am in shock. If I PAN at all everything
disappears. But if a do a Select in just the right place I get a
selection.

Geometry is rendered willy-nilly, PAN is worthless ... move 2 feet
across geoms that are hundereds' of feet in length and most disappear.
Drag a geom to the map center and it disappears. Zooming is just as bad.
I am not using that "fusion" thingee just the plain'ol frames jobbee'do.

 

There is something "way wrong" here. I have not a clue if it is your
issue Haris or this falls on the "dark side" :-)  

 

R,

dennis

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haris
Kurtagic
Sent: Wednesday, November 19, 2008 11:39 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

Yes, I would guess it is wrong extent in layer preview.

As Dave suggested set manually extents in the map and try it.

 

Haris

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Wednesday, November 19, 2008 5:10 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

If a layer preview fails you should generally add that layer to a new
map to see if the extent information and coordinate system are set
correctly. Often times the extent values are not correct.

 

Regards,

Dave

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: Wednesday, November 19, 2008 9:04 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] New King.Oracle 0.8 - improved performance

 

Haris,

 

MGOS 2.0.2 on MS2003 Server, using MG Studio 2009 for the rest of it. 

Installed your .8 release. 

 

Feature Source

Connection ... OK

Set coorsys Override... OK

save ... OK

 

Create Layer:

Fetched all 200+ Feauture Classes ... OK

Properties.. OK

 

Layer Preview: 

a)nothing ... should have 2+ geometries in
one of the selected feature class'

b)tried a bunch of different tables ... nothing 



 

I don't get any errors logged anywhere that I can find.

I had downloaded and installed the instant client that was discussed
previously. Obviously we are making connection because you are getting
the list of Feature Classes.

I did both the Override thing and I also tried without the Override
thingee(It was populated correctly)

 

r,

dennis

 





E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] New King.Oracle 0.8 - improved performance

2008-11-19 Thread Jonio, Dennis (Aviation)
Haris,

 

MGOS 2.0.2 on MS2003 Server, using MG Studio 2009 for the rest of it. 

Installed your .8 release. 

 

Feature Source

Connection ... OK

Set coorsys Override... OK

save ... OK

 

Create Layer:

Fetched all 200+ Feauture Classes ... OK

Properties.. OK

 

Layer Preview: 

a)nothing ... should have 2+ geometries in
one of the selected feature class'

b)tried a bunch of different tables ... nothing 



 

I don't get any errors logged anywhere that I can find.

I had downloaded and installed the instant client that was discussed
previously. Obviously we are making connection because you are getting
the list of Feature Classes.

I did both the Override thing and I also tried without the Override
thingee(It was populated correctly)

 

r,

dennis

 



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


RE: [mapguide-users] MGOS2.0.2 - does need some tuning and now ArcSDE..

2008-11-17 Thread Jonio, Dennis (Aviation)
Haris,

Then I shall wait for the new release. Maybe, I will be the first on the
block to test :-)

R,
dennis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haris
Kurtagic
Sent: Monday, November 17, 2008 8:29 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] MGOS2.0.2 - does need some tuning and now
ArcSDE..

Regarding King.Oracle, can you explain more what is going wrong ?

Latest couple of releases of King.Oracle are slow and there are Oracle
client/ King.Oracle build mismatches.
But even slow and memory consuming it should work :)

BTW, this week I will release newer version of King.Oracle with very
improved performance (multiple factor in some of my test cases).

Haris


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of djonio
Sent: Monday, November 17, 2008 1:48 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] MGOS2.0.2 - does need some tuning and now
ArcSDE ..


Howdy, 
By doing one-thing-at-once I have found MrSid seems to work fine, at
least
in the short term. Poked and prodded no crashes.

Based upon my config here it appears then King.Oracle is broken. Yes, I
am
using the interim fix outlined in
http://www.nabble.com/Could-it-be-MGOS2.0.2---maybe-needs-some-tuning--t
d20204668.html#a20209315
and others

S, I tried the the ArcSDE provider, again standard MGOS 2.0.2,
configs
fine, renders fine(little slow) HOWEVER when I do a selection, 1-x
features
it never returns. Alas lost in space ... 
Anyone?

Do I have to turn everything into an SDF?

r,
dennis

-- 
View this message in context:
http://www.nabble.com/MGOS2.0.2---does-need-some-tuning-and-now-ArcSDE-.
.-tp20538805p20538805.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


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Could it be MGOS2.0.2 - maybe needs some tuning?

2008-10-28 Thread Jonio, Dennis (Aviation)
Hi Jason,

Yes, that is what I am using. I guess I need to take the time and do
one-thing-at-once or bail out completely for now ... I guess I had
assumed too much about the "vitality" of this release.

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


RE: [mapguide-users] lack of MrSid - MGOS2.0.2

2008-10-24 Thread Jonio, Dennis (Aviation)
Frank,

C:\Program Files\MapGuideOpenSource2.0\Server\Bin>mgserver run
Running the server interactively as an application instead of as a
service.

(5672) Server starting...
(5672) PROJ4 Coordinate System Library
(5672) Server started.
GDAL: Auto register C:\Program
Files\MapGuideOpenSource2.0\Server\Bin\gdalplugin
s\gdal_ECW.dll using GDALRegister_ECW.
GDAL: Auto register C:\Program
Files\MapGuideOpenSource2.0\Server\Bin\gdalplugin
s\gdal_MrSID.dll using GDALRegister_MrSID.
GDAL: Auto register C:\Program
Files\MapGuideOpenSource2.0\Server\Bin\gdalplugin
s\gdal_ECW.dll using GDALRegister_ECW.
GDAL: Auto register C:\Program
Files\MapGuideOpenSource2.0\Server\Bin\gdalplugin
s\gdal_MrSID.dll using GDALRegister_MrSID.
MrSID: Opened zoom level 1 with size 12000x7500.
MrSID: Opened zoom level 2 with size 6000x3750.
MrSID: Opened zoom level 3 with size 3000x1875.
MrSID: Opened zoom level 4 with size 1500x938.
MrSID: Opened zoom level 5 with size 750x469.
MrSID: Opened zoom level 6 with size 375x235.
MrSID: Opened zoom level 7 with size 188x118.
MrSID: Opened zoom level 8 with size 94x59.
MrSID: Opened zoom level 9 with size 47x30.
MrSID: Opened zoom level 10 with size 24x15.
MrSID: Opened zoom level 11 with size 12x8.
MrSID: Opened zoom level 12 with size 6x4.
MrSID: Opened zoom level 0 with size 24000x15000.
MrSID: Opened image: width 24000, height 15000, bands 3
GDAL: GDALOpen(D:\MGOSData\MIA\Planimetrics/MIA_.sid) succeeds as MrSID.


//
// I closed the FeatureSource Editor
//


GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose()
GDAL: GDALClose(D:\MGOSData\MIA\Planimetrics/MIA_.sid)

//
// Tried to make a Layer ... it is still "spinning" ...
//
MrSID: Opened zoom level 1 with size 12000x7500.
MrSID: Opened zoom level 2 with size 6000x3750.
MrSID: Opened zoom level 3 with size 3000x1875.
MrSID: Opened zoom level 4 with size 1500x938.
MrSID: Opened zoom level 5 with size 750x469.
MrSID: Opened zoom level 6 with size 375x235.
MrSID: Opened zoom level 7 with size 188x118.
MrSID: Opened zoom level 8 with size 94x59.
MrSID: Opened zoom level 9 with size 47x30.
MrSID: Opened zoom level 10 with size 24x15.
MrSID: Opened zoom level 11 with size 12x8.
MrSID: Opened zoom level 12 with size 6x4.
MrSID: Opened zoom level 0 with size 24000x15000.
MrSID: Opened image: width 24000, height 15000, bands 3
GDAL: GDALOpen(D:\MGOSData\MIA\Planimetrics/MIA_.sid) succeeds as MrSID.
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 198x332, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 198x332, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 679x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 679x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 679x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 679x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 477x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 679x360, zoom=32)
MrSID: RasterIO() - using optimized dataset level IO.
MrSID: Dataset:IRasterIO(0,0 24000x15000 -> 750x469 -> 679x360, zoom=32)

//
// maybe this helps ..
//

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


RE: [mapguide-users] what's holding people back from upgrading to 2.0?

2008-10-07 Thread Jonio, Dennis (Aviation)

Having followed the posts and ... "Better the Devil you know than the
one you don't". 

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


RE: [mapguide-users] Map or Layer Preview don't show the Geometry

2008-08-13 Thread Jonio, Dennis (Aviation)
Zac,

 

My experience with the "override thingee" has not been positive. It is
rather bizarre in my case ... hit refresh and it pulls in the "correct"
SRID from s-l king and shows the correct wkt!!! (same thing I get w/in
Map3d by the way)  ... anything I select for an override fails even
arbXY ... but then again, maybe I just don't understand ... 

r,

dennis 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Wednesday, August 13, 2008 6:53 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Map or Layer Preview don't show the
Geometry

 

If the "Coordinate System Override" method that Zac mentions does not
work, 
it seems like there will be better coordinate system support in the next
MapGuide release:
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc55



Regards, Kenneth Skovhede, GEOGRAF A/S



Zac Spitzer skrev: 

did you try to override the feature source co-ordinates system?
 
On Wed, Aug 13, 2008 at 8:25 PM, Jonio, Dennis (Aviation)
<[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]>  wrote:
  

Alex,
 
Yes, it is known.
 
 
 
Here is the sql 'knowledge' you need to transform your table.
Just plug in
the new SRID, in this case I transform to SRID = 8307. Also
sdo_geometry
column in this case is 'geometry'. Your 'time' issue I am not
sure of but
for me a transform of 200M records takes about 15 seconds.
 
 
 
update YOUR_TABLE_NAME_HERE c set c.GEOMETRY = (select
SDO_CS.TRANSFORM(c.GEOMETRY, m.diminfo, 8307) FROM
user_sdo_geom_metadata m
WHERE m.table_name = 'YOUR_TABLE_NAME_HERE');
 
 
 
-- After completion make sure your user_sdo_geom_metadata entry
for the
table is correct.
 
I wish I had a real solution for you. The way it was handed down
to me is
that MGOS does not like EPSG codes so it abends the methods. (it
certainly
does this well)
 
IF the MGOS dev folks have addressed the issue their decision on
resolution
is unknown to me.
 
 
 
r,
 
dennis
 
 
 

 
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Alexander
Fischer
Sent: Wednesday, August 13, 2008 4:53 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Map or Layer Preview don't show
the Geometry
 
 
 
So, is this error known that some CoordinateSystems are not
working with
MGOS? Is there anywhere a list of these CoordinateSystems? I
still hope that
I made a mistake because I have neither the time nor the
knowledge to
transform the whole database into another WKT.
 
Kind regards,
Alex
 
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 


 
 
 
  



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] Map or Layer Preview don't show the Geometry

2008-08-13 Thread Jonio, Dennis (Aviation)
Alex,

Yes, it is known.

 

Here is the sql 'knowledge' you need to transform your table. Just plug
in the new SRID, in this case I transform to SRID = 8307. Also
sdo_geometry column in this case is 'geometry'. Your 'time' issue I am
not sure of but for me a transform of 200M records takes about 15
seconds.

 

update YOUR_TABLE_NAME_HERE c set c.GEOMETRY = (select
SDO_CS.TRANSFORM(c.GEOMETRY, m.diminfo, 8307) FROM
user_sdo_geom_metadata m WHERE m.table_name = 'YOUR_TABLE_NAME_HERE');

 

-- After completion make sure your user_sdo_geom_metadata entry for the
table is correct.

I wish I had a real solution for you. The way it was handed down to me
is that MGOS does not like EPSG codes so it abends the methods. (it
certainly does this well)

IF the MGOS dev folks have addressed the issue their decision on
resolution is unknown to me.

 

r,

dennis

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander
Fischer
Sent: Wednesday, August 13, 2008 4:53 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Map or Layer Preview don't show the
Geometry

 

So, is this error known that some CoordinateSystems are not working with
MGOS? Is there anywhere a list of these CoordinateSystems? I still hope
that I made a mistake because I have neither the time nor the knowledge
to transform the whole database into another WKT.

Kind regards,
Alex 

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


RE: [mapguide-users] Map or Layer Preview don't show the Geometry

2008-08-12 Thread Jonio, Dennis (Aviation)
Alexander,

 

It looks like we share the same issue. The SRID that we use is 2236. 

I am certainly interested in how this gets resolved within MGOS. It
seems to me though that this is a non-issue for the rest of the
universe. 

My solution thus far has been to duplicate tables in Oracle and do a
transform to a WKT that MGOS "likes". Kind'a, sort'a brutal but it is
what it is.

 

r,

dennis



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander
Fischer
Sent: Tuesday, August 12, 2008 5:26 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Map or Layer Preview don't show the
Geometry

 

Hi,
The Oracle SRID or rather the EPSG-Code is 24878.

Now I saw, that the WKTEXT which is shown in webstudio is a little bit
different to the WKTEXT in the MDSYS.CS_SRS - Table.
Could this be the problem? But what can I do for this?

Kind regards,
Alexander Fischer



2008/8/12 Simon Pelicon <[EMAIL PROTECTED]>

Hi,
What is Oracle SRID for this geometry?

Simon

Alexander Fischer wrote: 

Hi,
I'm working with MapGuide Open Source (2.0.1), MapGuide Maestro and
King.Oracle (0.7.4).
The Dataconnection works and I created a map and a Layer where I
attached a Geometry with polylines.
Also I edited the Layer style and the initial map view but when I tried
the Preview the browser showed only the mapviewer with an empty map (no
geometry).

When I open the data with the webstudio there is an advice in the
Preview-window:
"The coordinate system is invalid.
Could not create coordinate system forward transformation with specified
coordinate systems.
Exception occurred in method MgCoordinateSystem.CCoordinateSystem at
line 380 in file ..\CoordinateSystem\CoordSys.cpp"

My used Coordinate system is PSAD56 / UTM zone 18S (EPSG:24878)
So I checked the WKT Code with Web Tier Test:
PROJCS["PSAD56 / UTM zone
18S",GEOGCS["PSAD56",DATUM["Provisional_South_American_Datum_1956",SPHER
OID["International
1924",6378388,297,AUTHORITY["EPSG","7022"]],AUTHORITY["EPSG","6248"]],PR
IMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251
994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4248"]],PROJECTION["T
ransverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["centra
l_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easti
ng",50],PARAMETER["false_northing",1000],UNIT["metre",1,AUTHORIT
Y["EPSG","9001"]],AUTHORITY["EPSG","24878"]]

Status: Pass

I don't know where the problem could be. Has somebody an idea?

I would be pleased to receive an answer.
Kind regards, Alexander Fischer

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.6.0/1602 - Release Date: 9.8.2008
13:22
  







 
___
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

 



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] MG Studio 2009 - MGOS 2.0.1 - FdoKingOracle - nogeometry is rendered

2008-07-10 Thread Jonio, Dennis (Aviation)
IMHO, take a long deep breath and forget MG and KOP for the moment.

 

Download instantclient 10.2 from the Oracle site.

Install it.

Config  TNSNAMES.ora (although not necessary I would recommend that you
set the environmental variables as described: LD_LIB_PATH, TNS_ADMIN and
PATH)

Use the following to contact the db:  TNSPING 

 

When you get this working FdoKingOracle works great (as Haris K., et.al.
describe) ... 

1)   copy the 3 dll's

2)   update providers.xml

 

 

dennis



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rahul
Sent: Thursday, July 10, 2008 5:29 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MG Studio 2009 - MGOS 2.0.1 -
FdoKingOracle - nogeometry is rendered

 

Hi ,

  I  installed only King Oracle Provider for Oracle Instant Client
for both the cases -

 

MGOS1.2.0 -   v0_7_3(King Oracle Provider for Oracle Instant
Client)

 

MGOS2.0.1 -   v0_7_4(King Oracle Provider for Oracle Instant
Client)

 

 

Max !!

 

- Original Message 
From: Simon Pelicon <[EMAIL PROTECTED]>
To: MapGuide Users Mail List 
Sent: Thursday, July 10, 2008 4:01:18 PM
Subject: Re: [mapguide-users] MG Studio 2009 - MGOS 2.0.1 -
FdoKingOracle - no geometry is rendered

Hi,
What i meant is taht you have oracle client on Windows Server 2003 (not
XP). Sorry.
If you use Oracle Instant Client  than you should use King Oracle
Provider for Oracle Instant Client.
link:
http://www.sl-king.com/fdooracle/download/FdoKingOracle_Win32_Instant_FD
O_3_3_v0_7_4.zip

Simon

Rahul wrote: 

Hi,

 Nops i installed Oracle Instant Client in Windows Server 2003,Do i
need to install oracle instant client in the MapGuide Studio 2009 FDO
Directory?

Max

 

 

- Original Message 
From: Simon Pelicon <[EMAIL PROTECTED]>  
To: MapGuide Users Mail List 
 
Sent: Thursday, July 10, 2008 3:34:05 PM
Subject: Re: [mapguide-users] MG Studio 2009 - MGOS 2.0.1 -
FdoKingOracle - no geometry is rendered

Hi,
Do you have Oracle client installed on Windows XP machine?
Simon

Rahul wrote: 

Hi,

 

Intresting ,How you able to view the Connection Properties Boxes, As
I am using Windows Server 2003 with MGOS 2.0.1 and then on another
machine Windows XP having MapGuide Studio 2009,I downloaded
FdoKingOracle_Win32_FDO_3_3_v0_7_4 as well as necessary files for the
oracle Instant Client in the \Server\Bin\FDO Folder.

 

Once I connect to the MapGuide Studio and try to open connection i use
to see the configuration setting for King Oracle FDO Provider but have
nothing in the connection string, so i unable to enter the Property and
the corresponding values.It use to work well on my machine having
MGOS1.2.0 Windows XP with MGS 2008.

 

Thks

Max !!

 

 

- Original Message 
From: djonio <[EMAIL PROTECTED]>
 
To: mapguide-users@lists.osgeo.org
Sent: Wednesday, July 9, 2008 7:43:08 PM
Subject: [mapguide-users] MG Studio 2009 - MGOS 2.0.1 - FdoKingOracle -
no geometry is rendered


Howdy,

Windows XP
MGOS 2.0.1 
MG Studio 2009 with FdoKingOracle_Win32_FDO_3_3_v0_7_4
Entry from providers.xml:

King.Oracle.0.1.1 
King Provider for Oracle 
Read/write access to spatial and attribute data
in
an Oracle Spatial. 
False 
0.1.1.0 
 
3.3.0.0 
C:\Program
Files\MapGuideOpenSource2.0\Server\Bin\FDO\KingOracleProvider.dll 


Oracle instantclient_10.2 on the box.
No issues with connection. All seems to work well in terms of collecting
the
schema and attribute information. 

When creating a Layer ... Layer Preview never seems to render any
geometry ...
This error:
<2008-07-08T16:20:19>Fusion ViewerAdministrator
Error: Failed to stylize layer: test_KOP
The coordinate system is invalid.
Could not create coordinate system forward transformation with
specified coordinate systems.
StackTrace:
  - MgMappingUtil.StylizeLayers line 775 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server
\src\services\mapping\MappingUtil.cpp
Failed to stylize layer: test_KOP
The coordinate system is invalid.
Could not create coordinate system forward transformation with specified
coordinate systems.

I am using SRID = 2236. 
select srid, cs_name, auth_srid from MDSYS.CS_SRS where srid = 2236;

2236NAD83 / Florida East (ftUS)2236

... Now today 
When attempting to create new layer using the above provider I get this:
An exception occurred in FDO component. ORA-32102: invalid OCI handle 

Seems pretty "flacky" to me because when I "Configure a Feature Resource
using Generic Editor " 
Connection test is successful AND when I do the "Preview -> Refresh" it
pulls down all of my classes (appox. 20 in this case)
"View Data" works .. great!!
"View Feature" retrieves the correct feature count.
... however nothing renders!

RE: [mapguide-users] Redlining in C# asp.net application

2008-05-12 Thread Jonio, Dennis (Aviation)
Take a look at this:

http://trac.osgeo.org/mapguide/wiki/CodeSamples/ASP.Net/ScribbleApp

 

 

dennis

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Monday, May 12, 2008 11:47 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Redlining in C# asp.net application

 

There is a sample application called Generic Tasks:
http://data.mapguide.com/mapguide/gt/index.php

It includes samles for dynamic theming, querying and redlining (called
markup).
It comes with full source, but is written in PHP, so you will have to
convert it.
If you do convert it, and are free to post it, you can post example code
here:
http://trac.osgeo.org/mapguide/wiki/CodeSamples

Hmm... someone already started doing that:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/TemporaryMarku
psDotNet




Regards, Kenneth Skovhede, GEOGRAF A/S



Nick Aizen skrev: 

Does anyone have any code examples for a redlining application in C# or
VB? Would appreciate any information regarding the redlining process. 

 

Thanks,

 

Nick A.

 

 







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



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] Issue in Draw Polygon

2008-01-14 Thread Jonio, Dennis (Aviation)
Javed,

What are you doing with pPgon?
Creating a polygon does just that. You have to add it to the feature
source. 

An obvious question ...
a) Do the points actually make a polygon?

dennis


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JavedPune
Sent: Sunday, January 13, 2008 3:26 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Issue in Draw Polygon


Hey,

I am fairly new to the group. This is my first post. I have a issue with
"Draw polygon".

I am using MapGuide 1.2 when I try to add a polygon by using following
syntax it does not draw. My outer line is defined for polygon and innear
line is not required I try to add "null" in .NET language it does not
draw a
polygon for me.
Dim pPgon As MgPolygon = geometryFactory.CreatePolygon(OLinRin,
inLnRing)
Any help in this matter is appriciated.
Regards
Javed
-- 
View this message in context:
http://www.nabble.com/Issue-in-Draw-Polygon-tp14790629s16610p14790629.ht
ml
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


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Alternative to AutoDesk MagGuide Studio

2007-12-21 Thread Jonio, Dennis (Aviation)
No, I have not used it at all. Just crashed into it and do not have the
time right now. Sure does look interesting...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of BradM
Sent: Friday, December 21, 2007 10:36 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Alternative to AutoDesk MagGuide Studio


We have not tried it but do you know if it will work with MGO beta 2.0?
thanks

djonio wrote:
> 
> Howdy,
> 
> Has anyone tried this?
> 
> http://www.hexad.eu/opensource/mapstudio.html
> 
> 
> dennis
> 

-- 
View this message in context:
http://www.nabble.com/Alternative-to-AutoDesk-MagGuide-Studio-tp14457186
s16610p14457281.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


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: SUSPECT: RE: [mapguide-users] Printing

2007-11-21 Thread Jonio, Dennis (Aviation)
Chris, Martin, Maksim

 

After working through our various "virus scanner" and "router port
closed" issues. Jason has the zip and has already started putting
together the page for your access. It is not obvious to me how it will
be accessible but I am sure he knows the way and will let us know.

 

 

Again ... thank you Jason. 

 

Happy Turkey Day!!!

dennis

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Wednesday, November 21, 2007 1:23 PM
To: MapGuide Users Mail List
Subject: RE: SUSPECT: RE: [mapguide-users] Printing

 

Hi Dennis,

 

The main osgeo wiki (wiki.osgeo.org) is different technology than the
wiki in the MapGuide Trac instance, and does use OSGeo IDs.  We don't
have single-sign-on though, so if you want to log in to the MapGuide
wiki, you have to click on the "Login" link under the search box and log
in there, not through the main OSGeo web site.  And you have to log in
every time you visit the site; it doesn't remember your credentials.

 

I'd be happy to post the zip and a description if you want to email it
to me offline.  My tech group just started allowing zipfiles through
again, so maybe I'll get lucky, but maybe not.  If not, I'll reply with
FTP details you can use.

 

Jason

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: Wednesday, November 21, 2007 09:38
To: MapGuide Users Mail List
Subject: SUSPECT: RE: [mapguide-users] Printing

Jason,

 

I have just read this:

The following services do not yet use the central OSGeo userid. 

* Wiki <http://wiki.osgeo.org/> : The main OSGeo wiki uses it's
own userid list for those wanting to edit, but it is easy to signup for
a wiki userid. Please make sure to add your email address to the
appropriate field because it is used to verify you are a real person.
Before that it is not possible to edit the Wiki. 

* Shell access to the telascience blades used for various
project services (ie. buildbot.osgeo.org, buildbot.osgeo.org). 

* Shell access to primary OSGeo server - available by special
arrangement with the System Administration Committee 

This then explains why I never see .. "logged in as xxx"

 

... and frankly all this is getting to be a bit much for me.

 

 

I do not wish to be forward and impose but why don't I email you the ZIP
and you then can post it? There is a README that explains. 

This would also give you a chance to review the contents first.

 

dennis

 



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] Printing

2007-11-21 Thread Jonio, Dennis (Aviation)
Jason,

 

I have just read this:

The following services do not yet use the central OSGeo userid. 

*   Wiki <http://wiki.osgeo.org/> : The main OSGeo wiki uses it's
own userid list for those wanting to edit, but it is easy to signup for
a wiki userid. Please make sure to add your email address to the
appropriate field because it is used to verify you are a real person.
Before that it is not possible to edit the Wiki.
*   Shell access to the telascience blades used for various project
services (ie. buildbot.osgeo.org, buildbot.osgeo.org). 
*   Shell access to primary OSGeo server - available by special
arrangement with the System Administration Committee

This then explains why I never see .. "logged in as xxx"

 

... and frankly all this is getting to be a bit much for me.

 

 

I do not wish to be forward and impose but why don't I email you the ZIP
and you then can post it? There is a README that explains. 

This would also give you a chance to review the contents first.

 

dennis

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Wednesday, November 21, 2007 12:13 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Printing

 

It's a permissions issue then...  I was able to talk my way into admin
rights :)

 

Odd though, it shows that authenticated users should have wiki create
and modify rights.  Just to confirm, when you get that error message,
does it show "logged in as xxx" on the line between the search box and
the bar that has Wiki | Timeline | Roadmap ... ?

 

I guess I should find out whether you even have edit rights.  I've added
a template page for the link below; does it allow you to edit it when
you're logged in?

 

Jason

 

____

From: Jonio, Dennis (Aviation)
Subject: RE: [mapguide-users] Printing

I put this into the address bar:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/ASP.Net/ScribbleApp

And the result is:


Not Found


 

 I have zipped up the source and constructed a readme. It is 5.54 MB
(5,813,430 bytes) because I included the iText and IKVM dll's so people
could get started. 

 

dennis

 



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] Printing

2007-11-21 Thread Jonio, Dennis (Aviation)
Jason,

 

I log in.

I put this into the address bar:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/ASP.Net/ScribbleApp

And the result is:


Not Found


Page CodeSamples/ASP.Net/ScribbleApp not found

TracGuide <http://trac.osgeo.org/mapguide/wiki/TracGuide>  - The Trac
User and Administration Guide 

Sooo  Here we go with this: http://tinyurl.com/2qd3h8

 

And the result is:


Not Found


Page CodeSamples/AspDotNet/PDFPrinting not found

TracGuide <http://trac.osgeo.org/mapguide/wiki/TracGuide>  - The Trac
User and Administration Guide 

 

I have zipped up the source and constructed a readme. It is 5.54 MB
(5,813,430 bytes) because I included the iText and IKVM dll's so people
could get started. 

 

dennis

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Wednesday, November 21, 2007 10:36 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Printing

 

It's not very intuitive, but it's relatively efficient once you get used
to it.  Once you are logged in, you should just be able to put the new
URL that you want into the browser, and the wiki will ask you if you
want to create the page.

 

It's possible that you don't have rights to do this; I don't have access
to the Admin section in MapGuide Trac.  Let me know if it doesn't
present you with this option if you are logged in and put this link in
your address bar:

 

http://tinyurl.com/2qd3h8

 

Jason

 

____

From: Jonio, Dennis (Aviation)
Subject: RE: [mapguide-users] Printing

 

After stumbling around I finally did get an ID but I am at a loss as to
how to "add" a page? I am a fairly bright guy(I think) but I found this
not  to be a very intuitive interface. I looked at the link you supplied
and had not a clue.

 

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


RE: [mapguide-users] Printing

2007-11-21 Thread Jonio, Dennis (Aviation)
Jason,

 

After stumbling around I finally did get an ID but I am at a loss as to
how to "add" a page? I am a fairly bright guy(I think) but I found this
not  to be a very intuitive interface. I looked at the link you supplied
and had not a clue.

 

Sorry for my shortcoming ...

 

dennis

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Tuesday, November 20, 2007 5:34 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Printing

 

Hah,

 

I had already forgotten that Jackie was working on this kind of thing in
the Trac wiki.

 

I've done a bit of restructuring...  Would you mind trying to add a new
page with your code sample to this index and let me know how it goes?

 

http://trac.osgeo.org/mapguide/wiki/CodeSamples
<http://trac.osgeo.org/mapguide/wiki/CodeSamples> 

 

You will need an OSGeo ID to edit the wiki... there's a link on the main
page on how to get one of those.  You should also be able to attach a
zipfile to the sample page.

 

If the instructions on that page are not clear (and I'm pretty sure
they're not), please fix them or let me know what's missing.

 

Thanks!

Jason

 

________

From: Jonio, Dennis (Aviation)
Subject: RE: [mapguide-users] Printing

I would be glad to share my entire "Scribble" application(simple, easy
markup and output  - .NET and ajax)  if there was a method for such a
thing. I think many of you would see much of your code sprinkled
throughout and I know that is a "nice" thing to see.

 

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


RE: [mapguide-users] Printing

2007-11-20 Thread Jonio, Dennis (Aviation)
Jason,

 

Thank you for the explanation. I certainly understand your point
concerning production code. Obviously, my intent is to help other as so
many others in the open source community have helped me. 

 

Yes, I have seen the activity over the last year grow tremendously ...
kudos to you and all involved.

 

I would be glad to share my entire "Scribble" application(simple, easy
markup and output  - .NET and ajax)  if there was a method for such a
thing. I think many of you would see much of your code sprinkled
throughout and I know that is a "nice" thing to see.

 

Let me know your decision. 

 

Chris/Martin,

Let's give Jason an opportunity to set something up. If he, for whatever
reason, cannot ... we will "noodle" something out ...

 

dennis

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Tuesday, November 20, 2007 3:19 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Printing

 

Hi Dennis,

 

Sharing the code is awesome, it's just not likely that it would make it
into the production code stream without either being cross-platform or
having equivalent functionality under the other supported languages.

 

There has been some thought given to setting up a "community" area to
facilitate code sharing, but I haven't heard anything about it recently.
In absence of that, I'll have to see whether we can set up some kind of
"code samples" area on the Trac wiki where you could write up a quick
explanation and then attach a zipfile with the code.

 

This community is incredibly active, but I think we need to understand
that the MapGuide Open Source project is not run by anyone but the
community.  Yes, Autodesk still does the majority of the coding (though
we are seeing more activity from others recently), but it's a true open
source project and its strength is going to be measured by the
willingness of its users to get involved in testing, development,
documentation and, in general, innovations like what you have done with
PDF output.

 

Jason

 



From: Jonio, Dennis (Aviation)
Subject: RE: [mapguide-users] Printing

I have gotten the impression from reading other pages on OSGeo that this
forum does not like submissions, of code, that do not meet their
requirements for portability etc, etc. So I am hesitant to provide more.
I really do not wish to get them upset :-)  Maybe they don't mind a
snippet at a time 

 

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


RE: [mapguide-users] Printing

2007-11-20 Thread Jonio, Dennis (Aviation)
Ok ...

Here goes. No, there is no "scaling". In this generation the
fundamentals are very, very simple ... Whatever the map shows gets
captured via RenderMap. In my case, RenderMap produces a PNG(could just
as well be a jpeg) that is passed on to iText methods that turn that
stream into an image which in turn is used to "size" the paper selection
for the PDF. The page is added to the PDF document and the PDF document
is streamed to the http response stream. Obviously all of the save,
zoom, select, pan and print functions of Adobe Reader are there. 

 

Here are the contents of scribblepdfdoc.ashx.

 

<%@ WebHandler Language="C#" Class="scribblepdfdoc" %>

 

using System;

using System.Web;

 

public class scribblepdfdoc : IHttpHandler {



public void ProcessRequest (HttpContext context) {

 

ScribbleMethodsMgr smm = new ScribbleMethodsMgr();

byte[] v =
smm.MaterializeMapPDFPage(context.Request.QueryString[0],

 
context.Request.QueryString[1],

 
System.Convert.ToInt32(context.Request.QueryString[2]),

 
System.Convert.ToInt32(context.Request.QueryString[3]),

 
context.Request.QueryString[4]);

context.Response.AppendHeader("Expires", "0");

context.Response.AppendHeader("Cache-Control", "post-check=0,
pre-check=0");

context.Response.AppendHeader("Pragma", "public");

context.Response.ContentType = "application/pdf";

context.Response.BinaryWrite(v);

context.Response.Flush();

}

 

public bool IsReusable {

get {

return false;

}

}

}

 

I choose to put the actual stream creation inside a class that contains
a whole lot more than just creating a PDF stream. There is however no
reason why that method could not be placed inside this helper. I have
done it before for other applications. 

 

I have gotten the impression from reading other pages on OSGeo that this
forum does not like submissions, of code, that do not meet their
requirements for portability etc, etc. So I am hesitant to provide more.
I really do not wish to get them upset :-)  Maybe they don't mind a
snippet at a time 

 

I hope this much helps. Give a shout if you wish more  

dennis

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Tallman
Sent: Tuesday, November 20, 2007 11:06 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Printing

 

Dennis,

 

I like your approach, Does it allow you to print on large format to a
scale?

 

Chris

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: Monday, November 19, 2007 10:50 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Printing

Chris,

 

I decided before even starting on MGOS to output to PDF file format. Let
Adobe Reader handle all the printing output options and the zooming and
the panning and the  options,options,options. 

 

All my stuff is .NET specific. My boss has 'guidelines' after all ...

 

I have been producing PDF's  using "iText" for a couple years now and
irrespective of what I think the users love it. I will not burden you
with all the details but I am use "ikvm" in conjunction with "iText" ...
(this way I am able to stay up to date with "iText"). There is however a
.NET version of out there that is somewhat behind Bruno's work.

 

The guts of what I have done relies on RenderMap .. (MgByteReader
byteReader = renderingService.RenderMap(map, selection,
mapCenterCoordinate, mapScale, width, height, color,
imageflavor.ToUpper());

 

I would be glad to share but I have not a clue how to go about this
within this forum. 

 

 As an example 

I have done it using http "ashx" request and the latest iteration uses a
ajax .net 1.0 webmethod call from javascript.

 

function ScribblePDF()

{

tmp_control = document.getElementById("sessionName");

SESSION = tmp_control.value;

tmp_control = document.getElementById("mapName");

MAPNAME = tmp_control.value;

w = window.open("scribblepdfdoc.ashx?SESSION=" + SESSION
+ "&MAPNAME=" +MAPNAME + "&WIDTH=" + SCRIBBLEPDF_WIDTH + "&HEIGHT="
+SCRIBBLEPDF_HEIGHT + "&TYPE=" +SCRIBBLEPDF_TYPE
,"pdfmap","toolbar=no,status=no,width=550,height=720,resizable=yes,scrol
lbars=yes",false);

  try {

   w.focus();

} catch(Exception) { }   

}

 

Let me know if you wish additional info ...

dennis

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Tallman
Sen

RE: [mapguide-users] Printing

2007-11-19 Thread Jonio, Dennis (Aviation)
Chris,

 

I decided before even starting on MGOS to output to PDF file format. Let
Adobe Reader handle all the printing output options and the zooming and
the panning and the  options,options,options. 

 

All my stuff is .NET specific. My boss has 'guidelines' after all ...

 

I have been producing PDF's  using "iText" for a couple years now and
irrespective of what I think the users love it. I will not burden you
with all the details but I am use "ikvm" in conjunction with "iText" ...
(this way I am able to stay up to date with "iText"). There is however a
.NET version of out there that is somewhat behind Bruno's work.

 

The guts of what I have done relies on RenderMap .. (MgByteReader
byteReader = renderingService.RenderMap(map, selection,
mapCenterCoordinate, mapScale, width, height, color,
imageflavor.ToUpper());

 

I would be glad to share but I have not a clue how to go about this
within this forum. 

 

 As an example 

I have done it using http "ashx" request and the latest iteration uses a
ajax .net 1.0 webmethod call from javascript.

 

function ScribblePDF()

{

tmp_control = document.getElementById("sessionName");

SESSION = tmp_control.value;

tmp_control = document.getElementById("mapName");

MAPNAME = tmp_control.value;

w = window.open("scribblepdfdoc.ashx?SESSION=" + SESSION
+ "&MAPNAME=" +MAPNAME + "&WIDTH=" + SCRIBBLEPDF_WIDTH + "&HEIGHT="
+SCRIBBLEPDF_HEIGHT + "&TYPE=" +SCRIBBLEPDF_TYPE
,"pdfmap","toolbar=no,status=no,width=550,height=720,resizable=yes,scrol
lbars=yes",false);

  try {

   w.focus();

} catch(Exception) { }   

}

 

Let me know if you wish additional info ...

dennis

 

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Tallman
Sent: Monday, November 19, 2007 9:28 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Printing

 

Morning,

 

Has anyone built a printing app for MGOS?  I have a client that would
like to be able to print on a large format plotter.  I've not worked
with the printing functions and wondered if someone had already built
something that gives printing options and would be willing to share with
the group.

 

Thanks,

 

Chris



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] Changing existing dynamic layer's Filter onthefly

2007-11-15 Thread Jonio, Dennis (Aviation)
Maksim,

Maybe you are just making to many assumptions about what is under the
covers? ;-) 

It takes a few more lines of code but I try to make it a practice to
modify/delete at the object level and only ever use iterator/index for
reading. 

...burned a couple times with .NET hashtables.
  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maksim
Sestic
Sent: Thursday, November 15, 2007 10:15 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Changing existing dynamic layer's Filter
onthefly


Djonio, thanks for sharing the code. I'll try it and come out with
results.

BTW, did anyone notice that managed version of MgLayerCollection has
some
nasty problem when it comes to removing items?

Try removing MgLayer items by:

Dim layerIndex As Integer = map.GetLayers.IndexOf(layerName)
map.GetLayers.RemoveAt(layerIndex)

and it turns out that either IndexOf or RemoveAt doesn't perform well.
Or
maybe it's me doing it the wrong way?

Regards,
Maksim Sestic



djonio wrote:
> 
> Maksim, 
> 
>  
> 
> This is what I am doing in codebehind and it works ... I have to
clobber
> the existing layers in this particular group and rebuild them. I have
> this  "third" dimension thingee to deal with. For you I am sure it all
> is very obvious.
> 
>  
> 
> Kenneth,
> 
> I am working in MGOS 1.1 
> 
> Where is this:
> 
> MgMap map = new MgMap();
> 
> map.Open("map", srv);
> 
>  
> 
> map.Layers("layername").Filter = "Column = 5";
> 
> map.Save();
> 
>  
> 
> ???
> 
>  
> 
>  
> 
>  
> 
>public void GenerateSpatialQueryFilteredLayer(MgMap map,
> MgResourceService resourceService, string keys, Hashtable htFloors,
> MgLayer fromLayer)
> 
> {
> 
> // Set the group
> 
> MgLayerGroup mglg_root = this.CreateLayerGroup(map,
> "_SpatialQueryResults", null);
> 
> // Remove all the layers from the last query
> 
> MgLayer layer = null;
> 
> ArrayList layers_to_be_removed = new ArrayList();
> 
> for (int i = 0; i < map.GetLayers().GetCount(); i++)
> 
> {
> 
> MgLayer nextLayer = (MgLayer)map.GetLayers().GetItem(i);
> 
> MgLayerGroup actual_group = nextLayer.GetGroup();
> 
> if (actual_group != null)
> 
> {
> 
> if (actual_group.Name == mglg_root.Name)
> 
> layers_to_be_removed.Add(nextLayer);
> 
> }
> 
> }
> 
> for (int i = 0; i < layers_to_be_removed.Count; i++)
> 
> {
> 
> if (layers_to_be_removed[i] != null)
> 
> {
> 
> bool IsRemoved =
> map.GetLayers().Remove((MgLayerBase)layers_to_be_removed[i]);
> 
> // Lets try one more time if we failed  no good
> reason ... just try
> 
> if (IsRemoved == false)
> 
> {
> 
> IsRemoved =
> map.GetLayers().Remove((MgLayerBase)layers_to_be_removed[i]);
> 
> }
> 
> }
> 
> }
> 
> map.Save(resourceService);
> 
> 
> 
> // Get the floors from the passed in hashtable so we can make
up
> a layer for each
> 
> ArrayList al = new ArrayList();
> 
> IDictionaryEnumerator ide = htFloors.GetEnumerator();
> 
> while (ide.MoveNext())
> 
> {
> 
> DictionaryEntry de = (DictionaryEntry)ide.Current;
> 
> al.Add((string)de.Key);
> 
> }
> 
> al.Sort(null);
> 
> string[] Floors = (string[])al.ToArray(typeof(string));
> 
>  
> 
> // Get the definition identifier from the passed in layer ...
> just one time   
> 
> MgResourceIdentifier toResId = new
> MgResourceIdentifier(fromLayer.GetLayerDefinition().ToString());
> 
> // Go get the layer definition
> 
> string LibLayDef =
> resourceService.GetResourceContent(toResId).ToString();
> 
> XmlDocument doc = new XmlDocument();
> 
> doc.PreserveWhitespace = true;
> 
> doc.LoadXml(LibLayDef);
> 
> XPathNavigator nav = doc.CreateNavigator();
> 
> 
> 
> // for each floor name create a layer and set the filter for
> each
> 
> for (int _f = 0; _f < Floors.Length; _f++)
> 
> {
> 
> string LayerNameForSession = Floors[_f];
> 
> nav.MoveToRoot();
> 
> XPathNodeIterator nodeIter =
> nav.Select("//VectorLayerDefinition/Filter");
> 
> // There should be only one 
> 
> while (nodeIter.MoveNext())
> 
> {
> 
> nodeIter.Current.InnerXml = "(" + keys + ") AND (Floor
> ='" + Floors[_f] + "')";
> 
> }
> 
> // Setup to load the definition into the active map object
> 
> MemoryStream xmlStream = new MemoryStream();
> 
> doc.Save(xmlStream);
> 
> byte[] layerDefinition = xmlStream.ToArray();
> 
> //Encoding utf8 = Encoding.UTF8;
>

RE: [mapguide-users] newbie question about security

2007-11-08 Thread Jonio, Dennis (Aviation)
Here is an example of a do-it-yourself login. Obviously .NET ...
James and Kenneth have given excellent ideas for alternative ways to
setup your resources. 

In this illustration within the "loginQ_Authenticate" you could do a
whole range of stuff based upon who is/was signing in.
Yes, I add items to the Session but this gives the most generalized
flexibility for the Redirect. 

//
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="cam2login.aspx.cs" Inherits="cam2login" %>

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml"; >

Generalized MapGuide Login

.loginQappearance { 
 padding:5px 10px; 
 height: 200px; 
 width: 500px; 
 background: #66CCFF url("images/MIA_blue.gif") no-repeat;
background-position:top right;
  text-align: justify; padding-left:20px; border: solid 5px #99 
} 





   


   





// and of course the codebehind

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Specialized;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using OSGeo.MapGuide;


public partial class cam2login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack == true)
{
}
else
{
raw_InvokedByURL.Value = this.Request.RawUrl;
}
}
protected void loginQ_Authenticate(object sender,
AuthenticateEventArgs e)
{
try
{

string realPath =
Request.ServerVariables["APPL_PHYSICAL_PATH"];
String configPath = realPath + "../webconfig.ini";
MapGuideApi.MgInitializeWebTier(configPath);

MgUserInformation loginuserInfo = new
MgUserInformation(loginQ.UserName, loginQ.Password);
MgSite site = new MgSite();
site.Open(loginuserInfo);

string sessionId = site.CreateSession();
if (sessionId != null && sessionId != string.Empty)
{
this.Session.Add("mguser", loginQ.UserName);
this.Session.Add("mgpassword", loginQ.Password);
this.Session.Add("mgsessionid", sessionId);
//site.DestroySession(sessionId);
e.Authenticated = true;
string next_raw_InvokedByURL =
raw_InvokedByURL.Value.Replace("SOMENEWNAMEHERE_WHEREIWISHTOGO",
"THISISHOWIGOTHERE"); ;

this.Response.Redirect(next_raw_InvokedByURL);
}
}
catch (MgException ex) { }
}
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dorra2007
Sent: Thursday, November 08, 2007 3:08 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] newbie question about security


All users acess the same map (and layout), but the difference between
users
consists in the temporary layers loaded, according to his parameters
stored
in a database.
So, I am wondering if there is a mapguide security API that manages
users in
this way, or a security and login code ready for use.I'll be very
grateful
if you provide me with this code.
My problem is that users are not prompted for a login and password,
while
they have also access denied.


James Card wrote:
> 
> On Tue, 06 Nov 2007 03:38:30 -0800, dorra2007 <[EMAIL PROTECTED]>
wrote:
> 
>> I wish to know how to assign a user account to a layer (or layer  
>> definition), so that when he wish access this layer, he will be
promted  
>> for a user name and password.
> 
> The workaround we used for this was to assign security at the map
level  
> rather than the layer level. We created a separate map for each
security  
> group that included only the layers appropriate to that group. We also

> created one layout for each of these maps, so it was easy for the
security  
> and login code already in place on the webserver to just load the  
> appropriate layout after the user was authenticated.
> 
> Since we only had four secuirty groups this was a simple solution. If
the  
> were many different combinations of layer permissions required it
would be  
> too cumbersome to maintain a separate map and layout for each.
> 
> -- 
> James Card
> 209-578-5580
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context:
http://www.nabble.com/newbie-question-about-security-tf4757541s16610.htm
l#a13642851
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


E-mails are automatically scanned for viruses 

RE: [mapguide-users] Open map and Zoom to data

2007-11-06 Thread Jonio, Dennis (Aviation)
After spending some hours on this forum I have begun to use this
watchForInitializationComplete() function as the starting point for most
of my applications. You will obviously have to adjust the
"parent.parent.parent" stuff as I crowd as many as four iframes inside
the TaskPane. I do NOT use php. I have settles on ajax.NET 1.0 and mgos
seems to love it. I have been able to make mgos respond as if it were a
desktop application. Please forgive all the syntax errors in
processParms() ... I am just trying to explain the concept.

To reiterate what others have shown me:

var initTimer =
setInterval(watchForInitializationComplete, 250); 
function watchForInitializationComplete()
{ 
try { 
if(parent.parent.parent.mapFrame.GetMapName) 
{ 
//alert("within watchForInitialization
...");
var mapName =
parent.parent.parent.mapFrame.GetMapName();   
if ( mapName != null) {
var mapNameControl =
document.getElementById("mapName");
mapNameControl.value = mapName;
var legend_done = false;
if (parent.parent.parent.mapFrame.GetLegendCtrl)
{
legend_done =
parent.parent.parent.mapFrame.GetLegendCtrl().InternalStateComplete();
if (legend_done == true)
{
   //clearInterval(initTimer);
   var sessionNameControl =
document.getElementById("sessionName");
   sessionName =
parent.parent.parent.mapFrame.GetSessionId();
   sessionNameControl.value =
sessionName;
   try 
   {
 processParms();
clearInterval(initTimer);
   } catch(exp) { alert("...Error is
fatal: " + exp.message); }
   
 }
} 
}
} 
} 
catch(Exception) { } 
//catch(Exception) { alert("Waiting: Map has not finished
building. click and Retry."); } 
}

   function ShowViaZoom(x, y, scale)
   {
//alert("X:" + x +" Y:" + y +" Scale:" +  scale);
parent.parent.parent.ZoomToView(x, y, scale, true);
   }

some function like this to get your parms ..

  function processParms()
  {
var parameters = location.search.substring(1).split("&");

var temp = parameters[0].split("=");
l = unescape(temp[1]);
temp = parameters[1].split("=");
p = unescape(temp[1]);
document.getElementById("X").innerHTML = l;
document.getElementById("Y").innerHTML = p;
var X = l;
var Y = p;
ShowViaZoom(x, y, scale);
  }


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ismael Cams
Sent: Tuesday, November 06, 2007 6:33 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Open map and Zoom to data


You could make add another "hidden" frame to your frameset. Pass the
incoming
parameters to the hidden frame and perform zoom and selection actions in
this hidden frame.

Something like:


";
}else{
echo "";
}
   ?>




You will also have to check first in the hidden page if the map is
already
initiated before selecting and zooming. There are some examples on the
forum
how to achieve this.




Mark Pendergraft wrote:
> 
> I'm trying to figure out how to open my map and have it automatically
> zoom to a feature by including a request querystring in the url.
> 
> For example http://localhost/mapguide/mga/mga.aspx?JobNo=04291  would
> zoom to the feature on the Jobs layer with a property of JobNo
equaling
> 04291.
> 
>  
> 
> I have already written a search/zoom to application which uses this
> property.  It runs in the scriptFrame and is usually triggered from a
> button on a page that resides in the taskPane.
> 
>  
> 
> My application opens with a page, which creates 2 frames (titleFrame,
> viewerFrame).
> 
>  
> 
> The only way I can figure out how to do this, is to pass the request
> string to a Session.Item.  Then, I have some code in the task pane's
> default page which can submit a form using javascript to the
> scriptframe.
> 
>  
> 
> However, I was hoping to put all of this functionality into the
opening
> page, that way I wouldn't have to pass variables using the session
item.
> Which is more desirable, because if the user presses the home button
in
> the task area the code would execute again.
> 
>  
> 
> Does anyone have any ideas or experience with making the map zoom 

RE: [mapguide-users] Newbie questions

2007-10-15 Thread Jonio, Dennis (Aviation)
Marty,

Q1: YES - (technically no ..)  Map3d does have a Publish to MapGuide but
you will be very, very disappointed in the output. DETE is a very
complex app especially when you have multiple "Maps" defined within
"Display Manager"  I cannot emphasis enough to take the time to
understand "Display Manager".  Because of the nomenclature it was
somewhat of a task for me to get the basics.

 

Q2: This site is great for MapGuide ... Trial/Error on the
Map3d->Display Manager->Map building functions. Be sure you fully
understand what "Map Base" is in Display Manager

 

Q3: Time will tell .

 

dennis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marty
Coonrod
Sent: Monday, October 15, 2007 10:36 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Newbie questions

 

OK, I have MapGuide v 1.2 installed and working. Now I would like to put
it to use.

I have many AutoCAD maps done on USGS base that I would like to move
into this system.

The maps are from the telecommunications industry and have many defined
blocks with attributes and layers.

Right now I have AutoCAD and AutoCAD Map both 2008 and have ordered the
AutoCAD MapGuide Studio trial CD.

 

Question 1. Do I need MapGuide Studio to do this or does MapGuide Web
Studio have the same functionality?

 

Question 2. What is a good source of information for learning how to do
this? Are there any tutorials or documents related to this? 

 

Question 3. Am I posting this to the right group or is there another one
for these types of questions?

 

Any source of information that you may feel pertinent is welcome.

 

Thanks,

Marty 

 



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] MapGuideDotNetApi error

2007-10-11 Thread Jonio, Dennis (Aviation)
Kenneth,
First off ... thank you for your response. Yes, I was terse. I
apologize.

I already had four distinct MG application running under the
"standard-out-of-the-box" MG configuration and all works very well. So
this additional app failure was a complete surprise. I included a bunch
of .NET AJAX 1.0 functionality in this app so I assumed(for a awhile)
that that was somehow the issue. It was not.

To get to the point ... I did not gracefully shutdown MG server and IIS
when I did the copy over to the server from the development box. During
my "sanity-check" I did then in fact shut everything down properly.
After doing this there remained 2 extraneous MG processes! (I kept
getting this "lock" on ACE.dll). I have absolutely no idea how or why.
After killing those and copying over my new app and starting things back
up PROPERLY all worked well. 

All my fault ... and another lesson learned about the "robustness" of
IIS.

BTW: The .NET AJAX 1.0 Toolkit extenders really make working in that
taskPane space manageable. 

Again, thank you for your response.

dennis


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: Thursday, October 11, 2007 2:42 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MapGuideDotNetApi error

You are not being very informative.
I have seen this error when the dll files are missing from the bin 
folder, or the IIS server folder is not setup for .Net 2.0.

Regards, Kenneth, GEOGRAF A/S



djonio skrev:
> Type 'OSGeo.MapGuide.MgInvalidRepositoryTypeException' in Assembly
> 'MapGuideDotNetApi, Version=1.1.0.301, Culture=neutral,
PublicKeyToken=null'
> is not marked as serializable.
>
> Has anyone solved this issue?
>   
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] ByteReader Problem

2007-09-04 Thread Jonio, Dennis \(Aviation\)
Glad to hear it ...

 

I know this is unsolicited but I noticed you were/are using XmlDocument.
Good choice. XPathNavigator works well. Just keep in mind the extra
octet that MS put in front when you serialize out of XmlDocument.

 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Monday, September 03, 2007 8:26 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

 

Great, that seems to work, thanks.

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: 31 August 2007 17:04
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

This is what I use in real life ... I did not understand.  I was
illustrating the 8K thingee. It caught me to.  

   

 string lib_layer_definition =
resourceService.GetResourceContent(resId).ToString();

 byte[] layerDefinition = new byte[lib_layer_definition.Length];

 int byteCount = Encoding.UTF8.GetBytes(lib_layer_definition, 0,
lib_layer_definition.Length, layerDefinition, 0);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 11:32 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

 

Thanks Dennis.

 

I've tried this, but I'm only getting 8192 bytes read into the byte
buffer. This seems to be the problem mentioned by Kenneth. The Read
method doesn't seem to allow the start location for the read to be set,
so looping until the entire content of the Resource is read into the
buffer doesn't seem to be an option.

 

Presumably somebody must have found a way around this.

 

Keith

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: 31 August 2007 14:05
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

... this sequence tends to work 

 

 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = rs.GetResourceContent(resId).Read(byteBuffer,
(int)long_length);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 7:10 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

 

This message has been scanned for viruses by MailControl
<http://bluepages.wsatkins.co.uk/?6875772> 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

 

This email and any attached files are 

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
This is what I use in real life ... I did not understand.  I was
illustrating the 8K thingee. It caught me to.  

   

 string lib_layer_definition =
resourceService.GetResourceContent(resId).ToString();

 byte[] layerDefinition = new byte[lib_layer_definition.Length];

 int byteCount = Encoding.UTF8.GetBytes(lib_layer_definition, 0,
lib_layer_definition.Length, layerDefinition, 0);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 11:32 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

 

Thanks Dennis.

 

I've tried this, but I'm only getting 8192 bytes read into the byte
buffer. This seems to be the problem mentioned by Kenneth. The Read
method doesn't seem to allow the start location for the read to be set,
so looping until the entire content of the Resource is read into the
buffer doesn't seem to be an option.

 

Presumably somebody must have found a way around this.

 

Keith

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: 31 August 2007 14:05
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

... this sequence tends to work 

 

 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = rs.GetResourceContent(resId).Read(byteBuffer,
(int)long_length);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 7:10 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

 

This message has been scanned for viruses by MailControl
<http://bluepages.wsatkins.co.uk/?6875772> 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

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


RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
... this sequence tends to work 

 

 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = rs.GetResourceContent(resId).Read(byteBuffer,
(int)long_length);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 7:10 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

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