[mapguide-users] .NET viewer sample: query tool
Dave Wilson
dave.wilson at autodesk.com
Thu May 14 10:51:39 EDT 2009
Points in an ODBC database can be in any coordinate system. The coordinate system must be set on the ODBC Feature Source which currently allows for only 1 coordinate system for all tables accessed by the connection.
Regards,
Dave
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Stefan Dalakov
Sent: Thursday, May 14, 2009 4:06 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] .NET viewer sample: query tool
Check if the coordinates fall within the range for the coordinate system
you have specified.
And I may be wrong, but some time ago, I remember something, that points
coming from ODBC data source should be in Lat/Lon coordinates. This, I
repeat again, is something that I am not quite sure if it is true.
Stefan Dalakov
nasp wrote:
> Hi,
> I specified a coordinate system with mapguide studio....all my points
> disappeared from the map, not moved in another place, just disappeared.
>
> Also, obviously, query tool doesn't work.
>
> There's something about coordinate system, MG 2.0.2 and FDO that I don't
> understand, but I haven't focused the problem.
>
> Regards,
> Naspi
>
>
> Jackie Ng wrote:
>
>> If you are using MapGuide Studio, the feature source editor allows you to
>> specify a coordinate system for your point geometry tables.
>>
>> I don't know if Maestro has exposed this same capability.
>>
>> - Jackie
>>
>>
>> nasp wrote:
>>
>>> The problem is for layer with FDO Provider: OSGeo.ODBC and it's ok for
>>> SDF layers.
>>>
>>> OSGeo.ODBC data connection has no spatial context information (SDF layer
>>> connection has it!).
>>> Do you know how can I provide spatial context information for ODBC
>>> geometry?
>>>
>>> Regards,
>>> Naspi
>>>
>>>
>>> Jackie Ng wrote:
>>>
>>>> If you look at the server error logs, do they reveal any more
>>>> information at the time of failure?
>>>>
>>>> - Jackie
>>>>
>>>>
>>>> nasp wrote:
>>>>
>>>>> Thank you for your answer.
>>>>>
>>>>> Mapguide version is 2.0.2 with FDO 3.4
>>>>>
>>>>> The map has EPSG=3003
>>>>>
>>>>> Any ideas?
>>>>>
>>>>>
>>>>>
>>>>> Jackie Ng wrote:
>>>>>
>>>>>> Are you using the latest release of MapGuide?
>>>>>>
>>>>>> Also, do your maps/layers/feature sources have defined coordinate
>>>>>> systems?
>>>>>>
>>>>>> - Jackie
>>>>>>
>>>>>>
>>>>>> nasp wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>> I downloaded .NET sample application.
>>>>>>> Everything works fine but not the query tool.
>>>>>>> In query\classes\query.aspx, Execute() procedure, I got an error
>>>>>>> (MgUnclassifiedException) at this line
>>>>>>>
>>>>>>> centerPoint = (MgPoint)
>>>>>>> centerPoint.Transform(csTransform);
>>>>>>>
>>>>>>> Can someone help me, please?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Naspi
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
>
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list