Data representation is up to you and your app.

You can of course keep all your data in a massive double[] and use a
flyweight feature when iterating over the double array. This would give you
a single feature, the featureId based on and index, the geometry based on
the double[index*2,index*2+1]. No need to *store* your contents as
features, only adapt to them as needed for GeoTools to draw.

Try running through the ContentDataStore tutorial.


--
Jody Garnett

On 11 February 2015 at 01:57, wbh <wangbaohua2...@163.com> wrote:

> Hi all,
> I want to display a serie of points, which are drew based on lon/lat
> received from a TCP/IP client (Yes, a simple GPS tracker)
> These points are not going to be built as features.
> Although I can get the screen position based on the lon/lat, I find when I
> have PAN or ZOOM action, those points which have been drawn will disappear
> while new points are still showing successfully.
> To keep those points showing, my idea is storing the lon/lat of all
> received points, when repainting, the screen position of all those stored
> points will be recomputed and redrawed.
> But is this the best way to do this?
> If someone can provide me example code, I will appreciate much.
> Thx.
>
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to