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

Districts -> 4 dem rasters #7

Open
AdrianKriger opened this issue Jan 7, 2022 · 1 comment
Open

Districts -> 4 dem rasters #7

AdrianKriger opened this issue Jan 7, 2022 · 1 comment
Labels
enhancement/feature request New feature or request

Comments

@AdrianKriger
Copy link
Owner

Perhaps it would be more useful to mosaic, clip, re-project -> extract -> TIN -> a minimum of 4 adjacent dem raster's.
I'm thinking specifically of Pretoria CBD. 2528 CA, CB, CC, CD.

No more than that.

@AdrianKriger AdrianKriger added the enhancement/feature request New feature or request label Jan 7, 2022
@AdrianKriger
Copy link
Owner Author

try:

'in_raster': "./raster/LO29_050M_2528CA.tif ./raster/LO29_050M_2528CB.tif ./raster/LO29_050M_2528CC.tif ./raster/LO29_050M_2528CD.tif"

a_string = jparams['in_raster']
imgs = a_string.split()

if len(imgs) > 1:
    imgs = '", "'.join(a_string.split())
    new = '"' + imgs + '"'
        
    OutTile = gdal.Warp(jparams['projClip_raster'], 
                            list(new),
                            resampleAlg='bilinear',
                            dstSRS=jparams['crs'],
                            #-- outputBounds=[minX, minY, maxX, maxY]
                            outputBounds = [extent[0], extent[1], extent[2], extent[3]])
     OutTile = None 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement/feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant