[mapguide-users] MapGuideApiPINVOKE

2010-01-29 Thread Gunter Becker

Hi all,

I'm working with MGOS2.1. When trying to get a connection through the
MaestroAPI I get a TypeInitializationException with this message: 

The type initializer for 'OSGeo.MapGuide.MapGuideApiPINVOKE' threw an
exception

It happens at this line:

_nativeConn = new LocalNativeConnection(iniPath, userName, password, "en"); 

This code works for me on my development platform: "Windows 7 Ultimate"
(64Bit) , Dual Core Processor, 4GB RAM
It also works for me on a "Windows Server 2008 Standard" (32Bit), Dual Core
Processor, 2GB RAM. 

The machine where I get this error is a "Windows Server 2008 Enterprise"
(32Bit), QuadCore Processor, 16GB RAM.  Unfortanatly it's our customers
server.
So what can cause this problem? Is it the hardware configuration? 

Thanks, Gunter
-- 
View this message in context: 
http://n2.nabble.com/MapGuideApiPINVOKE-tp4478803p4478803.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: Problem with map (raster tif files) only half showing.

2010-01-29 Thread Brigl

Hi James, 
did you get any hint or a solution for this?
We see the same effect with the GDAL provider and png files:

did anyone try the GDAL Provider and transparent PGNs?

This works for me with some few PNGs but not for 100 of them. 
Some of these hundreds are displayed correctly but vanish/show up again when
zooming or panning. 

We are not sure if this is some kind of limitation/defect in the GDAL or
maybe in the PGNs. 
Any experiences on this out there?

-- 
View this message in context: 
http://n2.nabble.com/Problem-with-map-raster-tif-files-only-half-showing-tp4473961p4478815.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] Problem with map only half showing.

2010-01-29 Thread Gabriele Monfardini
You may try to have a look to the output of the command gdalinfo
applied to your tiff files.

It sometimes reports errors or warning, expecially on compressed tiff
files created with some applications.
This probably means that gdal have some problem reading the file even
if it appears correctly in image viewers/editors.

The most common issues, in my experience, are non conventional
headers, missing data at the end of some blocks, application specific
metatadata information. Minor things that however may confuse gdal.

We've had the same issues with some tiff files and similar results:
the layer sometimes is partially showing, sometimes completely missing
and sometimes working correctly. Even a very small pan produces a
quite different result, almost unpredictably

We recreated the tiff file, checked that gdalinfo output was positive
and that fixed the issue (however in mapguide 1.2)

Regards,

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


[mapguide-users] Guide Me in MGOS 2.1

2010-01-29 Thread padmini godavarthi


Hi 
iam using MGOS 2.1 with Mapguide Maestro 1.0.9 on iis 6.0
Microsoft visual studio 2008 Expression edition on windows xp service pack2

by clicking on show in browser in maestro the map appears fine on Browser


i found the error that while developing a sample application,
MapGuideDotNetApi.dll of assembly version 2.0.0.2308 is appeared in my
application so, i deleted it on my application and placed 
MapGuideDotNetApi.dll of assembly version 1.0.0.1 in my application as told
by kenneth in 

 
http://n2.nabble.com/MapGuide-2-1-Ok-in-Studio-error-Message-in-IE-Impossible-to-Get-Entry-Point-td3080482.html#a3082009

but after running the application the MapGuideDotNetApi.dll of assembly
version 2.0.0.2308 is again  appears in my application


my code is as follows 

 
  Imports OSGeo.MapGuide
  Imports OSGeo.MapGuide.MaestroAPI
  Imports System.Web.UI.HtmlControls
  Imports System.Collections.Specialized.NameValueCollection


(Main.aspx.vb)
Partial Class _Default
Inherits System.Web.UI.Page
Public sessionId As String
Public webLayout As String
Dim resrce As ResourceIdentifier
Public layout As WebLayout
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim realPath As String =
Request.ServerVariables("APPL_PHYSICAL_PATH")
Dim configPath As String = realPath + "webconfig.ini"
MapGuideApi.MgInitializeWebTier(configPath)
Dim userinfo As MgUserInformation = New
MgUserInformation("Administrator", "admin")
'Dim mgsiteconn As MgSiteConnection = New MgSiteConnection()
Dim site As MgSite = New MgSite()
site.Open(userinfo)
sessionId = site.CreateSession()
Dim host As Uri = New
Uri("http://localhost/mapguide/mapagent/mapagent.fcgi";)
Dim conn As HttpServerConnection = New HttpServerConnection(host,
"Administrator", "admin", "en", True)
layout = conn.GetWebLayout("Library://sample/Layout.WebLayout")
resrce = New ResourceIdentifier("sample", ResourceTypes.WebLayout,
sessionId)
conn.SaveResourceAs(layout, resrce)
HttpContext.Current.Session("sid") = sessionId
HttpContext.Current.Session("layout") = resrce
End Sub
End Class

and the (main.aspx)

  




 
   
 


   



can u plz tell me the solution


and my doubts are

1) is mgos 2.1 supports the environment of  MS VS 2008 Expression Edition?
(because in iis i configured the mapguide to .net framework 2.0 only)


Regards, 
Padmini G. 


-- 
View this message in context: 
http://n2.nabble.com/Guide-Me-in-MGOS-2-1-tp4479159p4479159.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide HOSTING

2010-01-29 Thread Cratos!

Kindly advise on where to get affordable hosting for Mapguide.

Thanks
Cratos!
-- 
View this message in context: 
http://n2.nabble.com/Mapguide-HOSTING-tp4479629p4479629.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: Problem with map only half showing.

2010-01-29 Thread JamesDudden


Dave Wilson wrote:
> 
> Does the GDAL provider use a config.xml which contains the file details
> and bounds similar to the Autodesk 
> 

Yes it does.
What could the problem be?
Is there some way of fixing it?
The strange thing is it sometimes happens in some places and always happens
in other places??

Any help or advice is welcome

Thanks
JD


-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-map-raster-tif-files-only-half-showing-tp4473961p4479779.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: Problem with map only half showing.

2010-01-29 Thread Gary Morin
Hi James

Are you using OS Tif files? If so it could be a problem with the format,
try using a utility like Irfanview to convert them.

Regards

Gary

Keynetix Ltd
Member of the Key Systems Group

Tel. +44 (0) 1527 6
Fax: +44 (0) 1527 62880
Dir. +44 (0) 1604 891152
Mobile: 07801 371438
Web Site: http://www.keynetix.com

KeySpatial - GIS for all, for the price of a single desktop GISĀ 
www.keynetix.com/KeySpatial

IMPORTANT: Please address all support & sales correspondence to either
supp...@keynextix.com or sa...@keynetix.com Addressing support questions
to individuals may delay the response

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of JamesDudden
Sent: 29 January 2010 12:50
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] RE: Problem with map only half showing.



Dave Wilson wrote:
>
> Does the GDAL provider use a config.xml which contains the file details
> and bounds similar to the Autodesk
>

Yes it does.
What could the problem be?
Is there some way of fixing it?
The strange thing is it sometimes happens in some places and always
happens
in other places??

Any help or advice is welcome

Thanks
JD


-
http://www.software-matters.co.uk Software Matters  -
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
--
View this message in context:
http://n2.nabble.com/Problem-with-map-raster-tif-files-only-half-showing-t
p4473961p4479779.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: Problem with map only half showing.

2010-01-29 Thread JamesDudden


Gary Morin wrote:
> 
> Hi James
> 
> Are you using OS Tif files? If so it could be a problem with the format,
> try using a utility like Irfanview to convert them.
> 
> 

Hi Gary,
Yes I am using OS Tif files so they should all be in the same format. 
Why do I get this problem with some tiles every time and other tiles never?

Thanks

JD

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-map-raster-tif-files-only-half-showing-tp4473961p4480264.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: Mapguide HOSTING

2010-01-29 Thread Rodolfo Moreno

http://www.otxsystems.com/

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Mapguide-HOSTING-tp4479629p4480575.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: CoordinateSystem (?) Problems with Data from WMS (EPSG: 31468 and 2398)

2010-01-29 Thread Sicky

Hooray! I solved the problem for WMS No. 2, the solution was:
In the config document I used EPSG:2398
In the Dataconnections in Maestro I overrode the source CRS (4326, don't
know why this is source, cause I specified 2398 in the config) with target
CRS 31468
In the map I also used 31468

If I use 31468 in the config document, the data gets visualized, but is not
correct, it looks like in the following problem with WMS No. 3:
I got something displyed with WMS No. 3 by doing this:
Config Document: 31468
Override CRS (DataConnection Editor): Source (4326) Target (31468)
Map: 31468

unfortunately it looks like this:
http://sicky.i-networx.de/temp/lung_mgos.PNG
but it should look like this: http://sicky.i-networx.de/temp/lung_udig.PNG

It works with this setup as well:
Config Document: 4326
Override CRS (DataConnection Editor): not nesessary
Map: 31468

But has the same problems like shown in the pics above.

Does anybody know of a way to display the data correct?
-- 
View this message in context: 
http://n2.nabble.com/CoordinateSystem-Problems-with-Data-from-WMS-EPSG-31468-and-2398-tp4461491p4480848.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: Mapguide HOSTING

2010-01-29 Thread GordonL

Hi, I like using VPSLand.  A little slow, but you can upgrade.  I only pay
$29 a month for my current mapguide site:  http://www.mapguide.ca

I use the windows plan, but it would probably run faster on the Linux plan. 
You have to do everything yourself, unlike the Hosted site.

gordon

-- 
View this message in context: 
http://n2.nabble.com/Mapguide-HOSTING-tp4479629p4480873.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