Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Elevation data from geoTIFF

yes, it works by reprojecting the tile. a small example on one tile only

On Fri, Mar 3, 2023 at 9:52 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
>
> Indeed, that single tile doesn't overlap with any network edge.
>
> Am Fr., 3. März 2023 um 09:42 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
>>
>> I reprojected one tile in QGIS. I still don't get the height in the
>> generated network, but maybe because I need to cover the entire
>> network area?
>>
>> On Fri, Mar 3, 2023 at 9:17 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
>> >
>> > It's rather a limit in handling the projection. At  the moment, netconvert as well as sumo-gui only support geoTiff  with "raw" WGS84 data.
>> > whereas your geoTiff is defined as projected data.
>> >
>> > Am Do., 2. März 2023 um 18:53 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
>> >>
>> >> isn't it a projection system failure? the OSM is in WGS84 and the
>> >> geoTIFF files are in 25832.  The warning I get says:
>> >> Warning: Could not get height data for coordinate 11.57,48.13
>> >> Warning: Could not get height data for coordinate 11.57,48.14
>> >> Warning: Could not get height data for coordinate 11.57,48.13
>> >> Warning: Could not get height data for coordinate 11.57,48.13
>> >> Warning: Could not get height data for coordinate 11.57,48.13
>> >>
>> >> On Thu, Mar 2, 2023 at 6:03 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
>> >> >
>> >> > There is code in sumo-gui that automatically positions a geoTif when used as a background image. This is what it reports:
>> >> > "Warning: Invalid longitude 690000.00
>> >> > Warning: Could not convert coordinates in 690_5334.tif."
>> >> > Since the same library is used by netconvert to interpret the heigthmap this is likely the same problem that also prevents height data from being applied.
>> >> > I suspect a version mismatch or a maybe an important field that optionally scales values is going unused by our importer.
>> >> >
>> >> > Am Do., 2. März 2023 um 15:38 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
>> >> >>
>> >> >> sorry, I forgot the network (now all three files in a zip file)
>> >> >>
>> >> >> On Thu, Mar 2, 2023 at 3:35 PM Sasan Amini <aminissn@xxxxxxxxx> wrote:
>> >> >> >
>> >> >> > sure.
>> >> >> >
>> >> >> > On Thu, Mar 2, 2023 at 2:43 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
>> >> >> > >
>> >> >> > > Can you provide a small input example with a single tile and a matching piece of network?
>> >> >> > >
>> >> >> > > Am Do., 2. März 2023 um 14:10 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
>> >> >> > >>
>> >> >> > >> Dear all,
>> >> >> > >>
>> >> >> > >> I am trying to get elevation data in combination with OSM file using
>> >> >> > >> NETCONVERT: Even though I have all the necessary data, I still cannot
>> >> >> > >> get the height in my network shape. Can someone help me to find out
>> >> >> > >> what am I doing wrong?
>> >> >> > >> Here is my netconvert command: netconvert --osm-files map_muc.osm
>> >> >> > >> --osm.all-attributes -o sumonet.net.xml --heightmap.geotiff
>> >> >> > >> 690_5334.tif,690_5335.tif,690_5336.tif,690_5333.tif,691_5333.tif,692_5333.tif,691_5334.tif,691_5336.tif,692_5334.tif,692_5335.tif,688_5333.tif,688_5334.tif,688_5335.tif,689_5333.tif,689_5334.tif,689_5334.tif,689_5335.tif,691_5335.tif,689_5332.tif,688_5332.tif,688_5336.tif,689_5336.tif,688_5337.tif,690_5332.tif,691_5332.tif,692_5336.tif,693_5335.tif,688_5338.tif,687_5337.tif,690_5337.tif
>> >> >> > >>  --proj  "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0
>> >> >> > >> +units=m +no_defs"
>> >> >> > >> I am downloading the tiff data from https://geoportal.bayern.de/ and
>> >> >> > >> here is the extent of my network all inside the tiff files.
>> >> >> > >>
>> >> >> > >> Thanks,
>> >> >> > >> Sasan
>> >> >> > >> _______________________________________________
>> >> >> > >> sumo-user mailing list
>> >> >> > >> sumo-user@xxxxxxxxxxx
>> >> >> > >> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>> >> >> > >
>> >> >> > > _______________________________________________
>> >> >> > > sumo-user mailing list
>> >> >> > > sumo-user@xxxxxxxxxxx
>> >> >> > > To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>> >> >> _______________________________________________
>> >> >> sumo-user mailing list
>> >> >> sumo-user@xxxxxxxxxxx
>> >> >> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>> >> >
>> >> > _______________________________________________
>> >> > sumo-user mailing list
>> >> > sumo-user@xxxxxxxxxxx
>> >> > To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>> >> _______________________________________________
>> >> sumo-user mailing list
>> >> sumo-user@xxxxxxxxxxx
>> >> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>> >
>> > _______________________________________________
>> > sumo-user mailing list
>> > sumo-user@xxxxxxxxxxx
>> > To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@xxxxxxxxxxx
>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Attachment: sumonet_height_reproj.net.zip
Description: Zip compressed data


Back to the top