Welcome, Guest
Username: Password: Remember me

TOPIC: How to assign friction coefficient to existing shapefile

How to assign friction coefficient to existing shapefile 10 months 1 week ago #43968

  • Hao
  • Hao's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi everyone,

I imported the shapefile and restored it as closed line. But the query for assigning the coefficient only pops up when manually adding closed line.
Is there any way to assign a friction coefficient in this case?

Best regards,
Hao
Attachments:
The administrator has disabled public write access.

How to assign friction coefficient to existing shapefile 10 months 6 days ago #43969

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
Hi,

I'm not sure to see what you mean. Anyway :
- select the mesh object (in your case named FRICTION)
- Go to Tools - Map Object
- and the select the object containing your Closedlines

To edit the values, select a closed line, right click, Edit

Alexis
The administrator has disabled public write access.

How to assign friction coefficient to existing shapefile 10 months 5 days ago #43973

  • Hao
  • Hao's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi Alexis,

Thanks for your reply.
But the closed line can't be edited(The button is grey)
The administrator has disabled public write access.

How to assign friction coefficient to existing shapefile 10 months 4 days ago #43975

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
Hi,

I'm pretty sure that you can't edit shapefile with BK. You can open it with BK, save as .i2s (or the appropriate BK format for closed lines) and after that, you can edit it.

Alexis
The administrator has disabled public write access.

How to assign friction coefficient to existing shapefile 10 months 4 days ago #43977

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
That's probably the explanation...
BK is not a GIS software which is able to modify a shapefile, it just allow to read it.
Then each user modification should be done on BK internal file (or you should modify the shapefile in GIS software and import it after)
By the way, you probably could have a look at python scripts dedicated to use Corine Land Cover data to generate friction coefficient...
Hope this help
Christophe
The administrator has disabled public write access.

How to assign friction coefficient to existing shapefile 10 months 3 days ago #43979

  • Renault
  • Renault's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 120
  • Thank you received: 33
Hi Hao,

If you are open to using QGIS, this can probably be done in two steps:
1. Open the .slf in QGIS and use tool Mesh > Rasterize Mesh Dataset to generate a raster layer.
2. Use tool Raster analysis > Sample Raster Values or Vector analysis > Drape (set M or Z value from raster) using the new raster and your shapefile layer.

If all you need is the values at the points and not the shapefile layer, then you can use tool Mesh > Export Time Series Values From Points of a Mesh Dataset or similar.

Hope this helps!
André Renault
The administrator has disabled public write access.
Moderators: Serrer, a.barton

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.