This project is read-only.

Problem with a ShapeFile

Topics: User Forum
Nov 24, 2006 at 1:39 PM
I used msscmd successfully with some shape files, but I got this error with a shapefile using the previous success command:

msscmd -server=XXXX\DEV -db=XXXXSp
atial -table=MapARGRios -import=shp -shpfilename="C:\Aeroterrarios\hidro.shp"

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at StoredProcedures.ImportFromDatasource(IProvider datasource, String schemaN
ame, String tableName, String columnName, Int32 srid, String type, String connec
tionString, ImportFromDatasourceProcess process, Int32& importedRows, TimeSpan&
at StoredProcedures.ImportFromShapefileMain(String shapefile, String schema_n
ame, String tablename, String columnname, Int32 srid, String type, String conn
ectionString, Int32& importedRows, TimeSpan& elapsedTime)
at MsSqlSpatialConsole.Program.ImportShp(ArgParser arg, String schema, String
table, String column, Int32 srid, String type, String connectionString)
at MsSqlSpatialConsole.Program.Main(String[] args)


Could you help to resolve the problem?
The shapefile could be download for test from:
Thanks a lot.

Christian Gonzalez

Nov 24, 2006 at 4:26 PM
This discussion has been copied to Work Item 5917. You may wish to continue further discussion there.
Nov 24, 2006 at 8:12 PM
Where I can find that work item?
Thanks a lot for your quick anwsers
Nov 24, 2006 at 10:01 PM
Sorry, the above was generated by CodePlex and was not hyperlinked like this NullReferenceException when importing null geometry. But I can tell you, before you follow the link, that the bug was fixed so you can download and use the latest source code package.

Best regards,
Ricardo Stuven.
Nov 27, 2006 at 2:28 PM
Thanks a lot.
I tested it an work fine!
I going to integrate the data with Sharpmap during this week.
You make a great job!

Christian Gonzalez