[udig-devel] CRS not recognized in customized dataStore
Jesse Eichar
jeichar.w at gmail.com
Mon Apr 28 00:19:35 PDT 2008
What does the layer report when you you look at the properties of your
layer. Is there a CRS defined? If not then most likely there is a
problem obtaining the CRS from your service. Another test you can
perform is to set the layer CRS manually and then try repojecting and
see if that solves your problem. If that is the case then
1. The service is not reporting the CRS correctly or
2. The features are not reporting the CRS correctly in their default
geometry.
Jesse
On 25-Apr-08, at 10:14 AM, Theodor Foerster wrote:
> Actually, the problem is, that only if the map in udig has the same
> crs
> as the data coming from the datastore, the data gets displayed.
> Otherwise not. I am not sure, what this problem could cause.
>
> Theodor
>
>> -----Original Message-----
>> From: udig-devel-bounces at lists.refractions.net
>> [mailto:udig-devel-bounces at lists.refractions.net] On Behalf
>> Of Jody Garnett
>> Sent: Thursday, April 24, 2008 8:52 PM
>> To: User-friendly Desktop Internet GIS
>> Subject: Re: [udig-devel] CRS not recognized in customized dataStore
>>
>> Theodor Foerster wrote:
>>> Thanks, the error message is gone. I set the
>> IGeoResourceInfo.getCRS()
>>> to the CRS of the supplied FeatureType, that works now well, if the
>>> FeatureType CRS is the same as the CRS of the map
>> So it works fine if there is no reprojection occurring.
>>> But if the map CRS is different, I do not see any data (somewhat it
>>> seems to be plotted outside the map).
>> You may want to check the Query that is getting sent to your
>> DataStore?
>> The Query object has the ability to ask your data store to do
>> reprojection ... are you handling that case?
>>> IGeoResourceInfo.getBounds() returns always the CRS, which
>> describes the extent of the features in its origin CRS.
>>>
>>> So one of the two parameters, should be dynamic, but which one?
>>>
>> I am not sure what you mean; both the info CRS and the
>> featureType crs should be same, both are dynamic (in that
>> they come from your live data).
>> Jody
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
> International Institute for Geo-Information Science and Earth
> Observation (ITC)
> Chamber of Commerce: 410 27 560
>
> E-mail disclaimer
> The information in this e-mail, including any attachments, is
> intended for the addressee only. If you are not the intended
> recipient, you are hereby notified that any disclosure, copying,
> distribution or action in relation to the content of this
> information is strictly prohibited. If you have received this e-mail
> by mistake, please delete the message and any attachment and inform
> the sender by return e-mail. ITC accepts no liability for any error
> or omission in the message content or for damage of any kind that
> may arise as a result of e-mail transmission.
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list