[mapguide-trac] #720: Problem with coordinate system

MapGuide Open Source trac_mapguide at osgeo.org
Sat Oct 11 13:58:18 EDT 2008


#720: Problem with coordinate system
---------------------+------------------------------------------------------
 Reporter:  ssnc     |         Owner:  ksgeograf
     Type:  defect   |        Status:  assigned 
 Priority:  medium   |     Milestone:           
Component:  Maestro  |       Version:           
 Severity:  blocker  |    Resolution:           
 Keywords:           |   External_id:           
---------------------+------------------------------------------------------
Comment (by ssnc):

 Hi ksgeograf,

 1- I can´t open the section of 'Coordinate System' of MapGuide Maestro
 because an exception appears but I can edit it with the xml editor
 (exception:

  "Consulte el final de este mensaje para obtener más detalles sobre cómo
  invocar a la depuración Just-In-Time (JIT) en lugar de a este cuadro de
 diálogo.

  ************** Texto de la excepción **************
  System.Net.WebException: El servidor ha cometido una infracción de
  protocolo. Section=ResponseHeader Detail=CR debe ir seguido de LF
     en System.Net.WebClient.OpenRead(Uri address)
     en System.Net.WebClient.OpenRead(String address)
     en OSGeo.MapGuide.MaestroAPI.CoordinateSystem.get_Categories()
     en
 OSGeo.MapGuide.Maestro.ResourceEditors.SelectCoordinateSystem..ctor(ServerConnectionI
  connection) en
 OSGeo.MapGuide.Maestro.ResourceEditors.MapEditor.btnSelectCoordSys_Click(Object
  sender, EventArgs e)
     en System.Windows.Forms.Control.OnClick(EventArgs e)
     en System.Windows.Forms.Button.OnClick(EventArgs e)
     en System.Windows.Forms.Button.WndProc(Message& m)
     en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
 m)
     en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
 m)
     en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
  IntPtr wparam, IntPtr lparam)


  ************** Ensamblados cargados **************
  mscorlib
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
  file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
  ----------------------------------------
  Maestro
      Versión del ensamblado: 1.0.9.15910
      Versión Win32: 1.0.9.15910
      Código base:
  file:///C:/Program%20Files/HexaD/MapGuide%20Maestro/Maestro.exe
  ----------------------------------------
  System.Windows.Forms
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
  ----------------------------------------
  System
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  System.Drawing
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
  ----------------------------------------
  Globalizator
      Versión del ensamblado: 1.0.9.0
      Versión Win32: 1.0.9.0
      Código base:
  file:///C:/Program%20Files/HexaD/MapGuide%20Maestro/Globalizator.DLL
  ----------------------------------------
  System.Xml
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
  ----------------------------------------
  System.Windows.Forms.resources
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
  ----------------------------------------
  OSGeo.MapGuide.MaestroAPI
      Versión del ensamblado: 1.0.9.15907
      Versión Win32: 1.0.9.15907
      Código base:
 file:///C:/Program%20Files/HexaD/MapGuide%20Maestro/OSGeo.MapGuide.MaestroAPI.DLL
  ----------------------------------------
  OSGeo.MapGuide.Maestro.MaestroEditorInterface
      Versión del ensamblado: 1.0.9.0
      Versión Win32: 1.0.9.0
      Código base:
 file:///C:/Program%20Files/HexaD/MapGuide%20Maestro/OSGeo.MapGuide.Maestro.MaestroEditorInterface.DLL
  ----------------------------------------
  mscorlib.resources
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
  file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
  ----------------------------------------
  System.Configuration
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
  ----------------------------------------
  dryndx0c
      Versión del ensamblado: 1.0.9.15910
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  System.Web
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
  ----------------------------------------
  mlsmv3o5
      Versión del ensamblado: 1.0.9.15907
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  lzdf_i5b
      Versión del ensamblado: 1.0.9.15910
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  OSGeo.MapGuide.Maestro.ResourceEditors
      Versión del ensamblado: 1.0.9.15908
      Versión Win32: 1.0.9.15908
      Código base:
 file:///C:/Program%20Files/HexaD/MapGuide%20Maestro/OSGeo.MapGuide.Maestro.ResourceEditors.DLL
  ----------------------------------------
  OSGeo.MapGuide.Maestro.FusionEditor
      Versión del ensamblado: 1.0.9.15909
      Versión Win32: 1.0.9.15909
      Código base:
 file:///C:/Program%20Files/HexaD/MapGuide%20Maestro/OSGeo.MapGuide.Maestro.FusionEditor.DLL
  ----------------------------------------
  9e5x064v
      Versión del ensamblado: 1.0.9.15907
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  k6no_bz9
      Versión del ensamblado: 1.0.9.15907
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  1pnf3tzf
      Versión del ensamblado: 1.0.9.15907
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  ----------------------------------------
  System.resources
      Versión del ensamblado: 2.0.0.0
      Versión Win32: 2.0.50727.1434 (REDBITS.050727-1400)
      Código base:
 file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_es_b77a5c561934e089/System.resources.dll
  ----------------------------------------

  ************** Depuración JIT **************
  Para habilitar la depuración Just In Time (JIT), el archivo de
  configuración de esta aplicación o equipo (machine.config) debe tener el
  valor jitDebugging establecido en la sección system.windows.forms.
  La aplicación también se debe compilar con la depuración
  habilitada

  Por ejemplo:

  <configuration>
      <system.windows.forms jitDebugging="true" />
  </configuration>

  Cuando esté habilitada la depuración JIT, cualquier excepción no
  controlada se enviará al depurador JIT registrado en el equipo
  en lugar de controlarlo mediante el cuadro de diálogo."),


  After you get the error in Maestro, you should get an entry in the
  "Error.log" file, located in: C:\Program
 Files\MapGuideOpenSource2.0\Server\Logs\Error.log

 The entry in the "Error.log" file is :

 "<2008-10-11T18:40:16>
  Error: Session has expired or is invalid. Please log in again.
  StackTrace:
   - MgSiteServiceHandler.ProcessOperation line 83 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\site\SiteServiceHandler.cpp
   - MgOpAuthenticate.Execute line 107 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\site\OpAuthenticate.cpp
   - MgSecurityManager.Authenticate line 224 file
 c:\mapguide2\mapguide-2.0.1\server\src\common\manager\SecurityManager.cpp
   - MgSessionCache.GetSessionInfo line 175 file
 c:\mapguide2\mapguide-2.0.1\server\src\common\manager\SessionCache.cpp
 Session has expired or is invalid.

 Please log in again."

 Does the layer display at all? Yes, it does.

 See "exception Maestro.jpg".

 2-  Is it possible/legal for you to send me a copy of the broken data by
 email? Yes, but what is your email? (They are 17 MB) and do you want only
 the data (shp, shx and dbf) or you want the file .mgp and the application
 about these data (total 7.5 MB)?

 The problem is when I create a buffer the next message appears and the
 buffer isn´t created: "Buffer 1 has been created. 0 buffer feature was
 created.
 Warning:1 layers were excluded from buffer computation because their
 coordinate systems are incompatible with the coordinate system of the map,
 or because they have no coordinate system at all".

 In "Error.log" appears nothing about the buffer´s warning.

 See "Buffer warning.jpg".

 3- I saw that another people had a similar problem with the buffer
 ("'http://www.mail-archive.com/mapguide-
 users at lists.osgeo.org/msg06520.htm"). Too, when I load the
 "layerDefinition" (that is, for example when I open
 "MyProject"/Basemap/Layers/espacios, espacios is a layer that I created
 with files espacios.shp, espacios.shx, espacios.dbf, espacios.sbn and
 espacios.sbx) in webstudio
 (http://localhost/mapguide/webstudio/index.html), in the section "Preview"
 appears the next message "Resource was not found: Session:0aed6aa0-0000-
 1000-8002-
 cccccccccccc_en_7F0000010AFC0AFB0AFA//PFCMapGuide2/Basemap/Layers/espacios.LayerDefinition
 Exception occurred in method
 MgResourceDefinitionManager.GetDocument at line 476 in file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ResourceDefinitionManager.cpp".

 My coordinate system is epsg: 23030, I have converted to wkt with
 webstudio (PROJCS["ED50 / UTM zone
 30N",GEOGCS["ED50",DATUM["European_Datum_1950",SPHEROID
 ["International
 1924",6378388,297,AUTHORITY["EPSG","7022"]],AUTHORITY["EPSG","6230"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT
 ["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4230"]],PROJECTION["Transverse_Mercator"],PARAMETER
 ["latitude_of_origin",0],PARAMETER["central_meridian",-3],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER
 ["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","23030"]])
 and I put this coordinate system in files:
 "MyProject"/Basemap/BasemapLoad, "MyProject"/Maps/"MyProject Tiled" and
 "MyProject"/Maps/"MyProject".

 Do I need put the coordinate system in other files? Is the coordinate
 system wrong?

 The entry in "Error.log" when I load the "layerDefinition" of espacios is:

 "<2008-10-11T18:38:29>                  Administrator
  Error: Resource was not found: Session:a2869b60-ffff-ffff-8000-
 0013e82b538f_en_7F0000010AFC0AFB0AFA//PFCMapGuide2/Basemap/Layers/espacios.LayerDefinition
  StackTrace:
   - MgResourceServiceHandler.ProcessOperation line 80 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ResourceServiceHandler.cpp
   - MgOpGetResourceContent.Execute line 120 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\OpGetResourceContent.cpp
   - MgServerResourceService.GetResourceContent line 863 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ServerResourceService.cpp
   - MgApplicationRepositoryManager.GetResourceContent line 378 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ApplicationRepositoryManager.cpp
   - MgResourceDefinitionManager.GetResource line 320 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ResourceDefinitionManager.cpp
   - MgResourceContentManager.GetDocument line 590 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ResourceContentManager.cpp
   - MgResourceDefinitionManager.GetDocument line 476 file
 c:\mapguide2\mapguide-2.0.1\server\src\services\resource\ResourceDefinitionManager.cpp

 Resource was not found: Session:a2869b60-ffff-ffff-8000-
 0013e82b538f_en_7F0000010AFC0AFB0AFA//PFCMapGuide2/Basemap/Layers/espacios.LayerDefinition"

 4- Other functionalities that they doesn´t work in my project are:
 "Query features": it returns nothing, never find any data and in
 "Error.log" appears nothing.

 "Plot as DWF": see "plot specified scale.jpg" and "plot current view.jpg"
 (it works for Sheboygan sample but for my project no, is it incompatible
 with shp data?).

 5-Doubt: "Find Address" uses "rpc.geocoder.us" in Sheboygan. Does it exist
 a general web address to find any data? this is, Can I use the function
 "find address" to find a name (not a number and a name as is done in
 Sheboygan, to find a address), but only a name that represents a natural
 space (layer "espacios")?

 6- Note: I installed the source code of FDO 3.3.1 and mapguide 2.0.1 on
 Windows Vista.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/720#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list