Hi ! I was running 15.2, on 16 there are not any problems. Thanks for running test case and for reply, I did not even think to upgrade :)
On 13/11/2016, Nuno Oliveira <[email protected]> wrote: > Hi, > > I just run your test case using GeoTools master and got this output (by > the way thanks for the test case): > > Before adding: > fid--513c8211_1585fb4c467_-7fcf > fid--513c8211_1585fb4c467_-7fd0 > fid--513c8211_1585fb4c467_-7fd1 > fid--513c8211_1585fb4c467_-7fd2 > fid--513c8211_1585fb4c467_-7fd3 > fid--513c8211_1585fb4c467_-7fd4 > fid--513c8211_1585fb4c467_-7fd5 > fid--513c8211_1585fb4c467_-7fd6 > fid--513c8211_1585fb4c467_-7fd7 > fid--513c8211_1585fb4c467_-7fd8 > fid--513c8211_1585fb4c467_-7fd9 > fid--513c8211_1585fb4c467_-7fda > fid--513c8211_1585fb4c467_-7fdb > fid--513c8211_1585fb4c467_-7fdc > fid--513c8211_1585fb4c467_-7fdd > fid--513c8211_1585fb4c467_-7fde > fid--513c8211_1585fb4c467_-7fdf > fid--513c8211_1585fb4c467_-7fe0 > fid--513c8211_1585fb4c467_-7fe1 > fid--513c8211_1585fb4c467_-7fe2 > fid--513c8211_1585fb4c467_-7fe3 > fid--513c8211_1585fb4c467_-7fe4 > fid--513c8211_1585fb4c467_-7fe5 > fid--513c8211_1585fb4c467_-7fe6 > fid--513c8211_1585fb4c467_-7fe7 > fid--513c8211_1585fb4c467_-7fe8 > fid--513c8211_1585fb4c467_-7fe9 > fid--513c8211_1585fb4c467_-7fea > fid--513c8211_1585fb4c467_-7feb > fid--513c8211_1585fb4c467_-7fec > fid--513c8211_1585fb4c467_-7fed > fid--513c8211_1585fb4c467_-7fee > fid--513c8211_1585fb4c467_-7fef > fid--513c8211_1585fb4c467_-7ff0 > fid--513c8211_1585fb4c467_-7ff1 > fid--513c8211_1585fb4c467_-7ff2 > fid--513c8211_1585fb4c467_-7ff3 > fid--513c8211_1585fb4c467_-7ff4 > fid--513c8211_1585fb4c467_-7ff5 > fid--513c8211_1585fb4c467_-7ff6 > fid--513c8211_1585fb4c467_-7ff7 > fid--513c8211_1585fb4c467_-7ff8 > fid--513c8211_1585fb4c467_-7ff9 > fid--513c8211_1585fb4c467_-7ffa > fid--513c8211_1585fb4c467_-7ffb > fid--513c8211_1585fb4c467_-7ffc > fid--513c8211_1585fb4c467_-7ffd > fid--513c8211_1585fb4c467_-7ffe > fid--513c8211_1585fb4c467_-7fff > fid--513c8211_1585fb4c467_-8000 > > After adding: > feature1.1 > feature1.2 > feature1.3 > feature1.4 > feature1.5 > feature1.6 > feature1.7 > feature1.8 > feature1.9 > feature1.10 > feature1.11 > feature1.12 > feature1.13 > feature1.14 > feature1.15 > feature1.16 > feature1.17 > feature1.18 > feature1.19 > feature1.20 > feature1.21 > feature1.22 > feature1.23 > feature1.24 > feature1.25 > feature1.26 > feature1.27 > feature1.28 > feature1.29 > feature1.30 > feature1.31 > feature1.32 > feature1.33 > feature1.34 > feature1.35 > feature1.36 > feature1.37 > feature1.38 > feature1.39 > feature1.40 > feature1.41 > feature1.42 > feature1.43 > feature1.44 > feature1.45 > feature1.46 > feature1.47 > feature1.48 > feature1.49 > feature1.50 > > Not sure why before adding we have a certain id and after we have > another one, if I had to guess I would say the the first ones are just > unique identifiers generated by the builder and the second ones are the > unique ids generated by the store implementation, but as I say I'm just > guessing here didn't check the code. Anyway in both cases the ids are > unique which correspond to the expectations. Not sure why in your case > you have the NULL ones after adding the features to the store, which > version of GeoTools are you using ? > > As a side note if needed you can provide your own id, please check this > thread to see how: > http://osgeo-org.1560.x6.nabble.com/Fid-value-in-SimpleFeature-td5261651.html > > Regards, > > Nuno Oliveira > > On 11/13/2016 10:51 AM, Rémi Pace wrote: >> Hi, >> >> I try to use GeoPackage to store SimpleFeatures but when I add them, >> their IDs become strange. Here there is a running example: >> https://github.com/remipassmoilesel/abc-map2/tree/master/src/test/java/org/abcmap/core/shapes >> >> Below a sample of output: >> >> // Before adding (with SimpleFeatureBuilder.buildFeature(null); >> fid-6c609a7e_1585d46582c_-7ff9 >> fid-6c609a7e_1585d46582c_-7ffa >> fid-6c609a7e_1585d46582c_-7ffb >> fid-6c609a7e_1585d46582c_-7ffc >> fid-6c609a7e_1585d46582c_-7ffd >> fid-6c609a7e_1585d46582c_-7ffe >> fid-6c609a7e_1585d46582c_-7fff >> fid-6c609a7e_1585d46582c_-8000 >> >> // After adding: >> feature1.null >> feature1.null >> feature1.null >> feature1.null >> feature1.null >> feature1.null >> >> I learned in Javadoc that feature ID format is dependent on storage, >> but is this a correct behavior ? Feature identifiers are not supposed >> to be unique ? >> >> I was about to use IDs to adapt style, so if IDs are not unique what >> is the best strategy ? >> >> Thanks for your help. >> > > -- > == > GeoServer Professional Services from the experts! > Visit http://goo.gl/it488V for more information. > == > Nuno Miguel Carvalho Oliveira > @nmcoliveira > Software Engineer > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 333 8128928 > > http://www.geo-solutions.it > http://twitter.com/geosolutions_it > > ------------------------------------------------------- > > AVVERTENZE AI SENSI DEL D.Lgs. 196/2003 > Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i > file/s allegato/i sono > da considerarsi strettamente riservate. Il loro utilizzo è consentito > esclusivamente al destinatario del messaggio, per le finalità indicate > nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il > destinatario, Vi preghiamo cortesemente di darcene notizia via e > -mail e di procedere alla distruzione del messaggio stesso, cancellandolo > dal Vostro sistema. Conservare il messaggio stesso, divulgarlo > anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per > finalità diverse, costituisce comportamento contrario ai > principi dettati dal D.Lgs. 196/2003. > > The information in this message and/or attachments, is intended solely for > the attention and use of > the named addressee(s) and may be confidential or proprietary in nature or > covered by the provisions of privacy act (Legislative Decree > June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in > accord with its purpose, any disclosure, reproduction, copying, > distribution, or either dissemination, either whole or partial, is strictly > forbidden except previous formal approval of the named > addressee(s). If you are not the intended recipient, please contact > immediately the sender by telephone, fax or e-mail and delete the > information in this message that has been received in error. The sender does > not give any warranty or accept liability as the content, > accuracy or completeness of sent messages and accepts no responsibility for > changes made after they were sent or for other risks which > arise as a result of e-mail transmission, viruses, etc. > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > On 13/11/2016, Rémi Pace <[email protected]> wrote: > Hi, > > I try to use GeoPackage to store SimpleFeatures but when I add them, > their IDs become strange. Here there is a running example: > https://github.com/remipassmoilesel/abc-map2/tree/master/src/test/java/org/abcmap/core/shapes > > Below a sample of output: > > // Before adding (with SimpleFeatureBuilder.buildFeature(null); > fid-6c609a7e_1585d46582c_-7ff9 > fid-6c609a7e_1585d46582c_-7ffa > fid-6c609a7e_1585d46582c_-7ffb > fid-6c609a7e_1585d46582c_-7ffc > fid-6c609a7e_1585d46582c_-7ffd > fid-6c609a7e_1585d46582c_-7ffe > fid-6c609a7e_1585d46582c_-7fff > fid-6c609a7e_1585d46582c_-8000 > > // After adding: > feature1.null > feature1.null > feature1.null > feature1.null > feature1.null > feature1.null > > I learned in Javadoc that feature ID format is dependent on storage, > but is this a correct behavior ? Feature identifiers are not supposed > to be unique ? > > I was about to use IDs to adapt style, so if IDs are not unique what > is the best strategy ? > > Thanks for your help. > > -- > > > > > > *** > > Rémi PACE > > http://remi-pace.fr > https://github.com/remipassmoilesel > > Photographie: > http://toutes-les-bulles-eclatent.fr > -- *** Rémi PACE http://remi-pace.fr https://github.com/remipassmoilesel Photographie: http://toutes-les-bulles-eclatent.fr ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
