Le 22/05/2014 09:50, Rahkonen Jukka (Tike) a écrit : > Hi Michaël. > > See answers inline. > > Michael Michaud wrote: >> Hi Jukka, >>> I found the Grid Toolbox from some ancient deeJUMP version. Good stuff >> there, many handy tools which do not have at the moment in OpenJUMP. I >> wonder if they are all built on top of deegree.jar or if some of them could >> be >> easily ported into OpenJUMP. The four grid tools at least could be useful. >>> - Border line builder - sort of a tailored Convex hull >>> - Area and perimeter calculations for a whole layer with single button >>> into table and as labels on a map >>> - Grid tools: >>> - create a grid that covers an area drawn with the tool - buffered or >>> not >>> - create a grid that covers an area of a selected feature - buffered >>> or not >>> - create a rotated grid >>> - create north-south oriented grid >>> >>> The reason for having a trial with other grid tools was that I could not >>> create >> an accurate graticule with OpenJUMP. I had to create an EPSG:4326 grid with >> points places accurately with 6 minutes intervals. I finally calculated such >> with >> Excel and Spatialite. >> Can you elaborate ? Was your dataset already in EPSG:4326 ? >> I can see 3 different tasks in your problem : >> a) generating a regular grid (ex. every 6') >> b) projecting the grid to the target projection >> c) labelling the graticule according to your needs >> >> a) I cannot see a use case preventing user to achieve the first task with the >> current grid plugin of OpenJUMP. Can you explain why you could not create a >> point grid with points every 6 '. > > My use case is very simple. I work already in EPSG:4326 or in fact EPSG:4258 > and I digitized a rectangle with extents 19-32E / 59-71N to enclose Finland. > Then I used the Create grid tool for the selected layer that contained my > bounding box with cell size 0.0833333. The trouble was that the grid did not > suit with full degrees but it had a little offset towards North-West. > However, now when I repeated the same procedure from the beginning with OJ > 1.7+ (release) the cells are aligned perfectly with a minor exception: grid > is located one row too high and there is one extra row of cells North to 71N > and one missing north to 59N. I believe you can repeat this with polygon > POLYGON (( > 19 59, > 19 71, > 32 71, > 32 59, > 19 59 > )) I can reproduce it. I'll try to understand what happens, but you must know that you are using a float representation of 5', not a double. With a full representation (0.0833333333333333), the side effect disappears. > Perhaps I had originally some rubbish on the layer when the result was a > shifted grid which made OJ to capture wrong origin for the grid. At least I > cannot repeat the error now. > >> b) Second step is obviously OpenJUMP Achilles's heel. I don't think you can >> replace it by a rotation, or any simple transformation (may be using warping >> tool >> can give good results though) > This was not an issue for me because I warped the source data that I must > analyze into EPSG:4258 beforehand. > >> c) I have already get some results with beanshell attribute calculator for >> the >> third step, but it's quite difficult to have an easy to use user interface >> able to >> satisfy any needs for graticule labelling. > Obviously it was unnecessary to create my grid with Spatialite but wasting > time for that solved this labeling step that was indeed necessary for me. I > had named the latitude and longitude rows/columns by using integer values and > stored them into temporaty tables into columns "lat_index" and "lon_index" > and I inserted them into each row of the final grid table with SQL > > create table grid as > select distinct lat.latitude,lat.lat_index, > lon.longitude,lon.longitude_index > from lat_values lat,lon_values lon > order by lat.lat_index,lon.lon_index; A few months ago, I could format labels on such a grid from decimal degree to a neat degree/minute representation with BeanShell calculator (it needs some java knowledge though)
> Automatic calculation on grid bounds based on the layer extents is good but > perhaps there could be an alternative where user could give manually the > origin and step sizes and either the number of rows and columns or the > coordinates of the opposite corner of the grid. The latter point should be in > the corner or inside the final grid, depending how the steps suit the extents. Agree that it could help. Perhaps for a second plugin I just wrote a FR. Michaël -Jukka Rahkonen- >> Michaël >> >> -Jukka Rahkonen- Michael Michaud wrote: >>>> Hi Jukka, >>>> >>>> I have no backup of geostaf plugin. >>>> Here is a zipped file of the jars Stefan has send. >>>> >>>> With the baseClasse.jar, you should be able to start the plugin, but >>>> I'm not sure it is fully usable (I get many errors). >>>> Sources are included in the jar. Just in case. >>>> >>>> Michaël >>>> >>>> >>>> Hi Stefan, Maybe, but our mail server does not let jars go through. >>>> -Jukka- Stefan Steiniger wrote: >>>>>> this? >>>>>> >>>>>> Not sure though if you can make it work right away with OJ (because >>>>>> of the >>>>>> base-classes) >>>>>> >>>>>> stefan >>>>>> >>>>>> >>>>>> >>>>>> Am 20.05.14 12:25, schrieb Rahkonen Jukka (Tike): >>>>>>> Hi, >>>>>>> >>>>>>> Actually I am after a thing called "Pirol tools grid toolbox". Do >>>>>>> we have such >>>>>> available somewhere? >>>>>>> -Jukka Rahkonen- >>>>>>> ------------------------------------------------------------------ >>>>>>> -- >>>>>>> -- >>>>>>> -------- "Accelerate Dev Cycles with Automated Cross-Browser >>>>>>> Testing >>>>>>> - For FREE Instantly run your Selenium tests across 300+ >>>>>>> browser/OS combos. >>>>>>> Get unparalleled scalability from the best Selenium testing >>>>>>> platform available Simple to use. Nothing to install. Get started now >>>>>>> for >> free." >>>>>>> http://p.sf.net/sfu/SauceLabs >>>>>>> _______________________________________________ >>>>>>> Jump-pilot-devel mailing list >>>>>>> Jump-pilot-devel@lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>>>>>> >>>>> -------------------------------------------------------------------- >>>>> -- >>>>> -------- "Accelerate Dev Cycles with Automated Cross-Browser Testing >>>>> - For FREE Instantly run your Selenium tests across 300+ browser/OS >>>>> combos. >>>>> Get unparalleled scalability from the best Selenium testing platform >>>>> available Simple to use. Nothing to install. Get started now for free." >>>>> http://p.sf.net/sfu/SauceLabs >>>>> _______________________________________________ >>>>> Jump-pilot-devel mailing list >>>>> Jump-pilot-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>>>> >>> ---------------------------------------------------------------------- >>> -------- "Accelerate Dev Cycles with Automated Cross-Browser Testing - >>> For FREE Instantly run your Selenium tests across 300+ browser/OS >>> combos. >>> Get unparalleled scalability from the best Selenium testing platform >>> available Simple to use. Nothing to install. Get started now for free." >>> http://p.sf.net/sfu/SauceLabs >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >> >> ------------------------------------------------------------------------------ >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE >> Instantly run your Selenium tests across 300+ browser/OS combos. >> Get unparalleled scalability from the best Selenium testing platform >> available >> Simple to use. Nothing to install. Get started now for free." >> http://p.sf.net/sfu/SauceLabs >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel