Convert OSM into shapefile with GeoTools?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite
1












Is it possible to convert the OSM file to shapefile with GeoTools in Java?







share|improve this question




























    up vote
    2
    down vote

    favorite
    1












    Is it possible to convert the OSM file to shapefile with GeoTools in Java?







    share|improve this question
























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      Is it possible to convert the OSM file to shapefile with GeoTools in Java?







      share|improve this question














      Is it possible to convert the OSM file to shapefile with GeoTools in Java?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 25 at 17:37









      Vince

      13.9k32444




      13.9k32444










      asked Aug 25 at 16:48









      Majd

      214




      214




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          No, geotools concentrates on standards based geographical data. Openstreetmap decided to invent their own incompatible format. Therefore you must use a tool written specifically for openstreetmap to convert to an interoperable format before geotools can help. You might be able to use a java library that can read openstreetmap data to write a geotools datastore but no one has bothered to yet.






          share|improve this answer




















          • OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
            – user30184
            Aug 25 at 19:48










          • I use geotools to read shapefile and I use Josm to read osm data and shape file too.
            – Majd
            Aug 25 at 21:06










          • Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
            – stephan75
            Aug 29 at 19:54










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f293990%2fconvert-osm-into-shapefile-with-geotools%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          No, geotools concentrates on standards based geographical data. Openstreetmap decided to invent their own incompatible format. Therefore you must use a tool written specifically for openstreetmap to convert to an interoperable format before geotools can help. You might be able to use a java library that can read openstreetmap data to write a geotools datastore but no one has bothered to yet.






          share|improve this answer




















          • OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
            – user30184
            Aug 25 at 19:48










          • I use geotools to read shapefile and I use Josm to read osm data and shape file too.
            – Majd
            Aug 25 at 21:06










          • Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
            – stephan75
            Aug 29 at 19:54














          up vote
          2
          down vote













          No, geotools concentrates on standards based geographical data. Openstreetmap decided to invent their own incompatible format. Therefore you must use a tool written specifically for openstreetmap to convert to an interoperable format before geotools can help. You might be able to use a java library that can read openstreetmap data to write a geotools datastore but no one has bothered to yet.






          share|improve this answer




















          • OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
            – user30184
            Aug 25 at 19:48










          • I use geotools to read shapefile and I use Josm to read osm data and shape file too.
            – Majd
            Aug 25 at 21:06










          • Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
            – stephan75
            Aug 29 at 19:54












          up vote
          2
          down vote










          up vote
          2
          down vote









          No, geotools concentrates on standards based geographical data. Openstreetmap decided to invent their own incompatible format. Therefore you must use a tool written specifically for openstreetmap to convert to an interoperable format before geotools can help. You might be able to use a java library that can read openstreetmap data to write a geotools datastore but no one has bothered to yet.






          share|improve this answer












          No, geotools concentrates on standards based geographical data. Openstreetmap decided to invent their own incompatible format. Therefore you must use a tool written specifically for openstreetmap to convert to an interoperable format before geotools can help. You might be able to use a java library that can read openstreetmap data to write a geotools datastore but no one has bothered to yet.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 25 at 18:41









          Ian Turton♦

          44.3k543105




          44.3k543105











          • OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
            – user30184
            Aug 25 at 19:48










          • I use geotools to read shapefile and I use Josm to read osm data and shape file too.
            – Majd
            Aug 25 at 21:06










          • Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
            – stephan75
            Aug 29 at 19:54
















          • OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
            – user30184
            Aug 25 at 19:48










          • I use geotools to read shapefile and I use Josm to read osm data and shape file too.
            – Majd
            Aug 25 at 21:06










          • Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
            – stephan75
            Aug 29 at 19:54















          OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
          – user30184
          Aug 25 at 19:48




          OpenJUMP reads OSM data by utilizing the JOSM library. That might be reusable somehow in other Java GIS projects.
          – user30184
          Aug 25 at 19:48












          I use geotools to read shapefile and I use Josm to read osm data and shape file too.
          – Majd
          Aug 25 at 21:06




          I use geotools to read shapefile and I use Josm to read osm data and shape file too.
          – Majd
          Aug 25 at 21:06












          Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
          – stephan75
          Aug 29 at 19:54




          Maybe you can find some more hints in the OSM wiki about wiki.openstreetmap.org/wiki/Shapefiles
          – stephan75
          Aug 29 at 19:54

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f293990%2fconvert-osm-into-shapefile-with-geotools%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery