Skip to content

Commit

Permalink
Try it with create data source
Browse files Browse the repository at this point in the history
  • Loading branch information
conbrad committed Oct 7, 2024
1 parent 0f72b07 commit 80934b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/app/auto_spatial_advisory/process_fuel_type_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ async def get_advisory_shape(session: AsyncSession, advisory_shape_id: int, out_
result = await session.execute(stmt)
geom = result.first()

output_ds = ogr.GetDriverByName("Memory").Create("", 0, 0, 0, ogr.GDT_Unknown)
driver = ogr.GetDriverByName("Memory")
output_ds = driver.CreateDataSource("")
output_layer = output_ds.CreateLayer("output_layer")

# Define the geometry field in the output layer
Expand Down

0 comments on commit 80934b3

Please sign in to comment.