Re: [OpenMap Users] Help with OMGraphics

From: Valerio Valrosso <valrosso.valerio_at_gmail.com>
Date: Tue, 1 Sep 2009 18:12:15 +0200

Hi, i'm making method as you described ;) It worked for points, thank you ;)

2009/9/1 "Carsten Ø. Madsen" <com_at_navicon.dk>

> For JTS Point there is OMPoint and for JTS Polygon there is OMPoly etc. You
> just have to dig out the lat,lons from the JTS objects and then create the
> OMxxx's using the lat,lons from the JTS objects.
>
> Check the javadocs for OMGraphics and its subclasses.
>
> BR
> Carsten
>
>
> On 01-09-2009 15:04, Valerio Valrosso wrote:
>
>> Thanks for the very fast reply. We have so many doubts about the
>> conversion, i've given a look to the OMGraphicHandlerLayer, but i still
>> not undestand how to make the conversion.
>> For example, if i have a Point, which is a JTS Geometry, how can i
>> convert it to a OMGraphic point?
>> Is there a method or a specific library that contains some methods which
>> do the job?
>> Or maybe we have to retrieve latitude and longitude from the JTS
>> Geometry and create and instance og OMGraphic?
>> Moreover, if we have to convert a Line, and not a Point, there is a
>> corrispondence between formats?
>> You'll understand we are confused about this project, i hope you can
>> clear our doubts.
>> Thank you for helping us.
>>
>> Valerio& Niki
>>
>> Il giorno mar, 01/09/2009 alle 13.10 +0200, "Carsten Ø. Madsen" ha
>> scritto:
>>
>>
>>> Hello Valerio
>>>
>>> Create a new layer that extends OMGraphicHandlerLayer which converts
>>> your JTS objects into the corresponding OMGraphic's and return those
>>> objects in the prepare method.
>>>
>>> Take a look at the prepare method here for an example
>>>
>>> http://carsten-oland.blogspot.com/2009/08/build-you-own-gpsgis-system-in-less.html
>>>
>>> BR
>>> Carsten
>>>
>>> On 01-09-2009 12:52, Valerio Valrosso wrote:
>>>
>>>
>>>> Dear OpenMap team,
>>>> we need help using OMGraphics for a university project. We are
>>>> loading some layers from oracle db, converting them in JTS object in
>>>> the domain level. Now we need to represent them with OpenMap at the
>>>> presentation level, but, even if we are looking for a possible
>>>> solution since 1 week, we don't have found a good solutions.
>>>> We ask you some advices to solve this problems, or maybe a
>>>> workaround to mantain data source indipendence.
>>>> I'm sorry for the bad english, i hope you've understood our problem.
>>>> Regards,
>>>> Valerio
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> --
>> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
>> with the following text in the BODY of the message "unsubscribe
>> openmap-users"]
>>
>>
>
>


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Sep 01 2009 - 12:13:01 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT