Hello,
one of our customer contacted me about his need to display shape file.
I sent him the topic made by Kasper D (thanks btw) and the application.
he just contacted me today with more questions :
You sent us a c# project but we want to display shape file in a web application.
How can we handle huge shape file ? can we only load a part of it ?
I don't know if there's enough information to provide an answer, don't hesitate to ask for more information if you need.
thanks in advance
have a good day
Clément
Shape file web application
- Oliver Heilig
- Posts: 160
- Joined: Tue May 13, 2014 12:10 pm
- Location: Karlsruhe, Germany
- Contact:
Re: Shape file web application
Hello Clément,
shape files are not a very web-friendly format. There are different approaches, depending on the size and required interoperability:
shape files are not a very web-friendly format. There are different approaches, depending on the size and required interoperability:
- You can find some projects on GitHub to load shape files directly and convert it to GeoJson, e.g. https://github.com/calvinmetcalf/shapefile-js
- For large files you can host the files on a WMS/WFS server and use a browser client, see http://geoserver.org/
- A similar approach with ASP+JavaScript is here: https://github.com/ptv-logistics/SharpMap.Widgets
- For semi-large files you can try to simplify and optimize them with https://mapshaper.org/. Read here for more infos: https://github.com/ptv-logistics/xserve ... in-regions
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany
https://github.com/oliverheilig/
Chief Developer Logistic Services
PTV GROUP - Germany
https://github.com/oliverheilig/