<div dir="ltr">Hi Even,<div><br></div><div>All players have started talking about this topic. Japanese people are in the middle of long vacation season and I will restart this conversation with all contributors the end of second week of May.</div><div><br></div><div>I will keep posting.</div><div><br></div><div>Thanks for your nice offer and contributions to make this happens!</div><div><br></div><div>Hiroo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 1, 2015 at 5:59 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Hiroo,<br>
<br>
OK I let you take the necessary time sort that out. Being completely an<br>
outsider and not having the "big picture" of the existing formats and how<br>
historic or up-to-date they are, it is also not clear to me which drivers<br>
might be of general interest for the Japanese community, as opposed to the<br>
ones which would really be of very restricted scope of interest.<br>
<br>
(Just a word of caution: as those archives are public, and the new drivers are<br>
included in a distribution of source code that is labelled as X/MIT in its<br>
LICENSE.TXT file, people could in good faith assume that all the files,<br>
including the extra drivers are also X/MIT)<br>
<br>
I tried the FGD ogr driver on the file<br>
<a href="https://github.com/msherry/PyXB-1.1.4/blob/master/examples/unicode_jp/data/shift_jis/FG-
GML-13-RailCL25000-20080331-0001.xml" target="_blank">https://github.com/msherry/PyXB-1.1.4/blob/master/examples/unicode_jp/data/shift_jis/FG-<br>
GML-13-RailCL25000-20080331-0001.xml</a><br>
(found by googling FG-GML)<br>
<br>
It is not recognized by the driver. Looking more closely, the driver seems to<br>
expect a <GI> element that isn't found in that file. It appears that there are<br>
several versions of FGD GML, right ? The above file is apparently v3 (since<br>
there's a v3 schema next to it). Perhaps the driver is v4 (or a previous<br>
version) ? I tried to remove the test for the presence of <GI> but it crashes<br>
later during parsing of dates, apparently not liking the <gml:timePosition><br>
element within <lfSpanFr><br>
<br>
I found this project : <a href="http://mizutuu.github.io/jpgisgmlv4togml-converter/" target="_blank">http://mizutuu.github.io/jpgisgmlv4togml-converter/</a>  /<br>
<a href="https://github.com/mizutuu/jpgisgmlv4togml-converter" target="_blank">https://github.com/mizutuu/jpgisgmlv4togml-converter</a><br>
It includes the schema for FG-GML v4 and I can't see any reference to the <GI><br>
element in it either.<br>
With some trickery related to encoding conversion, I managed to use that<br>
project to produce a standard GML file that the OGR GML driver handles well :<br>
<br>
cat FG-GML-13-RailCL25000-20080331-0001.xml | iconv --from-code=shift-jis --<br>
to-code=utf-8 | sed "s/Shift_JIS/UTF-8/" | python jpgisgml2gml.py > out.gml<br>
<br>
I've also found this site <a href="http://nlftp.mlit.go.jp/ksj-e/" target="_blank">http://nlftp.mlit.go.jp/ksj-e/</a> and downloaded a few<br>
datasets. Those I tried are not handled by the OGR FGD driver. Some of them<br>
look like GML with a particular application schema. They are unfortunately not<br>
standard enough for the OGR GML driver to understand them out of the box,<br>
although I believe it could be tweaked to parse them. Their header look like:<br>
<br>
<ksj:Dataset gml:id="A09Dataset"<br>
xmlns:ksj="<a href="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app" target="_blank">http://nlftp.mlit.go.jp/ksj/schemas/ksj-app</a>"<br>
xmlns:gml="<a href="http://www.opengis.net/gml/3.2" target="_blank">http://www.opengis.net/gml/3.2</a>"<br>
xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" xm<br>
lns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app" target="_blank">http://nlftp.mlit.go.jp/ksj/schemas/ksj-app</a> KsjAppSchema-<br>
A09-v3_1.xsd"><br>
<br>
There's a shapefile next to them, with apparently same content.<br>
<br>
So it appears there's a variety of GML-like formats ;-)<br>
<span class="HOEnZb"><font color="#888888"><br>
Even<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> Hi Even,<br>
><br>
> I talk to Yamate-san who has been working on those three drivers. He<br>
> explained that each driver has little bit different copy right background<br>
> he need to resolve before he can merge them to the main.<br>
><br>
> The first one, FGD driver, which he wrote for a project and he does not<br>
> have control on its copy right. So, he would like to leave it at this<br>
> moment.<br>
><br>
> For the second one, FG-GML driver, he wrote it and he owns its copy right<br>
> at this moment. But he said he can release with the licence you suggested.<br>
><br>
> The last one, FGD ogr driver, which he also wrote and it is highly possible<br>
> he can release it under the MIT licence. But he need to make sure his<br>
> client can agree on this. So, he said he will contact to his client.<br>
><br>
> So, the last two drivers can be merge into the main GDAL driver. It is<br>
> little bit confusing background but I am sure we can sort these out.<br>
><br>
> I will let you know when he is ready to work with you.<br>
><br>
> Thanks!<br>
><br>
> Hiroo<br>
><br>
> On Thu, Apr 30, 2015 at 2:26 PM, Hiroo Imaki <<a href="mailto:hiroo@angeli.org">hiroo@angeli.org</a>> wrote:<br>
> > Hi Even,<br>
> ><br>
> > I am not the developer but he and I working at a same company. If he can<br>
> > agree on the license and release his efforts, that would be wonderful for<br>
> > all Japanese data uses.<br>
> ><br>
> > He hesitates writing his message in English. So, I can be a translator<br>
> > between you guys. I hope no lost in translation!<br>
> ><br>
> > I will get back to you once I hear from him.<br>
> ><br>
> > Hiroo<br>
> ><br>
> > On Thu, Apr 30, 2015 at 10:45 AM, Even Rouault<br>
> > <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a><br>
> ><br>
> > > wrote:<br>
> >> Hi,<br>
> >><br>
> >> Sorry for writing in English, but I don't unfortunately speak Japanese.<br>
> >><br>
> >> I'm one of the GDAL developers.<br>
> >><br>
> >> I've noticed that there are "un-official" versions of GDAL floating<br>
> >> around, with<br>
> >> a few drivers for new Japanese-specific formats. I was wondering if<br>
> >> there was a<br>
> >> reason to keep them outside of the official GDAL tree ? Integrating them<br>
> >> into<br>
> >> mainline GDAL would probably make life of Japanese users easier. GDAL<br>
> >> has already support for a lof of national specific formats, mainly in<br>
> >> Europe and<br>
> >> North America. Would be cool for Asia to join in ;-)<br>
> >><br>
> >> In a recent discussion thread, the following link is mentionned:<br>
> >>  <a href="https://www.dropbox.com/s/4oyhncknavdk2if/gdal110_test.zip" target="_blank">https://www.dropbox.com/s/4oyhncknavdk2if/gdal110_test.zip</a><br>
> >><br>
> >> I can see that it contains 2 new GDAL drivers ( FGD: Japanese<br>
> >> Fundamental Geographic Data (.xml) & FG-GML :  Japanese Fundamental<br>
> >> Geographic Data GML(.xml) ) and one OGR driver (FGD).<br>
> >> Unfortunatelly there's no author or copyright information in the header<br>
> >> of the<br>
> >> corresponding source files. Would their author(s) be willing to release<br>
> >> them<br>
> >> under the X/MIT license and contribute them to the mainline GDAL project<br>
> >> ? Perhaps some test files to write minimalistic regressions tests would<br>
> >> be useful.<br>
> >><br>
> >> Let me know if I can be useful for anything. I can also help for writing<br>
> >> new<br>
> >> drivers if needed.<br>
> >><br>
> >> Best regards,<br>
> >><br>
> >> Even<br>
> >><br>
> >> --<br>
> >> Spatialys - Geospatial professional services<br>
> >> <a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
> >> _______________________________________________<br>
> >> OSGeoJapan-discuss mailing list<br>
> >> <a href="mailto:OSGeoJapan-discuss@lists.osgeo.org">OSGeoJapan-discuss@lists.osgeo.org</a><br>
> >> <a href="http://lists.osgeo.org/mailman/listinfo/osgeojapan-discuss" target="_blank">http://lists.osgeo.org/mailman/listinfo/osgeojapan-discuss</a><br>
> ><br>
> > --<br>
> > Hiroo Imaki<br>
> > Pacific Spatial Solutions, LLC<br>
> > 1523 Chatham Colony Ct.<br>
> > Reston, VA  20190<br>
> > <a href="mailto:hiroo.imaki@pacificspatial.com">hiroo.imaki@pacificspatial.com</a><br>
> > <a href="http://www.pacificspatial.com" target="_blank">http://www.pacificspatial.com</a><br>
> > <a href="http://www.geopacific.org" target="_blank">http://www.geopacific.org</a> (GIS info site)<br>
> > <a href="mailto:hiroo@angeli.org">hiroo@angeli.org</a> (private)<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Hiroo Imaki<div><div>Pacific Spatial Solutions, LLC</div><div>1523 Chatham Colony Ct.</div><div>Reston, VA  20190</div><div><a href="mailto:hiroo.imaki@pacificspatial.com" target="_blank">hiroo.imaki@pacificspatial.com</a></div><div><a href="http://www.pacificspatial.com" target="_blank">http://www.pacificspatial.com</a></div><div><a href="http://www.geopacific.org/" target="_blank">http://www.geopacific.org</a> (GIS info site)<br></div><div><a href="mailto:hiroo@angeli.org" target="_blank">hiroo@angeli.org</a> (private)<br></div></div><div><br></div></div></div>
</div>