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

Fix: heron.cgi force 2D on 3D input files #449

Closed
justb4 opened this issue Mar 9, 2016 · 1 comment
Closed

Fix: heron.cgi force 2D on 3D input files #449

justb4 opened this issue Mar 9, 2016 · 1 comment
Assignees
Milestone

Comments

@justb4
Copy link
Contributor

justb4 commented Mar 9, 2016

Fix from @deduikertjes

"Het uploaden van een shapefile mislukt indien het een 3D shapefile betreft *
*Dit is makkelijk te fixen door in ogr2ogr te specificeren dat er overgegaan moet worden op 2D."

Sponsored by LBP|SIGHT

def ogr2ogr(out_file, in_file, target_format, assign_srs=None, source_srs=None, target_srs=None):
    try:

        # Entire ogr2ogr command line
        # Make ogr2ogr command line, use separator | to deal with quotes etc.
       cmd_tmpl = OGR2OGR_PROG

       # Force 2D otherwise failure with 3D input file
       cmd_tmpl += '|-dim|2'
@justb4 justb4 self-assigned this Mar 9, 2016
@justb4 justb4 added this to the Release-1.0.7 milestone Mar 9, 2016
justb4 added a commit that referenced this issue Mar 9, 2016
@justb4
Copy link
Contributor Author

justb4 commented Mar 9, 2016

fixed

@justb4 justb4 closed this as completed Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant