GeometryField in OSMGeoAdmin

2012-08-22 Thread geonition
Hi, I have a problem with GeometryField not showing the saved geometry in the admin interface. The problem is that the GeometryField has a type of 'GEOMETRY' when the value saved might have the type of e.g. 'POINT'. This leads to that the OpenLayersWidget will set the value as empty. I do not

Re: GeometryField in OSMGeoAdmin

2012-08-22 Thread Melvyn Sopacua
On 22-8-2012 10:31, geonition wrote: > I have a problem with GeometryField not showing the saved geometry in the > admin interface. The problem is that the GeometryField has a type of > 'GEOMETRY' when the value saved might have the type of e.g. 'POINT'. The GeometryField is like the normal Fie

Re: GeometryField in OSMGeoAdmin

2012-08-23 Thread geonition
Hi, It is very convenient for me to use GeometryField as I can save any geometry type into the same field. The database logic will become more complex if I am required to create a separate table or field for e.g. points and linestrings. Still looking for a workaround, or is there a reason for

Re: GeometryField in OSMGeoAdmin

2012-08-23 Thread Satinderpal Singh
Hi, I also start working on the the OSM in Geodjango and i am not much familiar with it. I installed libraries like geos and starts a project by following the instructions in the geodjango gide. But it only tells, how to install libraries, my question is that how will i make map in my project? Is t

Re: GeometryField in OSMGeoAdmin

2012-08-23 Thread Melvyn Sopacua
On 23-8-2012 10:41, geonition wrote: > It is very convenient for me to use GeometryField as I can save any > geometry type into the same field. The database logic will become more > complex if I am required to create a separate table or field for e.g. > points and linestrings. > > Still lookin

Re: GeometryField in OSMGeoAdmin

2012-08-23 Thread geonition
Hi, I do see your point Melvyn but my use case only requires to save different types of geometries and visualize them. Anything more usefull is just extra. This works fine when i build the map myself but the OpenLayersWidget has this geomtype restriction. The complexity in saving geometries of

Re: GeometryField in OSMGeoAdmin

2012-10-01 Thread geonition
Hi, It is really convenient for me to use GeometryField for saving arbitrary geometry types and thus I only had the problem with using the Django admin in viewing these geometries. I was able to solve this issue and like to post it here if anyone else sees some value in the solution, or on the