Opened 16 years ago

Closed 16 years ago

#720 closed defect (fixed)

Problem with coordinate system

Reported by: ssnc Owned by: ksgeograf
Priority: medium Milestone:
Component: Maestro Version:
Severity: blocker Keywords:
Cc: serginistal@… External ID:

Description

Hi,

I made a map with 'MapGuide Maestro' about some data (the format of the data is shp, not sdf), but when I use the operation 'buffer' it doesn´t create the buffer and a warning appears ("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"). I can´t open the section of 'Coordinate System' of MapGuide Maestro (the next exception appears:

"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."),

I use webstudio to modify the coordinate system but with the three default coordinate systems that appears ((epsg:4269)NAD83,(epsg:4326)WGS 84 and (epsg:42304)NAD83/NRCan LCC Canada) it occurs the same warning. How can I know the coordinate system of my data?.

Thanks.

Attachments (5)

buffer.jpg (211.0 KB ) - added by ssnc 16 years ago.
Problem in coordinate system with buffer
Buffer warning.jpg (227.3 KB ) - added by ssnc 16 years ago.
exception Maestro.jpg (138.8 KB ) - added by ssnc 16 years ago.
plot current view.jpg (141.5 KB ) - added by ssnc 16 years ago.
plot specified scale.jpg (146.4 KB ) - added by ssnc 16 years ago.

Download all attachments as: .zip

Change History (12)

by ssnc, 16 years ago

Attachment: buffer.jpg added

Problem in coordinate system with buffer

comment:1 by ksgeograf, 16 years ago

Priority: highmedium
Status: newassigned
Version: 2.0.1

My spanish is a litte rusty, but it appears to say something like: "The server did not respond correctly to the request", with no information about the error.

Does the layer display at all?

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

What message do you get there?

Is it possible/legal for you to send me a copy of the broken data by email?

comment:2 by ssnc, 16 years ago

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:

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@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_7F0000010AFC0AFB0AFAPFCMapGuide2/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"]],PROJECTIONTransverse_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:

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.

by ssnc, 16 years ago

Attachment: Buffer warning.jpg added

by ssnc, 16 years ago

Attachment: exception Maestro.jpg added

by ssnc, 16 years ago

Attachment: plot current view.jpg added

by ssnc, 16 years ago

Attachment: plot specified scale.jpg added

comment:3 by ksgeograf, 16 years ago

This is not really a great forum to handle multiple questions, but here goes:

  1. Session expired usually means that you have not used the machine for at while, or that the MapGuide service restarted.
  1. I would like just the shape data. You can send it to opensource_x_hexad.dk (replace _x_ with @).
  1. The "Resource not found" is probably due to a bug in WebStudio.
  1. Do you have a "primary key" on the data?
  1. I have not used such a service, but you can ask on the MapGuide mail list for that. I know MapInfo has one called "Evinsa".

comment:4 by ssnc, 16 years ago

Hi, I sent the shape data to opensource@… with Shape data (subject: 720 ticket)

comment:5 by ksgeograf, 16 years ago

I have sent a sample package for you by email, that correctly buffers.

As for the coordinate system selection problem, you can try to go here: http://localhost/mapguide/mapagent/index.html

Then click "Coordinate System", then HTTP: "EnumerateCategories". Then click the "Submit" button on the right. Enter username and password when asked. You should now see some form of error message. If you can't guess what the problem is by looking at the error message, please post it here.

comment:6 by ssnc, 16 years ago

Thanks ksgeograf, the buffer is ok now.

comment:7 by ksgeograf, 16 years ago

Resolution: fixed
Status: assignedclosed

Ok, I'm closing the ticket then.

Note: See TracTickets for help on using tickets.