hi :) i'm ikbal new with geotools
i'm working with closest path :) in modul of graph , i used the snap
point to line to localise the points at first exactly on lines

but i had some problems in snap point ?

1- as the tutrial said it compart the point of line with point that i choosed .
but the problem there is lines more closest but it's ignore them
2- there is even line where there a  ******** so ofcourse there is point ?
3- the shape file i work with is a MULTILINESTRING

is there something i miss ? and if every one had the same problem or
someone guess pleassee contact me

2015-05-01 7:38 UTC+02:00,
geotools-gt2-users-requ...@lists.sourceforge.net
<geotools-gt2-users-requ...@lists.sourceforge.net>:
> Send GeoTools-GT2-Users mailing list submissions to
>       geotools-gt2-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> or, via email, send a message with subject or body 'help' to
>       geotools-gt2-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>       geotools-gt2-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of GeoTools-GT2-Users digest..."
>
>
> Today's Topics:
>
>    1. FeatureJSON's writeFeatureCollection is rounding Feature
>       Coordinates to 4 decimal places? (flutessa)
>    2. Re: FeatureJSON's writeFeatureCollection is rounding Feature
>       Coordinates to 4 decimal places? (William Voorsluys)
>    3. Re: FeatureJSON's writeFeatureCollection is rounding Feature
>       Coordinates to 4 decimal places? (flutessa)
>    4. shape file of big size (nacer med)
>    5. Help with styling (Gabriella Turek)
>    6. Styling rasters (Gabriella Turek)
>    7. Re: Styling rasters (andrea antonello)
>    8. Re: Help with styling (Andy Turner)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 29 Apr 2015 12:53:02 -0700 (PDT)
> From: flutessa <leah.mun...@verizon.net>
> Subject: [Geotools-gt2-users] FeatureJSON's writeFeatureCollection is
>       rounding Feature Coordinates to 4 decimal places?
> To: geotools-gt2-users@lists.sourceforge.net
> Message-ID: <1430337182297-5203561.p...@n6.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> I've just downloaded GeoTools in the past month, so I'm a relative newbie.
>
> For my Java app, I made a FeatureCollection of points and polygons, and
> each
> point has 7-8 digits after the decimal.  I confirmed this in the debugger.
>
> Now I need to convert this FeatureCollection to GeoJSON, so I do the
> following:
>
> FeatureJSON comboFjson = new FeatureJSON();
> comboFjson.writeFeatureCollection(allFeatures, comboWriter);
>
> where comboWriter is my BufferedWriter, and allFeatures is a
> DefaultFeatureCollection.
>
> It works great EXCEPT all of the coordinates in the resulting GeoJSON are
> rounded to 4 decimal places.  I need them rounded to 5 decimal places due
> to
> the nature of my data.
>
> Is there any way I can do this?
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/FeatureJSON-s-writeFeatureCollection-is-rounding-Feature-Coordinates-to-4-decimal-places-tp5203561.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 30 Apr 2015 09:48:28 +1000
> From: William Voorsluys <williamv...@gmail.com>
> Subject: Re: [Geotools-gt2-users] FeatureJSON's writeFeatureCollection
>       is rounding Feature Coordinates to 4 decimal places?
> To: flutessa <leah.mun...@verizon.net>
> Cc: geotools users <geotools-gt2-users@lists.sourceforge.net>
> Message-ID:
>       <caelsifvmrvrrf7mxmsuqemxvirgm4frungrfxmsyo3rpwha...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> You should construct FeatureJSON using another constructor, that takes
> a GeometryJSON, like this:
>
> FeatureJSON comboFjson = new FeatureJSON(new GeometryJSON(5));
>
> Best regards,
>
> William
>
>
>
> On Thu, Apr 30, 2015 at 5:53 AM, flutessa <leah.mun...@verizon.net> wrote:
>> I've just downloaded GeoTools in the past month, so I'm a relative
>> newbie.
>>
>> For my Java app, I made a FeatureCollection of points and polygons, and
>> each
>> point has 7-8 digits after the decimal.  I confirmed this in the
>> debugger.
>>
>> Now I need to convert this FeatureCollection to GeoJSON, so I do the
>> following:
>>
>> FeatureJSON comboFjson = new FeatureJSON();
>> comboFjson.writeFeatureCollection(allFeatures, comboWriter);
>>
>> where comboWriter is my BufferedWriter, and allFeatures is a
>> DefaultFeatureCollection.
>>
>> It works great EXCEPT all of the coordinates in the resulting GeoJSON are
>> rounded to 4 decimal places.  I need them rounded to 5 decimal places due
>> to
>> the nature of my data.
>>
>> Is there any way I can do this?
>>
>> Thanks!
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/FeatureJSON-s-writeFeatureCollection-is-rounding-Feature-Coordinates-to-4-decimal-places-tp5203561.html
>> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 30 Apr 2015 04:05:49 -0700 (PDT)
> From: flutessa <leah.mun...@verizon.net>
> Subject: Re: [Geotools-gt2-users] FeatureJSON's writeFeatureCollection
>       is rounding Feature Coordinates to 4 decimal places?
> To: geotools-gt2-users@lists.sourceforge.net
> Message-ID: <1430391949796-5203634.p...@n6.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Perfect, I should've searched for "number of decimals".  Thank you.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/FeatureJSON-s-writeFeatureCollection-is-rounding-Feature-Coordinates-to-4-decimal-places-tp5203561p5203634.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 30 Apr 2015 17:38:45 +0200
> From: nacer med <ikbalna...@gmail.com>
> Subject: [Geotools-gt2-users] shape file of big size
> To: geotools-gt2-users@lists.sourceforge.net
> Message-ID:
>       <cadrx9r0+yhyy8k3unoue0fpga1nxppkf+veguzlu2fa-kp4...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi , i'm ikbal :) from algeria , new with geotools
> when i display a shapefile  of 50 migabyte the map got heavy
> and when i zoom in or out it will take a long time
> i used ( simple feature source and datastore and i didn't use
> Jmapframe but with map panel with normale frame )
> please if there is any code of optimisation ?
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 1 May 2015 02:22:42 +0000
> From: Gabriella Turek <gabriella.tu...@niwa.co.nz>
> Subject: [Geotools-gt2-users] Help with styling
> To: geotools users <geotools-gt2-users@lists.sourceforge.net>
> Message-ID: <d1693cb2.12d73%gabriella.tu...@niwa.co.nz>
> Content-Type: text/plain; charset="utf-8"
>
> I have a point shape file with one attribute which can be one of -1,0,1.
> I?d like to set up a style with three colors. Can someone point me in the
> right direction?
> Thanx
> gaby
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 1 May 2015 04:28:35 +0000
> From: Gabriella Turek <gabriella.tu...@niwa.co.nz>
> Subject: [Geotools-gt2-users] Styling rasters
> To: geotools users <geotools-gt2-users@lists.sourceforge.net>
> Message-ID: <d1695a32.12dad%gabriella.tu...@niwa.co.nz>
> Content-Type: text/plain; charset="utf-8"
>
> Are there examples on styling rasters?
> I am trying to style an ascii grid file
> Thanx
> Gaby
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 1 May 2015 07:15:58 +0200
> From: andrea antonello <andrea.antone...@gmail.com>
> Subject: Re: [Geotools-gt2-users] Styling rasters
> Cc: geotools users <geotools-gt2-users@lists.sourceforge.net>
> Message-ID:
>       <CACck5jMPrv=2WLpQp4sLwM3y=sbty9p0tovvpmnuxj4kzkg...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
>> Are there examples on styling rasters?
>> I am trying to style an ascii grid file
>
> We are doing some raster styling here:
> https://github.com/moovida/jgrasstools/tree/master/jgrassgears/src/main/java/org/jgrasstools/gears/utils/colors
> The code is brought from some older one, so it needs some cleanup, but
> there are some default colortables and it should be rather simple to
> understand.
>
> Andrea
>
>
>
> ------------------------------
>
> Message: 8
> Date: Fri, 1 May 2015 06:38:23 +0100
> From: Andy Turner <a.g.d.tur...@leeds.ac.uk>
> Subject: Re: [Geotools-gt2-users] Help with styling
> To: Gabriella Turek <gabriella.tu...@niwa.co.nz>, geotools users
>       <geotools-gt2-users@lists.sourceforge.net>
> Message-ID:
>       <03fee575bfe70b4aa3bb5014dc59648b03a18689d...@hermes8.ds.leeds.ac.uk>
> Content-Type: text/plain; charset="Windows-1252"
>
> With this, I would be tempted to split this into three point shapefiles and
> try rendering them on top of each other in different orders applying
> different styles to see how the picture/map looked. I think I tried, but did
> not find a way to do it all in one go keeping all the data in the same
> shapefile.
>
> The points I add in the foreground of my map:
>
>     // Add foreground0
>     // ---------------
>     private static void addForeground0(
>             MapContent result,
>             AGDT_StyleParameters styleParameters,
>             ArrayList<AGDT_Shapefile> foregroundDW_Shapefile0) {
>         if (foregroundDW_Shapefile0 != null) {
>             Iterator<AGDT_Shapefile> ite;
>             ite = foregroundDW_Shapefile0.iterator();
>             int indexx = 0;
>             while (ite.hasNext()) {
>                 AGDT_Shapefile sf = ite.next();
>                 FeatureLayer foregroundFeatureLayer0;
>                 foregroundFeatureLayer0 = sf.getFeatureLayer(
>                         styleParameters.getForegroundStyle0().get(indexx));
>                 result.addLayer(foregroundFeatureLayer0);
>                 indexx++;
>             }
>         }
>     }
>
> That code is from:
>
> https://github.com/agdturner/digital-welfare/blob/master/src/main/java/uk/ac/leeds/ccg/andyt/projects/digitalwelfare/mapping/DW_Geotools.java
> point
>
> My DW_ project code depends on the following where I have tried to move all
> my generic geotools type code too (as you may recall):
> https://github.com/agdturner/agdt-geotools
>
> Interested to learn if you figure out a way to do this keeping all the data
> in a single shapefile. There may be a way to do this with classifiers which
> I use to do graduated shading. But with this, you may be more restricted in
> the colours and styles of your points.
>
> Please let me know if this helps or if you want more details (though it
> might take me a week or so to respond from now). Thanks also for your reply
> to my earlier message. I will be taking a good look at your work and
> hopefully referring to it in due course.
>
> I will be getting back to coding in the next week or so having had a few
> week doing other things.
>
> Best wishes,
>
> Andy
> ________________________________________
> From: Gabriella Turek [gabriella.tu...@niwa.co.nz]
> Sent: 01 May 2015 03:22
> To: geotools users
> Subject: [Geotools-gt2-users] Help with styling
>
> I have a point shape file with one attribute which can be one of -1,0,1.
> I?d like to set up a style with three colors. Can someone point me in the
> right direction?
> Thanx
> gaby
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
> ------------------------------
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
> End of GeoTools-GT2-Users Digest, Vol 108, Issue 1
> **************************************************
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to