Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid geometry in Jakarta boundary data #2

Open
KolesovDmitry opened this issue Jan 16, 2014 · 1 comment
Open

Invalid geometry in Jakarta boundary data #2

KolesovDmitry opened this issue Jan 16, 2014 · 1 comment

Comments

@KolesovDmitry
Copy link

File kabupaten_jakarta.shp has a polygon with invalid geometry. For example, load the layer in QGIS, then:

p = iface.activeLayer()
for f in p.getFeatures():
    print f.attributes(), f.geometry().isGeosValid()

The result is:

[u'JAKARTA BARAT', 0.489965321] True
[u'JAKARTA PUSAT', 0.495809369] True
[u'JAKARTA SELATAN', 0.494102439] False
[u'JAKARTA TIMUR', 0.490687674] True
[u'JAKARTA UTARA', 0.496168105] True
@timlinux
Copy link
Contributor

Hi

Yes I know about that - I left it there as in the real world people have
broken data and I InaSAFE should be able to deal with it gracefully. Thanks
for checking on that though!

Regards

Tim

On Thu, Jan 16, 2014 at 10:38 PM, Dmitry Kolesov
[email protected]:

File kabupaten_jakarta.shp has a polygon with invalid geometry. For
example, load the layer in QGIS, then:

p = iface.activeLayer()
for f in p.getFeatures():
print f.attributes(), f.geometry().isGeosValid()

The result is:

[u'JAKARTA BARAT', 0.489965321] True
[u'JAKARTA PUSAT', 0.495809369] True
[u'JAKARTA SELATAN', 0.494102439] False
[u'JAKARTA TIMUR', 0.490687674] True
[u'JAKARTA UTARA', 0.496168105] True


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

Tim Sutton - QGIS Project Steering Committee Member

Visit http://linfiniti.com to find out about:

  • QGIS programming services
  • GeoDjango web development
  • FOSS Consulting Services
    Skype: timlinux Irc: timlinux on #qgis at freenode.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants