Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting geometry type of new layers #40

Closed
brandonreavis opened this issue Jul 8, 2014 · 0 comments
Closed

Setting geometry type of new layers #40

brandonreavis opened this issue Jul 8, 2014 · 0 comments
Labels

Comments

@brandonreavis
Copy link
Member

Right now to create a layer you need to pass the wkbGeometryType like:

var lyr = ds.layers.create('layername', srs, gdal.wkbPoint);

Since we have removed the need to use the wkbGeometryType enum everywhere else in the binding, it would be nice to remove it here too. We could pass the geometry constructor like:

var lyr = ds.layers.create('layername', srs, gdal.Point);
brandonreavis added a commit that referenced this issue Jul 12, 2014
Also added Geometry.getConstructor(), and Geometry.wkbType.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant