Re: [mapguide-users] Modify Scale Ranges Of a Layers

2010-04-23 Thread Jason Birch
The Session repository only stores resources for as long as the session
exists.  You will need to persist the layer definition somewhere in the
Library repository, and then figure out how to retrieve it next time the
user accesses your application.  Be aware that the anonymous user is not
permitted to write to the Library repository, so your app will need to
authenticate as a different user to do this.

Jason

On 22 April 2010 22:51, SriRam007 wrote:


 I want to keep permanently the modified scale ranges of a layers.

 I already have done By modifing the XML file of Layerdefinition for
 changing
 the scale dynamically.
 And it is working fine also. But it exists till the session end. I want to
 keep it permanently.


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


RE: [mapguide-users] Modify Scale Ranges Of a Layers

2010-04-23 Thread Rajeev Singh
Sriram,

In case you want to have a 'sticky' rememberance (sic) of last view of map
seen by user you could try something similar to what we did:

either at cookie level (or if you ask user to login, then login id) remember
the center and extent - Using javascript you can record this at the back end
whenever view/center is changed. (In our case we created toolbar action).
Then when the session is created the first time, get the information from
cookie and/or login id set the initial center and extent - the best place we
found was in ajaxmappane.templ

hope this helps.

thx


Rajeev K. Singh
IntelliPlanner Software Systems, Inc.
West Windsor, NJ (USA) / New Delhi (India)
+1.609.945.4927 (o) / +1.203.558.3224 (c)
+91.11.4672 6635(o) / +91.995 841 1064(c)

This mail contains proprietary and confidential information.
Please destroy it if you received it by mistake and notify the sender.


  -Original Message-
  From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org]on Behalf Of Jason Birch
  Sent: 23 April 2010 02:13
  To: MapGuide Users Mail List
  Subject: Re: [mapguide-users] Modify Scale Ranges Of a Layers


  The Session repository only stores resources for as long as the session
exists.  You will need to persist the layer definition somewhere in the
Library repository, and then figure out how to retrieve it next time the
user accesses your application.  Be aware that the anonymous user is not
permitted to write to the Library repository, so your app will need to
authenticate as a different user to do this.


  Jason


  On 22 April 2010 22:51, SriRam007 wrote:


I want to keep permanently the modified scale ranges of a layers.

I already have done By modifing the XML file of Layerdefinition for
changing
the scale dynamically.
And it is working fine also. But it exists till the session end. I want
to
keep it permanently.

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


[mapguide-users] Re: Modify Scale Ranges Of a Layers

2010-04-23 Thread SriRam007

thanks Rajeev 

Actually For now I dont want like this in future it may be require. I will
keep in mind.

I m trying according to Jason Sir

Thank u very much to both of u for giving such useful ideas

thanks
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Modify-Scale-Ranges-Of-a-Layers-tp4948821p4949025.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Modify Scale Ranges Of a Layers

2010-04-23 Thread SriRam007

Hello Sir,

I tried as u told
I saved it in the Library repository with Administrator user and pass admin
Now it is saving but not taking above the maxscale

My Scale Range Details for a layer are as below 
- 
Range  From(Mini) To (Max) 
- 
10  1 
212 
325 

Here highest maxscale is 5 

And i can't able to set above 5

And Once i modified it below 5  Suppose i modified to 4 ,then again
i cant able to set more than 4

What might be the problem? 
Is there any soln for this??

thanks

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Modify-Scale-Ranges-Of-a-Layers-tp4948821p4949102.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: Modify Scale Ranges Of a Layers

2010-04-23 Thread Rohit Razdan
Hello Sri,
Might I say that you don't need to use Sir, on this or on any other
list, in the open source community.

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


[mapguide-users] Re: Modify Scale Ranges Of a Layers

2010-04-23 Thread SriRam007

Sorry! if i hurted anyone

But when i saw his face and he has posted 3071 posts 

my hand is not allowing me to write simply his name


thanks 

I will try to control
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Modify-Scale-Ranges-Of-a-Layers-tp4948821p4949945.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: Modify Scale Ranges Of a Layers

2010-04-23 Thread Ivan Miličević
Wow?!?!?

Where did you come from?

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of SriRam007
Sent: Friday, April 23, 2010 1:20 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Re: Modify Scale Ranges Of a Layers


Sorry! if i hurted anyone

But when i saw his face and he has posted 3071 posts 

my hand is not allowing me to write simply his name


thanks 

I will try to control
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Modify-Scale-Ranges-Of-a-Layers-tp4948821p4949945.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Modify Scale Ranges Of a Layers

2010-04-23 Thread SriRam007


Ya i got everything , 
sometimes because of ingenuousness quality I offend somewhere

Please Every body come out from that topic

And Provide me some soln


thanks
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Modify-Scale-Ranges-Of-a-Layers-tp4948821p4949973.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Join Problem

2010-04-23 Thread _Jon_

The join is between a SQL Server database view accessed via OBDC and an sdf
file.  Back in 1.1, this was the only way to do a join.  I know that joins
are a bit flaky, and they're the reason why I've waited this long.  I
previously tried migrating this site to 2.0 and I experienced a different
set of problems so I gave up.  

I would like very much to migrate the SDF data to SQL Server and do the join
on the database side, but I'd really like to get the existing site running
before I make any structural changes to it.  

Jon
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Join-Problem-tp4946935p4950204.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Join Problem

2010-04-23 Thread _Jon_

Maestro throws an exception when I try to open the feature source.  I guess
I'll start over by migrating the simple stuff and manually redefining
anything touching the joins.  This repositiory has been around since 1.0, so
it's probably safer to start over, anyways.  On occasion, my existing server
chokes for no apparent reason, so I suspect there is an issue with the
repository that 1.1 was being more tolerant of.  Not the end of the world,
but it's probably a day's work.  Thanks!

Jon

PS: validation tool?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Join-Problem-tp4946935p4950527.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Modify Scale Ranges Of a Layers

2010-04-23 Thread djonio

STFU
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Modify-Scale-Ranges-Of-a-Layers-tp4948821p4950622.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Join Problem

2010-04-23 Thread _Jon_


Okay, this is still not right.  I started over by manually re-building my
repository from scratch.  I manually re-created the database connections and
my load procedures, and loaded all of my SDF files into the Library.  I went
through and I defined the joins on a few of them.  However, when I create a
layer, the joins are still not working properly.  They are behaving like
inner joins, even though they are configured as left outer joins.  So, I
went back in to the feature source that was giving me problems, tickled a
few of the settings, and lo-and behold, it gave me the same error as before
when I try to save!  This is not a data migration issue - it has to be
something else.  It has something to do with the interaction between the
layer and the feature resource.  I can open any of the sdf files and save
them UNTIL I create a themed layer using that resource.  Once I create a
layer, the feature source becomes broken, even if I point the layer to a
different feature source.  Interestingly, Maestro does not report a problem
with the resource.

I guess my site will have to remain in 1.1 for the foreseeable future. 

Jon

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Join-Problem-tp4946935p4950793.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: Join Problem

2010-04-23 Thread Jason Birch
Does this look like your left join problem?

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

I've asked on the -internals list whether the patch for this has been
submitted and will be in the 2.2 release.

Are you seeing any relevant errors in the MapGuide error log?  After you get
the error, if you restart the MapGuide service and re-connect, can you still
not delete the underlying feature source?

I don't recall seeing any prior reports of this behaviour, so it's likely
that you'll be stuck on 1.1 indefinitely unless you file a Trac ticket that
allows a developer to quickly and easily reproduce the problem.  It may also
be helpful to confirm that this is a generic MapGuide problem and not a
Studio problem by going through the process from start to finish using
Maestro.

Notes on how to file a ticket are available here; might want to search first
to see if there is anything that looks similar, but I couldn't find any with
a quick search:

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

Re: validator, Maestro has the ability to right-click on any resource and
validate it and its dependencies.  It quickly finds things like layers that
have had their feature sources moved out from under them, mismatched
coordinate system definitions, etc.

Jason

On 23 April 2010 07:26, _Jon_ wrote:



 Okay, this is still not right.  I started over by manually re-building my
 repository from scratch.  I manually re-created the database connections
 and
 my load procedures, and loaded all of my SDF files into the Library.  I
 went
 through and I defined the joins on a few of them.  However, when I create a
 layer, the joins are still not working properly.  They are behaving like
 inner joins, even though they are configured as left outer joins.  So, I
 went back in to the feature source that was giving me problems, tickled a
 few of the settings, and lo-and behold, it gave me the same error as before
 when I try to save!  This is not a data migration issue - it has to be
 something else.  It has something to do with the interaction between the
 layer and the feature resource.  I can open any of the sdf files and save
 them UNTIL I create a themed layer using that resource.  Once I create a
 layer, the feature source becomes broken, even if I point the layer to a
 different feature source.  Interestingly, Maestro does not report a problem
 with the resource.

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


[mapguide-users] Re: Join Problem

2010-04-23 Thread _Jon_

That does indeed look like it might be related.  I'm not exactly sure what
the GWS query engine is or when it is involved in querying features, but if
I am interpreting this correctly, this would mean that ANY left outer join
would behave like an inner join.  The severity is marked as trivial, which
leaves me confused - I would expect a left outer join to be rather common
and necessary.  I didn't think I was doing something all that special.  In
fact, this was the only join type available back in 1.1.  I guess I will
have to submit a defect just to be sure.

I think you are correct that the surrounding behavior of errors might be
Studio issues.  The problem only appears after I refresh the preview of the
joined layer and restarting the service makes the errors stop.  Displaying
the preview via Maestro does not cause the feature source to break, but
Maestro shows the preview in a slightly different way.

Thank you for your advice and suggestions!

Jon

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Join-Problem-tp4946935p4952527.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: Join Problem

2010-04-23 Thread Jason Birch
Bruce has confirmed that the patch attached to that ticket was applied, and
closed the ticket.  I believe that it was after 2.1 was released though.

If you feel like living on the edge, there is a pre-alpha installer for 2.2
available here:

http://download.osgeo.org/mapguide/testing/

MapGuideOpenSource-2.2.0.4686-Test.exe

Not guaranteed to work or anything, but if it does it would allow you to
verify whether the fix to the original ticket solves the join problem you're
seeing.

Being a MapGuide 6.5 customer, I started using joins with early MapGuide OS
versions, had tonnes of headaches from stability and performance
perspectives, and ended up using FME to write everything to SDF on a nightly
basis instead and haven't looked back.  I wouldn't be surprised if many
other early adopter production MapGuide sites ran into the same problems and
abandoned joins.  I'm not convinced that joins are fully mature yet, even at
2.2, but they should be considerably better.

Jason


On 23 April 2010 13:23, _Jon_  wrote:


 That does indeed look like it might be related.  I'm not exactly sure what
 the GWS query engine is or when it is involved in querying features, but if
 I am interpreting this correctly, this would mean that ANY left outer join
 would behave like an inner join.  The severity is marked as trivial,
 which
 leaves me confused - I would expect a left outer join to be rather common
 and necessary.  I didn't think I was doing something all that special.  In
 fact, this was the only join type available back in 1.1.  I guess I will
 have to submit a defect just to be sure.

 I think you are correct that the surrounding behavior of errors might be
 Studio issues.  The problem only appears after I refresh the preview of the
 joined layer and restarting the service makes the errors stop.  Displaying
 the preview via Maestro does not cause the feature source to break, but
 Maestro shows the preview in a slightly different way.


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