Skip to content

OpenRead with .prj stream #69

@lostptr

Description

@lostptr

Currently, there is a ShapeFile.OpenRead() method that accepts a Stream for the .shp file and another for the .dbf file. However when I do, the geometry's spacial reference ID is zero. I would like an overload that accepts a stream for the .prj file as well or a way for me to read it separately.

Looks like this already happens when using the OpenRead with the file path:

var prjFile = Path.ChangeExtension(shpPath, ".prj");
if (File.Exists(prjFile))
Projection = File.ReadAllText(prjFile);

I can make a PR but Im not sure if this repo is even updated anymore 🥲

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions